Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DBatterySaverConditionController.java27 import com.android.settings.fuelgauge.BatterySaverReceiver;
35 BatterySaverReceiver.BatterySaverListener {
40 private final BatterySaverReceiver mReceiver;
47 mReceiver = new BatterySaverReceiver(appContext); in BatterySaverConditionController()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java33 import com.android.settings.fuelgauge.BatterySaverReceiver;
42 implements LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
45 private final BatterySaverReceiver mBatterySaverReceiver;
54 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySaverReceiverTest.java35 @Mock private BatterySaverReceiver.BatterySaverListener mBatterySaverListener;
37 private BatterySaverReceiver mBatterySaverReceiver;
43 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/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverController.java40 implements LifecycleObserver, OnStart, OnStop, BatterySaverReceiver.BatterySaverListener {
42 private final BatterySaverReceiver mBatteryStateChangeReceiver;
57 mBatteryStateChangeReceiver = new BatterySaverReceiver(context); in BatterySaverController()
DBatterySaverReceiver.java27 public class BatterySaverReceiver extends BroadcastReceiver { class
34 public BatterySaverReceiver(Context context) { in BatterySaverReceiver() method in BatterySaverReceiver