/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
D | UtilsTest.java | 62 private static final String TEST_PACKAGE_NAME_1 = "com.test.packagea"; field in UtilsTest 65 private static final String TEST_DEVICE_ADMIN_NAME = TEST_PACKAGE_NAME_1 + ".DeviceAdmin"; 67 private static final String TEST_DEVICE_ADMIN_NAME_2 = TEST_PACKAGE_NAME_1 + ".DeviceAdmin2"; 69 new ComponentName(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME); 71 new ComponentName(TEST_PACKAGE_NAME_1, TEST_DEVICE_ADMIN_NAME_2); 107 TEST_PACKAGE_NAME_1, /* system */ false, /* hiddenUntilInstalled */ false), in testGetCurrentSystemApps() 148 when(mockPackageManager.getPackageInfo(TEST_PACKAGE_NAME_1, 0)) in testPackageRequiresUpdate_notPresent() 151 assertTrue(mUtils.packageRequiresUpdate(TEST_PACKAGE_NAME_1, 0, mockContext)); in testPackageRequiresUpdate_notPresent() 157 pi.packageName = TEST_PACKAGE_NAME_1; in testPackageRequiresUpdate() 159 when(mockPackageManager.getPackageInfo(TEST_PACKAGE_NAME_1, 0)).thenReturn(pi); in testPackageRequiresUpdate() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramIdentifierTest.java | 51 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildValidIdentifier_success() 61 assertThat(originalIdentifier.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildValidIdentifier_success() 71 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetForeignKey_success() 80 assertThat(originalIdentifier.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildUnsetForeignKey_success() 92 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetBuyer_throws() 103 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceOwner_success() 112 assertThat(originalIdentifier.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildUnsetCustomAudienceOwner_success() 122 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceName_success() 131 assertThat(originalIdentifier.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildUnsetCustomAudienceName_success() 162 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testSetNullForeignKey_success() [all …]
|
D | FrequencyCapDaoTest.java | 115 CommonFixture.TEST_PACKAGE_NAME_1)) in testGetMissingHistogramIdentifierForeignKeyIfExistsReturnsNull() 521 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testInsertSameHistogramEventDifferentSourceAppAddsNewIdentifier() 2172 CommonFixture.TEST_PACKAGE_NAME_1)) in testDeleteHistogramEventDataBySourceAppFromEmptyTables() 2180 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testDeleteHistogramEventDataBySourceApp() 2188 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testDeleteHistogramEventDataBySourceApp() 2206 CommonFixture.TEST_PACKAGE_NAME_1)) in testDeleteHistogramEventDataBySourceApp() 2217 CommonFixture.TEST_PACKAGE_NAME_1)) in testDeleteHistogramEventDataBySourceApp() 2223 CommonFixture.TEST_PACKAGE_NAME_1)) in testDeleteHistogramEventDataBySourceApp() 2237 CommonFixture.TEST_PACKAGE_NAME_1)) in testDeleteHistogramDataBySourceAppFromEmptyTables() 2245 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testDeleteHistogramDataBySourceAppDeletesUnpairedIdentifiers() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/ |
D | CleanupUtilsTest.java | 74 Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1)); in testEmpty() 82 installedPackage1.packageName = CommonFixture.TEST_PACKAGE_NAME_1; in testCleanupNotUninstalled() 90 CommonFixture.TEST_PACKAGE_NAME_1, in testCleanupNotUninstalled() 97 Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1)); in testCleanupNotUninstalled() 111 CommonFixture.TEST_PACKAGE_NAME_1, in testCleanupNotAllowed() 113 List<String> expected = Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1); in testCleanupNotAllowed() 124 installedPackage1.packageName = CommonFixture.TEST_PACKAGE_NAME_1; in testCleanupMultipleAllowLists() 132 CommonFixture.TEST_PACKAGE_NAME_1, in testCleanupMultipleAllowLists() 140 CommonFixture.TEST_PACKAGE_NAME_1, CommonFixture.TEST_PACKAGE_NAME_2)); in testCleanupMultipleAllowLists() 148 installedPackage1.packageName = CommonFixture.TEST_PACKAGE_NAME_1; in testCleanupMultipleAllowListsWildCard() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | HistogramEventTest.java | 50 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildValidHistogramEvent_success() 59 assertThat(event.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildValidHistogramEvent_success() 73 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetAdCounterKey_throws() 88 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetBuyer_throws() 103 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceOwnerWithWinType_throws() 116 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 125 assertThat(event.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildUnsetCustomAudienceOwnerWithNonWinType_success() 139 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceNameWithWinType_throws() 152 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildUnsetCustomAudienceNameWithNonWinType_success() 161 assertThat(event.getSourceApp()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME_1); in testBuildUnsetCustomAudienceNameWithNonWinType_success() [all …]
|
D | AppInstallAdFiltererImplTest.java | 64 CommonFixture.TEST_PACKAGE_NAME_1 + ".filter"; 143 .setPackageNames(Collections.singleton(CommonFixture.TEST_PACKAGE_NAME_1)) in testFilterContextualAdsDoesNotFilterForAppNotInstalled() 159 CommonFixture.VALID_BUYER_1, CommonFixture.TEST_PACKAGE_NAME_1); in testFilterContextualAdsDoesNotFilterForAppNotInstalled() 167 .setPackageNames(Collections.singleton(CommonFixture.TEST_PACKAGE_NAME_1)) in testFilterContextualAdsFiltersForAppInstalled() 184 CommonFixture.VALID_BUYER_1, CommonFixture.TEST_PACKAGE_NAME_1); in testFilterContextualAdsFiltersForAppInstalled() 189 when(mAppInstallDaoMock.canBuyerFilterPackage(any(), eq(CommonFixture.TEST_PACKAGE_NAME_1))) in testFilterContextualAdsFiltersForMixedApps() 198 CommonFixture.TEST_PACKAGE_NAME_1, in testFilterContextualAdsFiltersForMixedApps() 221 when(mAppInstallDaoMock.canBuyerFilterPackage(any(), eq(CommonFixture.TEST_PACKAGE_NAME_1))) in testFilterContextualAdsFiltersForMixedAds() 228 new HashSet<>(Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1))) in testFilterContextualAdsFiltersForMixedAds() 257 eq(CommonFixture.VALID_BUYER_1), eq(CommonFixture.TEST_PACKAGE_NAME_1)); in testFilterContextualAdsFiltersForMixedAds()
|
D | FrequencyCapAdFiltererNoOpImplTest.java | 101 .setPackageNames(Collections.singleton(CommonFixture.TEST_PACKAGE_NAME_1)) in testAppInstallFilter() 122 CommonFixture.TEST_PACKAGE_NAME_1, in testMultipleApps() 142 new HashSet<>(Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1))) in testMultipleAds()
|
D | AppInstallAdFiltererNoOpImplTest.java | 101 .setPackageNames(Collections.singleton(CommonFixture.TEST_PACKAGE_NAME_1)) in testAppInstallFilter() 122 CommonFixture.TEST_PACKAGE_NAME_1, in testMultipleApps() 142 new HashSet<>(Arrays.asList(CommonFixture.TEST_PACKAGE_NAME_1))) in testMultipleAds()
|
D | AppInstallAdvertisersSetterTest.java | 128 CommonFixture.TEST_PACKAGE_NAME_1, in testSetAppInstallAdvertisersSuccess() 139 eq(CommonFixture.TEST_PACKAGE_NAME_1), eq(DB_WRITE_FOR_SAMPLE_INPUT)); in testSetAppInstallAdvertisersSuccess() 322 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME_1); in getSampleSetAppInstallAdvertisersInputBuilder()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScanRequestProxyTest.java | 73 private static final String TEST_PACKAGE_NAME_1 = "com.test.1"; field in ScanRequestProxyTest 224 assertFalse(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanFailWithoutScanner() 225 validateScanResultsFailureBroadcastSent(TEST_PACKAGE_NAME_1); in testStartScanFailWithoutScanner() 234 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccess() 249 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSettings() 267 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanSuccessFromAppWithNetworkSetupWizard() 284 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanWithHiddenNetworkScanningDisabled() 306 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testStartScanWithHiddenNetworkScanningEnabled() 391 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testScanSuccessOverwritesPreviousResults() 428 assertTrue(mScanRequestProxy.startScan(TEST_UID, TEST_PACKAGE_NAME_1)); in testScanFailureDoesNotOverwritePreviousResults() [all …]
|
D | NetworkSuggestionStoreDataTest.java | 61 private static final String TEST_PACKAGE_NAME_1 = "com.android.test.1"; field in NetworkSuggestionStoreDataTest 296 PerAppInfo appInfo = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 311 networkSuggestionsMap.put(TEST_PACKAGE_NAME_1, appInfo); in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 316 deserializedPerAppInfoMap.get(TEST_PACKAGE_NAME_1).extNetworkSuggestions.values() in serializeDeserializeSingleNetworkSuggestionFromSingleApp() 337 PerAppInfo appInfo1 = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps() 345 networkSuggestionsMap.put(TEST_PACKAGE_NAME_1, appInfo1); in serializeDeserializeSingleNetworkSuggestionFromMultipleApps() 367 PerAppInfo appInfo1 = new PerAppInfo(TEST_UID_1, TEST_PACKAGE_NAME_1, TEST_FEATURE_ID); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps() 381 networkSuggestionsMap.put(TEST_PACKAGE_NAME_1, appInfo1); in serializeDeserializeMultipleNetworkSuggestionFromMultipleApps() 421 TEST_PRE_R_STORE_FORMAT_XML_STRING, TEST_PACKAGE_NAME_1, TEST_UID_1); in deserializeFromPreRAndPostRFormat() 426 TEST_POST_R_STORE_FORMAT_XML_STRING, TEST_PACKAGE_NAME_1, TEST_UID_1); in deserializeFromPreRAndPostRFormat() [all …]
|
D | WifiNetworkFactoryTest.java | 143 private static final String TEST_PACKAGE_NAME_1 = "com.test.networkrequest.1"; field in WifiNetworkFactoryTest 260 when(mPackageManager.getNameForUid(TEST_UID_1)).thenReturn(TEST_PACKAGE_NAME_1); in setUp() 265 mockPackageImportance(TEST_PACKAGE_NAME_1, true, false); in setUp() 441 mockPackageImportance(TEST_PACKAGE_NAME_1, false, false); in testHandleAcceptNetworkRequestFromWithInvalidWifiNetworkSpecifier() 456 mockPackageImportance(TEST_PACKAGE_NAME_1, false, false); in testRejectNetworkRequestWithWifiNetworkSpecifierTofuEnabled() 473 mockPackageImportance(TEST_PACKAGE_NAME_1, true, true); in testHandleAcceptNetworkRequestFromWithInternetCapability() 490 mockPackageImportance(TEST_PACKAGE_NAME_1, false, false); in testHandleAcceptNetworkRequestFromNonFgAppOrSvcWithSpecifier() 501 mockPackageImportance(TEST_PACKAGE_NAME_1, true, true); in testNetworkRequestFromGuestUserWithSpecifier() 516 mockPackageImportance(TEST_PACKAGE_NAME_1, true, true); in testHandleAcceptNetworkRequestFromFgAppWithSpecifier() 529 mockPackageImportance(TEST_PACKAGE_NAME_1, false, false); in testHandleAcceptNetworkRequestFromNetworkSettingAppWithSpecifier() [all …]
|
D | NetworkRequestStoreDataTest.java | 53 private static final String TEST_PACKAGE_NAME_1 = "com.android.test.1"; field in NetworkRequestStoreDataTest 121 approvedAccessPointsMap.put(TEST_PACKAGE_NAME_1, accessPoints); in serializeDeserializeSingleNetworkRequestFromSingleApp() 138 approvedAccessPointsMap.put(TEST_PACKAGE_NAME_1, accessPoints1); in serializeDeserializeSingleNetworkRequestFromMultipleApps() 167 approvedAccessPointsMap.put(TEST_PACKAGE_NAME_1, accessPoints1); in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/signals/ |
D | DBProtectedSignalTest.java | 45 CommonFixture.TEST_PACKAGE_NAME_1); in testCreateSignal() 51 assertEquals(CommonFixture.TEST_PACKAGE_NAME_1, signal.getPackageName()); in testCreateSignal() 63 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testBuildSignal() 70 assertEquals(CommonFixture.TEST_PACKAGE_NAME_1, signal.getPackageName()); in testBuildSignal() 82 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testEqual() 91 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testEqual() 105 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testNotEqual() 114 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testNotEqual() 128 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testHashCode() 137 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testHashCode()
|
D | DBProtectedSignalFixture.java | 35 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1); in getBuilder()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/ |
D | UpdateInteractAcrossProfilesAppOpTaskTest.java | 59 private static final String TEST_PACKAGE_NAME_1 = "com.test.packagea"; field in UpdateInteractAcrossProfilesAppOpTaskTest 93 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in run_firstRun_appOpIsNotReset() 104 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in run_packageIsRemovedButStillConfigurable_appOpIsNotReset() 109 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1); in run_packageIsRemovedButStillConfigurable_appOpIsNotReset() 118 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in run_packageIsNoLongerConfigurable_appOpIsReset() 123 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1); in run_packageIsNoLongerConfigurable_appOpIsReset() 132 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in run_packageIsNotRemoved_appOpIsNotReset()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/ |
D | UpdatesDownloaderTest.java | 78 ImmutableMap.of(PACKAGE_NAME_HEADER, CommonFixture.TEST_PACKAGE_NAME_1); in testGetValidJsonSuccess() 90 .getUpdateJson(URI, CommonFixture.TEST_PACKAGE_NAME_1, DEV_CONTEXT) in testGetValidJsonSuccess() 102 ImmutableMap.of(PACKAGE_NAME_HEADER, CommonFixture.TEST_PACKAGE_NAME_1); in testInvalidJsonThrowsExecutionException() 115 .getUpdateJson(URI, CommonFixture.TEST_PACKAGE_NAME_1, DEV_CONTEXT) in testInvalidJsonThrowsExecutionException() 122 ImmutableMap.of(PACKAGE_NAME_HEADER, CommonFixture.TEST_PACKAGE_NAME_1); in testPayloadSizeTooLargeThrowsIae() 138 URI, CommonFixture.TEST_PACKAGE_NAME_1, DEV_CONTEXT) in testPayloadSizeTooLargeThrowsIae()
|
D | UpdateSignalsOrchestratorTest.java | 19 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME_1; 84 when(mUpdatesDownloader.getUpdateJson(URI, TEST_PACKAGE_NAME_1, DEV_CONTEXT)) in testOrchestrateUpdate() 91 TEST_PACKAGE_NAME_1, in testOrchestrateUpdate() 96 verify(mUpdatesDownloader).getUpdateJson(eq(URI), eq(TEST_PACKAGE_NAME_1), eq(DEV_CONTEXT)); in testOrchestrateUpdate()
|
D | ProtectedSignalTest.java | 41 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in testCreateProtectedSignal() 45 assertEquals(CommonFixture.TEST_PACKAGE_NAME_1, signal.getPackageName()); in testCreateProtectedSignal()
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/ |
D | SystemAppsSnapshotTest.java | 50 private static final String TEST_PACKAGE_NAME_1 = "com.test.packagea"; field in SystemAppsSnapshotTest 83 setCurrentSystemApps(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in testHasSnapshot() 98 setCurrentSystemApps(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in testGetSnapshot() 108 TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in testGetSnapshot() local
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/adselection/ |
D | HistogramEventFixture.java | 46 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME_1) 51 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME_1) 103 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME_1); in getValidHistogramEventBuilder()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/interactacrossprofiles/ |
D | CrossProfileAppsSnapshotTest.java | 48 private static final String TEST_PACKAGE_NAME_1 = "com.test.packagea"; field in CrossProfileAppsSnapshotTest 91 setDefaultCrossProfilePackages(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in getSnapshot_snapshotTaken_returnsPreviousCrossProfilePackages() 95 .containsExactly(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2); in getSnapshot_snapshotTaken_returnsPreviousCrossProfilePackages()
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/ |
D | KeyChainServiceRoboTest.java | 107 private static final String TEST_PACKAGE_NAME_1 = "com.android.test"; field in KeyChainServiceRoboTest 113 .addAppAndUriMapping(TEST_PACKAGE_NAME_1, TEST_URI_1, TEST_ALIAS_1) 283 assertThat(mKeyChain.getPredefinedAliasForPackageAndUri(TEST_PACKAGE_NAME_1, in testGetPredefinedAliasForPackageAndUri_noManagementApp_returnsNull() 320 assertThat(mKeyChain.getPredefinedAliasForPackageAndUri(TEST_PACKAGE_NAME_1, TEST_URI_1)) in testGetPredefinedAliasForPackageAndUri_hasManagementApp_returnsCorrectAlias()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/ |
D | CommonFixture.java | 45 public static final String TEST_PACKAGE_NAME_1 = "android.adservices.tests1"; field in CommonFixture 48 new HashSet<>(Arrays.asList(TEST_PACKAGE_NAME_1, TEST_PACKAGE_NAME_2));
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/evict/ |
D | SignalSizeCalculatorTest.java | 64 .setPackageName(CommonFixture.TEST_PACKAGE_NAME_1) in createProtectedSignal()
|