/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | VoicemailCleanupTest.java | 33 private static final String TEST_PACKAGE_2 = "package2"; field in VoicemailCleanupTest 47 insertDataForPackage(TEST_PACKAGE_2); in testCleanupVoicemail() 49 mPackageManager.addPackage(123456, TEST_PACKAGE_2); in testCleanupVoicemail() 52 checkDataExistsForPackage(TEST_PACKAGE_2); in testCleanupVoicemail() 57 checkDataExistsForPackage(TEST_PACKAGE_2); in testCleanupVoicemail() 63 checkDataExistsForPackage(TEST_PACKAGE_2); in testCleanupVoicemail() 70 checkDataDoesNotExistForPackage(TEST_PACKAGE_2); in testCleanupVoicemail() 107 insertDataForPackage(TEST_PACKAGE_2); in testRemoveStalePackagesAtStartUp() 114 checkDataExistsForPackage(TEST_PACKAGE_2); in testRemoveStalePackagesAtStartUp() 124 checkDataExistsForPackage(TEST_PACKAGE_2); in testRemoveStalePackagesAtStartUp() [all …]
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
H A D | WorkSourceHelperTest.java | 52 private static final String TEST_PACKAGE_2 = "com.android.test.2"; field in WorkSourceHelperTest 67 mWorkSource.add(new WorkSource(TEST_UID_2, TEST_PACKAGE_2)); in setUp() 97 when(mActivityManager.getPackageImportance(TEST_PACKAGE_2)) in testHasAnyForegroundAppRequest() 112 when(mActivityManager.getPackageImportance(TEST_PACKAGE_2)) in testHasAnyForegroundServiceRequest() 119 when(mActivityManager.getPackageImportance(TEST_PACKAGE_2)) in testHasAnyForegroundServiceRequest() 130 when(mActivityManager.getPackageImportance(TEST_PACKAGE_2)) in testHasAnyInternalRequest()
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
H A D | SuspendPackagesBroadcastTest.kt | 47 const val TEST_PACKAGE_2 = "com.android.test.package2" 69 pms = spy(createPackageManagerService(TEST_PACKAGE_1, TEST_PACKAGE_2)) 71 packageSetting2 = pms.getPackageSetting(TEST_PACKAGE_2)!! 72 packagesToSuspend = arrayOf(TEST_PACKAGE_1, TEST_PACKAGE_2) 89 assertThat(changedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2) 110 assertThat(changedPackages?.get(0)).isAnyOf(TEST_PACKAGE_1, TEST_PACKAGE_2) 131 assertThat(changedPackages?.get(0)).isAnyOf(TEST_PACKAGE_1, TEST_PACKAGE_2) 147 assertThat(modifiedPackages).asList().containsExactly(TEST_PACKAGE_1, TEST_PACKAGE_2)
|
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/applications/ |
H A D | AppStateAlarmsAndRemindersBridgeTest.java | 38 private static final String TEST_PACKAGE_2 = "com.example.test.2"; field in AppStateAlarmsAndRemindersBridgeTest 101 doReturn(true).when(mAlarmManager).hasScheduleExactAlarm(TEST_PACKAGE_2, in createPermissionState() 110 bridge.createPermissionState(TEST_PACKAGE_2, UID_2); in createPermissionState()
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
H A D | ProtoStoreTest.java | 62 private static final String TEST_PACKAGE_2 = "com.example.test2"; field in ProtoStoreTest 197 mProtoStore.deleteProto(TEST_PACKAGE_2); in deleteProto_noListingExists_doesNothing() 220 mProtoStore.saveProto(TEST_PACKAGE_2, listing2); in deleteAllProtos_deletesAllProtos() 225 assertThat(mProtoStore.loadProto(TEST_PACKAGE_2).isPresent()).isFalse(); in deleteAllProtos_deletesAllProtos()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiNetworkSuggestionsManagerTest.java | 352 TEST_PACKAGE_2, TEST_FEATURE)); in testAddNetworkSuggestionsSuccess() 408 TEST_PACKAGE_2, TEST_FEATURE)); in testRemoveNetworkSuggestionsSuccess() 416 TEST_UID_2, TEST_PACKAGE_2)); in testRemoveNetworkSuggestionsSuccess() 644 TEST_PACKAGE_2, TEST_FEATURE)); in testRemoveAllNetworkSuggestionsSuccess() 653 TEST_PACKAGE_2)); in testRemoveAllNetworkSuggestionsSuccess() 1127 TEST_PACKAGE_2, TEST_FEATURE)); in testGetNetworkSuggestionsForScanDetailSuccessWithMultipleMatch() 1201 TEST_PACKAGE_2, TEST_FEATURE)); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidMultipleMatch() 1283 TEST_PACKAGE_2, TEST_FEATURE)); in testGetNetworkSuggestionsForScanDetailSuccessWithBssidAndWithoutBssidMultipleMatch() 2145 put(TEST_PACKAGE_2, appInfo2); in testNetworkSuggestionsConfigStoreLoadAfterUserSwitch() 2524 TEST_PACKAGE_2)); in testRemoveApp() [all …]
|
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
H A D | TertiaryKeyManagerTest.java | 52 private static final String TEST_PACKAGE_2 = "com.example.app2"; field in TertiaryKeyManagerTest 134 TertiaryKeyManager secondManager = createNewManager(TEST_PACKAGE_2); in getKey_twoApps_returnsDifferentKeys()
|