Searched refs:mBatteryBroadcastReceiver (Results 1 – 4 of 4) sorted by relevance
58 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in BatteryBroadcastReceiverTest67 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in setUp()68 mBatteryBroadcastReceiver.mBatteryLevel = BATTERY_INIT_LEVEL; in setUp()69 mBatteryBroadcastReceiver.mBatteryStatus = BATTERY_INIT_STATUS; in setUp()70 mBatteryBroadcastReceiver.mBatteryHealth = BatteryManager.BATTERY_HEALTH_UNKNOWN; in setUp()71 mBatteryBroadcastReceiver.mChargingStatus = BatteryManager.CHARGING_POLICY_DEFAULT; in setUp()72 mBatteryBroadcastReceiver.setBatteryChangedListener(mBatteryListener); in setUp()83 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in onReceive_batteryLevelChanged_dataUpdated()85 assertThat(mBatteryBroadcastReceiver.mBatteryLevel) in onReceive_batteryLevelChanged_dataUpdated()87 assertThat(mBatteryBroadcastReceiver.mBatteryStatus) in onReceive_batteryLevelChanged_dataUpdated()[all …]
49 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageBase79 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(getContext()); in onCreate()80 mBatteryBroadcastReceiver.setBatteryChangedListener( in onCreate()92 mBatteryBroadcastReceiver.register(); in onStart()98 mBatteryBroadcastReceiver.unRegister(); in onStop()
45 private final BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in TopLevelBatteryPreferenceController53 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in TopLevelBatteryPreferenceController()54 mBatteryBroadcastReceiver.setBatteryChangedListener( in TopLevelBatteryPreferenceController()91 mBatteryBroadcastReceiver.register(); in onStart()96 mBatteryBroadcastReceiver.unRegister(); in onStop()
90 @Mock private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageSummaryTest115 mFragment, "mBatteryBroadcastReceiver", mBatteryBroadcastReceiver); in setUp()