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,int32_t)31 void MetricsCollector::OnGroupSizeUpdate(int32_t /*group_id*/, int32_t /*group_size*/) {}
32 
OnConnectionStateChanged(int32_t,const RawAddress &,bluetooth::le_audio::ConnectionState,ConnectionStatus)33 void MetricsCollector::OnConnectionStateChanged(int32_t /*group_id*/, const RawAddress& /*address*/,
34                                                 bluetooth::le_audio::ConnectionState /*state*/,
35                                                 ConnectionStatus /*status*/) {}
36 
OnStreamStarted(int32_t,bluetooth::le_audio::types::LeAudioContextType)37 void MetricsCollector::OnStreamStarted(
38         int32_t /*group_id*/, bluetooth::le_audio::types::LeAudioContextType /*context_type*/) {}
39 
OnStreamEnded(int32_t)40 void MetricsCollector::OnStreamEnded(int32_t /*group_id*/) {}
41 
OnBroadcastStateChanged(bool)42 void MetricsCollector::OnBroadcastStateChanged(bool /*started*/) {}
43 
Flush()44 void MetricsCollector::Flush() {}
45 
46 }  // namespace bluetooth::le_audio
47