Searched refs:remoteDpc (Results 1 – 6 of 6) sorted by relevance
30 public RemoteDpcUsingParentInstance(RemoteDpc remoteDpc) { in RemoteDpcUsingParentInstance() argument31 super(remoteDpc.testApp(), remoteDpc.devicePolicyController()); in RemoteDpcUsingParentInstance()
353 RemoteDpc remoteDpc = new RemoteDpc( in setAsProfileOwner() local358 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() local466 return dpcQuery.matches(remoteDpc.testApp()); in matchesRemoteDpcQuery()
340 RemoteDpc remoteDpc = sDeviceState.profileOwner(WORK_PROFILE); in setSharingIntoProfileEnabled() local342 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()
799 RemoteDpc remoteDpc = RemoteDpc.setAsProfileOwner(profile); in getParentProfileInstance_returnsUsableInstance() local803 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()
154 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnotation_targetingV28_remoteDpcTargetsV28() constant155 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isEqualTo(28) in ensureHasDeviceOwnerAnnotation_targetingV28_remoteDpcTargetsV28()161 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getDeviceOwner()) in ensureHasDeviceOwnerAnnoion_targetingGreaterThanOrEqualToV30_remoteDpcTargetsV30() constant162 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isAtLeast(30) in ensureHasDeviceOwnerAnnoion_targetingGreaterThanOrEqualToV30_remoteDpcTargetsV30()241 val remoteDpc = RemoteDpc.forDevicePolicyController(devicePolicy().getProfileOwner()) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28() constant242 assertThat(remoteDpc.testApp().pkg().targetSdkVersion()).isEqualTo(28) in ensureHasProfileOwnerAnnotation_targetingV28_remoteDpcTargetsV28()
189 fun addRemoteDpcTestApp(key: String, remoteDpc: RemoteDpc) { in addRemoteDpcTestApp()190 testApps[key] = remoteDpc in addRemoteDpcTestApp()