3
0
Fork 0
Go to file
Adithya R 68d5cc3941 usb: Show charging notification only if power brick is disconnected
On USB HIDL devices (qcom) and barely-implemented AIDL (older Pixels)
the power brick connection status is always POWER_BRICK_STATUS_UNKNOWN,
leading to charging notification showing up even while charging with a
wall charger.

Properly implemented USB AIDL [1] should report
POWER_BRICK_STATUS_DISCONNECTED when charging with anything other than
a wall charger (i.e SDP/PD), hence use this as the check instead.

[1]: 94bc87a6f2/usb/usb/Usb.cpp (785)

Fixes a13e377.

Change-Id: I9e251211e5801b2c1766a12bab7d4787c445dc14
2024-12-06 12:53:54 +00:00
.prebuilt_info
android-sdk-flags Add android.sdk aconfig flags 2024-09-03 09:29:12 +02:00
apct-tests/perftests Merge "Revert "Migrate libcore benchmarks to BenchmarkRule"" into main 2024-09-12 09:07:47 +00:00
apex Merge changes I2b4d2763,Ieeb40d03 into main am: 42ebed4a2f am: 148ddb9fd9 2024-09-20 18:29:43 +00:00
api Merge "[Ranging] Add framework-ranging to api build file" into main 2024-09-19 18:32:51 +00:00
boot Revert "Update boot image and system server profiles [M84C39P60S0PP]" 2024-09-20 13:24:58 +00:00
cmds Merge "Make java_sdk_library dependencies explicit" into main am: 75e0693838 am: 8666b9c45b 2024-09-18 23:20:45 +00:00
config Revert "Update boot image and system server profiles [M84C39P60S0PP]" 2024-09-20 13:24:58 +00:00
core PropImitationHooks: Update fingerprint to komodo and tangorpro AP4A.241205.013 2024-12-06 12:53:54 +00:00
data Merge 24Q3 to AOSP main 2024-09-05 17:15:51 -07:00
docs
drm
errorprone
graphics Merge "Revert "Track Bitmap native allocations"" into main 2024-09-23 15:20:47 +00:00
identity
keystore Introduce PropImitationHooks 2024-12-06 12:53:39 +00:00
libs Youtube application when moving to PIP animation was very bad 2024-12-06 12:53:49 +00:00
location Merge "Rename legacy cache keys" into main 2024-09-19 16:44:33 +00:00
media ImageWriter: Check Surface is valid before use 2024-10-02 01:57:01 +00:00
mime Add new mime type for MHT files. 2024-09-04 08:36:07 +00:00
mms
native Merge "Add buffer release callback in NDK" into main 2024-09-17 18:06:32 +00:00
nfc Merge "nfc(api): Address API council feedback for always on API" into main am: 9ab68f3e03 am: 28f3467775 2024-09-23 21:12:12 +00:00
nfc-extras
obex
omapi
opengl/java
packages Fix BrightnessController init 2024-12-06 12:53:51 +00:00
proto
ravenwood Allow to add a bug number to ravenwood annotations 2024-09-20 20:16:06 +00:00
rs
samples
sax Make java_sdk_library dependencies explicit 2024-09-11 00:02:58 +00:00
services usb: Show charging notification only if power brick is disconnected 2024-12-06 12:53:54 +00:00
startop
telecomm Merge "Batch migration of frameworks/base TEST_MAPPING to test_module_config modules" into main am: cb650f8398 am: 0c9ffcdcf5 2024-09-16 00:37:42 +00:00
telephony Change default hysteresis timer to 180 seconds for satellite roaming 2024-09-27 00:07:42 +00:00
test-base
test-junit
test-legacy
test-mock Revert "Revert "Remove full api surface from-text stubs java_api..." 2024-08-06 00:15:30 +00:00
test-runner Make java_sdk_library dependencies explicit 2024-09-11 00:02:58 +00:00
tests Add ownership info for BroadcastUnitTests. 2024-09-23 20:55:10 +00:00
tools Merge "Add a method to get all compile-time available system features" into main am: 63933094fe am: c99fdff68d 2024-09-23 17:50:26 +00:00
wifi Revert "Run callback registration on the worker provided by the client." 2024-09-25 20:26:36 +00:00
.clang-format
.gitignore
.mailmap
ACTIVITY_MANAGER_OWNERS Update the ownership info for the /am directory 2024-09-20 17:22:51 +00:00
ADPF_OWNERS
AconfigFlags.bp Merge "media_solutions: Add android.media.editing.flags-aconfig flag" into main am: f189469f9f am: 8dddb3ce4f 2024-09-23 10:39:44 +00:00
Android.bp Face VHAL for user build 2024-09-18 14:34:32 +00:00
BAL_OWNERS
BATTERY_STATS_OWNERS Update the ownership info for the /am directory 2024-09-20 17:22:51 +00:00
BROADCASTS_OWNERS Update OWNERS file for broadcasts related code. 2024-09-08 20:57:01 +00:00
CleanSpec.mk
GAME_MANAGER_OWNERS
INPUT_OWNERS Add note to INPUT_OWNERS with triage alias 2024-08-12 15:23:07 +00:00
INTENT_OWNERS
LSE_APP_COMPAT_OWNERS
MEMORY_OWNERS
METADATA
MODULE_LICENSE_APACHE2
MULTIUSER_OWNERS
NOTICE
OOM_ADJUSTER_OWNERS Update the ownership info for the /am directory 2024-09-20 17:22:51 +00:00
OWNERS
OWNERS.md
PACKAGE_MANAGER_OWNERS
PERFORMANCE_OWNERS Update AM related owners 2024-09-23 20:22:42 +00:00
PREUPLOAD.cfg
ProtoLibraries.bp
Ravenwood.bp [HostStubGen] Remove stub functionality from code 2024-09-03 18:05:04 +00:00
SECURITY_STATE_OWNERS
SQLITE_OWNERS
TEST_MAPPING Merge "Batch migration of frameworks/base TEST_MAPPING to test_module_config modules" into main am: cb650f8398 am: 0c9ffcdcf5 2024-09-16 00:37:42 +00:00
THERMAL_OWNERS
TRACE_OWNERS
TestProtoLibraries.bp
WEAR_OWNERS
ZYGOTE_OWNERS
framework-jarjar-rules.txt
lint-baseline.xml
pathmap.mk