Home
last modified time | relevance | path

Searched refs:mMockDevicePolicyManager (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ui/
DManagedDeviceTextViewTest.java47 private DevicePolicyManager mMockDevicePolicyManager; field in ManagedDeviceTextViewTest
54 mMockDevicePolicyManager = mCarAdminUiTestActivity.mMockDevicePolicyManager; in setup()
83 when(mMockDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn("My org"); in deviceManagedByOrg()
98 when(mMockDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null); in deviceManaged_orgNameAbsent_genericMessage()
113 when(mMockDevicePolicyManager.getDeviceOwnerOrganizationName()) in deviceManaged_dpmFailure_genericMessage()
131 doReturn(isManaged).when(mMockDevicePolicyManager).isDeviceManaged(); in mockIsDeviceManaged()
DUserAvatarViewTest.java49 private DevicePolicyManager mMockDevicePolicyManager; field in UserAvatarViewTest
55 mMockDevicePolicyManager = ((CarAdminUiTestActivity) activity).mMockDevicePolicyManager; in setup()
76 verify(mMockDevicePolicyManager).getProfileOwnerAsUser(ActivityManager.getCurrentUser()); in setAvatarWithBadge_success()
109 verify(mMockDevicePolicyManager).getProfileOwnerAsUser(ActivityManager.getCurrentUser()); in setDrawableWithBadgeAndUserId_success()
126 verify(mMockDevicePolicyManager).getDeviceOwnerComponentOnAnyUser(); in setDrawableWithBadge_success()
DCarAdminUiTestActivity.java42 public DevicePolicyManager mMockDevicePolicyManager; field in CarAdminUiTestActivity
48 mMockDevicePolicyManager = mock(DevicePolicyManager.class); in onCreate()
64 if (mMockDevicePolicyManager != null) { in getSystemService()
65 return mMockDevicePolicyManager; in getSystemService()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DContentProtectionPreferenceUtilsTest.java83 @Mock private DevicePolicyManager mMockDevicePolicyManager; field in ContentProtectionPreferenceUtilsTest
236 .thenReturn(mMockDevicePolicyManager); in getContentProtectionPolicy_flagEnabled_managedProfileNull()
237 when(mMockDevicePolicyManager.getContentProtectionPolicy(/* admin= */ null)) in getContentProtectionPolicy_flagEnabled_managedProfileNull()
255 .thenReturn(mMockDevicePolicyManager); in getContentProtectionPolicy_flagEnabled_managedProfileNotNull()
256 when(mMockDevicePolicyManager.getContentProtectionPolicy(/* admin= */ null)) in getContentProtectionPolicy_flagEnabled_managedProfileNotNull()