Home
last modified time | relevance | path

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

/packages/apps/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt311 appOpName: String, in verifyAppOpState()
317 verify(aom).setUidMode(appOpName, TEST_UID, expectedMode) in verifyAppOpState()
319 verify(aom, never()).setUidMode(eq(appOpName), eq(TEST_UID), anyInt()) in verifyAppOpState()
354 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantOnePermTest()
380 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantTwoPermTest()
383 verifyAppOpState(appOpName = OP_2_NAME, expectAppOpSet = true, in grantTwoPermTest()
409 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = false) in grantNoAppOpPerm()
410 verifyAppOpState(appOpName = OP_2_NAME, expectAppOpSet = false) in grantNoAppOpPerm()
435 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantBgPermTest()
464 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_FOREGROUND) in grantBgAndFgPermTest()
[all …]
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt732 val appOpName = permissionToOp(foregroundPermName) ?: continue in <lambda>() constant
735 wasChanged = wasChanged || setOpMode(appOpName, uid, packageName, MODE_ALLOWED, in <lambda>()
740 val appOpName = permissionToOp(perm.name) ?: return false in <lambda>() constant
747 setOpMode(appOpName, uid, packageName, mode, appOpsManager) in <lambda>()
752 setOpMode(appOpName, uid, packageName, MODE_FOREGROUND, appOpsManager) in <lambda>()
755 wasChanged = setOpMode(appOpName, uid, packageName, MODE_ALLOWED, appOpsManager) in <lambda>()
796 val appOpName = permissionToOp(foregroundPermName) ?: return false in <lambda>() constant
797 wasChanged = wasChanged || setOpMode(appOpName, uid, packageName, in <lambda>()
802 val appOpName = permissionToOp(perm.name) ?: return false in <lambda>() constant
803 wasChanged = setOpMode(appOpName, uid, packageName, MODE_IGNORED, appOpsManager) in <lambda>()