Home
last modified time | relevance | path

Searched refs:remoteDpc (Results 1 – 6 of 6) sorted by relevance

/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpcUsingParentInstance.java30 public RemoteDpcUsingParentInstance(RemoteDpc remoteDpc) { in RemoteDpcUsingParentInstance() argument
31 super(remoteDpc.testApp(), remoteDpc.devicePolicyController()); in RemoteDpcUsingParentInstance()
DRemoteDpc.java353 RemoteDpc remoteDpc = new RemoteDpc( in setAsProfileOwner() local
358 remoteDpc.devicePolicyManager() in setAsProfileOwner()
359 .clearUserRestriction(remoteDpc.componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in setAsProfileOwner()
361 return remoteDpc; in setAsProfileOwner()
465 RemoteDpc remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicyController); in matchesRemoteDpcQuery() local
466 return dpcQuery.matches(remoteDpc.testApp()); in matchesRemoteDpcQuery()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCrossProfileSharingTest.java340 RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE); in setSharingIntoProfileEnabled() local
342 Context remoteCtx = TestApis.context().androidContextAsUser(remoteDpc.user()); in setSharingIntoProfileEnabled()
348 remoteDpc.devicePolicyManager().clearUserRestriction( in setSharingIntoProfileEnabled()
349 remoteDpc.componentName(), DISALLOW_SHARE_INTO_MANAGED_PROFILE); in setSharingIntoProfileEnabled()
351 remoteDpc.devicePolicyManager().addUserRestriction( in setSharingIntoProfileEnabled()
352 remoteDpc.componentName(), DISALLOW_SHARE_INTO_MANAGED_PROFILE); in setSharingIntoProfileEnabled()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java799 RemoteDpc remoteDpc = RemoteDpc.setAsProfileOwner(profile); in getParentProfileInstance_returnsUsableInstance() local
803 remoteDpc.devicePolicyManager() in getParentProfileInstance_returnsUsableInstance()
804 .getParentProfileInstance(remoteDpc.componentName()) in getParentProfileInstance_returnsUsableInstance()
805 .getPasswordQuality(remoteDpc.componentName()); in getParentProfileInstance_returnsUsableInstance()
809 remoteDpc.devicePolicyManager() in getParentProfileInstance_returnsUsableInstance()
810 .getParentProfileInstance(remoteDpc.componentName()) in getParentProfileInstance_returnsUsableInstance()
811 .getParentProfileInstance(remoteDpc.componentName())); in getParentProfileInstance_returnsUsableInstance()
/cts/common/device-side/bedstead/modules/enterprise/src/test/kotlin/com/android/bedstead/enterprise/
DEnterpriseAnnotationExecutorTest.kt154 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnotation_targetingV28_remoteDpcTargetsV28() constant
155 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isEqualTo(28) in ensureHasDeviceOwnerAnnotation_targetingV28_remoteDpcTargetsV28()
161 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnoion_targetingGreaterThanOrEqualToV30_remoteDpcTargetsV30() constant
162 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isAtLeast(30) in ensureHasDeviceOwnerAnnoion_targetingGreaterThanOrEqualToV30_remoteDpcTargetsV30()
241 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getProfileOwner()) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28() constant
242 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isEqualTo(28) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DTestAppsComponent.kt189 fun addRemoteDpcTestApp(key: String, remoteDpc: RemoteDpc) { in addRemoteDpcTestApp()
190 testApps[key] = remoteDpc in addRemoteDpcTestApp()