/platform_testing/utils/permissions/src/com/android/permissionutils/ |
D | GrantPermissionUtil.java | 41 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/ |
D | common_utils.py | 55 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/ |
D | MainActivity.java | 58 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/ |
D | NotesRoleManagerSecondaryUserRule.kt | 18 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/ |
D | PermissionHelper.java | 235 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/ |
D | IAutoAppInfoSettingsHelper.java | 80 void setAppPermission(String permission, State state); in setAppPermission() argument
|
D | IAutoPrivacySettingsHelper.java | 198 void changePermissions(Permission permission); in changePermissions() argument
|
D | IAutoMediaHelper.java | 317 void grantRestrictedPermissionsForBTMedia(String permission); in grantRestrictedPermissionsForBTMedia() argument
|
/platform_testing/tests/functional/permission/ |
D | Android.bp | 15 "permission-helper",
|
/platform_testing/tests/automotive/snippets/phone/src/com/google/android/mobly/snippet/bundled/ |
D | MediaPlayerSnippet.java | 151 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/ |
D | NotesRoleUtil.kt | 18 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/ |
D | SettingsPrivacyHelperImpl.java | 280 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()
|
D | SettingsAppInfoHelperImpl.java | 257 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/ |
D | Android.bp | 23 name: "permission-utils-lib",
|
/platform_testing/libraries/system-helpers/permission-helper/ |
D | Android.bp | 22 name: "permission-helper",
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | AbstractStandardAppHelper2.java | 98 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()
|
D | AbstractStandardAppHelper.java | 107 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/ |
D | Android.bp | 29 "permission-helper",
|
/platform_testing/utils/shell-as/ |
D | Android.bp | 75 ":permission-list-normal", 80 "$(location :permission-list-normal) " +
|
/platform_testing/tests/microbenchmarks/uibench/src/com/android/uibench/microbenchmark/ |
D | UiBenchEditTextTypingMicrobenchmark.java | 98 uiAutomation.adoptShellPermissionIdentity(Manifest.permission.INJECT_EVENTS); in testEditTextTyping()
|
/platform_testing/libraries/automotive-helpers/media-center-app-helper/src/android/platform/helpers/ |
D | MediaCenterHelperImpl.java | 741 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/ |
D | logcat.txt | 31 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/ |
D | logcat.txt | 31 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…
|