/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | PowerUsageAdvancedTest.java | 30 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 …]
|
D | PeriodicJobReceiverTest.java | 31 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()
|
D | BootBroadcastReceiverTest.java | 34 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()
|
D | AnomalyEventWrapperTest.java | 25 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()
|
D | BatteryTipsControllerTest.java | 30 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()
|
D | BatteryTipsCardPreferenceTest.java | 40 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()
|
D | BatteryUsageContentProviderTest.java | 36 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()
|
D | BatteryLevelDataTest.java | 23 import com.android.settings.testutils.BatteryTestUtils; 251 final PowerAnomalyEvent event = BatteryTestUtils.createAppAnomalyEvent(); in getIndexByTimestamps_returnExpectedResult()
|
D | BatteryUsageBroadcastReceiverTest.java | 33 import com.android.settings.testutils.BatteryTestUtils; 72 BatteryTestUtils.setWorkProfile(mContext); in onReceive_workProfile_doNothing()
|
D | DatabaseUtilsTest.java | 50 import com.android.settings.testutils.BatteryTestUtils;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/ |
D | BugReportContentProviderTest.java | 25 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()
|
D | LogUtilsTest.java | 32 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/ |
D | BatteryStateDaoTest.java | 26 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()
|
D | AppUsageEventDaoTest.java | 26 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()
|
D | BatteryReattributeDaoTest.java | 24 import com.android.settings.testutils.BatteryTestUtils; 45 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
|
D | BatteryUsageSlotDaoTest.java | 26 import com.android.settings.testutils.BatteryTestUtils; 53 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
|
D | BatteryEventDaoTest.java | 30 import com.android.settings.testutils.BatteryTestUtils; 53 mDatabase = BatteryTestUtils.setUpBatteryStateDatabase(mContext); in setUp()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryInfoLoaderTest.java | 33 import com.android.settings.testutils.BatteryTestUtils; 67 final Intent dischargingBatteryBroadcast = BatteryTestUtils.getDischargingIntent(); in setUp()
|
D | TopLevelBatteryPreferenceControllerTest.java | 37 import com.android.settings.testutils.BatteryTestUtils; 130 BatteryTestUtils.setupIncompatibleEvent(mUsbPort, mUsbManager, mUsbPortStatus); in getDashboardLabel_incompatibleCharger_returnsCorrectLabel()
|
D | BatteryHeaderPreferenceControllerTest.java | 43 import com.android.settings.testutils.BatteryTestUtils; 463 BatteryTestUtils.setupIncompatibleEvent(mUsbPort, mUsbManager, mUsbPortStatus); in updatePreference_incompatibleCharger_showNotChargingState()
|
D | BatteryInfoTest.java | 47 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/ |
D | BatteryTestUtils.java | 22 public class BatteryTestUtils { class
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/ |
D | BatteryTestUtils.java | 57 public class BatteryTestUtils { class
|