Home
last modified time | relevance | path

Searched refs:setDeviceOwner (Results 1 – 20 of 20) sorted by relevance

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java232 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_deviceOwnerIsSet()
246 .setDeviceOwner(DPC_COMPONENT_NAME)); in setDeviceOwner_deviceOwnerIsAlreadySet_throwsException()
255 () -> TestApis.devicePolicy().setDeviceOwner( in setDeviceOwner_componentNameNotInstalled_throwsException()
268 .setDeviceOwner(NOT_DPC_COMPONENT_NAME)); in setDeviceOwner_componentNameIsNotDPC_throwsException()
281 .setDeviceOwner(DPC_COMPONENT_NAME)); in setDeviceOwner_preS_userAlreadyOnDevice_throwsException()
292 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_sPlus_userAlreadyOnDevice_deviceOwnerIsSet()
311 () -> TestApis.devicePolicy().setDeviceOwner(/* deviceOwnerComponent= */ null)); in setDeviceOwner_nullComponentName_throwsException()
343 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME)) { in deviceOwner_autoclose_removesDeviceOwner()
356 TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_recentlyUnsetProfileOwner_sets()
366 .setDeviceOwner(DPC_COMPONENT_NAME) in setDeviceOwner_recentlyUnsetDeviceOwner_sets()
[all …]
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DCustomDeviceOwnerTest.java63 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testOwnerChangedBroadcast()
85 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
DMixedDeviceOwnerTestApi25.java35 if (!setDeviceOwner( in setUp()
DAdbProvisioningTests.java46 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId, in testAdbDeviceOwnerLogged()
DBaseDeviceOwnerTest.java47 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
DUserRestrictionsTest.java287 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
DDeviceOwnerPlusProfileOwnerTest.java86 if (!setDeviceOwner(COMP_DPC_ADMIN, mPrimaryUserId, /*expectFailure*/ false)) { in setUp()
DDeviceOwnerTest.java457 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
464 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
DBaseDevicePolicyTest.java890 protected boolean setDeviceOwner(String componentName, int userId, boolean expectFailure) in setDeviceOwner() method in BaseDevicePolicyTest
907 assertTrue(setDeviceOwner(componentName, userId, /* expectFailure =*/ false)); in setDeviceOwnerOrFail()
912 assertFalse(setDeviceOwner(componentName, userId, /* expectFailure =*/ true)); in setDeviceOwnerExpectingFailure()
DManagedProfileTest.java239 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
DMixedDeviceOwnerTest.java69 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
DOrgOwnedProfileOwnerTest.java123 assertTrue(setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, in testCanRelinquishControlOverDevice()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java123 setDeviceOwner(); in testDeviceOwnerWithInfo()
140 setDeviceOwner(); in testDeviceOwnerWithoutInfo()
229 private void setDeviceOwner() throws DeviceNotAvailableException { in setDeviceOwner() method in PrivacyDeviceOwnerTest
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java104 TestApis.devicePolicy().setDeviceOwner(NON_REMOTE_DPC_COMPONENT); in deviceOwner_nonRemoteDpcDeviceOwner_returnsNull()
289 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
349 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_userHandle_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
423 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_userReference_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
477 TestApis.devicePolicy().setDeviceOwner(NON_REMOTE_DPC_COMPONENT); in setAsDeviceOwner_alreadyHasDeviceOwner_replacesDeviceOwner()
766 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(NON_REMOTE_DPC_COMPONENT); in forDevicePolicyController_nonRemoteDpcDevicePolicyController_throwsException()
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/
DDeviceAdminAppTest.java59 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in setAsDeviceOwner_isEnabled()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicy.java151 public DeviceOwner setDeviceOwner(ComponentName deviceOwnerComponent) { in setDeviceOwner() method in DevicePolicy
215 devicePolicyManager.setDeviceOwner(component, name, deviceOwnerUserId); in setDeviceOwnerOnly()
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java178 TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME)); in setAsDeviceOwner()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDeviceAdminReceiverTest.java102 TestApis.devicePolicy().setDeviceOwner(DEVICE_ADMIN_COMPONENT); in enableDeviceOwner_logsEnabledEvent()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1344 TestApis.devicePolicy().setDeviceOwner(
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dtest-current.txt449 …android.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS") public boolean setDeviceOwner(@NonNull andro…