Searched refs:mBatterySaverReceiver (Results 1 – 3 of 3) sorted by relevance
37 private BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverReceiverTest43 mBatterySaverReceiver = new BatterySaverReceiver(mContext); in setUp()44 mBatterySaverReceiver.setBatterySaverListener(mBatterySaverListener); in setUp()52 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_devicePluggedIn_pluggedInTrue()62 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()71 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_powerSaveModeChanged_invokeCallback()
45 private final BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverButtonPreferenceController54 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()55 mBatterySaverReceiver.setBatterySaverListener(this); in BatterySaverButtonPreferenceController()81 mBatterySaverReceiver.setListening(true); in onStart()86 mBatterySaverReceiver.setListening(false); in onStop()
36 private final BroadcastReceiver mBatterySaverReceiver = new BroadcastReceiver() { field in DarkModeObserver85 mBatterySaverReceiver, batteryFilter); in subscribe()94 mContext.unregisterReceiver(mBatterySaverReceiver); in unsubscribe()