Searched refs:mBatteryBroadcastReceiver (Results 1 – 4 of 4) sorted by relevance
57 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in BatteryBroadcastReceiverTest66 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in setUp()67 mBatteryBroadcastReceiver.mBatteryLevel = BATTERY_INIT_LEVEL; in setUp()68 mBatteryBroadcastReceiver.mBatteryStatus = BATTERY_INIT_STATUS; in setUp()69 mBatteryBroadcastReceiver.mBatteryHealth = BatteryManager.BATTERY_HEALTH_UNKNOWN; in setUp()70 mBatteryBroadcastReceiver.setBatteryChangedListener(mBatteryListener); in setUp()84 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryLevelChanged_dataUpdated()86 assertThat(mBatteryBroadcastReceiver.mBatteryLevel) in testOnReceive_batteryLevelChanged_dataUpdated()88 assertThat(mBatteryBroadcastReceiver.mBatteryStatus) in testOnReceive_batteryLevelChanged_dataUpdated()100 mBatteryBroadcastReceiver.onReceive(mContext, mChargingIntent); in testOnReceive_batteryHealthChanged_dataUpdated()[all …]
84 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageSummaryTest117 mBatteryBroadcastReceiver); in setUp()
50 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageBase66 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(getContext()); in onCreate()67 mBatteryBroadcastReceiver.setBatteryChangedListener(type -> { in onCreate()78 mBatteryBroadcastReceiver.register(); in onStart()84 mBatteryBroadcastReceiver.unRegister(); in onStop()
41 private final BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in TopLevelBatteryPreferenceController53 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in TopLevelBatteryPreferenceController()54 mBatteryBroadcastReceiver.setBatteryChangedListener(type -> { in TopLevelBatteryPreferenceController()115 mBatteryBroadcastReceiver.register(); in onStart()120 mBatteryBroadcastReceiver.unRegister(); in onStop()