Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1af5aa4d authored by Roy Luo's avatar Roy Luo
Browse files

Usb compliance warning extension

Add new warnings to enum ComplianceWarning

Test: atest VtsAidlUsbTargetTest
Bug: 296119135
Bug: 300340959
Change-Id: I5dcfe50285589d35dd2a2ab87020de8e2b92c181
parent 3c464673
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@
    </hal>
    <hal format="aidl" optional="true">
        <name>android.hardware.usb</name>
        <version>1-2</version>
        <version>1-3</version>
        <interface>
            <name>IUsb</name>
            <instance>default</instance>
+1 −1
Original line number Diff line number Diff line
@@ -45,6 +45,6 @@ aidl_interface {
        },

    ],
    frozen: true,
    frozen: false,

}
+5 −0
Original line number Diff line number Diff line
@@ -38,4 +38,9 @@ enum ComplianceWarning {
  DEBUG_ACCESSORY = 2,
  BC_1_2 = 3,
  MISSING_RP = 4,
  INPUT_POWER_LIMITED = 5,
  MISSING_DATA_LINES = 6,
  ENUMERATION_FAIL = 7,
  FLAKY_CONNECTION = 8,
  UNRELIABLE_IO = 9,
}
+25 −0
Original line number Diff line number Diff line
@@ -56,4 +56,29 @@ enum ComplianceWarning {
     * Type-C Cable and Connector Specification.
     */
    MISSING_RP = 4,
    /**
     * Used to indicate the charging setups on the USB ports are unable to
     * deliver negotiated power.
     */
    INPUT_POWER_LIMITED = 5,
    /**
     * Used to indicate the cable/connector on the USB ports are missing
     * the required wires on the data pins to make data transfer.
     */
    MISSING_DATA_LINES = 6,
    /**
     * Used to indicate enumeration failures on the USB ports, potentially due to
     * signal integrity issues or other causes.
     */
    ENUMERATION_FAIL = 7,
    /**
     * Used to indicate unexpected data disconnection on the USB ports,
     * potentially due to signal integrity issues or other causes.
     */
    FLAKY_CONNECTION = 8,
    /**
     * Used to indicate unreliable or slow data transfer on the USB ports,
     * potentially due to signal integrity issues or other causes.
     */
    UNRELIABLE_IO = 9,
}
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ cc_binary {
        "Usb.cpp",
    ],
    shared_libs: [
        "android.hardware.usb-V2-ndk",
        "android.hardware.usb-V3-ndk",
        "libbase",
        "libbinder_ndk",
        "libcutils",
Loading