Home
last modified time | relevance | path

Searched refs:BatterySaverReceiver (Results 1 – 10 of 10) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java26 import com.android.car.developeroptions.fuelgauge.BatterySaverReceiver;
38 LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
40 private final BatterySaverReceiver mBatterySaverReceiver;
48 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java26 import com.android.settings.fuelgauge.BatterySaverReceiver;
38 LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
40 private final BatterySaverReceiver mBatterySaverReceiver;
48 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/
DBatterySaverConditionController.java25 import com.android.car.developeroptions.fuelgauge.BatterySaverReceiver;
33 BatterySaverReceiver.BatterySaverListener {
38 private final BatterySaverReceiver mReceiver;
45 mReceiver = new BatterySaverReceiver(appContext); in BatterySaverConditionController()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java25 import com.android.settings.fuelgauge.BatterySaverReceiver;
33 BatterySaverReceiver.BatterySaverListener {
38 private final BatterySaverReceiver mReceiver;
45 mReceiver = new BatterySaverReceiver(appContext); in BatterySaverConditionController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverReceiverTest.java36 private BatterySaverReceiver.BatterySaverListener mBatterySaverListener;
39 private BatterySaverReceiver mBatterySaverReceiver;
45 mBatterySaverReceiver = new BatterySaverReceiver(mContext); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionControllerTest.java29 import com.android.settings.fuelgauge.BatterySaverReceiver;
62 verify(mContext).registerReceiver(any(BatterySaverReceiver.class), any(IntentFilter.class)); in startMonitor_shouldRegisterReceiver()
70 verify(mContext).unregisterReceiver(any(BatterySaverReceiver.class)); in stopMonitor_shouldUnregisterReceiver()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatterySaverController.java39 implements LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
41 private final BatterySaverReceiver mBatteryStateChangeReceiver;
49 mBatteryStateChangeReceiver = new BatterySaverReceiver(context); in BatterySaverController()
DBatterySaverReceiver.java27 public class BatterySaverReceiver extends BroadcastReceiver { class
34 public BatterySaverReceiver(Context context) { in BatterySaverReceiver() method in BatterySaverReceiver
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java39 implements LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
41 private final BatterySaverReceiver mBatteryStateChangeReceiver;
49 mBatteryStateChangeReceiver = new BatterySaverReceiver(context); in BatterySaverController()
DBatterySaverReceiver.java27 public class BatterySaverReceiver extends BroadcastReceiver { class
34 public BatterySaverReceiver(Context context) { in BatterySaverReceiver() method in BatterySaverReceiver