Searched refs:sRoleManager (Results 1 – 1 of 1) sorted by relevance
102 private static final RoleManager sRoleManager = sContext.getSystemService(RoleManager.class); field in RoleManagerTest152 Intent intent = sRoleManager.createRequestRoleIntent(ROLE_NAME); in requestRoleIntentHasPermissionControllerPackage()160 Intent intent = sRoleManager.createRequestRoleIntent(ROLE_NAME); in requestRoleIntentHasExtraRoleName()370 assertThat(sRoleManager.isRoleAvailable(ROLE_NAME)).isTrue(); in roleIsAvailable()464 runWithShellPermissionIdentity(() -> sRoleManager.addOnRoleHoldersChangedListenerAsUser( in assertOnRoleHoldersChangedListenerIsNotified()472 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user)); in assertOnRoleHoldersChangedListenerIsNotified()485 sRoleManager.addOnRoleHoldersChangedListenerAsUser(sContext.getMainExecutor(), future, in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified()487 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified()503 () -> sRoleManager.setRoleNamesFromController(Collections.emptyList()), in setRoleNamesFromControllerShouldRequireManageRolesFromControllerPermission()510 () -> sRoleManager.addRoleHolderFromController(ROLE_NAME, APP_PACKAGE_NAME), in addRoleHolderFromControllerShouldRequireManageRolesFromControllerPermission()[all …]