Searched refs:mMockDevicePolicyManager (Results 1 – 4 of 4) sorted by relevance
47 private DevicePolicyManager mMockDevicePolicyManager; field in ManagedDeviceTextViewTest54 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()
49 private DevicePolicyManager mMockDevicePolicyManager; field in UserAvatarViewTest55 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()
42 public DevicePolicyManager mMockDevicePolicyManager; field in CarAdminUiTestActivity48 mMockDevicePolicyManager = mock(DevicePolicyManager.class); in onCreate()64 if (mMockDevicePolicyManager != null) { in getSystemService()65 return mMockDevicePolicyManager; in getSystemService()
83 @Mock private DevicePolicyManager mMockDevicePolicyManager; field in ContentProtectionPreferenceUtilsTest236 .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()