/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyTest.java | 239 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 …]
|
D | DeviceOwnerTest.java | 101 .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/ |
D | MixedDeviceOwnerTestApi25.java | 37 mDeviceOwnerSet = setDeviceOwner( in setUp()
|
D | BaseDeviceOwnerTest.java | 52 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
|
D | UserRestrictionsTest.java | 326 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
|
D | DeviceOwnerPlusProfileOwnerTest.java | 85 if (!setDeviceOwner(COMP_DPC_ADMIN, mDeviceOwnerUserId, /*expectFailure*/ false)) { in setUp()
|
D | DeviceOwnerTest.java | 489 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain() 496 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
|
D | MixedDeviceOwnerTest.java | 72 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
|
D | ManagedProfileTest.java | 180 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
|
D | BaseDevicePolicyTest.java | 892 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/ |
D | ClearApplicationDataTest.java | 96 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/ |
D | PrivacyDeviceOwnerTest.java | 125 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/ |
D | CVE_2023_21128.java | 54 device.setDeviceOwner(pocDeviceAdminPkg, currentUserId); in testPocCVE_2023_21128()
|
D | CVE_2021_0963.java | 51 device.setDeviceOwner(component, userId); in testPocCVE_2021_0963()
|
D | CVE_2023_20955.java | 53 device.setDeviceOwner(componentName, 0)); in testPocCVE_2023_20955()
|
D | CVE_2024_31332.java | 62 .that(device.setDeviceOwner(componentName, userId)) in withPocDeviceAdminReceiverAsDeviceOwner()
|
D | CVE_2024_23704.java | 65 .that(device.setDeviceOwner(componentName, userId)) in withPocAdminReceiverAsDeviceOwner()
|
D | TestLocationScanningServicesUsingSlices.java | 51 mDevice.setDeviceOwner( in setUp()
|
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/ |
D | RemoteDpcTest.java | 102 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/ |
D | DeviceAdminAppTest.java | 61 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in setAsDeviceOwner_isEnabled()
|
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/ |
D | DeviceOwnerComponent.kt | 275 devicePolicy().setDeviceOwner(originalDeviceOwnerCopy.componentName()) in teardownShareableState()
|
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | BasePackageInstallTest.java | 143 TestApis.devicePolicy().setDeviceOwner(mDeviceOwner); in addDeviceOwner()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | DeviceOwnerKeyManagementTest.java | 618 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/ |
D | SuspendPackagesTest.java | 91 TestApis.devicePolicy().setDeviceOwner(new ComponentName(DEVICE_ADMIN_PACKAGE, in addDeviceOwner()
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDpc.java | 224 DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner(componentName, user); in setAsDeviceOwner()
|