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 #pragma once
17 
18 #include <cstdint>
19 
20 #include "types/raw_address.h"
21 
22 namespace bluetooth {
23 namespace metrics {
24 
25 void LogMetricsAdapterStateChanged(uint32_t state);
26 void LogMetricsBondCreateAttempt(RawAddress* addr, uint32_t device_type);
27 void LogMetricsBondStateChanged(RawAddress* addr, uint32_t device_type, uint32_t status,
28                                 uint32_t bond_state, int32_t fail_reason);
29 void LogMetricsDeviceInfoReport(RawAddress* addr, uint32_t device_type, uint32_t class_of_device,
30                                 uint32_t appearance, uint32_t vendor_id, uint32_t vendor_id_src,
31                                 uint32_t product_id, uint32_t version);
32 void LogMetricsProfileConnectionStateChanged(RawAddress* addr, uint32_t profile, uint32_t status,
33                                              uint32_t state);
34 void LogMetricsAclConnectAttempt(RawAddress* addr, uint32_t acl_state);
35 void LogMetricsAclConnectionStateChanged(RawAddress* addr, uint32_t transport, uint32_t status,
36                                          uint32_t acl_state, uint32_t direction,
37                                          uint32_t hci_reason);
38 void LogMetricsChipsetInfoReport();
39 
40 void LogMetricsSuspendIdState(uint32_t state);
41 
42 }  // namespace metrics
43 }  // namespace bluetooth
44