Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryBackupHelperTest.java87 private static final String PACKAGE_NAME2 = "com.android.testing.2"; field in BatteryBackupHelperTest
125 mockUid(1002 /*fake uid*/, PACKAGE_NAME2); in setUp()
180 createTestingData(PACKAGE_NAME1, UID1, PACKAGE_NAME2, PACKAGE_NAME3); in backupOptimizationMode_backupOptimizationMode()
185 final String expectedResult = PACKAGE_NAME1 + ":2," + PACKAGE_NAME2 + ":1,"; in backupOptimizationMode_backupOptimizationMode()
194 createTestingData(PACKAGE_NAME1, UID1, PACKAGE_NAME2, PACKAGE_NAME3); in backupOptimizationMode_backupOptimizationModeAndIgnoreSystemApp()
202 final String expectedResult = PACKAGE_NAME2 + ":1,"; in backupOptimizationMode_backupOptimizationModeAndIgnoreSystemApp()
211 createTestingData(PACKAGE_NAME1, UID1, PACKAGE_NAME2, PACKAGE_NAME3); in backupOptimizationMode_backupOptimizationModeAndIgnoreDefaultApp()
219 final String expectedResult = PACKAGE_NAME2 + ":1,"; in backupOptimizationMode_backupOptimizationModeAndIgnoreDefaultApp()
308 final String package2Mode = PACKAGE_NAME2 in restoreOptimizationMode_invalidModeFormat_skipRestore()
328 final String package2Mode = PACKAGE_NAME2 in restoreOptimizationMode_restoreExpectedModes()
/packages/modules/AdServices/adservices/tests/unittest/service-core/appsearch/src/com/android/adservices/service/appsearch/
DAppSearchConsentManagerTest.java75 private static final String PACKAGE_NAME2 = "foo.bar.two"; field in AppSearchConsentManagerTest
98 app2.packageName = PACKAGE_NAME2; in setup()
127 .thenReturn(List.of(PACKAGE_NAME1, PACKAGE_NAME2)); in testKnownAppsWithConsent()
134 assertThat(package1.equals(PACKAGE_NAME2) || package2.equals(PACKAGE_NAME2)).isTrue(); in testKnownAppsWithConsent()
141 .thenReturn(List.of(PACKAGE_NAME1, PACKAGE_NAME2)); in testAppsWithRevokedConsent()
148 assertThat(package1.equals(PACKAGE_NAME2) || package2.equals(PACKAGE_NAME2)).isTrue(); in testAppsWithRevokedConsent()
230 .thenReturn(List.of(PACKAGE_NAME2)); in testIsFledgeConsentRevokedForAppAfterSettingFledgeUse_revoked()
233 PACKAGE_NAME2); in testIsFledgeConsentRevokedForAppAfterSettingFledgeUse_revoked()
477 List appsWithConsent = List.of(PACKAGE_NAME1, PACKAGE_NAME2); in testMigrateConsentData()
502 verify(mAppConsentDao).setConsentForApp(eq(PACKAGE_NAME2), eq(false)); in testMigrateConsentData()
[all …]
DAppSearchConsentStorageManagerTest.java86 private static final String PACKAGE_NAME2 = "foo.bar.two"; field in AppSearchConsentStorageManagerTest
101 app2.packageName = PACKAGE_NAME2; in setup()
130 .thenReturn(List.of(PACKAGE_NAME1, PACKAGE_NAME2)); in testKnownAppsWithConsent()
132 expect.that(result).containsExactly(PACKAGE_NAME1, PACKAGE_NAME2); in testKnownAppsWithConsent()
139 .thenReturn(List.of(PACKAGE_NAME1, PACKAGE_NAME2)); in testAppsWithRevokedConsent()
143 expect.that(result).containsExactly(PACKAGE_NAME1, PACKAGE_NAME2); in testAppsWithRevokedConsent()
226 .thenReturn(List.of(PACKAGE_NAME2)); in testIsFledgeConsentRevokedForAppAfterSettingFledgeUse_revoked()
228 mAppSearchConsentStorageManager.setConsentForAppIfNew(PACKAGE_NAME2, false); in testIsFledgeConsentRevokedForAppAfterSettingFledgeUse_revoked()
470 List appsWithConsent = List.of(PACKAGE_NAME1, PACKAGE_NAME2); in testMigrateConsentData()
495 verify(mAppConsentDao).setConsentForApp(eq(PACKAGE_NAME2), eq(false)); in testMigrateConsentData()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryStateDaoTest.java45 private static final String PACKAGE_NAME2 = "com.android.apps.calendar"; field in BatteryStateDaoTest
58 BatteryTestUtils.insertDataToBatteryStateTable(mContext, TIMESTAMP2, PACKAGE_NAME2); in setUp()
79 assertBatteryState(states.get(1), TIMESTAMP2, PACKAGE_NAME2); in insertAll_normalFlow_expectedBehavior()
110 assertThat(cursor1.getString(3 /*packageName*/)).isEqualTo(PACKAGE_NAME2); in getBatteryStatesAfter_normalFlow_expectedBehavior()
DAppUsageEventDaoTest.java47 private static final String PACKAGE_NAME2 = "com.android.apps.calendar"; field in AppUsageEventDaoTest
62 mContext, USER_ID2, TIMESTAMP2, PACKAGE_NAME2); in setUp()
79 assertAppUsageEvent(entities.get(1), TIMESTAMP2, PACKAGE_NAME2); in appUsageEventDao_insertAll()
97 assertThat(cursor1.getString(5 /*packageName*/)).isEqualTo(PACKAGE_NAME2); in appUsageEventDao_getAllForUsersAfter()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DBugReportContentProviderTest.java40 private static final String PACKAGE_NAME2 = "com.android.settings2"; field in BugReportContentProviderTest
61 mContext, System.currentTimeMillis(), PACKAGE_NAME2); in setUp()
93 assertThat(dumpContent).contains(PACKAGE_NAME2); in dump_dumpsBatteryUsageHistory()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProviderTest.java57 private static final String PACKAGE_NAME2 = "com.android.settings2"; field in BatteryUsageContentProviderTest
169 assertThat(actualPackageName2).isEqualTo(PACKAGE_NAME2); in query_batteryState_returnsExpectedResult()
191 assertThat(actualPackageName1).isEqualTo(PACKAGE_NAME2); in query_batteryStateTimestamp_returnsExpectedResult()
234 assertThat(cursor1.getString(5 /*packageName*/)).isEqualTo(PACKAGE_NAME2); in query_appUsageEvent_returnsExpectedResult()
483 mContext, currentTimestamp - 2, PACKAGE_NAME2); in insertBatteryState()
529 mContext, USER_ID2, TIMESTAMP2, PACKAGE_NAME2); in insertAppUsageEvent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsRelatedToolsControllerTest.java55 private static final String PACKAGE_NAME2 = "com.android.test2"; field in BluetoothDetailsRelatedToolsControllerTest
117 List.of(new ComponentName(PACKAGE_NAME2, CLASS_NAME))); in displayPreference_oneRelatedToolsNotMatchA11yService_showNoPreference()