/cts/tests/tests/security/testdata/dynamicpermissiontestattackerapp/src/android/security/cts/dynamicpermissiontestattackerapp/ |
D | RemovePermissionService.kt | 25 override fun removePermission(permissionName: String) { in removePermission() 26 packageManager.removePermission(permissionName) in removePermission()
|
D | IRemovePermissionService.aidl | 20 void removePermission(in String permissionName); in removePermission() argument
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | SessionParamsPermissionStateTest.kt | 198 permissionName: String, in <lambda>() 200 ) = setPermissionState(permissionName, PERMISSION_STATE_GRANTED) in <lambda>() 201 .setPermissionState(permissionName, PERMISSION_STATE_DENIED) in <lambda>() 202 .setPermissionState(permissionName, PERMISSION_STATE_DEFAULT) in <lambda>() 203 .setPermissionState(permissionName, state) in <lambda>()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | PackageDeviceInfo.java | 289 final String permissionName = pi.name; in writePermissionsDetails() local 290 store.addResult(PERMISSION_NAME, permissionName); in writePermissionsDetails() 310 final boolean isPlatformPermission = systemPermissions.contains(permissionName); in writePermissionsDetails() 312 final boolean isAndroidPermission = isAndroidPermission(permissionName); in writePermissionsDetails() 370 private static boolean isAndroidPermission(String permissionName) { in isAndroidPermission() argument 371 if(permissionName.startsWith(PLATFORM_ANDROID_PERMISSION_PREFIX) in isAndroidPermission() 372 || permissionName.startsWith(PLATFORM_MANIFEST_PERMISSION_PREFIX) in isAndroidPermission() 373 || ADDITIONAL_ANDROID_PERMISSIONS.contains(permissionName)) in isAndroidPermission()
|
D | PermissionDeviceInfo.java | 80 String permissionName = line.substring("Permission: ".length()); in collectSignaturePermissionAllowlist() local 82 store.addResult(NAME, permissionName); in collectSignaturePermissionAllowlist()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | AdbPackageParser26.java | 132 String permissionName = trimmed[0]; in parseInstallPermissions() local 135 pkg.mInstallPermissions.add(permissionName); in parseInstallPermissions() 174 String permissionName = trimmed[0]; in parseUser() local 177 userPackage.mGrantedPermissions.add(permissionName); in parseUser()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/ |
D | AppOps.java | 50 public void setPermission(String permissionName, AppOpsMode mode) { in setPermission() argument 51 set(AppOpsManager.permissionToOp(permissionName), mode); in setPermission()
|
/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | VirtualDevicePermissionTest.java | 275 private int checkPermissionStateOnDevice(String permissionName, int displayId) { in checkPermissionStateOnDevice() argument 277 return activity.checkSelfPermission(permissionName); in checkPermissionStateOnDevice() 285 private void requestPermissionOnDevice(String permissionName, int displayId) { in requestPermissionOnDevice() argument 288 .putExtra(Intent.EXTRA_PERMISSION_NAME, permissionName) in requestPermissionOnDevice()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | RolePermissionOverrideTest.kt | 129 permissionName: String, in assertPermissionState() 132 assertThat(packageManager.checkPermission(permissionName, packageName)).isEqualTo( in assertPermissionState()
|
D | BasePermissionUiTest.kt | 270 protected fun assertAppHasPermission(permissionName: String, expectPermission: Boolean) { in <lambda>() 277 packageManager.checkPermission(permissionName, APP_PACKAGE_NAME) in <lambda>()
|
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/ |
D | BaseBlobStoreHostTest.java | 188 protected void revokePermission(String pkgName, String permissionName, int userId) in revokePermission() argument 191 userId, pkgName, permissionName); in revokePermission()
|
/cts/tests/tests/hibernation/src/android/hibernation/cts/ |
D | AutoRevokeTest.kt | 806 fun assertPermission(packageName: String, permissionName: String, state: Int) { in assertPermission() 807 assertThat(permissionName, containsString("permission.")) in assertPermission() 815 .checkPermission(permissionName, packageName))) in assertPermission()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 1277 String permissionName = "android.permission.INTERNET"; in testGetPermissionInfo() local 1278 PermissionInfo permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 1279 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1283 permissionName = "android.permission.RECORD_AUDIO"; in testGetPermissionInfo() 1284 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 1285 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1290 permissionName = "android.permission.MODIFY_PHONE_STATE"; in testGetPermissionInfo() 1291 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 1292 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1296 permissionName = "android.permission.SYSTEM_ALERT_WINDOW"; in testGetPermissionInfo() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 1188 private static boolean isPermissionGrantedInPackageInfo(String permissionName) in isPermissionGrantedInPackageInfo() argument 1194 permissionName); in isPermissionGrantedInPackageInfo()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BaseDefaultPermissionGrantPolicyTest.java | 98 public abstract boolean isSplitPermissionNameViolation(String permissionName); in isSplitPermissionNameViolation() argument
|