Searched refs:pluggedIn (Results 1 – 6 of 6) sorted by relevance
49 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
135 public void onBatteryChanged(boolean pluggedIn) {} in onBatteryChanged() argument
144 val pluggedIn = intent != null && intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, 0) != 0 in onResume() constant145 updateWakeLock(pluggedIn) in onResume()170 private fun updateWakeLock(pluggedIn: Boolean) { in updateWakeLock()174 if (pluggedIn) { in updateWakeLock()
126 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() argument128 mPreference.setEnabled(!pluggedIn); in onBatteryChanged()
107 public void onBatteryChanged(boolean pluggedIn) { in onBatteryChanged() argument
783 private void assertBatteryState(boolean pluggedIn) throws Exception { in assertBatteryState() argument785 while (isDevicePluggedIn() != pluggedIn && SystemClock.elapsedRealtime() <= endTime) { in assertBatteryState()788 if (isDevicePluggedIn() != pluggedIn) { in assertBatteryState()790 + " expected pluggedIn: " + pluggedIn); in assertBatteryState()