Home
last modified time | relevance | path

Searched defs:permission (Results 1 – 25 of 61) sorted by relevance

123

/cts/tests/tests/content/BinderPermissionTestService/aidl/com/android/cts/
DIBinderPermissionTestService.aidl21 void doEnforceCallingPermission(String permission); in doEnforceCallingPermission()
22 int doCheckCallingPermission(String permission); in doCheckCallingPermission()
23 void doEnforceCallingOrSelfPermission(String permission); in doEnforceCallingOrSelfPermission()
24 int doCheckCallingOrSelfPermission(String permission); in doCheckCallingOrSelfPermission()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPermissionGrantTest.java187 public void denyPermission_setsGrantState(@DeniablePermissionTestParameter String permission) { in denyPermission_setsGrantState()
207 permission, existingGrantState); in denyPermission_setsGrantState() local
239 public void denyPermission_permissionIsDenied( in denyPermission_permissionIsDenied()
245 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local
248 permission, PERMISSION_GRANT_STATE_DENIED); in denyPermission_permissionIsDenied() local
257 permission, existingGrantState); in denyPermission_permissionIsDenied() local
258 sTestApp.pkg().denyPermission(TestApis.users().instrumented(), permission); in denyPermission_permissionIsDenied() local
287 public void denyPermission_doesNotApply_permissionIsNotDenied( in denyPermission_doesNotApply_permissionIsNotDenied()
290 sTestApp.pkg().grantPermission(TestApis.users().instrumented(), permission); in denyPermission_doesNotApply_permissionIsNotDenied() local
294 permission, PERMISSION_GRANT_STATE_DENIED); in denyPermission_doesNotApply_permissionIsNotDenied() local
[all …]
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java76 String permission, int expected, String packageName, String activityName) in launchActivityAndCheckPermission()
93 String permission, int expected, String packageName, String activityName) in launchActivityAndRequestPermission()
101 receiver, UiDevice device, String permission, int expected, in launchActivityAndRequestPermission()
129 private static void launchActivityWithAction(String permission, String action, in launchActivityWithAction()
141 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission()
142 checkPermission(getContext(), permission, expected, packageName); in checkPermission() local
145 public static void checkPermission(Context context, String permission, int expected, in checkPermission()
154 private static void assertPermission(String permission, String packageName, int actual, in assertPermission()
165 public static void checkPermissionAndAppOps(String permission, int expected, String packageName) in checkPermissionAndAppOps()
167 checkPermissionAndAppOps(getContext(), permission, expected, packageName); in checkPermissionAndAppOps() local
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java167 private void assertCannotSetPermissionGrantStatePreMApp(String permission, int value) in assertCannotSetPermissionGrantStatePreMApp()
187 private void assertCanSetPermissionGrantStatePreMApp(String permission, int value) in assertCanSetPermissionGrantStatePreMApp()
355 private boolean setPermissionGrantState(String permission, int grantState) { in setPermissionGrantState()
359 private boolean setPermissionGrantState(DevicePolicyManager dpm, String permission, in setPermissionGrantState()
370 private void assertPermissionGrantState(String permission, int expectedState) { in assertPermissionGrantState()
374 private void assertPermissionGrantState(DevicePolicyManager dpm, String permission, in assertPermissionGrantState()
380 String permission, int expectedState) { in assertPermissionGrantState()
402 private void assertCanRequestPermissionFromActivity(String permission) throws Exception { in assertCanRequestPermissionFromActivity()
408 private void assertCannotRequestPermissionFromActivity(String permission) throws Exception { in assertCannotRequestPermissionFromActivity()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DAnnotationLogicExtensions.kt52 val permission = arrayOf(policies[0].permissions[0].appliedWith) in logic() constant
77 val permission = arrayOf(policies[0].permissions[0].appliedWith) in MostRestrictiveCoexistenceTest() constant
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java70 @NonNull String permission) throws Exception { in isPermissionAndAppOpGranted()
87 @NonNull String permission) { in grantPermissionAndAppOp()
103 @NonNull String permission) { in revokePermissionAndAppOp()
138 private static int getAppOp(@NonNull String packageName, @NonNull String permission) in getAppOp()
158 @NonNull String permission, int mode) { in setAppOpByPermission()
187 @NonNull String permission) { in isPermissionGranted()
DBaseDefaultPermissionGrantPolicyTest.java265 String permission, String message) { in addViolation()
389 String permission = entry.getKey(); in addException() local
416 public static ArrayList<String> extendBySplitPermissions(String permission, int appTargetSdk) { in extendBySplitPermissions()
437 public void setPermissionGrantState(String packageName, String permission, in setPermissionGrantState()
610 String permission = uidState.grantedPermissions.keyAt(i); in checkDefaultGrantsInCorrectState() local
822 public void addGrantedPermission(PackageInfo packageInfo, String reason, String permission, in addGrantedPermission()
835 public void overrideGrantedPermission(String packageName, String reason, String permission, in overrideGrantedPermission()
840 public void mergeGrantedPermission(String packageName, String reason, String permission, in mergeGrantedPermission()
/cts/tests/backup/src/android/backup/cts/
DPermissionTest.java403 private void setFlag(String app, String permission, int flag) { in setFlag()
409 private void clearFlag(String app, String permission, int flag) { in clearFlag()
415 private boolean isFlagSet(String app, String permission, int flag) { in isFlagSet()
425 private int checkPermission(String app, String permission) { in checkPermission()
429 private void setAppOp(String app, String permission, int mode) { in setAppOp()
436 private int getAppOp(String app, String permission) { in getAppOp()
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/info/
DActivityInfo.java59 Set<IntentFilter> intentFilters, String permission) { in ActivityInfo()
84 public String permission() { in permission() method in ActivityInfo
134 public Builder permission(String permission) { in permission() method in ActivityInfo.Builder
/cts/tests/location/common/src/android/location/cts/common/
DTestUtils.java164 public static List<String> getPackagesWithPermissions(String permission) { in getPackagesWithPermissions()
204 public static List<String> revokePermissions(String permission) { in revokePermissions()
214 public static void grantLocationPermissions(String permission, List<String> packages) { in grantLocationPermissions()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DPermissionTestActivity.java36 String permission = getIntent().getStringExtra(Intent.EXTRA_PERMISSION_NAME); in onCreate() local
/cts/common/device-side/bedstead/testapp/src/library/main/proto/
Dtestapp_protos.proto39 string permission = 4; field
46 string permission = 4; field
67 string permission = 2; field
/cts/common/device-side/bedstead/queryable/src/main/java/com/android/queryable/queries/
DActivityQuery.java37 StringQuery<E> permission(); in permission() method
/cts/tests/tests/security/src/android/security/cts/
DCVE_2021_39738.java56 String permission = pm.getActivityInfo(component, 0 /* flags */).permission; in testPocCVE_2021_39738() local
DCVE_2021_0922.java59 String permission = packageInfo.requestedPermissions[i]; in testPocCVE_2021_0922() local
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/wifi/
DCarWifiManagerPermissionTest.java57 private void expectPermissionException(String permission, ThrowingRunnable runnable) { in expectPermissionException()
/cts/hostsidetests/appsecurity/test-apps/DuplicatePermissionDeclareApp/src/com/android/cts/duplicatepermissiondeclareapp/
DVerifyDuplicatePermissionTest.java43 private PermissionInfo getDeclaredPermission(String pkg, String permission) throws Exception { in getDeclaredPermission()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerPermissionRequestApp/src/com/android/cts/packageinstallerpermissionrequestapp/
DPermissionRequestTest.kt40 private val permission = arguments.getString(PackageSetInstallerConstants.PERMISSION_KEY)!! constant in com.android.cts.packageinstallerpermissionrequestapp.PermissionRequestTest
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java511 private int numberOfSystemAppsWithPermission(String permission) { in numberOfSystemAppsWithPermission()
588 private void grantPermission(String permission) { in grantPermission()
590 .grantRuntimePermission(mContext.getPackageName(), permission); in grantPermission() local
593 private void revokePermission(String permission) { in revokePermission()
595 .revokeRuntimePermission(mContext.getPackageName(), permission); in revokePermission() local
693 PermissionClosable(String permission) { in PermissionClosable()
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissionsAnnotationExecutor.kt53 for (permission in annotation.value) { in applyAnnotation() method
88 for (permission: String in annotation.value) { in applyAnnotation() method
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java373 public Package grantPermission(UserReference user, String permission) { in grantPermission()
404 public Package grantPermission(String permission) { in grantPermission()
409 public Package denyPermission(String permission) { in denyPermission()
422 public Package denyPermission(UserReference user, String permission) { in denyPermission()
435 sUiAutomation.revokeRuntimePermissionAsUser(packageName(), permission, user.userHandle()); in denyPermission() local
446 void checkCanGrantOrRevokePermission(UserReference user, String permission) { in checkCanGrantOrRevokePermission()
552 public boolean hasPermission(UserReference user, String permission) { in hasPermission()
558 public boolean hasPermission(UserHandle user, String permission) { in hasPermission()
563 public boolean hasPermission(String permission) { in hasPermission()
/cts/tests/tests/telecom/ThirdPtyInCallServiceTestApp/aidl/android/telecom/cts/thirdptyincallservice/
DICtsThirdPartyInCallServiceControl.aidl29 boolean checkPermissionGrant(String permission); in checkPermissionGrant()
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/
DPermissionWhitelistTest.kt39 private val permission = arguments.getString(PERMISSION_KEY)!! constant
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpDefinitionTest.kt39 val permission = AppOpsManager.opToPermission(opCode) ?: continue in ensureRuntimeAppOpMappingIsCorrect() constant
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/
DOnDeviceIntelligenceServiceTest.java102 final String permission = serviceInfo.permission; in validateSandboxedService() local

123