Searched refs:ROLE_NAME (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Permission/tests/cts/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 103 private static final String ROLE_NAME = RoleManager.ROLE_BROWSER; field in RoleManagerTest 187 List<String> roleHolders = getRoleHolders(ROLE_NAME); in saveRoleHolder() 191 removeRoleHolder(ROLE_NAME, APP_PACKAGE_NAME); in saveRoleHolder() 198 removeRoleHolder(ROLE_NAME, APP_PACKAGE_NAME); in restoreRoleHolder() 201 addRoleHolder(ROLE_NAME, mRoleHolder); in restoreRoleHolder() 204 assertIsRoleHolder(ROLE_NAME, APP_PACKAGE_NAME, false); in restoreRoleHolder() 233 Intent intent = sRoleManager.createRequestRoleIntent(ROLE_NAME); in requestRoleIntentHasPermissionControllerPackage() 241 Intent intent = sRoleManager.createRequestRoleIntent(ROLE_NAME); in requestRoleIntentHasExtraRoleName() 243 assertThat(intent.getStringExtra(Intent.EXTRA_ROLE_NAME)).isEqualTo(ROLE_NAME); in requestRoleIntentHasExtraRoleName() 249 requestRole(ROLE_NAME); in requestRoleAndDenyThenIsNotRoleHolder() [all …]
|
D | RoleShellCommandTest.kt | 118 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME invalid") in addInvalidRoleHolderThenFails() 148 runShellCommandOrThrow("cmd role add-role-holder --user $userId $ROLE_NAME $packageName") in addRoleHolder() 152 runShellCommandOrThrow("cmd role remove-role-holder --user $userId $ROLE_NAME $packageName") in removeRoleHolder() 156 runShellCommandOrThrow("cmd role clear-role-holders --user $userId $ROLE_NAME") in clearRoleHolders() 161 runShellCommandOrThrow("cmd role get-role-holders --user $userId $ROLE_NAME") in getRoleHolders() 165 callWithShellPermissionIdentity { roleManager.getRoleHolders(ROLE_NAME) } in <lambda>() 196 private const val ROLE_NAME = RoleManager.ROLE_BROWSER constant
|
D | RoleControllerManagerTest.kt | 67 assertAppIsVisibleForRole(APP_PACKAGE_NAME, ROLE_NAME, true) in appIsVisibleForRole() 93 assertAppIsVisibleForRole("invalid", ROLE_NAME, false) in invalidAppIsNotVisibleForRole() 115 assumeTrue(isRoleVisible(ROLE_NAME)) in assumeRoleIsVisible() 161 private const val ROLE_NAME = RoleManager.ROLE_BROWSER constant
|
/packages/modules/Permission/tests/apex/java/com/android/role/persistence/ |
D | RolesPersistenceTest.kt | 51 private val defaultRoles = mapOf(ROLE_NAME to setOf(HOLDER_1, HOLDER_2)) 54 RolesState(VERSION_FALLBACK_MIGRATED, PACKAGE_HASH, defaultRoles, setOf(ROLE_NAME)) 135 private const val ROLE_NAME = "roleName" constant
|