Searched refs:mMockDevicePolicyManager (Results 1 – 2 of 2) sorted by relevance
117 @Mock private DevicePolicyManager mMockDevicePolicyManager; field in AccountManagerServiceTest166 mMockDevicePolicyManager); in setUp()540 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()567 mMockDevicePolicyManager); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()568 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()1089 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testFinishSessionAsUserUserCannotModifyAccountForTypeNoDPM()1115 mMockDevicePolicyManager); in testFinishSessionAsUserUserCannotModifyAccountForTypeWithDPM()1116 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testFinishSessionAsUserUserCannotModifyAccountForTypeWithDPM()1495 mMockDevicePolicyManager); in testRemoveAccountAsUserUserCannotModifyAccountType()1496 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testRemoveAccountAsUserUserCannotModifyAccountType()[all …]
157 return mMockDevicePolicyManager; in getSystemService()703 protected DevicePolicyManager mMockDevicePolicyManager; field in BaseShortcutManagerTest856 mMockDevicePolicyManager = mock(DevicePolicyManager.class); in setUp()