pub const CUSTOMER_NAME: &str = "fuchsia";
pub const CUSTOMER_ID: u32 = 1;
pub const PROJECT_NAME: &str = "bluetooth";
pub const PROJECT_ID: u32 = 2322225253;
pub const BT_HOST_ADAPTER_EVENT_BT_HOST_ADAPTER_EVENT_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const BT_HOST_ADAPTER_EVENT_BT_HOST_ADAPTER_EVENT_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 23;
pub const BT_HOST_ADAPTER_EVENT_BT_HOST_ADAPTER_EVENT_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 2;
pub const BT_HOST_ADAPTER_EVENT_BT_HOST_ADAPTER_EVENT_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const PAIRED_DEVICES_TOTAL_PAIRED_DEVICES_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_FLOOR: i64 = 0;
pub const PAIRED_DEVICES_TOTAL_PAIRED_DEVICES_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_NUM_BUCKETS: u32 = 32;
pub const PAIRED_DEVICES_TOTAL_PAIRED_DEVICES_TOTAL_PER_DEVICE_MAX_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const AVDTP_DELAY_REPORT_IN_NANOSECONDS_AVDTP_AVERAGE_DELAY_REPORT_IN_NS_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const AVDTP_DELAY_REPORT_IN_NANOSECONDS_AVDTP_AVERAGE_DELAY_REPORT_IN_NS_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const AVDTP_DELAY_REPORT_IN_NANOSECONDS_AVDTP_AVERAGE_DELAY_REPORT_IN_NS_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 100000000;
pub const FASTPAIR_PROVIDER_PAIRING_STATUS_DAILY_DEVICE_HISTOGRAMS_INT_BUCKETS_FLOOR: i64 = 0;
pub const FASTPAIR_PROVIDER_PAIRING_STATUS_DAILY_DEVICE_HISTOGRAMS_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const FASTPAIR_PROVIDER_PAIRING_STATUS_DAILY_DEVICE_HISTOGRAMS_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const FASTPAIR_PROVIDER_PAIRING_STATUS_DAILY_DEVICE_HISTOGRAMS_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const FASTPAIR_PROVIDER_PEER_REQUEST_DAILY_REQUEST_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const FASTPAIR_PROVIDER_PEER_REQUEST_DAILY_REQUEST_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 10;
pub const FASTPAIR_PROVIDER_PEER_REQUEST_DAILY_REQUEST_HISTOGRAM_INT_BUCKETS_INITIAL_STEP: u32 = 1;
pub const FASTPAIR_PROVIDER_PEER_REQUEST_DAILY_REQUEST_HISTOGRAM_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const FASTPAIR_PROVIDER_PAIRING_TIME_SECONDS_DAILY_PAIRING_TIME_HISTOGRAM_INT_BUCKETS_FLOOR: i64 = 0;
pub const FASTPAIR_PROVIDER_PAIRING_TIME_SECONDS_DAILY_PAIRING_TIME_HISTOGRAM_INT_BUCKETS_NUM_BUCKETS: u32 = 20;
pub const FASTPAIR_PROVIDER_PAIRING_TIME_SECONDS_DAILY_PAIRING_TIME_HISTOGRAM_INT_BUCKETS_STEP_SIZE: u32 = 1;
pub const A2DP_STREAM_DURATION_IN_SECONDS_MIGRATED_A2DP_STREAM_DURATION_IN_SECONDS_PER_CONNECTION_INT_BUCKETS_FLOOR: i64 = 0;
pub const A2DP_STREAM_DURATION_IN_SECONDS_MIGRATED_A2DP_STREAM_DURATION_IN_SECONDS_PER_CONNECTION_INT_BUCKETS_NUM_BUCKETS: u32 = 17;
pub const A2DP_STREAM_DURATION_IN_SECONDS_MIGRATED_A2DP_STREAM_DURATION_IN_SECONDS_PER_CONNECTION_INT_BUCKETS_INITIAL_STEP: u32 = 2;
pub const A2DP_STREAM_DURATION_IN_SECONDS_MIGRATED_A2DP_STREAM_DURATION_IN_SECONDS_PER_CONNECTION_INT_BUCKETS_STEP_MULTIPLIER: u32 = 2;
pub const BT_HOST_ADAPTER_EVENT_METRIC_ID: u32 = 9;
pub const BT_HOST_PEER_BONDING_EVENT_METRIC_ID: u32 = 10;
pub const BT_HOST_PEER_CONNECTION_EVENT_METRIC_ID: u32 = 11;
pub const AVRCP_NEW_PEERS_METRIC_ID: u32 = 12;
pub const AVRCP_CONNECTIONS_METRIC_ID: u32 = 13;
pub const AVRCP_CHANNEL_ERRORS_METRIC_ID: u32 = 14;
pub const AVRCP_REMOTE_PEER_CAPABILITIES_METRIC_ID: u32 = 15;
pub const AVRCP_DISTINCT_REMOTE_PEER_CAPABILITIES_METRIC_ID: u32 = 16;
pub const PAIRED_DEVICES_TOTAL_METRIC_ID: u32 = 17;
pub const BT_HOST_LE_PEER_DISCONNECTION_EVENT_METRIC_ID: u32 = 18;
pub const BT_HOST_BREDR_PEER_DISCONNECTION_EVENT_METRIC_ID: u32 = 19;
pub const A2DP_REMOTE_PEER_CAPABILITIES_METRIC_ID: u32 = 20;
pub const AVDTP_DELAY_REPORT_IN_NANOSECONDS_METRIC_ID: u32 = 21;
pub const AVRCP_TARGET_DISTINCT_PEER_PLAYER_CAPABILITIES_METRIC_ID: u32 = 22;
pub const FASTPAIR_PROVIDER_PAIRING_STATUS_METRIC_ID: u32 = 23;
pub const FASTPAIR_PROVIDER_PEER_REQUEST_METRIC_ID: u32 = 24;
pub const FASTPAIR_PROVIDER_PAIRING_TIME_SECONDS_METRIC_ID: u32 = 25;
pub const A2DP_CODEC_AVAILABILITY_MIGRATED_METRIC_ID: u32 = 103;
pub const PAIRING_METHOD_MIGRATED_METRIC_ID: u32 = 104;
pub const PAIRING_RESULT_MIGRATED_METRIC_ID: u32 = 105;
pub const L2CAP_OPEN_CHANNEL_MIGRATED_METRIC_ID: u32 = 106;
pub const A2DP_STREAM_DURATION_IN_SECONDS_MIGRATED_METRIC_ID: u32 = 108;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionMode {
Le = 0,
BrEdr = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionMode {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionMode as BtHostAdapterEventMetricDimensionMode;
pub use BluetoothMetricDimensionMode as BtHostPeerBondingEventMetricDimensionMode;
pub use BluetoothMetricDimensionMode as BtHostPeerConnectionEventMetricDimensionMode;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BtHostAdapterEventMetricDimensionEvent {
OpenL2capChannelRequest = 0,
OutgoingConnectionRequest = 1,
PairRequest = 2,
RequestDiscoverable = 3,
RequestDiscovery = 4,
SetConnectableTrue = 5,
SetConnectableFalse = 6,
StartAdvertising = 7,
StopAdvertising = 8,
StartDiscovery = 9,
}
impl cobalt_client::traits::AsEventCode for BtHostAdapterEventMetricDimensionEvent {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BtHostPeerBondingEventMetricDimensionEvent {
Success = 0,
Failure = 1,
}
impl cobalt_client::traits::AsEventCode for BtHostPeerBondingEventMetricDimensionEvent {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BtHostPeerConnectionEventMetricDimensionEvent {
Success = 0,
Failure = 1,
InterrogationComplete = 2,
PageTimeout = 3,
}
impl cobalt_client::traits::AsEventCode for BtHostPeerConnectionEventMetricDimensionEvent {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionDirection {
Unspecified = 0,
Incoming = 1,
Outgoing = 2,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionDirection {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionDirection as BtHostPeerConnectionEventMetricDimensionDirection;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionChannel {
Control = 0,
Browse = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionChannel {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionChannel as AvrcpConnectionsMetricDimensionChannel;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionType {
ConnectionError = 0,
ControlChannelCollision = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionType as AvrcpChannelErrorsMetricDimensionType;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionRemoteRole {
Target = 0,
Controller = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionRemoteRole {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionRemoteRole as AvrcpRemotePeerCapabilitiesMetricDimensionRemoteRole;
pub use BluetoothMetricDimensionRemoteRole as AvrcpDistinctRemotePeerCapabilitiesMetricDimensionRemoteRole;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionFeature {
SupportsBrowsing = 0,
SupportsCoverArt = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionFeature {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionFeature as AvrcpRemotePeerCapabilitiesMetricDimensionFeature;
pub use BluetoothMetricDimensionFeature as AvrcpDistinctRemotePeerCapabilitiesMetricDimensionFeature;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BtHostLePeerDisconnectionEventMetricDimensionReason {
Unknown = 0,
ExplictDisconnect = 1,
LinkError = 2,
ZeroRef = 3,
RemoteDisconnection = 4,
}
impl cobalt_client::traits::AsEventCode for BtHostLePeerDisconnectionEventMetricDimensionReason {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BtHostBredrPeerDisconnectionEventMetricDimensionReason {
Unknown = 0,
ApiRequest = 1,
InterrogationFailed = 2,
PairingFailed = 3,
AclLinkError = 4,
PeerDisconnection = 5,
}
impl cobalt_client::traits::AsEventCode for BtHostBredrPeerDisconnectionEventMetricDimensionReason {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionCapability {
Unknown = 0,
Basic = 1,
DelayReport = 2,
Reporting = 3,
Recovery = 4,
ContentProtection = 5,
HeaderCompression = 6,
Multiplexing = 7,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionCapability {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionCapability as A2dpRemotePeerCapabilitiesMetricDimensionCapability;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionBrowsing {
Unknown = 0,
Unsupported = 1,
Supported = 2,
SupportedWhenAddressed = 3,
}
impl cobalt_client::traits::AsEventCode for AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionBrowsing {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionBrowsing as AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionSearching;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionNowPlaying {
Unknown = 0,
Unsupported = 1,
Supported = 2,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionNowPlaying {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionNowPlaying as AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionNowPlaying;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum FastpairProviderPairingStatusMetricDimensionResult {
Success = 1,
Failure = 2,
}
impl cobalt_client::traits::AsEventCode for FastpairProviderPairingStatusMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionRequestType {
RetroactivePairing = 1,
PersonalizedNameWrite = 2,
ProviderInitiatesPairing = 3,
DeviceAction = 4,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionRequestType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionRequestType as FastpairProviderPeerRequestMetricDimensionRequestType;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionCodec {
Unknown = 0,
Sbc = 1,
Mpeg12 = 2,
Aac = 3,
Atrac = 4,
VendorSpecific = 5,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionCodec {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionCodec as A2dpCodecAvailabilityMigratedMetricDimensionCodec;
pub use BluetoothMetricDimensionCodec as A2dpStreamDurationInSecondsMigratedMetricDimensionCodec;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionMethod {
Consent = 0,
PasskeyDisplay = 1,
PasskeyComparison = 2,
PasskeyEntry = 3,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionMethod {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionMethod as PairingMethodMigratedMetricDimensionMethod;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum PairingResultMigratedMetricDimensionResult {
Success = 0,
ErrorUnknown = 1,
ErrorCanceled = 2,
ErrorInProgress = 3,
ErrorTimedOut = 4,
ErrorNotFound = 5,
ErrorNotSupported = 6,
ErrorBluetoothNotAvailable = 7,
ErrorBadState = 8,
ErrorInvalidArguments = 9,
ErrorAlready = 10,
ErrorProtocolError = 11,
}
impl cobalt_client::traits::AsEventCode for PairingResultMigratedMetricDimensionResult {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionLinkLayerType {
Acl = 0,
Le = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionLinkLayerType {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionLinkLayerType as L2capOpenChannelMigratedMetricDimensionLinkLayerType;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub enum BluetoothMetricDimensionInitiator {
True = 0,
False = 1,
}
impl cobalt_client::traits::AsEventCode for BluetoothMetricDimensionInitiator {
fn as_event_code(&self) -> u32 {
*self as u32
}
}
pub use BluetoothMetricDimensionInitiator as L2capOpenChannelMigratedMetricDimensionInitiator;
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct BtHostAdapterEventEventCodes {
pub mode: BtHostAdapterEventMetricDimensionMode,
pub event: BtHostAdapterEventMetricDimensionEvent,
}
impl cobalt_client::traits::AsEventCodes for BtHostAdapterEventEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.mode.as_event_code(),
self.event.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct BtHostPeerBondingEventEventCodes {
pub mode: BtHostPeerBondingEventMetricDimensionMode,
pub event: BtHostPeerBondingEventMetricDimensionEvent,
}
impl cobalt_client::traits::AsEventCodes for BtHostPeerBondingEventEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.mode.as_event_code(),
self.event.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct BtHostPeerConnectionEventEventCodes {
pub mode: BtHostPeerConnectionEventMetricDimensionMode,
pub event: BtHostPeerConnectionEventMetricDimensionEvent,
pub direction: BtHostPeerConnectionEventMetricDimensionDirection,
}
impl cobalt_client::traits::AsEventCodes for BtHostPeerConnectionEventEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.mode.as_event_code(),
self.event.as_event_code(),
self.direction.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct AvrcpRemotePeerCapabilitiesEventCodes {
pub remote_role: AvrcpRemotePeerCapabilitiesMetricDimensionRemoteRole,
pub feature: AvrcpRemotePeerCapabilitiesMetricDimensionFeature,
}
impl cobalt_client::traits::AsEventCodes for AvrcpRemotePeerCapabilitiesEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.remote_role.as_event_code(),
self.feature.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct AvrcpDistinctRemotePeerCapabilitiesEventCodes {
pub remote_role: AvrcpDistinctRemotePeerCapabilitiesMetricDimensionRemoteRole,
pub feature: AvrcpDistinctRemotePeerCapabilitiesMetricDimensionFeature,
}
impl cobalt_client::traits::AsEventCodes for AvrcpDistinctRemotePeerCapabilitiesEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.remote_role.as_event_code(),
self.feature.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct AvrcpTargetDistinctPeerPlayerCapabilitiesEventCodes {
pub browsing: AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionBrowsing,
pub searching: AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionSearching,
pub now_playing: AvrcpTargetDistinctPeerPlayerCapabilitiesMetricDimensionNowPlaying,
}
impl cobalt_client::traits::AsEventCodes for AvrcpTargetDistinctPeerPlayerCapabilitiesEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.browsing.as_event_code(),
self.searching.as_event_code(),
self.now_playing.as_event_code(),
]
}
}
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord, Debug, Hash)]
pub struct L2capOpenChannelMigratedEventCodes {
pub link_layer_type: L2capOpenChannelMigratedMetricDimensionLinkLayerType,
pub initiator: L2capOpenChannelMigratedMetricDimensionInitiator,
}
impl cobalt_client::traits::AsEventCodes for L2capOpenChannelMigratedEventCodes {
fn as_event_codes(&self) -> Vec<u32> {
use cobalt_client::traits::AsEventCode;
vec![
self.link_layer_type.as_event_code(),
self.initiator.as_event_code(),
]
}
}