/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/devapi/ |
D | CustomAudienceDevOverridesHelperTest.java | 45 private static final String APP_PACKAGE_NAME = "appPackageName"; field in CustomAudienceDevOverridesHelperTest 68 .setOwner(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride() 71 .setAppPackageName(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride() 79 .setCallingAppPackageName(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride() 86 assertThat(helper.getBiddingLogicOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride() 93 assertThat(helper.getTrustedBiddingSignalsOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride() 101 .setOwner(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride_nullJsVersion() 104 .setAppPackageName(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride_nullJsVersion() 111 .setCallingAppPackageName(APP_PACKAGE_NAME) in testGetOverridesFindsMatchingOverride_nullJsVersion() 118 assertThat(helper.getBiddingLogicOverride(APP_PACKAGE_NAME, BUYER, NAME)) in testGetOverridesFindsMatchingOverride_nullJsVersion() [all …]
|
D | AdSelectionDevOverridesHelperTest.java | 49 private static final String APP_PACKAGE_NAME = "com.test.app"; field in AdSelectionDevOverridesHelperTest 60 .setAppPackageName(APP_PACKAGE_NAME) 68 .setAppPackageName(APP_PACKAGE_NAME) 115 .setCallingAppPackageName(APP_PACKAGE_NAME) in testGetDecisionLogicOverrideFindsMatchingOverride() 155 .setCallingAppPackageName(APP_PACKAGE_NAME + ".different") in testGetDecisionLogicOverrideReturnsNullIfTheOverrideBelongsToAnotherApp()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/ |
D | SideLoadedAppDetectorTest.java | 56 private static final String APP_PACKAGE_NAME = "com.test"; field in SideLoadedAppDetectorTest 83 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_systemApp_returnsTrue() 86 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_systemApp_returnsTrue() 89 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_systemApp_returnsTrue() 98 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_updatedSystemApp_returnsTrue() 101 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_updatedSystemApp_returnsTrue() 104 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_updatedSystemApp_returnsTrue() 117 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_nonSystemApp_withSafeSource_returnsTrue() 120 applicationInfo.packageName = APP_PACKAGE_NAME; in isSafe_nonSystemApp_withSafeSource_returnsTrue() 122 when(mPackageManager.getApplicationInfoAsUser(eq(APP_PACKAGE_NAME), anyInt(), any())) in isSafe_nonSystemApp_withSafeSource_returnsTrue() [all …]
|
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/ |
D | EnhancedConfirmationManagerTest.kt | 80 getAppEcmState(context, appOpsManager, APP_PACKAGE_NAME), in installedAppStartsWithModeDefault() 92 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenStoreAppThenIsNotRestrictedFromProtectedSetting() 101 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenLocalAppThenIsRestrictedFromProtectedSetting() 110 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenDownloadedThenAppIsRestrictedFromProtectedSetting() 121 getAppEcmState(context, appOpsManager, APP_PACKAGE_NAME), in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting() 127 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting() 128 setAppEcmState(context, appOpsManager, APP_PACKAGE_NAME, AppOpsManager.MODE_ERRORED) in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting() 129 eventually { assertTrue(ecm.isRestricted(APP_PACKAGE_NAME, PROTECTED_SETTING)) } in givenExplicitlyRestrictedAppThenIsRestrictedFromProtectedSetting() 138 eventually { assertFalse(ecm.isRestricted(APP_PACKAGE_NAME, NON_PROTECTED_SETTING)) } in givenRestrictedAppThenIsNotRestrictedFromNonProtectedSetting() 147 eventually { assertFalse(ecm.isClearRestrictionAllowed(APP_PACKAGE_NAME)) } in givenRestrictedAppThenClearRestrictionNotAllowedByDefault() [all …]
|
D | AppDataSharingUpdatesTest.kt | 121 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 142 grantFineLocationPermission(APP_PACKAGE_NAME) in <lambda>() 163 grantBackgroundLocationPermission(APP_PACKAGE_NAME) in <lambda>() 184 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 205 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 226 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 246 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 266 grantCoarseLocationPermission(APP_PACKAGE_NAME) in <lambda>() 321 grantFineLocationPermission(APP_PACKAGE_NAME) in <lambda>() 332 findView(By.textContains(APP_PACKAGE_NAME), true) in <lambda>() [all …]
|
D | SafetyLabelChangesJobServiceTest.kt | 123 grantLocationPermission(APP_PACKAGE_NAME) in runDetectUpdatesJob_initializesSafetyLabelsHistoryForApps() 138 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_initializesSafetyLabelsHistoryForApps() 154 grantLocationPermission(APP_PACKAGE_NAME) in runDetectUpdatesJob_updatesSafetyLabelHistoryForApps() 169 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_updatesSafetyLabelHistoryForApps() 186 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_whenLocationSharingUpdatesForLocationGrantedApps_showsNotification() 216 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_whenNoLocationSharingUpdates_doesNotShowNotification() 236 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_packageSourceUnspecified_updatesSafetyLabelHistoryForApps() 258 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_packageSourceOther_doesNotShowNotification() 280 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_packageSourceStore_updatesSafetyLabelHistoryForApps() 302 grantLocationPermission(APP_PACKAGE_NAME) in runNotificationJob_packageSourceLocalFile_doesNotShowNotification() [all …]
|
D | PermissionPolicyTest25.kt | 34 const val APP_PACKAGE_NAME = "android.permissionui.cts.permissionpolicy" constant 39 uninstallPackage(APP_PACKAGE_NAME, requireSuccess = false) in installApp25() 45 uninstallPackage(APP_PACKAGE_NAME, requireSuccess = false) in uninstallApp() 55 APP_PACKAGE_NAME, in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 56 "$APP_PACKAGE_NAME.TestProtectionFlagsActivity" in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 62 assertEquals("", result.resultData!!.getStringExtra("$APP_PACKAGE_NAME.ERROR_MESSAGE")) in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()
|
D | BaseUsePermissionTest.kt | 102 const val APP_PACKAGE_NAME = "android.permissionui.cts.usepermission" in <lambda>() constant 311 uninstallPackage(APP_PACKAGE_NAME, requireSuccess = false) in <lambda>() 363 ComponentName(APP_PACKAGE_NAME, "$APP_PACKAGE_NAME.FinishOnCreateActivity") in <lambda>() 410 am.forceStopPackage(APP_PACKAGE_NAME) in <lambda>() 641 ComponentName(APP_PACKAGE_NAME, "$APP_PACKAGE_NAME.FinishOnCreateActivity") in <lambda>() 661 APP_PACKAGE_NAME, in <lambda>() 662 "$APP_PACKAGE_NAME.RequestPermissionsActivity" in <lambda>() 664 putExtra("$APP_PACKAGE_NAME.PERMISSIONS", permissions) in <lambda>() 687 APP_PACKAGE_NAME, in <lambda>() 688 "$APP_PACKAGE_NAME.RequestPermissionsActivity" in <lambda>() [all …]
|
D | PermissionDecisionsTest.kt | 55 By.hasChild(By.text("You gave $APP_PACKAGE_NAME access to location")) in testAcceptPermissionDialogShowsDecisionWithGrantedAccess() 69 By.hasChild(By.text("You denied $APP_PACKAGE_NAME access to location")) in testDenyPermissionDialogShowsDecisionWithDeniedAccess() 85 By.hasChild(By.text("You denied $APP_PACKAGE_NAME access to location")) in testAppUninstallRemovesDecision() 102 By.hasChild(By.text("You gave $APP_PACKAGE_NAME access to location")) in testClickOnDecisionAndChangeAccessUpdatesDecision() 107 waitFindObject(By.text(APP_PACKAGE_NAME)) in testClickOnDecisionAndChangeAccessUpdatesDecision() 115 By.hasChild(By.text("You denied $APP_PACKAGE_NAME access to location")) in testClickOnDecisionAndChangeAccessUpdatesDecision()
|
D | PermissionReviewTest.kt | 147 APP_PACKAGE_NAME, in testReviewPermissionWhenServiceIsBound() 148 "$APP_PACKAGE_NAME.StartCheckPermissionServiceActivity" in testReviewPermissionWhenServiceIsBound() 151 "$APP_PACKAGE_NAME.RESULT", in testReviewPermissionWhenServiceIsBound() 159 "$APP_PACKAGE_NAME.PERMISSION", in testReviewPermissionWhenServiceIsBound()
|
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 109 private static final String APP_PACKAGE_NAME = "android.app.role.cts.app"; field in RoleManagerTest 115 private static final String APP_IS_ROLE_HELD_ACTIVITY_NAME = APP_PACKAGE_NAME 117 private static final String APP_IS_ROLE_HELD_EXTRA_IS_ROLE_HELD = APP_PACKAGE_NAME 119 private static final String APP_REQUEST_ROLE_ACTIVITY_NAME = APP_PACKAGE_NAME 121 private static final String APP_CHANGE_DEFAULT_DIALER_ACTIVITY_NAME = APP_PACKAGE_NAME 123 private static final String APP_CHANGE_DEFAULT_SMS_ACTIVITY_NAME = APP_PACKAGE_NAME 190 if (Objects.equals(mRoleHolder, APP_PACKAGE_NAME)) { in saveRoleHolder() 191 removeRoleHolder(ROLE_NAME, APP_PACKAGE_NAME); in saveRoleHolder() 198 removeRoleHolder(ROLE_NAME, APP_PACKAGE_NAME); in restoreRoleHolder() 204 assertIsRoleHolder(ROLE_NAME, APP_PACKAGE_NAME, false); in restoreRoleHolder() [all …]
|
D | RoleShellCommandTest.kt | 49 if (roleHolder == APP_PACKAGE_NAME) { in saveRoleHolder() 79 uninstallPackage(APP_PACKAGE_NAME) in uninstallApp() 126 assertThat(runShellCommandOrThrow("dumpsys role")).contains(APP_PACKAGE_NAME) in addRoleHolderThenAppearsInDumpsys() 147 private fun addRoleHolder(packageName: String = APP_PACKAGE_NAME) { in addRoleHolder() 151 private fun removeRoleHolder(packageName: String = APP_PACKAGE_NAME) { in removeRoleHolder() 171 assertThat(packageNames).contains(APP_PACKAGE_NAME) in assertIsRoleHolder() 173 assertThat(packageNames).doesNotContain(APP_PACKAGE_NAME) in assertIsRoleHolder() 198 private const val APP_PACKAGE_NAME = "android.app.role.cts.app" constant
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/cobalt/ |
D | AppNameApiErrorLoggerTest.java | 60 private static final String APP_PACKAGE_NAME = "test.app.name"; field in AppNameApiErrorLoggerTest 106 logger.logErrorOccurrence(APP_PACKAGE_NAME, FIRST_ERROR_CODE, FIRST_ERROR_CODE); in testLogErrorOccurrence_cobaltLoggingDisabled() 108 verifyLoggedEvent(APP_PACKAGE_NAME, FIRST_API_NAME_CODE, FIRST_ERROR_CODE, never()); in testLogErrorOccurrence_cobaltLoggingDisabled() 117 logger.logErrorOccurrence(APP_PACKAGE_NAME, FIRST_ERROR_CODE, FIRST_ERROR_CODE); in testLogErrorOccurrence_appNameApiErrorLoggingDisabled() 119 verifyLoggedEvent(APP_PACKAGE_NAME, FIRST_API_NAME_CODE, FIRST_ERROR_CODE, never()); in testLogErrorOccurrence_appNameApiErrorLoggingDisabled() 127 logger.logErrorOccurrence(APP_PACKAGE_NAME, FIRST_ERROR_CODE, FIRST_ERROR_CODE); in testLogErrorOccurrence_featureEnabled() 129 verifyLoggedEvent(APP_PACKAGE_NAME, FIRST_API_NAME_CODE, FIRST_ERROR_CODE, times(1)); in testLogErrorOccurrence_featureEnabled() 149 logger.logErrorOccurrence(APP_PACKAGE_NAME, FIRST_ERROR_CODE - 1, FIRST_ERROR_CODE); in testLogErrorOccurrence_apiCodeBelowLimit() 151 verifyLoggedEvent(APP_PACKAGE_NAME, UNKNOWN_EVENT_CODE, FIRST_ERROR_CODE, times(1)); in testLogErrorOccurrence_apiCodeBelowLimit() 159 logger.logErrorOccurrence(APP_PACKAGE_NAME, LAST_API_NAME_CODE + 1, LAST_ERROR_CODE); in testLogErrorOccurrence_apiCodeOverLimit() [all …]
|
D | MeasurementCobaltLoggerTest.java | 92 private static final String APP_PACKAGE_NAME = "test.app.name"; field in MeasurementCobaltLoggerTest 246 APP_PACKAGE_NAME, in testLogRegistrationStatus_webSourceRegistrationSuccessLogged() 255 APP_PACKAGE_NAME, in testLogRegistrationStatus_webSourceRegistrationSuccessLogged() 269 APP_PACKAGE_NAME, in testLogRegistrationStatus_appTriggerRegistrationFailureLogged() 278 APP_PACKAGE_NAME, in testLogRegistrationStatus_appTriggerRegistrationFailureLogged() 292 APP_PACKAGE_NAME, in testLogRegistrationStatus_unknownSurfaceAndTypeLogged() 301 APP_PACKAGE_NAME, in testLogRegistrationStatus_unknownSurfaceAndTypeLogged() 316 APP_PACKAGE_NAME, in testLogRegistrationStatus_cobaltLoggingDisabled() 325 APP_PACKAGE_NAME, in testLogRegistrationStatus_cobaltLoggingDisabled() 340 APP_PACKAGE_NAME, in testLogRegistrationStatus_msmtRegistrationCobaltLogDisabled() [all …]
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | HealthDataCategoryPriorityHelperTest.java | 84 private static final String APP_PACKAGE_NAME = "android.healthconnect.mocked.app"; field in HealthDataCategoryPriorityHelperTest 124 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME), any())) in setUp() 132 when(mAppInfoHelper.getAppInfoId(APP_PACKAGE_NAME)).thenReturn(APP_PACKAGE_ID); in setUp() 136 when(mAppInfoHelper.getPackageName(APP_PACKAGE_ID)).thenReturn(APP_PACKAGE_NAME); in setUp() 173 APP_PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS, mContext, true); in testAppendToPriorityList_ifAppInList_doesNotAddToList() 250 eq(APP_PACKAGE_NAME), any())) in testMaybeRemoveAppFromPriorityList_ifWritePermissionsForApp_doesNotRemoveApp() 255 APP_PACKAGE_NAME, in testMaybeRemoveAppFromPriorityList_ifWritePermissionsForApp_doesNotRemoveApp() 274 eq(APP_PACKAGE_NAME), any())) in testNewMaybeRemoveAppFromPriorityList_ifDataForApp_doesNotRemoveApp() 279 .appHasDataInCategory(APP_PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testNewMaybeRemoveAppFromPriorityList_ifDataForApp_doesNotRemoveApp() 281 APP_PACKAGE_NAME, in testNewMaybeRemoveAppFromPriorityList_ifDataForApp_doesNotRemoveApp() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBAdSelectionFromOutcomesOverrideTest.java | 29 private static final String APP_PACKAGE_NAME = "com.test.package"; field in DBAdSelectionFromOutcomesOverrideTest 41 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionOverride() 49 assertEquals(APP_PACKAGE_NAME, dbAdSelectionFromOutcomesOverride.getAppPackageName()); in testBuildDBAdSelectionOverride() 59 APP_PACKAGE_NAME, in testCreateDBAdSelectionOverride() 66 assertEquals(APP_PACKAGE_NAME, dbAdSelectionFromOutcomesOverride.getAppPackageName()); in testCreateDBAdSelectionOverride() 77 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionFromOutcomesOverrideNoConfigIdFailure() 106 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionFromOutcomesOverrideNoSelectionJsFailure() 120 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionFromOutcomesOverrideNoSelectionSignalsFailure()
|
D | DBAdSelectionOverrideTest.java | 29 private static final String APP_PACKAGE_NAME = "appPackageName"; field in DBAdSelectionOverrideTest 45 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionOverride() 51 assertEquals(APP_PACKAGE_NAME, dbAdSelectionOverride.getAppPackageName()); in testBuildDBAdSelectionOverride() 62 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoAdSelectionId() 89 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoDecisionLogicJS() 101 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoTrustedScoringSignals() 112 APP_PACKAGE_NAME, in testDBAdSelectionOverrideCreate() 117 assertEquals(APP_PACKAGE_NAME, dbAdSelectionOverride.getAppPackageName()); in testDBAdSelectionOverrideCreate()
|
D | DBBuyerDecisionOverrideTest.java | 33 private static final String APP_PACKAGE_NAME = "appPackageName"; field in DBBuyerDecisionOverrideTest 48 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBBuyerDecisionOverride() 52 assertEquals(APP_PACKAGE_NAME, override.getAppPackageName()); in testBuildDBBuyerDecisionOverride() 61 AD_SELECTION_CONFIG_ID, APP_PACKAGE_NAME, BUYER, DECISION_LOGIC_JS); in testDBBuyerDecisionOverrideCreate() 64 assertEquals(APP_PACKAGE_NAME, override.getAppPackageName()); in testDBBuyerDecisionOverrideCreate() 75 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoAdSelectionId() 103 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoBuyer() 116 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoDecisionLogic()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/ |
D | AppImportanceFilterTest.java | 68 private static final String APP_PACKAGE_NAME = "test.package.name"; field in AppImportanceFilterTest 95 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_onSMinus_succeedBySkippingCheck() 104 when(mActivityManager.getPackageImportance(APP_PACKAGE_NAME)) in testCalledWithForegroundAppPackageName_succeed() 108 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundAppPackageName_succeed() 116 when(mActivityManager.getPackageImportance(APP_PACKAGE_NAME)) in testCalledWithForegroundServiceImportanceAppPackageName_succeed() 120 mAppImportanceFilter.assertCallerIsInForeground(APP_PACKAGE_NAME, API_NAME, SDK_NAME); in testCalledWithForegroundServiceImportanceAppPackageName_succeed() 129 when(mActivityManager.getPackageImportance(APP_PACKAGE_NAME)) in testCalledWithLessThanForegroundImportanceAppPackageName_throwsIllegalStateException() 136 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_throwsIllegalStateException() 144 when(mActivityManager.getPackageImportance(APP_PACKAGE_NAME)) in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure() 151 APP_PACKAGE_NAME, API_NAME, SDK_NAME)); in testCalledWithLessThanForegroundImportanceAppPackageName_logsFailure() [all …]
|
D | PermissionHelperTest.java | 53 private static final String APP_PACKAGE_NAME = "app_test_package_name"; field in PermissionHelperTest 159 topicsMockContext, APP_PACKAGE_NAME, APP_CALLING_UID)) 164 adIdMockContext, APP_PACKAGE_NAME, APP_CALLING_UID)) 173 APP_PACKAGE_NAME, 181 APP_PACKAGE_NAME, 186 attributionMockContext, APP_PACKAGE_NAME)) 195 mockContext, APP_PACKAGE_NAME, APP_CALLING_UID)) 199 mockContext, APP_PACKAGE_NAME, APP_CALLING_UID)) 201 assertThat(PermissionHelper.hasAttributionPermission(mockContext, APP_PACKAGE_NAME)) 205 mockContext, APP_PACKAGE_NAME, ACCESS_ADSERVICES_CUSTOM_AUDIENCE)) [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/ |
D | CustomAudienceOverrideTest.java | 33 private static final String APP_PACKAGE_NAME = "appPackageName"; field in CustomAudienceOverrideTest 48 .setAppPackageName(APP_PACKAGE_NAME) in testBuildDBAdSelectionOverride() 57 assertEquals(dbCustomAudienceOverride.getAppPackageName(), APP_PACKAGE_NAME); in testBuildDBAdSelectionOverride() local 71 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoOwner() 87 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoBuyer() 103 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoName() 136 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoBiddingLogicJS() 152 .setAppPackageName(APP_PACKAGE_NAME) in testThrowsExceptionWithNoTrustedBiddingData() 166 .setAppPackageName(APP_PACKAGE_NAME) in testNoBiddingLogicJsVersion() 174 assertEquals(dbCustomAudienceOverride.getAppPackageName(), APP_PACKAGE_NAME); in testNoBiddingLogicJsVersion() local
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/ |
D | PriorityMigrationTest.java | 57 private static final String APP_PACKAGE_NAME = "android.healthconnect.mocked.app"; field in PriorityMigrationTest 120 new DataOrigin.Builder().setPackageName(APP_PACKAGE_NAME).build()) in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated() 131 eq(List.of(APP_PACKAGE_NAME, APP_PACKAGE_NAME_2))); in testMigratePriority_noPreMigrationPriorityAdditionalAppsInPayload_priorityMigrated() 146 new DataOrigin.Builder().setPackageName(APP_PACKAGE_NAME).build()) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated() 161 APP_PACKAGE_NAME, in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated() 183 APP_PACKAGE_NAME, in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated() 198 new DataOrigin.Builder().setPackageName(APP_PACKAGE_NAME).build()) in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated() 208 APP_PACKAGE_NAME, APP_PACKAGE_NAME_2, in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated() 220 .thenReturn(List.of(APP_PACKAGE_NAME, APP_PACKAGE_NAME_2, APP_PACKAGE_NAME_3)); in testMigratePriority_preMigrationPriorityNewAppChangedOrderInPayload_priorityMigrated() 238 APP_PACKAGE_NAME, APP_PACKAGE_NAME_2, in testMigratePriority_preMigrationPriorityNewAppChangedOrderInPayload_priorityMigrated() [all …]
|
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/ |
D | StorageEscalationTest.kt | 48 const val APP_PACKAGE_NAME = "android.permission.cts.storageescalation" in <lambda>() constant 62 SystemUtil.runShellCommand("pm uninstall $APP_PACKAGE_NAME --user ALL") in <lambda>() 102 uiAutomation.grantRuntimePermissionAsUser(APP_PACKAGE_NAME, permName, user) in <lambda>() 113 APP_PACKAGE_NAME, in <lambda>() 121 userContext.packageManager.checkPermission(permName, APP_PACKAGE_NAME) == in <lambda>()
|
/packages/modules/Profiling/tests/cts/src/android/profiling/cts/ |
D | ProfilingServiceTests.java | 79 private static final String APP_PACKAGE_NAME = "com.android.profiling.tests"; field in ProfilingServiceTests 161 APP_PACKAGE_NAME); in testRequestProfiling_OnlyRequestingProcessCallbackTriggered() 192 APP_PACKAGE_NAME); in testRequestProfiling_MultipleCallbackTriggered() 215 APP_PACKAGE_NAME); in testRequestProfiling_ProfilingRunning_Fails() 237 KEY_MOST_SIG_BITS, KEY_LEAST_SIG_BITS, APP_PACKAGE_NAME); in testRequestProfiling_InvalidRequest_Fails() 295 APP_PACKAGE_NAME); in testRequestProfiling_RateLimitBlocked_Fails() 316 APP_PACKAGE_NAME); in testRequestProfiling_Allowed_PerfettoPermissions_Fails() 334 APP_PACKAGE_NAME, REQUEST_TAG, KEY_MOST_SIG_BITS, KEY_LEAST_SIG_BITS); in testAreAnyTracesRunning_True() 357 APP_PACKAGE_NAME, REQUEST_TAG, KEY_MOST_SIG_BITS, KEY_LEAST_SIG_BITS); in testAreAnyTracesRunning_False() 374 APP_PACKAGE_NAME, REQUEST_TAG, KEY_MOST_SIG_BITS, KEY_LEAST_SIG_BITS); in testActiveTracesCleanup() [all …]
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/events/ |
D | QueriesContract.java | 39 public static final String APP_PACKAGE_NAME = "appPackageName"; field in QueriesContract.QueriesEntry 54 + APP_PACKAGE_NAME + " TEXT NOT NULL," 61 + " ADD COLUMN " + APP_PACKAGE_NAME + " TEXT NOT NULL DEFAULT ''";
|