Jakub Pawlowski | c8dcd25 | 2018-10-25 15:12:43 +0200 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Copyright 2018 Google, Inc. |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at: |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | ******************************************************************************/ |
| 18 | |
| 19 | #include "metrics.h" |
| 20 | |
| 21 | #include <base/logging.h> |
| 22 | |
| 23 | #include "leaky_bonded_queue.h" |
| 24 | |
| 25 | namespace bluetooth { |
| 26 | |
| 27 | namespace common { |
| 28 | |
| 29 | void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) {} |
| 30 | |
| 31 | bool A2dpSessionMetrics::operator==(const A2dpSessionMetrics& rhs) const { |
| 32 | LOG(FATAL) << "UNIMPLEMENTED"; |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | struct BluetoothMetricsLogger::impl { |
| 37 | impl(size_t max_bluetooth_session, size_t max_pair_event, |
| 38 | size_t max_wake_event, size_t max_scan_event) {} |
| 39 | }; |
| 40 | |
| 41 | BluetoothMetricsLogger::BluetoothMetricsLogger() |
| 42 | : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent, |
| 43 | kMaxNumWakeEvent, kMaxNumScanEvent)) {} |
| 44 | |
| 45 | void BluetoothMetricsLogger::LogPairEvent(uint32_t disconnect_reason, |
| 46 | uint64_t timestamp_ms, |
| 47 | uint32_t device_class, |
| 48 | device_type_t device_type) {} |
| 49 | |
| 50 | void BluetoothMetricsLogger::LogWakeEvent(wake_event_type_t type, |
| 51 | const std::string& requestor, |
| 52 | const std::string& name, |
| 53 | uint64_t timestamp_ms) {} |
| 54 | |
| 55 | void BluetoothMetricsLogger::LogScanEvent(bool start, |
| 56 | const std::string& initator, |
| 57 | scan_tech_t type, uint32_t results, |
| 58 | uint64_t timestamp_ms) {} |
| 59 | |
| 60 | void BluetoothMetricsLogger::LogBluetoothSessionStart( |
| 61 | connection_tech_t connection_tech_type, uint64_t timestamp_ms) {} |
| 62 | |
| 63 | void BluetoothMetricsLogger::LogBluetoothSessionEnd( |
| 64 | disconnect_reason_t disconnect_reason, uint64_t timestamp_ms) {} |
| 65 | |
| 66 | void BluetoothMetricsLogger::LogBluetoothSessionDeviceInfo( |
| 67 | uint32_t device_class, device_type_t device_type) {} |
| 68 | |
| 69 | void BluetoothMetricsLogger::LogA2dpSession( |
| 70 | const A2dpSessionMetrics& a2dp_session_metrics) {} |
| 71 | |
| 72 | void BluetoothMetricsLogger::LogHeadsetProfileRfcConnection( |
| 73 | tBTA_SERVICE_ID service_id) {} |
| 74 | |
| 75 | void BluetoothMetricsLogger::WriteString(std::string* serialized) {} |
| 76 | |
| 77 | void BluetoothMetricsLogger::WriteBase64String(std::string* serialized) {} |
| 78 | |
| 79 | void BluetoothMetricsLogger::WriteBase64(int fd) {} |
| 80 | |
| 81 | void BluetoothMetricsLogger::CutoffSession() {} |
| 82 | |
| 83 | void BluetoothMetricsLogger::Build() {} |
| 84 | |
| 85 | void BluetoothMetricsLogger::ResetSession() {} |
| 86 | |
| 87 | void BluetoothMetricsLogger::ResetLog() {} |
| 88 | |
| 89 | void BluetoothMetricsLogger::Reset() {} |
| 90 | |
| 91 | } // namespace common |
| 92 | |
| 93 | } // namespace bluetooth |