Home
last modified time | relevance | path

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

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/utils/
DGrantRevokeTests.kt315 appOpName: String, in verifyAppOpState()
321 verify(aom).setUidMode(appOpName, TEST_UID, expectedMode) in verifyAppOpState()
323 verify(aom, never()).setUidMode(eq(appOpName), eq(TEST_UID), anyInt()) in verifyAppOpState()
358 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantOnePermTest()
384 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantTwoPermTest()
387 verifyAppOpState(appOpName = OP_2_NAME, expectAppOpSet = true, in grantTwoPermTest()
413 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = false) in grantNoAppOpPerm()
414 verifyAppOpState(appOpName = OP_2_NAME, expectAppOpSet = false) in grantNoAppOpPerm()
439 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_ALLOWED) in grantBgPermTest()
468 verifyAppOpState(appOpName = OP_NAME, expectAppOpSet = true, expectedMode = MODE_FOREGROUND) in grantBgAndFgPermTest()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt875 val appOpName = permissionToOp(foregroundPermName) ?: continue in <lambda>() constant
878 wasChanged = wasChanged || setOpMode(appOpName, uid, packageName, MODE_ALLOWED, in <lambda>()
883 val appOpName = permissionToOp(perm.name) ?: return false in <lambda>() constant
890 setOpMode(appOpName, uid, packageName, mode, appOpsManager) in <lambda>()
895 setOpMode(appOpName, uid, packageName, MODE_FOREGROUND, appOpsManager) in <lambda>()
898 wasChanged = setOpMode(appOpName, uid, packageName, MODE_ALLOWED, appOpsManager) in <lambda>()
939 val appOpName = permissionToOp(foregroundPermName) ?: return false in <lambda>() constant
940 wasChanged = wasChanged || setOpMode(appOpName, uid, packageName, in <lambda>()
945 val appOpName = permissionToOp(perm.name) ?: return false in <lambda>() constant
946 wasChanged = setOpMode(appOpName, uid, packageName, MODE_IGNORED, appOpsManager) in <lambda>()