blob: bf16960e05d53442fa82061a0d4cb08ec0e31c66 [file] [log] [blame]
Jakub Pawlowskic8dcd252018-10-25 15:12:43 +02001/******************************************************************************
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
25namespace bluetooth {
26
27namespace common {
28
29void A2dpSessionMetrics::Update(const A2dpSessionMetrics& metrics) {}
30
31bool A2dpSessionMetrics::operator==(const A2dpSessionMetrics& rhs) const {
32 LOG(FATAL) << "UNIMPLEMENTED";
33 return 0;
34}
35
36struct 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
41BluetoothMetricsLogger::BluetoothMetricsLogger()
42 : pimpl_(new impl(kMaxNumBluetoothSession, kMaxNumPairEvent,
43 kMaxNumWakeEvent, kMaxNumScanEvent)) {}
44
45void BluetoothMetricsLogger::LogPairEvent(uint32_t disconnect_reason,
46 uint64_t timestamp_ms,
47 uint32_t device_class,
48 device_type_t device_type) {}
49
50void BluetoothMetricsLogger::LogWakeEvent(wake_event_type_t type,
51 const std::string& requestor,
52 const std::string& name,
53 uint64_t timestamp_ms) {}
54
55void BluetoothMetricsLogger::LogScanEvent(bool start,
56 const std::string& initator,
57 scan_tech_t type, uint32_t results,
58 uint64_t timestamp_ms) {}
59
60void BluetoothMetricsLogger::LogBluetoothSessionStart(
61 connection_tech_t connection_tech_type, uint64_t timestamp_ms) {}
62
63void BluetoothMetricsLogger::LogBluetoothSessionEnd(
64 disconnect_reason_t disconnect_reason, uint64_t timestamp_ms) {}
65
66void BluetoothMetricsLogger::LogBluetoothSessionDeviceInfo(
67 uint32_t device_class, device_type_t device_type) {}
68
69void BluetoothMetricsLogger::LogA2dpSession(
70 const A2dpSessionMetrics& a2dp_session_metrics) {}
71
72void BluetoothMetricsLogger::LogHeadsetProfileRfcConnection(
73 tBTA_SERVICE_ID service_id) {}
74
75void BluetoothMetricsLogger::WriteString(std::string* serialized) {}
76
77void BluetoothMetricsLogger::WriteBase64String(std::string* serialized) {}
78
79void BluetoothMetricsLogger::WriteBase64(int fd) {}
80
81void BluetoothMetricsLogger::CutoffSession() {}
82
83void BluetoothMetricsLogger::Build() {}
84
85void BluetoothMetricsLogger::ResetSession() {}
86
87void BluetoothMetricsLogger::ResetLog() {}
88
89void BluetoothMetricsLogger::Reset() {}
90
91} // namespace common
92
93} // namespace bluetooth