Home
last modified time | relevance | path

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

12

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyTest.java239 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_deviceOwnerIsSet()
254 .setDeviceOwner(DPC_COMPONENT_NAME)); in setDeviceOwner_deviceOwnerIsAlreadySet_throwsException()
263 () -> TestApis.devicePolicy().setDeviceOwner( in setDeviceOwner_componentNameNotInstalled_throwsException()
276 .setDeviceOwner(NOT_DPC_COMPONENT_NAME)); in setDeviceOwner_componentNameIsNotDPC_throwsException()
287 .setDeviceOwner(DPC_COMPONENT_NAME)); in setDeviceOwner_preS_userAlreadyOnDevice_throwsException()
296 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_sPlus_userAlreadyOnDevice_deviceOwnerIsSet()
310 () -> TestApis.devicePolicy().setDeviceOwner(/* deviceOwnerComponent= */ null)); in setDeviceOwner_nullComponentName_throwsException()
348 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME)) { in deviceOwner_autoclose_removesDeviceOwner()
362 TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME); in setDeviceOwner_recentlyUnsetProfileOwner_sets()
373 .setDeviceOwner(DPC_COMPONENT_NAME) in setDeviceOwner_recentlyUnsetDeviceOwner_sets()
[all …]
DDeviceOwnerTest.java101 .setDeviceOwner(NON_TEST_ONLY_DPC_COMPONENT_NAME); in remove_nonTestOnlyDpc_removesDeviceOwner()
116 .setDeviceOwner(NON_TEST_ONLY_DPC_COMPONENT_NAME); in setAndRemoveDeviceOwnerRepeatedly_doesNotThrowError()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedDeviceOwnerTestApi25.java37 mDeviceOwnerSet = setDeviceOwner( in setUp()
DBaseDeviceOwnerTest.java52 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
DUserRestrictionsTest.java326 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
DDeviceOwnerPlusProfileOwnerTest.java85 if (!setDeviceOwner(COMP_DPC_ADMIN, mDeviceOwnerUserId, /*expectFailure*/ false)) { in setUp()
DDeviceOwnerTest.java489 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
496 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
DMixedDeviceOwnerTest.java72 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
DManagedProfileTest.java180 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
DBaseDevicePolicyTest.java892 protected boolean setDeviceOwner(String componentName, int userId, boolean expectFailure) in setDeviceOwner() method in BaseDevicePolicyTest
913 assertTrue(setDeviceOwner(componentName, userId, /* expectFailure =*/ false)); in setDeviceOwnerOrFail()
918 assertFalse(setDeviceOwner(componentName, userId, /* expectFailure =*/ true)); in setDeviceOwnerExpectingFailure()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DClearApplicationDataTest.java96 DeviceOwner d = TestApis.devicePolicy().setDeviceOwner(sComponentName)) { in clearApplicationUserData_calledByDeviceOwner_testPackage_isCleared()
134 try (DeviceOwner d = TestApis.devicePolicy().setDeviceOwner(sComponentName)) { in clearApplicationUserData_calledByDeviceOwner_activeAdmin_isNotCleared()
173 try (DeviceOwner d = TestApis.devicePolicy().setDeviceOwner(sComponentName)) { in clearApplicationUserData_calledByDeviceOwner_deviceProvisioning_isNotCleared()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java125 setDeviceOwner(); in testDeviceOwnerWithInfo()
142 setDeviceOwner(); in testDeviceOwnerWithoutInfo()
231 private void setDeviceOwner() throws DeviceNotAvailableException { in setDeviceOwner() method in PrivacyDeviceOwnerTest
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21128.java54 device.setDeviceOwner(pocDeviceAdminPkg, currentUserId); in testPocCVE_2023_21128()
DCVE_2021_0963.java51 device.setDeviceOwner(component, userId); in testPocCVE_2021_0963()
DCVE_2023_20955.java53 device.setDeviceOwner(componentName, 0)); in testPocCVE_2023_20955()
DCVE_2024_31332.java62 .that(device.setDeviceOwner(componentName, userId)) in withPocDeviceAdminReceiverAsDeviceOwner()
DCVE_2024_23704.java65 .that(device.setDeviceOwner(componentName, userId)) in withPocAdminReceiverAsDeviceOwner()
DTestLocationScanningServicesUsingSlices.java51 mDevice.setDeviceOwner( in setUp()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java102 TestApis.devicePolicy().setDeviceOwner(NON_REMOTE_DPC_COMPONENT); in deviceOwner_nonRemoteDpcDeviceOwner_returnsNull()
287 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
347 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_userHandle_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
421 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in any_userReference_nonRemoteDpcDeviceOwner_noProfileOwner_returnsNull()
483 TestApis.devicePolicy().setDeviceOwner(NON_REMOTE_DPC_COMPONENT); in setAsDeviceOwner_alreadyHasDeviceOwner_replacesDeviceOwner()
770 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.java61 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in setAsDeviceOwner_isEnabled()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DDeviceOwnerComponent.kt275 devicePolicy().setDeviceOwner(originalDeviceOwnerCopy.componentName()) in teardownShareableState()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DBasePackageInstallTest.java143 TestApis.devicePolicy().setDeviceOwner(mDeviceOwner); in addDeviceOwner()
/cts/tests/tests/keystore/src/android/keystore/cts/
DDeviceOwnerKeyManagementTest.java618 try (DeviceOwner o = TestApis.devicePolicy().setDeviceOwner(DEVICE_ADMIN_COMPONENT_NAME)) { in testAllVariationsOfDeviceIdAttestation()
649 try (DeviceOwner o = TestApis.devicePolicy().setDeviceOwner(DEVICE_ADMIN_COMPONENT_NAME)) { in testAllVariationsOfDeviceIdAttestationUsingStrongBox()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DSuspendPackagesTest.java91 TestApis.devicePolicy().setDeviceOwner(new ComponentName(DEVICE_ADMIN_PACKAGE, in addDeviceOwner()
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java224 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(componentName, user); in setAsDeviceOwner()

12