• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
Update(const A2dpSessionMetrics & metrics)29 void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) {}
30 
operator ==(const A2dpSessionMetrics & rhs) const31 bool A2dpSessionMetrics::operator==(const A2dpSessionMetrics& rhs) const {
32   LOG(FATAL) << "UNIMPLEMENTED";
33   return 0;
34 }
35 
36 struct BluetoothMetricsLogger::impl {
implbluetooth::common::BluetoothMetricsLogger::impl37   impl(size_t max_bluetooth_session, size_t max_pair_event,
38        size_t max_wake_event, size_t max_scan_event) {}
39 };
40 
BluetoothMetricsLogger()41 BluetoothMetricsLogger::BluetoothMetricsLogger()
42     : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent,
43                       kMaxNumWakeEvent, kMaxNumScanEvent)) {}
44 
LogPairEvent(uint32_t disconnect_reason,uint64_t timestamp_ms,uint32_t device_class,device_type_t device_type)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 
LogWakeEvent(wake_event_type_t type,const std::string & requestor,const std::string & name,uint64_t timestamp_ms)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 
LogScanEvent(bool start,const std::string & initator,scan_tech_t type,uint32_t results,uint64_t timestamp_ms)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 
LogBluetoothSessionStart(connection_tech_t connection_tech_type,uint64_t timestamp_ms)60 void BluetoothMetricsLogger::LogBluetoothSessionStart(
61     connection_tech_t connection_tech_type, uint64_t timestamp_ms) {}
62 
LogBluetoothSessionEnd(disconnect_reason_t disconnect_reason,uint64_t timestamp_ms)63 void BluetoothMetricsLogger::LogBluetoothSessionEnd(
64     disconnect_reason_t disconnect_reason, uint64_t timestamp_ms) {}
65 
LogBluetoothSessionDeviceInfo(uint32_t device_class,device_type_t device_type)66 void BluetoothMetricsLogger::LogBluetoothSessionDeviceInfo(
67     uint32_t device_class, device_type_t device_type) {}
68 
LogA2dpSession(const A2dpSessionMetrics & a2dp_session_metrics)69 void BluetoothMetricsLogger::LogA2dpSession(
70     const A2dpSessionMetrics& a2dp_session_metrics) {}
71 
LogHeadsetProfileRfcConnection(tBTA_SERVICE_ID service_id)72 void BluetoothMetricsLogger::LogHeadsetProfileRfcConnection(
73     tBTA_SERVICE_ID service_id) {}
74 
WriteString(std::string * serialized)75 void BluetoothMetricsLogger::WriteString(std::string* serialized) {}
76 
WriteBase64String(std::string * serialized)77 void BluetoothMetricsLogger::WriteBase64String(std::string* serialized) {}
78 
WriteBase64(int fd)79 void BluetoothMetricsLogger::WriteBase64(int fd) {}
80 
CutoffSession()81 void BluetoothMetricsLogger::CutoffSession() {}
82 
Build()83 void BluetoothMetricsLogger::Build() {}
84 
ResetSession()85 void BluetoothMetricsLogger::ResetSession() {}
86 
ResetLog()87 void BluetoothMetricsLogger::ResetLog() {}
88 
Reset()89 void BluetoothMetricsLogger::Reset() {}
90 
91 }  // namespace common
92 
93 }  // namespace bluetooth
94