Home
last modified time | relevance | path

Searched refs:ACTION_BATTERY_CHANGED (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java150 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/
DBatteryTrigger.java41 case Intent.ACTION_BATTERY_CHANGED:
60 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in BatteryTrigger()
/frameworks/base/services/core/java/com/android/server/
DCachedDeviceStateService.java44 case Intent.ACTION_BATTERY_CHANGED:
73 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in onBootPhase()
DUiModeManagerService.java303 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/
DCachedDeviceStateServiceTest.java130 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/
Dflags.aconfig7 description: "Use ACTION_BATTERY_CHANGED broadcast to track charging state"
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java62 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/
DBatteryControllerStartable.java60 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in registerReceiver()
DBatteryControllerImpl.java143 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/
DBatteryInputSuspendTest.java104 }, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in ChargerStateMonitor()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatteryUtils.java46 /*receiver=*/ null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in getBatteryIntent()
/frameworks/base/packages/SettingsLib/tests/unit/src/com/android/settingslib/fuelgague/
DBatteryStatusTest.kt269 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/
DPowerMetricsCollector.java88 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/
DBatterySaverController.java187 case Intent.ACTION_BATTERY_CHANGED:
230 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in systemReady()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DUpdateInstaller.java91 /* receiver= */ null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in isBatteryLevelSufficient()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java292 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/
DControllerMetricsStats.java296 IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in onSatelliteEnabled()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/
DAppStateTrackerImpl.java454 case Intent.ACTION_BATTERY_CHANGED:
519 filter.addAction(Intent.ACTION_BATTERY_CHANGED); in onSystemServicesReady()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java273 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/
DVibrationSettingsTest.java1022 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/
DAppStateTrackerTest.java1654 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/
DBrightnessTracker.java238 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/
DVibrationSettings.java311 new IntentFilter(Intent.ACTION_BATTERY_CHANGED), in onSystemReady()
/frameworks/base/services/tests/powerservicetests/src/com/android/server/power/
DPowerManagerServiceTest.java400 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/
DBstatsCpuTimesValidationTest.java898 new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); in isDevicePluggedIn()

12