Home
last modified time | relevance | path

Searched refs:devicePolicyManager (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDevicePolicyManagerTest.java50 private DevicePolicyManager devicePolicyManager; field in ShadowDevicePolicyManagerTest
58 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 …]
DShadowPackageManagerTest.java2504 DevicePolicyManager devicePolicyManager =
2508 shadowOf(devicePolicyManager)
2525 DevicePolicyManager devicePolicyManager =
2529 shadowOf(devicePolicyManager)
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplicationPackageManager.java1768 DevicePolicyManager devicePolicyManager = in hasProfileOwnerOrDeviceOwnerOnCurrentUser() local
1770 return devicePolicyManager.getProfileOwner() != null in hasProfileOwnerOrDeviceOwnerOnCurrentUser()
1772 && devicePolicyManager.getDeviceOwner() != null); in hasProfileOwnerOrDeviceOwnerOnCurrentUser()
1788 DevicePolicyManager devicePolicyManager = in isPackageDeviceAdmin() local
1792 return packageName.equals(devicePolicyManager.getDeviceOwner()); in isPackageDeviceAdmin()