Home
last modified time | relevance | path

Searched refs:PERMISSION_NAME (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DActivityPermissionRationaleTest.java55 private static final String PERMISSION_NAME = Manifest.permission.READ_CONTACTS; field in ActivityPermissionRationaleTest
68 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flag, flag); in setUp()
93 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in clearData()
99 sUiAuto.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME); in permissionGrantedNoRationale()
107 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in policyFixedNoRationale()
115 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userFixedNoRationale()
122 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, in notUserSetNoRationale()
131 PermissionUtils.setPermissionFlags(PACKAGE_NAME, PERMISSION_NAME, flags, flags); in userSetNeedRationale()
DPermissionUpdateListenerTest.java63 private static final String PERMISSION_NAME = "android.permission.RECORD_AUDIO"; field in PermissionUpdateListenerTest
113 mPackageManager.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, in testGrantPermissionInvokesOldCallback()
149 packageManager.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, in testGrantPermissionNotifyListener()
187 packageManager.grantRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, in testRevokePermissionNotifyListener()
190 packageManager.revokeRuntimePermission(PACKAGE_NAME, PERMISSION_NAME, in testRevokePermissionNotifyListener()
229 packageManager.updatePermissionFlags(PERMISSION_NAME, PACKAGE_NAME, flag, flag, in testUpdatePermissionFlagsNotifyListener()
/packages/modules/Permission/tests/cts/permission/AppThatRunsRationaleTests/src/android/permission/cts/appthatrunsrationaletests/
DTestActivity.java27 private static final String PERMISSION_NAME = Manifest.permission.READ_CONTACTS; field in TestActivity
35 boolean result = shouldShowRequestPermissionRationale(PERMISSION_NAME); in onCreate()
/packages/modules/Connectivity/service/src/com/android/server/
DTestNetworkService.java395 private static final String PERMISSION_NAME = field in TestNetworkService
399 context.enforceCallingOrSelfPermission(PERMISSION_NAME, "TestNetworkService"); in enforceTestNetworkPermissions()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java115 private static final String PERMISSION_NAME = PREFIX + "PERMISSION_NAME"; field in BundleHelper
335 bundle.putString(PERMISSION_NAME, permission); in forSelfRevokePermissionRequest()
348 return bundle.getString(PERMISSION_NAME); in toPermissionToSelfRevoke()