Home
last modified time | relevance | path

Searched refs:permission (Results 1 – 23 of 23) sorted by relevance

/platform_testing/utils/permissions/src/com/android/permissionutils/
DGrantPermissionUtil.java41 for (String permission : missingPermissions) { in grantAllPermissions()
42 pm.grantRuntimePermission(pkgInfo.packageName, permission, myUserHandle()); in grantAllPermissions()
53 for (String permission : missingPermissions) { in dumpMissingPermissions()
54 Log.e(LOG_TAG, " " + permission); in dumpMissingPermissions()
72 for (String permission : info.requestedPermissions) { in getMissingPermissions()
75 pi = pm.getPermissionInfo(permission, 0); in getMissingPermissions()
85 int flag = pm.checkPermission(permission, info.packageName); in getMissingPermissions()
87 result.add(permission); in getMissingPermissions()
/platform_testing/tests/automotive/mobly_tests/utilities/
Dcommon_utils.py55 def grant_restricted_permission_on_hu(self, permission): argument
56 logging.info('Grant dangerous permission <%s> on HU', permission)
57 self.discoverer.mbs.grantRestrictedPermissionsForBTMedia(permission)
/platform_testing/tests/functional/testapks/permissiontestappmv1/src/com/android/permissontestappmv1/
DMainActivity.java58 Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) { in showContacts()
60 Manifest.permission.READ_CONTACTS)) { in showContacts()
63 Manifest.permission.READ_CONTACTS in showContacts()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DNotesRoleManagerSecondaryUserRule.kt18 import android.Manifest.permission.CREATE_USERS
19 import android.Manifest.permission.INTERACT_ACROSS_USERS
20 import android.Manifest.permission.INTERACT_ACROSS_USERS_FULL
21 import android.Manifest.permission.MANAGE_USERS
/platform_testing/libraries/system-helpers/permission-helper/src/android/system/helpers/
DPermissionHelper.java235 public Boolean verifyPermissionSettingStatus(String appName, String permission, in verifyPermissionSettingStatus() argument
245 if (permDesc.getChildren().get(1).getChildren().get(0).getText().equals(permission)) { in verifyPermissionSettingStatus()
274 for (String permission : allPermittedDangerousPermsList) { in verifyDefaultDangerousPermissionGranted()
276 String.format("%s - > %s hasn't been granted yet", packageName, permission)); in verifyDefaultDangerousPermissionGranted()
318 public void togglePermissionSetting(String appName, String permission, Boolean toBeSet) in togglePermissionSetting() argument
325 if (obj.hasObject(By.res("android:id/title").text(permission))) { in togglePermissionSetting()
398 for (String permission : defaultGranted) { in ensureAppHasDefaultPermissions()
399 grantOrRevokePermissionViaAdb(packageName, permission, PermissionOp.GRANT); in ensureAppHasDefaultPermissions()
402 for (String permission : defaultDenied) { in ensureAppHasDefaultPermissions()
403 grantOrRevokePermissionViaAdb(packageName, permission, PermissionOp.REVOKE); in ensureAppHasDefaultPermissions()
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoAppInfoSettingsHelper.java80 void setAppPermission(String permission, State state); in setAppPermission() argument
DIAutoPrivacySettingsHelper.java198 void changePermissions(Permission permission); in changePermissions() argument
DIAutoMediaHelper.java317 void grantRestrictedPermissionsForBTMedia(String permission); in grantRestrictedPermissionsForBTMedia() argument
/platform_testing/tests/functional/permission/
DAndroid.bp15 "permission-helper",
/platform_testing/tests/automotive/snippets/phone/src/com/google/android/mobly/snippet/bundled/
DMediaPlayerSnippet.java151 public void grantRestrictedPermissionsForBTMedia(String permission) { in grantRestrictedPermissionsForBTMedia() argument
152 mAutoMediaHelper.get().grantRestrictedPermissionsForBTMedia(permission); in grantRestrictedPermissionsForBTMedia()
/platform_testing/libraries/notes-role-test-helper/src/android/platform/helpers/notesrole/
DNotesRoleUtil.kt18 import android.Manifest.permission.INTERACT_ACROSS_USERS
19 import android.Manifest.permission.MANAGE_ROLE_HOLDERS
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsPrivacyHelperImpl.java280 public void changePermissions(Permission permission) { in changePermissions() argument
281 if (permission == Permission.ALLOW) { in changePermissions()
283 } else if (permission == Permission.ALLOW_ALL_THE_TIME) { in changePermissions()
285 } else if (permission == Permission.ALLOW_WHILE_USING_APP) { in changePermissions()
DSettingsAppInfoHelperImpl.java257 public void setAppPermission(String permission, State state) { in setAppPermission() argument
269 String.format("Scroll on %s permission to find %s", permission, state)); in setAppPermission()
272 BySelector permission_selector = By.text(permission); in setAppPermission()
281 String.format("Scroll on %s permission to find %s", permission, state)); in setAppPermission()
283 throw new RuntimeException("Cannot find the permission_selector" + permission); in setAppPermission()
/platform_testing/utils/permissions/
DAndroid.bp23 name: "permission-utils-lib",
/platform_testing/libraries/system-helpers/permission-helper/
DAndroid.bp22 name: "permission-helper",
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java98 private static final String NOTIF_PERM = android.Manifest.permission.POST_NOTIFICATIONS;
655 android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in maybeGrantNotificationPermission()
656 android.Manifest.permission.INTERACT_ACROSS_USERS); in maybeGrantNotificationPermission()
681 android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in restoreNotificationPermissionState()
682 android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, in restoreNotificationPermissionState()
683 android.Manifest.permission.INTERACT_ACROSS_USERS); in restoreNotificationPermissionState()
DAbstractStandardAppHelper.java107 private static final String NOTIF_PERM = android.Manifest.permission.POST_NOTIFICATIONS;
692 android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in maybeGrantNotificationPermission()
693 android.Manifest.permission.INTERACT_ACROSS_USERS); in maybeGrantNotificationPermission()
718 android.Manifest.permission.GRANT_RUNTIME_PERMISSIONS, in restoreNotificationPermissionState()
719 android.Manifest.permission.REVOKE_RUNTIME_PERMISSIONS, in restoreNotificationPermissionState()
720 android.Manifest.permission.INTERACT_ACROSS_USERS); in restoreNotificationPermissionState()
/platform_testing/libraries/system-helpers/
DAndroid.bp29 "permission-helper",
/platform_testing/utils/shell-as/
DAndroid.bp75 ":permission-list-normal",
80 "$(location :permission-list-normal) " +
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/
DUiBenchEditTextTypingMicrobenchmark.java98 uiAutomation.adoptShellPermissionIdentity(Manifest.permission.INJECT_EVENTS); in testEditTextTyping()
/platform_testing/libraries/automotive-helpers/media-center-app-helper/src/android/platform/helpers/
DMediaCenterHelperImpl.java741 public void grantRestrictedPermissionsForBTMedia(String permission) { in grantRestrictedPermissionsForBTMedia() argument
742 if (permission == null || permission.length() < 1) { in grantRestrictedPermissionsForBTMedia()
745 mUiAutomation.adoptShellPermissionIdentity(permission); in grantRestrictedPermissionsForBTMedia()
/platform_testing/libraries/compatibility-common-util/tests/assets/
Dlogcat.txt31 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
65 06-15 19:57:35.130 26201 26228 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
302 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
/platform_testing/libraries/sts-common-util/host-side/tests/res/
Dlogcat.txt31 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
66 06-15 19:57:35.130 26201 26228 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…
306 06-15 19:57:33.607 12736 12761 D PermissionCache: checking android.permission.MODIFY_AUDIO_SETTINGS…