/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicyTest.java | 109 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsSet() 130 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in setProfileOwner_profileOwnerIsAlreadySet_throwsException() 133 () -> TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME)); in setProfileOwner_profileOwnerIsAlreadySet_throwsException() 149 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_componentNameNotInstalled_throwsException() 161 () -> TestApis.devicePolicy().setProfileOwner(sUser, NOT_DPC_COMPONENT_NAME)); in setProfileOwner_componentNameIsNotDPC_throwsException() 169 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullUser_throwsException() 178 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_nullComponentName_throwsException() 187 () -> TestApis.devicePolicy().setProfileOwner( in setProfileOwner_userDoesNotExist_throwsException() 203 TestApis.devicePolicy().setProfileOwner(profile, DPC_COMPONENT_NAME); in getProfileOwner_returnsProfileOwner() 331 TestApis.devicePolicy().setProfileOwner(sUser, DPC_COMPONENT_NAME)) { in profileOwner_autoclose_removesProfileOwner() [all …]
|
D | ProfileOwnerTest.java | 101 TestApis.devicePolicy().setProfileOwner(sProfile, DPC_COMPONENT_NAME); in remove_removesProfileOwner() 109 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in remove_nonTestOnlyDpc_removesProfileOwner() 125 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in setAndRemoveProfileOwnerRepeatedly_doesNotThrowError()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | MixedProfileOwnerTestApi25.java | 38 if (!setProfileOwner( in setUp()
|
D | ProfileOwnerTestApi23.java | 41 if (!setProfileOwner( in setUp()
|
D | MixedProfileOwnerTest.java | 49 if (!setProfileOwner( in setUp()
|
D | ProfileOwnerTest.java | 47 if (!setProfileOwner( in setUp()
|
D | DeviceAndProfileOwnerHostSideTransferTest.java | 110 if (!setProfileOwner(adminReceiverClassName, userId, false)) { in setupManagedProfile()
|
D | ManagedProfileTest.java | 165 assertFalse(setProfileOwner( in testCannotSetProfileOwnerAgain() 171 assertFalse(setProfileOwner(DEVICE_OWNER_PKG + "/" + DEVICE_OWNER_ADMIN, mProfileUserId, in testCannotSetProfileOwnerAgain()
|
D | UserRestrictionsTest.java | 313 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
|
D | BaseDevicePolicyTest.java | 836 protected boolean setProfileOwner(String componentName, int userId, boolean expectFailure) in setProfileOwner() method in BaseDevicePolicyTest 853 if (!setProfileOwner(componentName, userId, /*expectFailure*/ false)) { in setProfileOwnerOrFail() 862 if (setProfileOwner(componentName, userId, /* expectFailure =*/ true)) { in setProfileOwnerExpectingFailure()
|
D | OrgOwnedProfileOwnerTest.java | 422 setProfileOwner(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, in setPoAsUser()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | ClearApplicationDataTest.java | 75 ProfileOwner p = TestApis.devicePolicy().setProfileOwner( in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared() 114 try (ProfileOwner p = TestApis.devicePolicy().setProfileOwner( in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared() 153 TestApis.devicePolicy().setProfileOwner(TestApis.users().instrumented(), in clearApplicationUserData_calledByProfileOwner_deviceProvisioning_isNotCleared()
|
D | ManagedSubscriptionsPolicyTest.java | 265 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner( in setManagedSubscriptionsPolicy_fromDPMRoleHolder_works()
|
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/ |
D | RemoteDpcTest.java | 127 TestApis.devicePolicy().setProfileOwner(sUser, NON_REMOTE_DPC_COMPONENT); in profileOwner_nonRemoteDpcProfileOwner_returnsNull() 174 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userHandle_nonRemoteDpcProfileOwner_returnsNull() 233 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in profileOwner_userReference_nonRemoteDpcProfileOwner_returnsNull() 270 ProfileOwner profileOwner = TestApis.devicePolicy().setProfileOwner(sUser, in any_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull() 332 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userHandle_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull() 406 TestApis.devicePolicy().setProfileOwner(profile, NON_REMOTE_DPC_COMPONENT); in any_userReference_noDeviceOwner_nonRemoteDpcProfileOwner_returnsNull() 553 .setProfileOwner(TestApis.users().instrumented(), NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userHandle_alreadyHasProfileOwner_replacesProfileOwner() 650 .setProfileOwner(TestApis.users().instrumented(), NON_REMOTE_DPC_COMPONENT); in setAsProfileOwner_userReference_alreadyHasProfileOwner_replacesProfileOwner()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/ |
D | ManagedProfileContactsAccessTest.java | 160 private boolean setProfileOwner(String componentName, int userId) in setProfileOwner() method in ManagedProfileContactsAccessTest 221 boolean isSetOwnerSuccessful = setProfileOwner( in testClonedAppsAccessManagedProfileContacts_contactReadsBlocked()
|
/cts/common/device-side/bedstead/deviceadminapp/src/test/java/com/android/bedstead/deviceadminapp/ |
D | DeviceAdminAppTest.java | 81 TestApis.devicePolicy().setProfileOwner( in setAsProfileOwner_isEnabled()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | DpcCommander.java | 52 public void setProfileOwner() throws DeviceNotAvailableException { in setProfileOwner() method in DpcCommander
|
D | EphemeralTest.java | 184 dpc.setProfileOwner(); in testRemoveUserWhenPossible_devicePolicyIsSet()
|
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/ |
D | ProfileOwnersComponent.kt | 187 devicePolicy().setProfileOwner(key, value.componentName()) in <lambda>()
|
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/ |
D | RemoteDpc.java | 355 TestApis.devicePolicy().setProfileOwner(user, componentName)); in setAsProfileOwner()
|
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibDeviceAdminReceiverTest.java | 120 TestApis.devicePolicy().setProfileOwner(sUser, DEVICE_ADMIN_COMPONENT); in enableProfileOwner_logsEnabledEvent()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/ |
D | DevicePolicy.kt | 66 fun setProfileOwner(user: UserReference, profileOwnerComponent: ComponentName): ProfileOwner { in <lambda>() method
|