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