Home
last modified time | relevance | path

Searched refs:BatteryBroadcastReceiver (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageBaseTest.java37 import com.android.settings.fuelgauge.BatteryBroadcastReceiver;
76 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader()
84 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader()
96 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_loaderReset_initLoader()
104 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_loaderReset_initLoader()
116 bundle.putInt(KEY_REFRESH_TYPE, BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_nullLoader_initLoader()
123 BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_STATUS); in restartBatteryInfoLoader_nullLoader_initLoader()
DPowerUsageSummaryTest.java47 import com.android.settings.fuelgauge.BatteryBroadcastReceiver;
90 @Mock private BatteryBroadcastReceiver mBatteryBroadcastReceiver;
195 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_contextNull_doNothing()
204 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_batteryNotPresent_doNothing()
217 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_deviceRotate_doNotUpdateBatteryTip()
230 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_LEVEL); in refreshUi_batteryLevelChanged_doNotUpdateBatteryTip()
244 mFragment.refreshUi(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL); in refreshUi_tipNeedUpdate_updateBatteryTip()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageBase.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
34 import com.android.settings.fuelgauge.BatteryBroadcastReceiver;
49 private BatteryBroadcastReceiver mBatteryBroadcastReceiver;
79 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(getContext()); in onCreate()
82 if (type == BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_NOT_PRESENT) { in onCreate()
DPowerUsageAdvanced.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
38 import com.android.settings.fuelgauge.BatteryBroadcastReceiver;
82 restartBatteryStatsLoader(BatteryBroadcastReceiver.BatteryUpdateType.MANUAL);
DPowerUsageSummary.java19 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBroadcastReceiverTest.java18 import static com.android.settings.fuelgauge.BatteryBroadcastReceiver.BatteryUpdateType;
57 @Mock private BatteryBroadcastReceiver.OnBatteryChangedListener mBatteryListener;
58 private BatteryBroadcastReceiver mBatteryBroadcastReceiver;
67 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DTopLevelBatteryPreferenceController.java45 private final BatteryBroadcastReceiver mBatteryBroadcastReceiver;
53 mBatteryBroadcastReceiver = new BatteryBroadcastReceiver(mContext); in TopLevelBatteryPreferenceController()
57 if (type == BatteryBroadcastReceiver.BatteryUpdateType.BATTERY_NOT_PRESENT) { in TopLevelBatteryPreferenceController()
DBatteryBroadcastReceiver.java40 public class BatteryBroadcastReceiver extends BroadcastReceiver { class
83 public BatteryBroadcastReceiver(Context context) { in BatteryBroadcastReceiver() method in BatteryBroadcastReceiver