usb: update incompatible charger warning reason
Report COMPLIANCE_WARNING_INPUT_POWER_LIMITED instead of COMPLIANCE_WARNING_OTHER to flag incompatible chargers. The underlying logic that generates the warning remains the same, what's changed is the enum that's being used. The purpose of the change is to have a warning type that better represents what actually happens and free up COMPLIANCE_WARNING_OTHER that was intended to act as a fallback reason code. The flag enable_input_power_limited_warning controls whether to switch to the new enum, while the flag enable_usb_data_compliance_warning controls the new enums that are added as FlaggedApi in the framework. Both flags need to be on to enable the change. Bug: 308700954 Test: manual tests with local flag override Change-Id: I6595706d1b83d533fc2d3e29086773270e045ede
This commit is contained in:
parent
d7be6ca6d3
commit
f23c69b257
2 changed files with 27 additions and 4 deletions
|
@ -44,20 +44,28 @@ cc_binary {
|
|||
"android.hardware.thermal@2.0",
|
||||
"android.hardware.thermal-V1-ndk",
|
||||
"android.hardware.usb.gadget@1.0",
|
||||
"android.hardware.usb-V2-ndk",
|
||||
"android.hardware.usb-V3-ndk",
|
||||
"libcutils",
|
||||
"android.frameworks.stats-V2-ndk",
|
||||
"pixelatoms-cpp",
|
||||
"libbinder_ndk",
|
||||
"libprotobuf-cpp-lite",
|
||||
"server_configurable_flags",
|
||||
],
|
||||
static_libs: [
|
||||
"libpixelusb",
|
||||
"libpixelstats",
|
||||
"libthermalutils",
|
||||
"android.hardware.usb.flags-aconfig-c-lib",
|
||||
],
|
||||
export_shared_lib_headers: [
|
||||
"android.frameworks.stats-V2-ndk",
|
||||
"pixelatoms-cpp",
|
||||
],
|
||||
}
|
||||
|
||||
cc_aconfig_library {
|
||||
name: "android.hardware.usb.flags-aconfig-c-lib",
|
||||
vendor: true,
|
||||
aconfig_declarations: "android.hardware.usb.flags-aconfig",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue