/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 150 Intent i = new Intent(Intent.ACTION_BATTERY_CHANGED); in testBatteryPresentState_notPresent() 165 Intent i = new Intent(Intent.ACTION_BATTERY_CHANGED); in testBatteryPresentState_callbackAddedAfterStateChange() 219 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_withChargingSourceDock_isChargingSourceDockTrue() 230 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_withChargingSourceNotDock_isChargingSourceDockFalse() 241 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_chargingStatusNotLongLife_outputsFalse() 252 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_chargingStatusLongLife_outputsTrue() 263 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in batteryStateChanged_noChargingStatusGiven_outputsFalse()
|
/frameworks/base/services/core/java/com/android/server/powerstats/ |
D | BatteryTrigger.java | 41 case Intent.ACTION_BATTERY_CHANGED: 60 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in BatteryTrigger()
|
/frameworks/base/services/core/java/com/android/server/ |
D | CachedDeviceStateService.java | 44 case Intent.ACTION_BATTERY_CHANGED: 73 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in onBootPhase()
|
D | UiModeManagerService.java | 303 case Intent.ACTION_BATTERY_CHANGED: 473 IntentFilter batteryFilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in onBootPhase()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 130 Intent intentPluggedIn = new Intent(Intent.ACTION_BATTERY_CHANGED); in correctlyReportsCharging() 135 Intent intentUnplugged = new Intent(Intent.ACTION_BATTERY_CHANGED); in correctlyReportsCharging() 165 Intent intentPluggedIn = new Intent(Intent.ACTION_BATTERY_CHANGED); in correctlyTracksTimeOnBattery()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | flags.aconfig | 7 description: "Use ACTION_BATTERY_CHANGED broadcast to track charging state"
|
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
D | BatteryWaster.java | 62 mFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in onCreate() 172 if (Intent.ACTION_BATTERY_CHANGED.equals(action)) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerStartable.java | 60 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in registerReceiver()
|
D | BatteryControllerImpl.java | 143 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in registerReceiver() 160 new IntentFilter(Intent.ACTION_BATTERY_CHANGED) in init() 243 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { in onReceive() 297 Intent mTestIntent = new Intent(Intent.ACTION_BATTERY_CHANGED); in onReceive()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryInputSuspendTest.java | 104 }, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in ChargerStateMonitor()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatteryUtils.java | 46 /*receiver=*/ null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in getBatteryIntent()
|
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/ |
D | BatteryStatusTest.kt | 269 Intent(Intent.ACTION_BATTERY_CHANGED).apply { in parameters() 349 Intent(Intent.ACTION_BATTERY_CHANGED).apply { in createIntent()
|
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/ |
D | PowerMetricsCollector.java | 88 new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in apply() 124 new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 187 case Intent.ACTION_BATTERY_CHANGED: 230 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in systemReady()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | UpdateInstaller.java | 91 /* receiver= */ null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in isBatteryLevelSufficient()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 292 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in init() 299 new IntentFilter(Intent.ACTION_BATTERY_CHANGED) in init() 316 } else if (Intent.ACTION_BATTERY_CHANGED.equals(action)) { in onReceive()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/ |
D | ControllerMetricsStats.java | 296 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in onSatelliteEnabled()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/ |
D | AppStateTrackerImpl.java | 454 case Intent.ACTION_BATTERY_CHANGED: 519 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in onSystemServicesReady()
|
/frameworks/base/media/java/android/mtp/ |
D | MtpDatabase.java | 273 if (action.equals(Intent.ACTION_BATTERY_CHANGED)) { 329 new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in setServer()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 1022 argThat(filter -> filter.matchAction(Intent.ACTION_BATTERY_CHANGED)), anyInt()); in setBatteryReceiverRegistrationResult() 1026 Intent batteryIntent = new Intent(Intent.ACTION_BATTERY_CHANGED); in getBatteryChangedIntent()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | AppStateTrackerTest.java | 1654 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testSmallBatteryAndPluggedIn() 1660 mReceiver.onReceive(mMockContext, new Intent(Intent.ACTION_BATTERY_CHANGED)); in testSmallBatteryAndPluggedIn() 1678 Intent intent = new Intent(Intent.ACTION_BATTERY_CHANGED); in testNotSmallBatteryAndPluggedIn() 1684 mReceiver.onReceive(mMockContext, new Intent(Intent.ACTION_BATTERY_CHANGED)); in testNotSmallBatteryAndPluggedIn()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | BrightnessTracker.java | 238 intentFilter.addAction(Intent.ACTION_BATTERY_CHANGED); in backgroundStart() 975 } else if (Intent.ACTION_BATTERY_CHANGED.equals(action)) { in onReceive()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 311 new IntentFilter(Intent.ACTION_BATTERY_CHANGED), in onSystemReady()
|
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/ |
D | PowerManagerServiceTest.java | 400 IntentFilter batFilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in startSystem() 441 mBatteryReceiver.onReceive(mContextSpy, new Intent(Intent.ACTION_BATTERY_CHANGED)); in setPluggedIn() 447 mBatteryReceiver.onReceive(mContextSpy, new Intent(Intent.ACTION_BATTERY_CHANGED)); in setBatteryLevel() 453 mBatteryReceiver.onReceive(mContextSpy, new Intent(Intent.ACTION_BATTERY_CHANGED)); in setBatteryHealth()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BstatsCpuTimesValidationTest.java | 898 new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in isDevicePluggedIn()
|