1/* 2 * Copyright (C) 2018 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 17syntax = "proto2"; 18 19// C++ namespace: bluetooth::metrics::BluetoothMetricsProto 20package bluetooth.metrics.BluetoothMetricsProto; 21 22option java_package = "com.android.bluetooth"; 23option java_outer_classname = "BluetoothMetricsProto"; 24 25/** 26* Encapsulates Remote Device Information. Needs to be kept consistent with 27* BluetoothRemoteDeviceInformation 28* in frameworks/proto_logging/stats/atoms/bluetooth/bluetooth_extension_atoms.proto 29*/ 30message BluetoothRemoteDeviceInformation { 31 // SHA256 hashed Bluetooth device name. 32 optional string allowlisted_device_name_hash = 1; 33 34 // Class of Device 35 optional int32 class_of_device = 2; 36 37 // The first three bytes of MAC address 38 optional int32 oui = 3; 39 40 enum RemoteDeviceTypeMetadata { 41 WATCH = 0; 42 UNTETHERED_HEADSET = 1; 43 STYLUS = 2; 44 SPEAKER = 3; 45 HEADSET = 4; 46 CARKIT = 5; 47 DEFAULT = 6; 48 NOT_AVAILABLE = 7; 49 } 50 // Device type metadata 51 optional RemoteDeviceTypeMetadata device_type_metadata = 4; 52} 53