/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/ |
D | RemoteDpcTest.java | 91 assertThat(RemoteDpc.deviceOwner()).isNull(); in deviceOwner_noDeviceOwner_returnsNull() 104 assertThat(RemoteDpc.deviceOwner()).isNull(); in deviceOwner_nonRemoteDpcDeviceOwner_returnsNull() 113 assertThat(RemoteDpc.deviceOwner()).isNotNull(); in deviceOwner_remoteDpcDeviceOwner_returnsInstance() 119 assertThat(RemoteDpc.profileOwner()).isNull(); in profileOwner_noProfileOwner_returnsNull() 129 assertThat(RemoteDpc.profileOwner()).isNull(); in profileOwner_nonRemoteDpcProfileOwner_returnsNull() 138 assertThat(RemoteDpc.profileOwner()).isNotNull(); in profileOwner_remoteDpcProfileOwner_returnsInstance() 143 assertThrows(NullPointerException.class, () -> RemoteDpc.profileOwner((UserHandle) null)); in profileOwner_userHandle_null_throwsException() 156 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_noProfileOwner_returnsNull() 176 assertThat(RemoteDpc.profileOwner(profile.userHandle())).isNull(); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull() 192 RemoteDpc.setAsProfileOwner(profile); in profileOwner_userHandle_remoteDpcProfileOwner_returnsInstance() [all …]
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDpc.java | 48 public class RemoteDpc extends RemotePolicyManager { class 67 public static RemoteDpc deviceOwner() { in deviceOwner() 76 return new RemoteDpc(remoteDpcTestApp, deviceOwner); in deviceOwner() 85 public static RemoteDpc profileOwner() { in profileOwner() 95 public static RemoteDpc profileOwner(UserHandle profile) { in profileOwner() 109 public static RemoteDpc profileOwner(UserReference profile) { in profileOwner() 122 return new RemoteDpc(remoteDpcTestApp, profileOwner); in profileOwner() 132 public static RemoteDpc any() { in any() 143 public static RemoteDpc any(UserHandle user) { in any() 158 public static RemoteDpc any(UserReference user) { in any() [all …]
|
D | RemoteDpcUsingParentInstance.java | 28 public final class RemoteDpcUsingParentInstance extends RemoteDpc { 30 public RemoteDpcUsingParentInstance(RemoteDpc remoteDpc) { in RemoteDpcUsingParentInstance()
|
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/ |
D | ProfileOwnersComponent.kt | 30 import com.android.bedstead.remotedpc.RemoteDpc in <lambda>() 101 .isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in <lambda>() 113 if (RemoteDpc.matchesRemoteDpcQuery(currentProfileOwner, dpcQueryMutable)) { in <lambda>() 132 RemoteDpc.setAsProfileOwner(user, resolvedDpcTestApp) in <lambda>() 136 RemoteDpc.setAsProfileOwner(user, dpcQueryMutable).devicePolicyController() in <lambda>() 156 RemoteDpc.forDevicePolicyController(profileOwners[user]) in <lambda>() 159 RemoteDpc.forDevicePolicyController(profileOwners[user]) in <lambda>() 163 val profileOwner: RemoteDpc = deviceState.profileOwner(user) in <lambda>() 197 fun profileOwner(onUser: UserReference): RemoteDpc { in <lambda>() 203 check(RemoteDpc.isRemoteDpc(profileOwner)) { in <lambda>() [all …]
|
D | DeviceOwnerComponent.kt | 36 import com.android.bedstead.remotedpc.RemoteDpc 104 .isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in ensureHasDeviceOwner() 129 if (RemoteDpc.matchesRemoteDpcQuery(currentDeviceOwner, dpcQueryMutable)) { in ensureHasDeviceOwner() 182 deviceOwner = RemoteDpc.setAsDeviceOwner(dpcQueryMutable, in ensureHasDeviceOwner() 187 RemoteDpc.forDevicePolicyController(deviceOwner) in ensureHasDeviceOwner() 200 RemoteDpc.forDevicePolicyController(deviceOwner) in ensureHasDeviceOwner() 217 resolvedDpcTestApp = RemoteDpc in ensureHasDeviceOwner() 302 fun deviceOwner(): RemoteDpc { in deviceOwner() 307 check(RemoteDpc.isRemoteDpc(deviceOwner)) { in deviceOwner() 312 return RemoteDpc.forDevicePolicyController(deviceOwner) in deviceOwner()
|
D | EnterpriseComponent.kt | 33 import com.android.bedstead.remotedpc.RemoteDpc 154 if (RemoteDpc.isRemoteDpc(profileOwner)) { in dpc() 155 return RemoteDpc.forDevicePolicyController(profileOwner) in dpc() 159 if (RemoteDpc.isRemoteDpc(it)) { in dpc() 160 return RemoteDpc.forDevicePolicyController(it) in dpc()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AdbProvisioningTest.java | 33 import com.android.bedstead.remotedpc.RemoteDpc; 49 RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX, 52 .wherePackageName().isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) 69 RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in setDeviceOwnerUsingAdb_isLogged() 96 RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in setProfileOwnerUsingAdb_isLogged()
|
D | ManagedProfileTest.java | 39 import com.android.bedstead.remotedpc.RemoteDpc; 65 try (RemoteDpc dpc = RemoteDpc.createWorkProfile(); in startActivityInManagedProfile_activityStarts()
|
D | DeviceOwnerTest.kt | 46 import com.android.bedstead.remotedpc.RemoteDpc in <lambda>() 343 RemoteDpc.setAsDeviceOwner() in <lambda>() 363 RemoteDpc.setAsDeviceOwner() in <lambda>() 443 RemoteDpc.setAsDeviceOwner().use { in <lambda>() 481 .wherePackageName().isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in <lambda>()
|
D | ManagedSubscriptionsPolicyTest.java | 54 import com.android.bedstead.remotedpc.RemoteDpc; 154 try (RemoteDpc dpc = RemoteDpc.createWorkProfile()) { in setManagedSubscriptionsPolicy_policySet_oemDialerAndSmsAppInstalledInWorkProfile()
|
D | BluetoothTest.java | 81 import com.android.bedstead.remotedpc.RemoteDpc; 284 try (RemoteDpc dpc = RemoteDpc.createWorkProfile()) { in newManagedProfile_disallowBluetoothSharingIsSet() 295 try (RemoteDpc dpc = RemoteDpc.createWorkProfile()) { in clearDisallowBluetoothSharing_newManagedProfile_disallowBluetoothSharingIsNotSet()
|
D | ProfileOwnerTest.kt | 34 import com.android.bedstead.remotedpc.RemoteDpc in <lambda>() 300 RemoteDpc.setAsProfileOwner().use { in <lambda>()
|
D | CrossProfileSharingTest.java | 60 import com.android.bedstead.remotedpc.RemoteDpc; 340 RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE); in setSharingIntoProfileEnabled()
|
D | ProvisioningTest.kt | 68 import com.android.bedstead.remotedpc.RemoteDpc in <lambda>() 1296 val dpc = RemoteDpc.setAsProfileOwner(deviceState.secondaryUser()) in <lambda>() 1324 RemoteDpc.setAsProfileOwner(deviceState.workProfile()) in <lambda>() 1335 RemoteDpc.forDevicePolicyController( in <lambda>() 1365 RemoteDpc.forDevicePolicyController( in <lambda>()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | DeviceStateTester.java | 22 import com.android.bedstead.remotedpc.RemoteDpc; 101 public RemoteDpc profileOwner() {
|
D | TestAppsComponent.kt | 28 import com.android.bedstead.remotedpc.RemoteDpc 189 fun addRemoteDpcTestApp(key: String, remoteDpc: RemoteDpc) { in addRemoteDpcTestApp()
|
D | DeviceState.java | 135 import com.android.bedstead.remotedpc.RemoteDpc; 1913 public RemoteDpc deviceOwner() { 1924 public RemoteDpc profileOwner() { 1935 public RemoteDpc profileOwner(UserType onUser) { 1950 public RemoteDpc profileOwner(UserReference onUser) {
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DeviceOwnerTest.java | 29 import com.android.bedstead.remotedpc.RemoteDpc; 47 RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX,
|
D | ProfileOwnerTest.java | 38 import com.android.bedstead.remotedpc.RemoteDpc; 56 RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX,
|
/cts/common/device-side/bedstead/modules/enterprise/src/test/kotlin/com/android/bedstead/enterprise/ |
D | EnterpriseAnnotationExecutorTest.kt | 62 import com.android.bedstead.remotedpc.RemoteDpc 95 assertThat(sDeviceState.dpc()).isInstanceOf(RemoteDpc::class.java) in ensureHasNonPrimaryDelegateAnnotation_dpcReturnsDpc() 154 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnotation_targetingV28_remoteDpcTargetsV28() 161 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnoion_targetingGreaterThanOrEqualToV30_remoteDpcTargetsV30() 169 assertThat(sDeviceState.dpc()).isInstanceOf(RemoteDpc::class.java) in ensureHasDelegateAnnotation_primaryAdminWithoutReplace_dpcReturnsDpc() 214 .isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in ensureHasDeviceOwnerAnnotation_noQuerySpecified_setsDefaultRemoteDpc() 232 ).isEqualTo(RemoteDpc.REMOTE_DPC_APP_PACKAGE_NAME_OR_PREFIX) in ensureHasProfileOwnerAnnotation_noQuerySpecified_setsDefaultRemoteDpc() 241 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getProfileOwner()) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28()
|