Searched refs:setDeviceOwner (Results 1 – 3 of 3) sorted by relevance
96 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isDeviceOwnerShouldReturnTrueForDeviceOwner()108 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in getDeviceOwnerShouldReturnDeviceOwnerPackageName()127 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isDeviceManagedShouldReturnTrueWhenThereIsADeviceOwner()158 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isProfileOwnerShouldReturnFalseForDeviceOwner()218 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in getActiveAdminsShouldReturnDeviceOwner()243 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in addUserRestrictionShouldWorkAsIntendedForDeviceOwner()274 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in clearUserRestrictionShouldWorkAsIntendedForActiveAdmins()292 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isApplicationHiddenShouldReturnTrueForNotExistingApps()306 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isApplicationHiddenShouldReturnFalseForAppsByDefault()321 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isApplicationHiddenShouldReturnTrueForHiddenApps()[all …]
2530 .setDeviceOwner(new ComponentName("com.device.owner", "DeviceOwnerClass"));
294 public void setDeviceOwner(ComponentName admin) { in setDeviceOwner() method in ShadowDevicePolicyManager