Home
last modified time | relevance | path

Searched refs:checkPermissionResult (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Permission/tests/cts/permissionmultidevice/src/android/permissionmultidevice/cts/
DDeviceAwarePermissionGrantTest.kt245 val checkPermissionResult = in <lambda>() constant
252 Assert.assertEquals(PackageManager.PERMISSION_GRANTED, checkPermissionResult) in <lambda>()
254 Assert.assertEquals(PackageManager.PERMISSION_DENIED, checkPermissionResult) in <lambda>()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBaseUsePermissionTest.kt1404 val checkPermissionResult = packageManager.checkPermission(permissionName, APP_PACKAGE_NAME) in <lambda>() constant
1406 "Invalid permission check result: $checkPermissionResult", in <lambda>()
1407 checkPermissionResult == PackageManager.PERMISSION_GRANTED || in <lambda>()
1408 checkPermissionResult == PackageManager.PERMISSION_DENIED in <lambda>()
1410 if (!expectPermission && checkPermissionResult == PackageManager.PERMISSION_GRANTED) { in <lambda>()
1416 if (expectPermission && checkPermissionResult == PackageManager.PERMISSION_DENIED) { in <lambda>()