Home
last modified time | relevance | path

Searched refs:pluggedIn (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverReceiver.java49 final boolean pluggedIn = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0; in onReceive()
50 mBatterySaverListener.onBatteryChanged(pluggedIn); in onReceive()
75 void onBatteryChanged(boolean pluggedIn); in onBatteryChanged() argument
DBatterySaverController.java135 public void onBatteryChanged(boolean pluggedIn) {} in onBatteryChanged() argument
/packages/apps/DeskClock/src/com/android/deskclock/
DScreensaverActivity.kt144 val pluggedIn = intent != null && intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0 in onResume() constant
145 updateWakeLock(pluggedIn) in onResume()
170 private fun updateWakeLock(pluggedIn: Boolean) { in updateWakeLock()
174 if (pluggedIn) { in updateWakeLock()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() argument
128 mPreference.setEnabled(!pluggedIn); in onBatteryChanged()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() argument
/packages/modules/Connectivity/tests/cts/hostside-network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java783 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument
785 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()
788 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()
790 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()