Home
last modified time | relevance | path

Searched refs:BatteryTestUtils (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPowerUsageAdvancedTest.java30 import com.android.settings.testutils.BatteryTestUtils;
92 BatteryTestUtils.createEmptyPowerAnomalyEventList(), in getFilterAnomalyEvent_withEmptyOrNullList_getNull()
97 BatteryTestUtils.createEmptyPowerAnomalyEventList(), in getFilterAnomalyEvent_withEmptyOrNullList_getNull()
105 BatteryTestUtils.createNonEmptyPowerAnomalyEventList(); in getFilterAnomalyEvent_withoutDismissed_getHighestScoreEvent()
113 assertThat(cardEvent).isEqualTo(BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent()); in getFilterAnomalyEvent_withoutDismissed_getHighestScoreEvent()
120 BatteryTestUtils.createNonEmptyPowerAnomalyEventList(); in getFilterAnomalyEvent_withBrightnessDismissed_getScreenTimeout()
130 assertThat(cardEvent).isEqualTo(BatteryTestUtils.createScreenTimeoutAnomalyEvent()); in getFilterAnomalyEvent_withBrightnessDismissed_getScreenTimeout()
137 BatteryTestUtils.createNonEmptyPowerAnomalyEventList(); in getFilterAnomalyEvent_withAllDismissed_getNull()
155 final PowerAnomalyEvent event = BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent(); in onDisplayAnomalyEventUpdated_withSettingsAnomalyEvent_skipHighlightSlotEffect()
171 final PowerAnomalyEvent event = BatteryTestUtils.createAppAnomalyEvent(); in onDisplayAnomalyEventUpdated_onlyAppAnomalyEvent_setHighlightSlotEffect()
[all …]
DPeriodicJobReceiverTest.java31 import com.android.settings.testutils.BatteryTestUtils;
64 final BatteryStateDatabase database = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
65 BatteryTestUtils.insertDataToBatteryStateTable( in setUp()
117 BatteryTestUtils.setWorkProfile(mContext); in onReceive_inWorkProfileMode_notRefreshesJob()
125 BatteryTestUtils.insertDataToBatteryStateTable( in insertExpiredData()
127 BatteryTestUtils.insertDataToBatteryStateTable( in insertExpiredData()
DBootBroadcastReceiverTest.java34 import com.android.settings.testutils.BatteryTestUtils;
67 final BatteryStateDatabase database = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
81 BatteryTestUtils.setWorkProfile(mContext); in onReceive_withWorkProfile_notRefreshesJob()
135 BatteryTestUtils.insertDataToBatteryStateTable( in onReceive_withTimeChangedIntentSetEarlierTime_refreshesJob()
149 BatteryTestUtils.insertDataToBatteryStateTable( in onReceive_withTimeChangedIntentSetLaterTime_clearNoDataAndRefreshesJob()
162 BatteryTestUtils.insertDataToBatteryStateTable( in onReceive_withTimeFormatChangedIntent_skipRefreshJob()
181 BatteryTestUtils.insertDataToBatteryStateTable( in onReceive_withTimeZoneChangedIntent_clearAllDataAndRefreshesJob()
DAnomalyEventWrapperTest.java25 import com.android.settings.testutils.BatteryTestUtils;
50 mContext, BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent()); in getDismissRecordKey_returnExpectedResult()
55 mContext, BatteryTestUtils.createScreenTimeoutAnomalyEvent()); in getDismissRecordKey_returnExpectedResult()
59 new AnomalyEventWrapper(mContext, BatteryTestUtils.createAppAnomalyEvent()); in getDismissRecordKey_returnExpectedResult()
DBatteryTipsControllerTest.java30 import com.android.settings.testutils.BatteryTestUtils;
77 PowerAnomalyEvent event = BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent(); in handleBatteryTipsCardUpdated_adaptiveBrightnessAnomaly_showAnomaly()
103 PowerAnomalyEvent event = BatteryTestUtils.createScreenTimeoutAnomalyEvent(); in handleBatteryTipsCardUpdated_screenTimeoutAnomaly_showAnomaly()
126 PowerAnomalyEvent event = BatteryTestUtils.createScreenTimeoutAnomalyEvent(); in handleBatteryTipsCardUpdated_screenTimeoutAnomalyHasTitle_showAnomaly()
157 PowerAnomalyEvent event = BatteryTestUtils.createAppAnomalyEvent(); in handleBatteryTipsCardUpdated_appAnomaly_showAnomaly()
DBatteryTipsCardPreferenceTest.java40 import com.android.settings.testutils.BatteryTestUtils;
109 BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent(/* changeSettings= */ false); in onClick_mainBtnOfSettingsAnomalyLaunchPage_getAdaptiveBrightnessLauncher()
150 BatteryTestUtils.createAdaptiveBrightnessAnomalyEvent(/* changeSettings= */ true); in onClick_mainBtnOfSettingsAnomalyChangeSettings_settingsChanged()
185 BatteryTestUtils.createScreenTimeoutAnomalyEvent(); in onClick_dismissBtnOfSettingsAnomaly_cardDismissAndLogged()
216 final PowerAnomalyEvent appsAnomaly = BatteryTestUtils.createAppAnomalyEvent(); in onClick_mainBtnOfAppsAnomaly_selectHighlightSlot()
248 final PowerAnomalyEvent appsAnomaly = BatteryTestUtils.createAppAnomalyEvent(); in onClick_dismissBtnOfAppsAnomaly_keepHighlightSlotIndex()
DBatteryUsageContentProviderTest.java36 import com.android.settings.testutils.BatteryTestUtils;
70 BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
80 BatteryTestUtils.setWorkProfile(mContext); in onCreate_withWorkProfileMode_returnsFalse()
480 BatteryTestUtils.insertDataToBatteryStateTable( in insertBatteryState()
482 BatteryTestUtils.insertDataToBatteryStateTable( in insertBatteryState()
484 BatteryTestUtils.insertDataToBatteryStateTable(mContext, currentTimestamp, PACKAGE_NAME3); in insertBatteryState()
526 BatteryTestUtils.insertDataToAppUsageEventTable( in insertAppUsageEvent()
528 BatteryTestUtils.insertDataToAppUsageEventTable( in insertAppUsageEvent()
530 BatteryTestUtils.insertDataToAppUsageEventTable( in insertAppUsageEvent()
DBatteryLevelDataTest.java23 import com.android.settings.testutils.BatteryTestUtils;
251 final PowerAnomalyEvent event = BatteryTestUtils.createAppAnomalyEvent(); in getIndexByTimestamps_returnExpectedResult()
DBatteryUsageBroadcastReceiverTest.java33 import com.android.settings.testutils.BatteryTestUtils;
72 BatteryTestUtils.setWorkProfile(mContext); in onReceive_workProfile_doNothing()
DDatabaseUtilsTest.java50 import com.android.settings.testutils.BatteryTestUtils;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DBugReportContentProviderTest.java25 import com.android.settings.testutils.BatteryTestUtils;
57 BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
58 BatteryTestUtils.insertDataToBatteryStateTable( in setUp()
60 BatteryTestUtils.insertDataToBatteryStateTable( in setUp()
62 BatteryTestUtils.insertDataToAppUsageEventTable( in setUp()
64 BatteryTestUtils.insertDataToAppUsageEventTable( in setUp()
80 BatteryTestUtils.setWorkProfile(mContext); in dump_inWorkProfileMode_notDumpsBatteryUsageData()
DLogUtilsTest.java32 import com.android.settings.testutils.BatteryTestUtils;
62 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateDaoTest.java26 import com.android.settings.testutils.BatteryTestUtils;
55 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
57 BatteryTestUtils.insertDataToBatteryStateTable(mContext, TIMESTAMP3, PACKAGE_NAME3); in setUp()
58 BatteryTestUtils.insertDataToBatteryStateTable(mContext, TIMESTAMP2, PACKAGE_NAME2); in setUp()
59 BatteryTestUtils.insertDataToBatteryStateTable( in setUp()
DAppUsageEventDaoTest.java26 import com.android.settings.testutils.BatteryTestUtils;
57 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
59 BatteryTestUtils.insertDataToAppUsageEventTable( in setUp()
61 BatteryTestUtils.insertDataToAppUsageEventTable( in setUp()
63 BatteryTestUtils.insertDataToAppUsageEventTable( in setUp()
DBatteryReattributeDaoTest.java24 import com.android.settings.testutils.BatteryTestUtils;
45 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
DBatteryUsageSlotDaoTest.java26 import com.android.settings.testutils.BatteryTestUtils;
53 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
DBatteryEventDaoTest.java30 import com.android.settings.testutils.BatteryTestUtils;
53 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoLoaderTest.java33 import com.android.settings.testutils.BatteryTestUtils;
67 final Intent dischargingBatteryBroadcast = BatteryTestUtils.getDischargingIntent(); in setUp()
DTopLevelBatteryPreferenceControllerTest.java37 import com.android.settings.testutils.BatteryTestUtils;
130 BatteryTestUtils.setupIncompatibleEvent(mUsbPort, mUsbManager, mUsbPortStatus); in getDashboardLabel_incompatibleCharger_returnsCorrectLabel()
DBatteryHeaderPreferenceControllerTest.java43 import com.android.settings.testutils.BatteryTestUtils;
463 BatteryTestUtils.setupIncompatibleEvent(mUsbPort, mUsbManager, mUsbPortStatus); in updatePreference_incompatibleCharger_showNotChargingState()
DBatteryInfoTest.java47 import com.android.settings.testutils.BatteryTestUtils;
118 mDisChargingBatteryBroadcast = BatteryTestUtils.getDischargingIntent(); in setUp()
120 mChargingBatteryBroadcast = BatteryTestUtils.getChargingIntent(); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DBatteryTestUtils.java22 public class BatteryTestUtils { class
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DBatteryTestUtils.java57 public class BatteryTestUtils { class