/*
 * Copyright (C) 2018 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

syntax = "proto2";

// C++ namespace: bluetooth::metrics::BluetoothMetricsProto
package bluetooth.metrics.BluetoothMetricsProto;

option java_package = "com.android.bluetooth";
option java_outer_classname = "BluetoothMetricsProto";

/**
 * Encapsulates Remote Device Information. Needs to be kept consistent with
 * BluetoothRemoteDeviceInformation
 * in frameworks/proto_logging/stats/atoms/bluetooth/bluetooth_extension_atoms.proto
 */
message BluetoothRemoteDeviceInformation {
  // SHA256 hashed Bluetooth device name.
  optional string allowlisted_device_name_hash = 1;

  // Class of Device
  optional int32 class_of_device = 2;

  // The first three bytes of MAC address
  optional int32 oui = 3;

  enum RemoteDeviceTypeMetadata {
    WATCH = 0;
    UNTETHERED_HEADSET = 1;
    STYLUS = 2;
    SPEAKER = 3;
    HEADSET = 4;
    CARKIT = 5;
    DEFAULT = 6;
    NOT_AVAILABLE = 7;
  }
  // Device type metadata
  optional RemoteDeviceTypeMetadata device_type_metadata = 4;
}
