summaryrefslogtreecommitdiff
path: root/PermissionController/role-controller/java
diff options
context:
space:
mode:
author Richard MacGregor <rmacgregor@google.com> 2024-12-10 20:56:24 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-12-10 20:56:24 +0000
commitd63f781a4236f33f7737624005ff5e570371a4d7 (patch)
treefe0e02e80d07c15a42c255673b0f27f85bd9e840 /PermissionController/role-controller/java
parent20554cef11bfcee2125e3372f2b680a0274dad64 (diff)
parent01f6f18575f7986878d251a57abfeef40e4d5ff9 (diff)
Merge "Followup fixes for RoleManager test api" into main
Diffstat (limited to 'PermissionController/role-controller/java')
-rw-r--r--PermissionController/role-controller/java/com/android/role/controller/behavior/ReservedForTestingProfileGroupExclusivityRoleBehavior.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/PermissionController/role-controller/java/com/android/role/controller/behavior/ReservedForTestingProfileGroupExclusivityRoleBehavior.java b/PermissionController/role-controller/java/com/android/role/controller/behavior/ReservedForTestingProfileGroupExclusivityRoleBehavior.java
index a9be00806..91b4e1531 100644
--- a/PermissionController/role-controller/java/com/android/role/controller/behavior/ReservedForTestingProfileGroupExclusivityRoleBehavior.java
+++ b/PermissionController/role-controller/java/com/android/role/controller/behavior/ReservedForTestingProfileGroupExclusivityRoleBehavior.java
@@ -37,8 +37,8 @@ public class ReservedForTestingProfileGroupExclusivityRoleBehavior implements Ro
@NonNull Context context) {
if (RoleFlags.isProfileGroupExclusivityAvailable()) {
Context userContext = UserUtils.getUserContext(context, user);
- RoleManager roleManager = userContext.getSystemService(RoleManager.class);
- return roleManager.getDefaultHoldersForTest(role.getName());
+ RoleManager userRoleManager = userContext.getSystemService(RoleManager.class);
+ return userRoleManager.getDefaultHoldersForTest(role.getName());
} else {
return null;
}
@@ -49,8 +49,8 @@ public class ReservedForTestingProfileGroupExclusivityRoleBehavior implements Ro
@NonNull Context context) {
if (RoleFlags.isProfileGroupExclusivityAvailable()) {
Context userContext = UserUtils.getUserContext(context, user);
- RoleManager roleManager = userContext.getSystemService(RoleManager.class);
- return roleManager.isRoleVisibleForTest(role.getName());
+ RoleManager userRoleManager = userContext.getSystemService(RoleManager.class);
+ return userRoleManager.isRoleVisibleForTest(role.getName());
} else {
return false;
}