Home
last modified time | relevance | path

Searched refs:APP_PKG (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionFlagsTest.java66 private static final String APP_PKG = "android.permission.cts.appthatrequestpermission"; field in PermissionFlagsTest
85 uninstallApp(APP_PKG); in uninstallTestApp()
94 getPermissionFlags(APP_PKG, ACCESS_BACKGROUND_LOCATION)); in implicitPermission()
103 assertEquals(FLAG_PERMISSION_REVIEW_REQUIRED, getPermissionFlags(APP_PKG, in implicitPermissionPreM()
111 assertEquals(0, getPermissionFlags(APP_PKG, ACCESS_COARSE_LOCATION)); in regularPermission()
119 getPermissionFlags(APP_PKG, READ_CONTACTS) & FLAG_PERMISSION_REVIEW_REQUIRED); in regularPermissionPreM()
126 int defaultState = getPermissionFlags(APP_PKG, READ_CONTACTS); in clearRegularPermissionPreM()
127 setPermissionFlags(APP_PKG, READ_CONTACTS, FLAG_PERMISSION_REVIEW_REQUIRED, 0); in clearRegularPermissionPreM()
128 setPermissionFlags(APP_PKG, READ_CONTACTS, in clearRegularPermissionPreM()
132 clearAppState(APP_PKG); in clearRegularPermissionPreM()
[all …]
DSplitPermissionTest.java74 private static final String APP_PKG = "android.permission.cts.appthatrequestpermission"; field in SplitPermissionTest
111 assertThat(getPermissions(APP_PKG)).contains(permName); in assertRequestsPermission()
120 assertThat(getPermissions(APP_PKG)).doesNotContain(permName); in assertNotRequestsPermission()
130 isGranted(APP_PKG, permName)).isTrue()); in assertPermissionGranted()
139 assertWithMessage(permName + " is granted").that(isGranted(APP_PKG, permName)).isFalse(); in assertPermissionRevoked()
153 uninstallApp(APP_PKG); in uninstallTestApp()
274 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in inheritGrantedPermissionState()
290 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in inheritGrantedPermissionStateSharedUidApp()
308 setPermissionFlags(APP_PKG, READ_CONTACTS, FLAG_PERMISSION_USER_SET, in inheritFlagsPreM()
314 getPermissionFlags(APP_PKG, READ_CALL_LOG) & FLAG_PERMISSION_USER_SET); in inheritFlagsPreM()
[all …]
DBackgroundPermissionsTest.java62 private static final String APP_PKG = "android.permission.cts.appthatrequestpermission"; field in BackgroundPermissionsTest
77 uninstallApp(APP_PKG); in uninstallTestApp()
129 grantPermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpGetsDowngradedWhenBgPermIsNotRequestedAnymore()
134 getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).isEqualTo(MODE_FOREGROUND)); in appOpGetsDowngradedWhenBgPermIsNotRequestedAnymore()
149 getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).isEqualTo(MODE_IGNORED)); in appOpIsSetIfNoLocPermIsGranted()
161 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfOnlyCoarseLocPermIsGranted()
165 getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).isEqualTo(MODE_FOREGROUND)); in appOpIsSetIfOnlyCoarseLocPermIsGranted()
177 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_COARSE_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted()
178 sUiAutomation.grantRuntimePermission(APP_PKG, ACCESS_BACKGROUND_LOCATION); in appOpIsSetIfCoarseAndBgLocPermIsGranted()
182 getAppOp(APP_PKG, ACCESS_COARSE_LOCATION)).isEqualTo(MODE_ALLOWED)); in appOpIsSetIfCoarseAndBgLocPermIsGranted()
[all …]
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/provider/src/com/android/sdksandbox/cts/provider/dataisolationtest/
DDataIsolationTestSdkApiImpl.java39 private static final String APP_PKG = "com.android.sdksandbox.cts.app"; field in DataIsolationTestSdkApiImpl
58 verifyDirectoryAccess("/data/user/" + CURRENT_USER_ID + "/" + APP_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence()
62 verifyDirectoryAccess("/data/misc/profiles/cur/" + CURRENT_USER_ID + "/" + APP_PKG, false); in testSdkSandboxDataIsolation_CannotVerifyAppExistence()
82 String sandboxPackageDir1 = "/data/misc_ce/" + otherUserId + "/sdksandbox/" + APP_PKG; in testSdkSandboxDataIsolation_CannotVerifyOtherUserAppExistence()
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DSdkSandboxDataIsolationTestApp.java50 private static final String APP_PKG = "com.android.sdksandbox.cts.app"; field in SdkSandboxDataIsolationTestApp
86 assertFileAccessIsDenied("/data/misc_ce/" + CURRENT_USER_ID + "/sdksandbox/" + APP_PKG); in testAppCannotAccessAnySandboxDirectories()
90 assertFileAccessIsDenied("/data/misc_de/" + CURRENT_USER_ID + "/sdksandbox/" + APP_PKG); in testAppCannotAccessAnySandboxDirectories()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DCameraMicIndicatorsPermissionTest.kt76 private const val APP_PKG = "android.permissionui.cts.appthataccessescameraandmic" in <lambda>() constant
151 val output = runShellCommand("pm uninstall $APP_PKG").trim() in <lambda>()
373 uiDevice.findObject(UiSelector().packageName(APP_PKG)) in <lambda>()
615 val appUid = packageManager.getPackageUid(APP_PKG, 0) in <lambda>()
616 val childAttribution = AttributionSource(appUid, APP_PKG, null) in <lambda>()