Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTelephonyPermissionsTest.java83 private DevicePolicyManager mMockDevicePolicyManager; field in TelephonyPermissionsTest
106 mMockDevicePolicyManager); in setUp()
125 when(mMockDevicePolicyManager.checkDeviceIdentifierAccess(eq(PACKAGE), eq(PID), in setUp()
315 when(mMockDevicePolicyManager.checkDeviceIdentifierAccess(eq(PACKAGE), eq(PID), in testCheckReadDeviceIdentifiers_hasDPMDeviceIDAccess()
420 when(mMockDevicePolicyManager.checkDeviceIdentifierAccess(eq(PACKAGE), anyInt(), in testCheckCallingOrSelfReadSubscriberIdentifiers_noPermissions()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java111 @Mock private DevicePolicyManager mMockDevicePolicyManager; field in AccountManagerServiceTest
158 mMockDevicePolicyManager); in setUp()
488 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testStartAddAccountSessionUserCannotModifyAccountForTypeNoDPM()
515 mMockDevicePolicyManager); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
516 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
1002 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testFinishSessionAsUserUserCannotModifyAccountForTypeNoDPM()
1028 mMockDevicePolicyManager); in testFinishSessionAsUserUserCannotModifyAccountForTypeWithDPM()
1029 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testFinishSessionAsUserUserCannotModifyAccountForTypeWithDPM()
1403 mMockDevicePolicyManager); in testRemoveAccountAsUserUserCannotModifyAccountType()
1404 when(mMockDevicePolicyManager.getAccountTypesWithManagementDisabledAsUser(anyInt())) in testRemoveAccountAsUserUserCannotModifyAccountType()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DBaseShortcutManagerTest.java148 return mMockDevicePolicyManager; in getSystemService()
616 protected DevicePolicyManager mMockDevicePolicyManager; field in BaseShortcutManagerTest
757 mMockDevicePolicyManager = mock(DevicePolicyManager.class); in setUp()