1 /*
2 * Copyright 2022 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #include "metrics_collector.h"
18
19 namespace bluetooth::le_audio {
20
21 /* Metrics Colloctor */
22 MetricsCollector* MetricsCollector::instance = nullptr;
23
Get()24 MetricsCollector* MetricsCollector::Get() {
25 if (MetricsCollector::instance == nullptr) {
26 MetricsCollector::instance = new MetricsCollector();
27 }
28 return MetricsCollector::instance;
29 }
30
OnGroupSizeUpdate(int32_t group_id,int32_t group_size)31 void MetricsCollector::OnGroupSizeUpdate(int32_t group_id, int32_t group_size) {
32 }
33
OnConnectionStateChanged(int32_t group_id,const RawAddress & address,bluetooth::le_audio::ConnectionState state,ConnectionStatus status)34 void MetricsCollector::OnConnectionStateChanged(
35 int32_t group_id, const RawAddress& address,
36 bluetooth::le_audio::ConnectionState state, ConnectionStatus status) {}
37
OnStreamStarted(int32_t group_id,bluetooth::le_audio::types::LeAudioContextType context_type)38 void MetricsCollector::OnStreamStarted(
39 int32_t group_id,
40 bluetooth::le_audio::types::LeAudioContextType context_type) {}
41
OnStreamEnded(int32_t group_id)42 void MetricsCollector::OnStreamEnded(int32_t group_id) {}
43
OnBroadcastStateChanged(bool started)44 void MetricsCollector::OnBroadcastStateChanged(bool started) {}
45
Flush()46 void MetricsCollector::Flush() {}
47
48 } // namespace bluetooth::le_audio
49