/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | DrivingSafetyRegionTest.java | 46 private static final String TEST_PACKAGE_NAME = "android.car.apitest"; field in DrivingSafetyRegionTest 85 assertThat(mCarPackageManager.isActivityDistractionOptimized(TEST_PACKAGE_NAME, in doTestAllRegions() 89 TEST_PACKAGE_NAME, activityClassName, ActivityManager.getCurrentUser()); in doTestAllRegions() 96 assertThat(mCarPackageManager.isActivityDistractionOptimized(TEST_PACKAGE_NAME, in doTestAllRegions() 99 mCarPackageManager.controlTemporaryActivityBlockingBypassingAsUser(TEST_PACKAGE_NAME, in doTestAllRegions() 102 assertThat(mCarPackageManager.isActivityDistractionOptimized(TEST_PACKAGE_NAME, in doTestAllRegions() 105 mCarPackageManager.controlTemporaryActivityBlockingBypassingAsUser(TEST_PACKAGE_NAME, in doTestAllRegions() 108 assertThat(mCarPackageManager.isActivityDistractionOptimized(TEST_PACKAGE_NAME, in doTestAllRegions() 117 TEST_PACKAGE_NAME, activityClassName, ActivityManager.getCurrentUser()); in testOneRegionOnly() 123 assertThat(mCarPackageManager.isActivityDistractionOptimized(TEST_PACKAGE_NAME, in testOneRegionOnly() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | DevicePermissionsTest.kt | 105 runShellCommandOrThrow("pm uninstall $TEST_PACKAGE_NAME") in cleanup() 168 TEST_PACKAGE_NAME, in testOneTimePermissionIsRevoked() 175 TEST_PACKAGE_NAME, in testOneTimePermissionIsRevoked() 209 TEST_PACKAGE_NAME, in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId() 217 TEST_PACKAGE_NAME, in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId() 226 TEST_PACKAGE_NAME, in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId() 233 TEST_PACKAGE_NAME, in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId() 242 TEST_PACKAGE_NAME, in testGrantAndRevokeDeviceAwarePermissionByPersistentDeviceId() 261 TEST_PACKAGE_NAME, in testUpdateAndGetPermissionFlagsByPersistentDeviceId() 269 TEST_PACKAGE_NAME, in testUpdateAndGetPermissionFlagsByPersistentDeviceId() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/ |
D | BluetoothMapAccountItemTest.java | 32 private static final String TEST_PACKAGE_NAME = "test.package.name"; field in BluetoothMapAccountItemTest 46 TEST_PACKAGE_NAME, in create_withAllParameters() 55 assertThat(accountItem.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in create_withAllParameters() 69 TEST_PACKAGE_NAME, in create_withoutIdAndUciData() 76 assertThat(accountItem.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in create_withoutIdAndUciData() 90 TEST_PACKAGE_NAME, in getUciFull() 101 TEST_PACKAGE_NAME, in getUciFull() 112 TEST_PACKAGE_NAME, in getUciFull() 130 TEST_PACKAGE_NAME, in compareIfTwoObjectsAreEqual_returnFalse_whenTypesAreDifferent() 141 TEST_PACKAGE_NAME, in compareIfTwoObjectsAreEqual_returnFalse_whenTypesAreDifferent() [all …]
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/ |
D | SearchSessionStatsTest.java | 28 static final String TEST_PACKAGE_NAME = "package.test"; field in SearchSessionStatsTest 34 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder() 58 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder() 76 new SearchSessionStats.Builder(TEST_PACKAGE_NAME) in testBuilder() 81 assertThat(searchSessionStats.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilder() 90 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_addSearchIntentsStats_byCollection() 114 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_addSearchIntentsStats_byCollection() 134 new SearchSessionStats.Builder(TEST_PACKAGE_NAME) in testBuilder_addSearchIntentsStats_byCollection() 146 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_builderReuse() 170 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_builderReuse() [all …]
|
D | SearchIntentStatsTest.java | 28 static final String TEST_PACKAGE_NAME = "package.test"; field in SearchIntentStatsTest 58 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder() 68 assertThat(searchIntentStats.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilder() 105 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilderCopy_allFieldsAreCopied() 117 assertThat(searchIntentStats1.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilderCopy_allFieldsAreCopied() 148 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilderCopy_copiedFieldsCanBeUpdated() 179 assertThat(searchIntentStats0.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilderCopy_copiedFieldsCanBeUpdated() 190 assertThat(searchIntentStats1.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testBuilderCopy_copiedFieldsCanBeUpdated() 223 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_addClicksStats_byCollection() 257 new SearchIntentStats.Builder(TEST_PACKAGE_NAME) in testBuilder_builderReuse() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 116 private static final String TEST_PACKAGE_NAME = "com.google.somePackage"; field in WifiPermissionsUtilTest 220 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentUserAndAllPermissions() 243 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testCanReadPeersMacAddressCurrentProfileAndAllPermissions() 261 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResult_AppNotAllowed() 290 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testenforceCanAccessScanResults_UserOrProfileNotCurrent() 312 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoInteractAcrossUsersFullPermission() 338 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testLegacyForegroundAppWithOtherPermissionsDenied() 366 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, null); in testLegacyAppHasLocationAndAllPermissions() 388 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_NoCoarseLocationPermission() 418 codeUnderTest.enforceCanAccessScanResults(TEST_PACKAGE_NAME, TEST_FEATURE_ID, mUid, in testCannotAccessScanResults_LocationModeDisabled() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/managedomainurls/ |
D | ClearDefaultsPreferenceControllerTest.java | 56 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in ClearDefaultsPreferenceControllerTest 103 TEST_PACKAGE_NAME)).thenReturn(true); in onCreate_hasPreferredActivities_hasSummary() 113 TEST_PACKAGE_NAME)).thenReturn(false); in onCreate_isDefaultBrowser_hasSummary() 115 .thenReturn(TEST_PACKAGE_NAME); in onCreate_isDefaultBrowser_hasSummary() 125 TEST_PACKAGE_NAME)).thenReturn(false); in onCreate_hasUsbDefaults_hasSummary() 128 when(mMockIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(true); in onCreate_hasUsbDefaults_hasSummary() 138 TEST_PACKAGE_NAME)).thenReturn(false); in onCreate_autoLaunchDisabled_hasNoSummary() 141 when(mMockIUsbManager.hasDefaults(TEST_PACKAGE_NAME, mUserId)).thenReturn(false); in onCreate_autoLaunchDisabled_hasNoSummary() 151 TEST_PACKAGE_NAME)).thenReturn(true); in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() 158 verify(mMockPackageManager).clearPackagePreferredActivities(TEST_PACKAGE_NAME); in performClick_hasUsbManager_hasPreferredActivities_clearsPreferredActivities() [all …]
|
D | AppLinkStatePreferenceControllerTest.java | 60 private static final String TEST_PACKAGE_NAME = "com.example.test"; field in AppLinkStatePreferenceControllerTest 93 info.packageName = TEST_PACKAGE_NAME; in onCreate_isBrowserApp_isDisabled() 110 info.packageName = TEST_PACKAGE_NAME; in onCreate_isNotBrowserApp_noDomainUrls_isDisabled() 128 info.packageName = TEST_PACKAGE_NAME; in onCreate_isNotBrowserApp_hasDomainUrls_isEnabled() 146 info.packageName = TEST_PACKAGE_NAME; in onCreate_isNotBrowserApp_hasDomainUrls_defaultState_entrySetToAsk() 154 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE_NAME, mUserId)) in onCreate_isNotBrowserApp_hasDomainUrls_defaultState_entrySetToAsk() 167 info.packageName = TEST_PACKAGE_NAME; in onCreate_isNotBrowserApp_hasDomainUrls_askState_entrySetToAsk() 175 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE_NAME, mUserId)) in onCreate_isNotBrowserApp_hasDomainUrls_askState_entrySetToAsk() 188 info.packageName = TEST_PACKAGE_NAME; in onCreate_isNotBrowserApp_hasDomainUrls_alwaysState_entrySetToAlways() 196 when(mMockPackageManager.getIntentVerificationStatusAsUser(TEST_PACKAGE_NAME, mUserId)) in onCreate_isNotBrowserApp_hasDomainUrls_alwaysState_entrySetToAlways() [all …]
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreferenceTest.java | 34 private static final String TEST_PACKAGE_NAME = "com.package.mcpackageface"; field in AppDeletionPreferenceTest 53 .setPackageName(TEST_PACKAGE_NAME) in testPreferenceSummary() 60 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testPreferenceSummary() 72 .setPackageName(TEST_PACKAGE_NAME) in testTwoDayPreferenceSummary() 79 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTwoDayPreferenceSummary() 91 .setPackageName(TEST_PACKAGE_NAME) in testYesterdayPreferenceSummary() 98 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testYesterdayPreferenceSummary() 110 .setPackageName(TEST_PACKAGE_NAME) in testTodayPreferenceSummary() 117 assertThat(preference.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testTodayPreferenceSummary() 129 .setPackageName(TEST_PACKAGE_NAME) in testNeverUsedPreferenceSummary() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBHistogramIdentifierTest.java | 49 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildValidIdentifier_success() 58 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildValidIdentifier_success() 69 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetForeignKey_success() 77 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetForeignKey_success() 90 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetBuyer_throws() 121 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetCustomAudienceName_success() 129 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetCustomAudienceName_success() 140 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetSourceApp_success() 148 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetSourceApp_success() 160 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testSetNullForeignKey_success() [all …]
|
D | DBAdSelectionInitializationTest.java | 49 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testBuild_unsetAdSelectionId_throwsISE() 61 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testBuild_unsetCreationInstant_throwsISE() 72 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testBuild_allFieldsSet_success() 79 CommonFixture.TEST_PACKAGE_NAME, in testBuild_allFieldsSet_success() 93 CommonFixture.TEST_PACKAGE_NAME)); in testCreate_nullCreationInstant_throwsNPE() 103 CommonFixture.TEST_PACKAGE_NAME); in testCreate_allFieldsSet_success() 109 CommonFixture.TEST_PACKAGE_NAME, in testCreate_allFieldsSet_success()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/usagereporting/ |
D | SearchSessionStatsExtractorTest.java | 32 private static final String TEST_PACKAGE_NAME = "test.package.name"; field in SearchSessionStatsExtractorTest 110 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract() 115 assertThat(searchSessionStats0.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testExtract() 121 assertThat(searchIntentStats0.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testExtract() 145 assertThat(searchIntentStats1.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testExtract() 201 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_noSearchActionShouldReturnEmptyList() 239 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_shouldSkipUnknownActionTypeDocuments() 244 assertThat(searchSessionStats0.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testExtract_shouldSkipUnknownActionTypeDocuments() 252 assertThat(searchIntentStats0.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testExtract_shouldSkipUnknownActionTypeDocuments() 313 .extract(TEST_PACKAGE_NAME, TEST_DATABASE, takenActionGenericDocuments); in testExtract_detectAndSkipSearchNoise_appendNewCharacters() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiServiceImplTest.java | 305 private static final String TEST_PACKAGE_NAME = "TestPackage"; field in WifiServiceImplTest 641 when(mContext.getOpPackageName()).thenReturn(TEST_PACKAGE_NAME); in setUp() 817 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME, in testRemoveNetworkFailureAppBelowQSdk() 824 boolean succeeded = mWifiServiceImpl.removeNetwork(0, TEST_PACKAGE_NAME); in testRemoveNetworkFailureAppBelowQSdk() 894 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsPrivilegedApp() 896 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsPrivilegedApp() 916 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 924 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, true)); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 925 assertTrue(mWifiServiceImpl.setWifiEnabled(TEST_PACKAGE_NAME, false)); in testSetWifiEnabledMetricsNormalAppBelowQSdk() 938 .noteOp(AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Process.myUid(), TEST_PACKAGE_NAME); in testSetWifiEnabledMetricsNormalAppTargetingQSdkNoIncrement() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
D | AdSelectionServiceImplTest.java | 32 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME; 415 TEST_PACKAGE_NAME, in setUp() 502 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 549 .setCallerPackageName(TEST_PACKAGE_NAME) in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 568 eq(TEST_PACKAGE_NAME), in testReportImpressionSuccessWithRegisterAdBeaconDisabled() 630 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 677 .setCallerPackageName(TEST_PACKAGE_NAME) in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 696 eq(TEST_PACKAGE_NAME), in testReportImpressionSuccessCallbackThrowsErrorAuctionServerEnabled() 758 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() 805 .setCallerPackageName(TEST_PACKAGE_NAME) in testReportImpressionFailureCallbackThrowsErrorAuctionServerEnabled() [all …]
|
D | UpdateAdCounterHistogramWorkerTest.java | 24 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME; 112 TEST_PACKAGE_NAME) in setup() 130 eq(TEST_PACKAGE_NAME), in testWorkerUpdatesHistogramAndNotifiesSuccess() 136 eq(LOGGING_API_NAME), eq(TEST_PACKAGE_NAME), eq(STATUS_SUCCESS), anyInt()); in testWorkerUpdatesHistogramAndNotifiesSuccess() 145 sourceParcel.writeString(TEST_PACKAGE_NAME); in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure() 168 eq(TEST_PACKAGE_NAME), in testWorkerValidatesInvalidAdEventTypeAndNotifiesFailure() 200 eq(TEST_PACKAGE_NAME), in testWorkerFeatureFlagDisabledStopsAndNotifiesFailure() 244 eq(TEST_PACKAGE_NAME), in testWorkerConsentFailureStopsAndNotifiesSuccess() 272 eq(TEST_PACKAGE_NAME), in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure() 279 eq(TEST_PACKAGE_NAME), in testWorkerInvalidArgumentFailureStopsAndNotifiesFailure() [all …]
|
D | ReportEventImplTest.java | 29 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME; 238 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in setup() 299 .setCallerPackageName(TEST_PACKAGE_NAME) in testImplSuccessfullyReportsRegisteredInteractions() 313 eq(TEST_PACKAGE_NAME), in testImplSuccessfullyReportsRegisteredInteractions() 381 .setCallerPackageName(TEST_PACKAGE_NAME) in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 402 eq(TEST_PACKAGE_NAME), in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 466 .setCallerPackageName(TEST_PACKAGE_NAME) in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 487 eq(TEST_PACKAGE_NAME), in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 544 .setCallerPackageName(TEST_PACKAGE_NAME) in testImplOnlyReportsBuyersRegisteredInteractions() 558 eq(TEST_PACKAGE_NAME), in testImplOnlyReportsBuyersRegisteredInteractions() [all …]
|
D | HistogramEventTest.java | 46 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildValidHistogramEvent_success() 55 assertThat(event.getCustomAudienceOwner()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildValidHistogramEvent_success() 69 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdCounterKey_throws() 84 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetBuyer_throws() 136 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetCustomAudienceNameWithWinType_throws() 149 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetCustomAudienceNameWithNonWinType_success() 157 assertThat(event.getCustomAudienceOwner()).isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetCustomAudienceNameWithNonWinType_success() 172 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdEventType_throws() 187 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetTimestamp_throws() 202 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetSourceApp_throws() [all …]
|
D | ReportAndRegisterEventImplTest.java | 31 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME; 219 .setCallerPackageName(CommonFixture.TEST_PACKAGE_NAME) in setup() 246 .setCallerPackageName(TEST_PACKAGE_NAME) in setup() 280 eq(TEST_PACKAGE_NAME), in testImplSuccessfullyReportsRegisteredEvents() 320 eq(TEST_PACKAGE_NAME), in testImplDoesNotCrashAfterSellerReportingThrowsAnException() 360 eq(TEST_PACKAGE_NAME), in testImplDoesNotCrashAfterBuyerReportingThrowsAnException() 385 eq(TEST_PACKAGE_NAME), in testImplOnlyReportsBuyersRegisteredEvents() 410 eq(TEST_PACKAGE_NAME), in testImplOnlyReportsSellerRegisteredEvents() 449 eq(TEST_PACKAGE_NAME), in testImplReturnsOnlyReportsUriThatPassesEnrollmentCheck() 496 eq(TEST_PACKAGE_NAME), in testImplReturnsSuccessButDoesNotDoReportingWhenBothFailEnrollmentCheck() [all …]
|
D | AdCounterHistogramUpdaterImplTest.java | 345 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_invalidAdEventTypeThrows() 357 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_winAdEventTypeThrows() 369 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_nullTimestampThrows() 382 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_missingAdSelectionStops() 397 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_nullAdCounterKeysStops() 414 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_withAdCounterKeysPersists() 423 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME); in testUpdateNonWinHistogram_withAdCounterKeysPersists() 457 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff() 466 .setSourceApp(CommonFixture.TEST_PACKAGE_NAME); in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOff() 504 CommonFixture.TEST_PACKAGE_NAME, in testUpdateNonWinHistogram_withAdCounterKeysPersists_auctionServerOn() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/assist/ |
D | DefaultVoiceInputPickerPreferenceControllerTest.java | 56 private static final String TEST_PACKAGE_NAME = "com.test.package"; field in DefaultVoiceInputPickerPreferenceControllerTest 88 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in setUp() 90 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in setUp() 114 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_voiceInteractionService_hasOneElement() 136 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_oneIsSameAsAssistant_hasTwoElements() 148 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_oneIsSameAsAssistant_sameOneIsEnabled() 164 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE)); in getCandidates_oneIsSameAsAssistant_differentOneIsDisabled() 180 new ComponentName(TEST_PACKAGE_NAME, TEST_SERVICE)); in getCandidates_voiceRecognitionInfo_IsEnabled() 184 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE)); in getCandidates_voiceRecognitionInfo_IsEnabled() 189 new ComponentName(TEST_PACKAGE_NAME, TEST_OTHER_SERVICE))) { in getCandidates_voiceRecognitionInfo_IsEnabled() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | SetAdCounterHistogramOverrideInputTest.java | 54 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildValidInput_success() 64 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildValidInput_success() 76 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testParcelValidInput_success() 92 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testParcelValidInput_success() 113 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testToString() 126 CommonFixture.TEST_PACKAGE_NAME, in testToString() 173 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdEventType() 185 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdCounterKey_success() 195 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetAdCounterKey_success() 206 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetHistogramTimestamps_success() [all …]
|
D | SetAdCounterHistogramOverrideRequestTest.java | 53 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildValidRequest_success() 63 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildValidRequest_success() 75 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testToString() 88 CommonFixture.TEST_PACKAGE_NAME, in testToString() 137 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdEventType() 149 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetAdCounterKey_success() 159 .isEqualTo(CommonFixture.TEST_PACKAGE_NAME); in testBuildUnsetAdCounterKey_success() 170 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetHistogramTimestamps_success() 186 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetBuyer_throws() 215 .setCustomAudienceOwner(CommonFixture.TEST_PACKAGE_NAME) in testBuildUnsetCustomAudienceName_throws()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AdServicesBackCompatInitTest.java | 79 private static final String TEST_PACKAGE_NAME = "test"; field in AdServicesBackCompatInitTest 142 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_withTPlusFlagsOff_disablesComponentsCancelsJobs() 158 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_withTPlusFlagsOn_disablesComponentsCancelsJobs() 173 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_withSMinusFlagOff_doesNothing() 185 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_withSFlagOn_enablesComponents() 198 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_withRFlagOn_enablesComponents() 215 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_disableScheduledBackgroundJobsException_celLogged() 228 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_jobSchedulerIsNull_celLogged() 247 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_updateComponentsThrowsException_celLogged() 261 mockPackageName(TEST_PACKAGE_NAME); in testInitializeComponents_disableReceiverFailure_celLogged() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/ |
D | ClassifierInputManagerTest.java | 61 private static final String TEST_PACKAGE_NAME = "com.sample.package.name"; field in ClassifierInputManagerTest 114 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_packageName() 116 assertThat(classifierInput).isEqualTo(TEST_PACKAGE_NAME); in testGetClassifierInput_packageName() 127 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_splitPackageName() 141 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_appName() 156 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_appDescription() 176 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_multipleFields() 182 TEST_PACKAGE_NAME, in testGetClassifierInput_multipleFields() 200 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_applicationInfoNotFound_returnsEmptyInput() 213 classifierInputConfig, TEST_PACKAGE_NAME); in testGetClassifierInput_invalidInputFormat_returnsEmptyInput() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/ |
D | AdsRelevanceExecutionLoggerFactoryTest.java | 19 import static android.adservices.common.CommonFixture.TEST_PACKAGE_NAME; 73 TEST_PACKAGE_NAME, in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryEnabled() 87 TEST_PACKAGE_NAME, in testPersistAdSelectionResultAdsRelevanceExecutionLogger_telemetryDisabled() 101 TEST_PACKAGE_NAME, in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryEnabled() 115 TEST_PACKAGE_NAME, in testGetAdSelectionDataAdsRelevanceExecutionLogger_telemetryDisabled() 129 TEST_PACKAGE_NAME, in testUpdateSignalsAdsRelevanceExecutionLogger() 143 TEST_PACKAGE_NAME, in testUnknownApiAdsRelevanceExecutionLogger()
|