Searched refs:mBatterySaverReceiver (Results 1 – 4 of 4) sorted by relevance
39 private BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverReceiverTest45 mBatterySaverReceiver = new BatterySaverReceiver(mContext); in setUp()46 mBatterySaverReceiver.setBatterySaverListener(mBatterySaverListener); in setUp()54 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_devicePluggedIn_pluggedInTrue()64 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_deviceNotPluggedIn_pluggedInFalse()73 mBatterySaverReceiver.onReceive(mContext, intent); in testOnReceive_powerSaveModeChanged_invokeCallback()
40 private final BatterySaverReceiver mBatterySaverReceiver; field in BatterySaverButtonPreferenceController48 mBatterySaverReceiver = new BatterySaverReceiver(context); in BatterySaverButtonPreferenceController()49 mBatterySaverReceiver.setBatterySaverListener(this); in BatterySaverButtonPreferenceController()64 mBatterySaverReceiver.setListening(true); in onStart()69 mBatterySaverReceiver.setListening(false); in onStop()
35 private final BroadcastReceiver mBatterySaverReceiver = new BroadcastReceiver() { field in DarkModeObserver76 mBatterySaverReceiver, batteryFilter); in subscribe()85 mContext.unregisterReceiver(mBatterySaverReceiver); in unsubscribe()