Searched refs:roles (Results 1 – 13 of 13) sorted by relevance
17 package com.android.bedstead.nene.roles;43 mPreviousRoleHolders = TestApis.roles().getRoleHoldersAsUser(user, role); in RoleContext()52 Set<String> currentRoleHolders = TestApis.roles().getRoleHoldersAsUser(mUser, mRole); in close()
17 package com.android.bedstead.nene.roles;
182 Truth.assertThat(TestApis.roles()).isNotNull(); in roles_returnsInstance()187 Truth.assertThat(TestApis.roles()).isEqualTo(TestApis.roles()); in roles_multipleCalls_returnsSameInstance()
41 import com.android.bedstead.nene.roles.Roles131 fun roles(): Roles = Roles.sInstance method
596 final String[] roles = Arrays.stream(permissions) in grantPermissions() local615 if (!ArrayUtils.isEmpty(roles)) { in grantPermissions()616 for (String role: roles) { in grantPermissions()633 final String[] roles = Arrays.stream(permissions) in resetPermissions() local642 if (!ArrayUtils.isEmpty(roles)) { in resetPermissions()643 for (String role: roles) { in resetPermissions()
71 import com.android.bedstead.nene.roles.RoleContext;1031 if (!TestApis.roles().getRoleHoldersAsUser(user, role).contains(packageName())) { in setAsRoleHolder()1083 TestApis.roles().setBypassingRoleQualification(false); in removeAsRoleHolder()1090 if (TestApis.roles().getRoleHoldersAsUser(user, role).contains(packageName())) { in removeAsRoleHolder()1224 return TestApis.roles().getRoleHolders(role).contains(this.mPackageName); in isRoleHolder()
29 import com.android.bedstead.nene.roles.RoleContext;
44 import com.android.bedstead.nene.roles.RoleContext;
52 import com.android.bedstead.nene.roles.RoleContext;
38 import com.android.bedstead.nene.roles.RoleContext in <lambda>()551 TestApis.roles().setBypassingRoleQualification(true) in <lambda>()
82 import com.android.bedstead.nene.roles.RoleContext;
1044 assertThat(TestApis.roles().getRoleHolders(RoleManager.ROLE_BROWSER)).isNotEmpty(); in requireHasDefaultBrowser_onDifferentUser_defaultContentSuggestionsServiceIsEnabled()
831 TestApis.roles().hasBrowserRoleHolderAsUser(user),