Home
last modified time | relevance | path

Searched refs:mBatteryBroadcastReceiver (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiverTest.java57 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in BatteryBroadcastReceiverTest
66 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 …]
DPowerUsageSummaryTest.java84 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageSummaryTest
117 mBatteryBroadcastReceiver); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DPowerUsageBase.java50 private BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in PowerUsageBase
66 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(getContext()); in onCreate()
67 mBatteryBroadcastReceiver.setBatteryChangedListener(type -> { in onCreate()
78 mBatteryBroadcastReceiver.register(); in onStart()
84 mBatteryBroadcastReceiver.unRegister(); in onStop()
DTopLevelBatteryPreferenceController.java41 private final BatteryBroadcastReceiver mBatteryBroadcastReceiver; field in TopLevelBatteryPreferenceController
53 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in TopLevelBatteryPreferenceController()
54 mBatteryBroadcastReceiver.setBatteryChangedListener(type -> { in TopLevelBatteryPreferenceController()
115 mBatteryBroadcastReceiver.register(); in onStart()
120 mBatteryBroadcastReceiver.unRegister(); in onStop()