Home
last modified time | relevance | path

Searched refs:roles (Results 1 – 13 of 13) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/roles/
DRoleContext.java17 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()
DRoles.java17 package com.android.bedstead.nene.roles;
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/
DTestApisTest.java182 Truth.assertThat(TestApis.roles()).isNotNull(); in roles_returnsInstance()
187 Truth.assertThat(TestApis.roles()).isEqualTo(TestApis.roles()); in roles_multipleCalls_returnsSameInstance()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTestApis.kt41 import com.android.bedstead.nene.roles.Roles
131 fun roles(): Roles = Roles.sInstance method
/cts/tests/app/FgsTest/src/android/app/cts/fgstest/
DActivityManagerForegroundServiceTypeTest.java596 final String[] roles = Arrays.stream(permissions) in grantPermissions() local
615 if (!ArrayUtils.isEmpty(roles)) { in grantPermissions()
616 for (String role: roles) { in grantPermissions()
633 final String[] roles = Arrays.stream(permissions) in resetPermissions() local
642 if (!ArrayUtils.isEmpty(roles)) { in resetPermissions()
643 for (String role: roles) { in resetPermissions()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java71 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()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DDeviceIdentifiersTest.java29 import com.android.bedstead.nene.roles.RoleContext;
DPersonalAppsSuspensionTest.java44 import com.android.bedstead.nene.roles.RoleContext;
DQuietModeTest.java52 import com.android.bedstead.nene.roles.RoleContext;
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.kt38 import com.android.bedstead.nene.roles.RoleContext in <lambda>()
551 TestApis.roles().setBypassingRoleQualification(true) in <lambda>()
/cts/tests/devicepolicy/telephony/src/android/devicepolicy/cts/telephony/
DWorkProfileTelephonyTest.java82 import com.android.bedstead.nene.roles.RoleContext;
/cts/common/device-side/bedstead/harrier/src/test/java/com/android/bedstead/harrier/
DDeviceStateTest.java1044 assertThat(TestApis.roles().getRoleHolders(RoleManager.ROLE_BROWSER)).isNotEmpty(); in requireHasDefaultBrowser_onDifferentUser_defaultContentSuggestionsServiceIsEnabled()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java831 TestApis.roles().hasBrowserRoleHolderAsUser(user),