Lines Matching refs:mDevicePolicyManager
77 private @Mock DevicePolicyManagerWrapper mDevicePolicyManager;
96 mProvider = new EnterprisePrivacyFeatureProviderImpl(mContext, mDevicePolicyManager,
102 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null);
105 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER);
111 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER);
120 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null);
123 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(OWNER_ORGANIZATION);
129 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(null);
137 when(mDevicePolicyManager.getDeviceOwnerComponentOnAnyUser()).thenReturn(OWNER);
138 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null);
147 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(OWNER_ORGANIZATION);
153 when(mDevicePolicyManager.getLastSecurityLogRetrievalTime()).thenReturn(-1L);
156 when(mDevicePolicyManager.getLastSecurityLogRetrievalTime())
163 when(mDevicePolicyManager.getLastBugReportRequestTime()).thenReturn(-1L);
166 when(mDevicePolicyManager.getLastBugReportRequestTime()).thenReturn(TIMESTAMP.getTime());
172 when(mDevicePolicyManager.getLastNetworkLogRetrievalTime()).thenReturn(-1L);
175 when(mDevicePolicyManager.getLastNetworkLogRetrievalTime()).thenReturn(TIMESTAMP.getTime());
181 when(mDevicePolicyManager.isSecurityLoggingEnabled(null)).thenReturn(false);
184 when(mDevicePolicyManager.isSecurityLoggingEnabled(null)).thenReturn(true);
190 when(mDevicePolicyManager.isNetworkLoggingEnabled(null)).thenReturn(false);
193 when(mDevicePolicyManager.isNetworkLoggingEnabled(null)).thenReturn(true);
234 when(mDevicePolicyManager.getDeviceOwnerComponentOnCallingUser()).thenReturn(null);
235 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(null);
236 when(mDevicePolicyManager.getMaximumFailedPasswordsForWipe(OWNER, MY_USER_ID))
240 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(OWNER);
243 when(mDevicePolicyManager.getDeviceOwnerComponentOnCallingUser()).thenReturn(OWNER);
244 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(null);
250 when(mDevicePolicyManager.getProfileOwnerAsUser(MANAGED_PROFILE_USER_ID)).thenReturn(OWNER);
251 when(mDevicePolicyManager.getMaximumFailedPasswordsForWipe(OWNER, MANAGED_PROFILE_USER_ID))
269 when(mDevicePolicyManager.isCurrentInputMethodSetByOwner()).thenReturn(false);
273 when(mDevicePolicyManager.isCurrentInputMethodSetByOwner()).thenReturn(true);
297 when(mDevicePolicyManager.getOwnerInstalledCaCerts(managedProfileUserHandle))
300 when(mDevicePolicyManager.getOwnerInstalledCaCerts(userHandle))
304 when(mDevicePolicyManager.getOwnerInstalledCaCerts(userHandle))
308 when(mDevicePolicyManager.getOwnerInstalledCaCerts(userHandle))
322 when(mDevicePolicyManager.getOwnerInstalledCaCerts(managedProfileUserHandle))
329 when(mDevicePolicyManager.getOwnerInstalledCaCerts(managedProfileUserHandle))
333 when(mDevicePolicyManager.getOwnerInstalledCaCerts(userHandle))
337 when(mDevicePolicyManager.getOwnerInstalledCaCerts(managedProfileUserHandle))
345 when(mDevicePolicyManager.getActiveAdminsAsUser(MY_USER_ID))
347 when(mDevicePolicyManager