Searched refs:devicePolicyManager (Results 1 – 3 of 3) sorted by relevance
50 private DevicePolicyManager devicePolicyManager; field in ShadowDevicePolicyManagerTest58 devicePolicyManager = in setUp()76 assertThat(devicePolicyManager.isDeviceOwnerApp(testPackage)).isFalse(); in isDeviceOwnerAppShouldReturnFalseForNonDeviceOwnerApp()84 shadowOf(devicePolicyManager).setProfileOwner(testComponent); in isDeviceOwnerShouldReturnFalseForProfileOwner()88 assertThat(devicePolicyManager.isDeviceOwnerApp(testPackage)).isFalse(); in isDeviceOwnerShouldReturnFalseForProfileOwner()96 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in isDeviceOwnerShouldReturnTrueForDeviceOwner()100 assertThat(devicePolicyManager.isDeviceOwnerApp(testPackage)).isTrue(); in isDeviceOwnerShouldReturnTrueForDeviceOwner()108 shadowOf(devicePolicyManager).setDeviceOwner(testComponent); in getDeviceOwnerShouldReturnDeviceOwnerPackageName()112 assertThat(devicePolicyManager.getDeviceOwner()).isEqualTo(testPackage); in getDeviceOwnerShouldReturnDeviceOwnerPackageName()120 assertThat(devicePolicyManager.getDeviceOwner()).isNull(); in getDeviceOwnerShouldReturnNullWhenThereIsNoDeviceOwner()[all …]
2504 DevicePolicyManager devicePolicyManager =2508 shadowOf(devicePolicyManager)2525 DevicePolicyManager devicePolicyManager =2529 shadowOf(devicePolicyManager)
1768 DevicePolicyManager devicePolicyManager = in hasProfileOwnerOrDeviceOwnerOnCurrentUser() local1770 return devicePolicyManager.getProfileOwner() != null in hasProfileOwnerOrDeviceOwnerOnCurrentUser()1772 && devicePolicyManager.getDeviceOwner() != null); in hasProfileOwnerOrDeviceOwnerOnCurrentUser()1788 DevicePolicyManager devicePolicyManager = in isPackageDeviceAdmin() local1792 return packageName.equals(devicePolicyManager.getDeviceOwner()); in isPackageDeviceAdmin()