Home
last modified time | relevance | path

Searched refs:AdminType (Results 1 – 5 of 5) sorted by relevance

/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DEnterpriseComponent.kt56 val specifiesAdminType = annotation.admin != EnsureHasDelegate.AdminType.PRIMARY in ensureHasDelegate()
137 private fun getDeviceAdmin(adminType: EnsureHasDelegate.AdminType): RemotePolicyManager { in getDeviceAdmin()
139 EnsureHasDelegate.AdminType.DEVICE_OWNER -> deviceState.deviceOwner() in getDeviceAdmin()
140 EnsureHasDelegate.AdminType.PROFILE_OWNER -> deviceState.profileOwner() in getDeviceAdmin()
141 EnsureHasDelegate.AdminType.PRIMARY -> deviceState.dpc() in getDeviceAdmin()
172 fun ensureHasNoDelegate(adminType: EnsureHasNoDelegate.AdminType) { in ensureHasNoDelegate()
173 if (adminType == EnsureHasNoDelegate.AdminType.ANY) { in ensureHasNoDelegate()
180 EnsureHasNoDelegate.AdminType.PRIMARY -> primaryPolicyManager!! in ensureHasNoDelegate()
181 EnsureHasNoDelegate.AdminType.DEVICE_OWNER -> deviceState.deviceOwner() in ensureHasNoDelegate()
182 EnsureHasNoDelegate.AdminType.PROFILE_OWNER -> deviceState.profileOwner() in ensureHasNoDelegate()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/annotations/
DEnsureHasNoDelegate.java43 enum AdminType { enum
59 AdminType admin() default AdminType.ANY; in admin()
DEnsureHasDelegate.java58 enum AdminType { enum
72 AdminType admin(); in admin()
/cts/common/device-side/bedstead/modules/enterprise/src/test/kotlin/com/android/bedstead/enterprise/
DEnterpriseAnnotationExecutorTest.kt79 admin = EnsureHasDelegate.AdminType.DEVICE_OWNER,
90 admin = EnsureHasDelegate.AdminType.DEVICE_OWNER,
101 admin = EnsureHasDelegate.AdminType.DEVICE_OWNER,
114 admin = EnsureHasDelegate.AdminType.DEVICE_OWNER,
167 @EnsureHasDelegate(admin = EnsureHasDelegate.AdminType.PRIMARY, scopes = [])
174 @EnsureHasDelegate(admin = EnsureHasDelegate.AdminType.PRIMARY, scopes = [], isPrimary = true)
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DPolicy.java372 private static EnsureHasDelegate ensureHasDelegate(EnsureHasDelegate.AdminType admin,
498 EnsureHasDelegate.AdminType.PRIMARY, new String[]{scope},
774 EnsureHasDelegate.AdminType.PRIMARY, new String[]{},
785 EnsureHasDelegate.AdminType.PRIMARY, new String[]{scope},
795 EnsureHasDelegate.AdminType.PRIMARY, scopes, /* isPrimary= */ true);