diff --git a/uwb/aidl/Android.bp b/uwb/aidl/Android.bp index 52f060575c..7dc2b7f141 100755 --- a/uwb/aidl/Android.bp +++ b/uwb/aidl/Android.bp @@ -47,6 +47,7 @@ aidl_interface { aidl_interface { name: "android.hardware.uwb.fira_android", + owner: "google", vendor_available: true, srcs: ["android/hardware/uwb/fira_android/*.aidl"], stability: "vintf", diff --git a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl index cbe20688ad..39bb5d9662 100644 --- a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl +++ b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl @@ -44,4 +44,8 @@ enum UwbVendorCapabilityTlvTypes { CCC_SUPPORTED_PULSE_SHAPE_COMBOS = 166, CCC_SUPPORTED_RAN_MULTIPLIER = 167, SUPPORTED_AOA_RESULT_REQ_ANTENNA_INTERLEAVING = 227, + SUPPORTED_MIN_RANGING_INTERVAL_MS = 228, + SUPPORTED_RANGE_DATA_NTF_CONFIG = 229, + SUPPORTED_RSSI_REPORTING = 230, + SUPPORTED_DIAGNOSTICS = 231, } diff --git a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl index cd2e122029..fbcfbff667 100644 --- a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl +++ b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl @@ -36,4 +36,5 @@ package android.hardware.uwb.fira_android; enum UwbVendorGidAndroidOids { ANDROID_GET_POWER_STATS = 0, ANDROID_SET_COUNTRY_CODE = 1, + ANDROID_RANGE_DIAGNOSTICS = 2, } diff --git a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl index d35728fbef..8413f06d0f 100644 --- a/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl +++ b/uwb/aidl/aidl_api/android.hardware.uwb.fira_android/current/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl @@ -43,4 +43,6 @@ enum UwbVendorSessionAppConfigTlvTypes { NB_OF_RANGE_MEASUREMENTS = 227, NB_OF_AZIMUTH_MEASUREMENTS = 228, NB_OF_ELEVATION_MEASUREMENTS = 229, + ENABLE_DIAGNOSTICS = 232, + DIAGRAMS_FRAME_REPORTS_FIELDS = 233, } diff --git a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl index 0140fdd5ed..86479fb314 100644 --- a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl +++ b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorCapabilityTlvTypes.aidl @@ -150,4 +150,33 @@ enum UwbVendorCapabilityTlvTypes { * 0 - Feature not supported. */ SUPPORTED_AOA_RESULT_REQ_ANTENNA_INTERLEAVING = 0xE3, + + /** + * 4 byte value to indicate supported min ranging interval in ms. + */ + SUPPORTED_MIN_RANGING_INTERVAL_MS = 0xE4, + + /** + * 4 byte bitmask to indicate the supported RANGE_DATA_NTF_CONFIG values + * + * Bitmask where each bit corresponds to values used in + * RANGE_DATA_NTF_CONFIG in SET_APP_CFG_CMD + */ + SUPPORTED_RANGE_DATA_NTF_CONFIG = 0xE5, + + /** + * 1 byte bitmask to indicate the supported RSSI_REPORTING values + * Values: + * 1 - Feature supported. + * 0 - Feature not supported. + */ + SUPPORTED_RSSI_REPORTING = 0xE6, + + /** + * 1 byte value to indicate support for diagnostics feature. + * Values: + * 1 - Feature supported. + * 0 - Feature not supported. + */ + SUPPORTED_DIAGNOSTICS = 0xE7, } diff --git a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl index e389a2dd23..4768f550b8 100644 --- a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl +++ b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorGidAndroidOids.aidl @@ -30,5 +30,11 @@ enum UwbVendorGidAndroidOids { ANDROID_GET_POWER_STATS = 0x0, // Used to set the current regulatory country code (determined usinag // SIM or hardcoded by OEM). + // Country code is sent as a 2 byte value corresponding to ISO-3166 country code. + // Note: "00" is used to indicate that the country code is unknown. ANDROID_SET_COUNTRY_CODE = 0x1, + // Used by the notification to get UWB ranging diagnostics stats. + // Supported only if the UwbVendorCapabilityTlvTypes.SUPPORTED_DIAGNOSTICS set + // to 1. + ANDROID_RANGE_DIAGNOSTICS = 0x2, } diff --git a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl index f43b249c8f..f303ed92d7 100644 --- a/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl +++ b/uwb/aidl/android/hardware/uwb/fira_android/UwbVendorSessionAppConfigTlvTypes.aidl @@ -66,4 +66,23 @@ enum UwbVendorSessionAppConfigTlvTypes { NB_OF_AZIMUTH_MEASUREMENTS = 0xE4, /** 1 byte data */ NB_OF_ELEVATION_MEASUREMENTS = 0xE5, + + /** + * Supported only if the UwbVendorCapabilityTlvTypes + * .SUPPORTED_DIAGNOSTICS set to 1. + */ + /** + * 1 byte data + * 1 - Enable, + * 0 - Disable + */ + ENABLE_DIAGNOSTICS = 0xE8, + /** + * 1 byte bitmask + * b0: Activate RSSIs field, + * b1: Activate AoAs field, + * b2: Activate CIRs field, + * b3 - b7: RFU + */ + DIAGRAMS_FRAME_REPORTS_FIELDS = 0xE9, }