/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyTest.java | 232 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/ |
D | CustomDeviceOwnerTest.java | 63 assertTrue(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testOwnerChangedBroadcast() 85 assertFalse(setDeviceOwner(DEVICE_OWNER_ADMIN_COMPONENT, mDeviceOwnerUserId, in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
|
D | MixedDeviceOwnerTestApi25.java | 35 if (!setDeviceOwner( in setUp()
|
D | AdbProvisioningTests.java | 46 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mDeviceOwnerUserId, in testAdbDeviceOwnerLogged()
|
D | BaseDeviceOwnerTest.java | 47 mDeviceOwnerSet = setDeviceOwner(DEVICE_OWNER_COMPONENT, mDeviceOwnerUserId, in setUp()
|
D | UserRestrictionsTest.java | 287 setDeviceOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setDo()
|
D | DeviceOwnerPlusProfileOwnerTest.java | 86 if (!setDeviceOwner(COMP_DPC_ADMIN, mPrimaryUserId, /*expectFailure*/ false)) { in setUp()
|
D | DeviceOwnerTest.java | 457 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain() 464 assertFalse(setDeviceOwner( in testCannotSetDeviceOwnerAgain()
|
D | BaseDevicePolicyTest.java | 890 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()
|
D | ManagedProfileTest.java | 239 assertFalse(setDeviceOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mParentUserId, in testCannotSetDeviceOwnerWhenProfilePresent()
|
D | MixedDeviceOwnerTest.java | 69 mDeviceOwnerSet = setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, mDeviceOwnerUserId, in setUp()
|
D | OrgOwnedProfileOwnerTest.java | 123 assertTrue(setDeviceOwner(DEVICE_ADMIN_COMPONENT_FLATTENED, in testCanRelinquishControlOverDevice()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 123 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/ |
D | RemoteDpcTest.java | 104 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/ |
D | DeviceAdminAppTest.java | 59 try (DeviceOwner deviceOwner = TestApis.devicePolicy().setDeviceOwner( in setAsDeviceOwner_isEnabled()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicy.java | 151 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/ |
D | RemoteDpc.java | 178 TestApis.devicePolicy().setDeviceOwner(DPC_COMPONENT_NAME)); in setAsDeviceOwner()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibDeviceAdminReceiverTest.java | 102 TestApis.devicePolicy().setDeviceOwner(DEVICE_ADMIN_COMPONENT); in enableDeviceOwner_logsEnabledEvent()
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | DeviceState.java | 1344 TestApis.devicePolicy().setDeviceOwner(
|
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/ |
D | test-current.txt | 449 …android.permission.MANAGE_PROFILE_AND_DEVICE_OWNERS") public boolean setDeviceOwner(@NonNull andro…
|