Home
last modified time | relevance | path

Searched refs:mMockDevicePolicyManagerInternal (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/contentprotection/
DContentProtectionConsentManagerTest.java97 @Mock private DevicePolicyManagerInternal mMockDevicePolicyManagerInternal; field in ContentProtectionConsentManagerTest
103 setupLocalService(DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in setup()
115 verifyZeroInteractions(mMockDevicePolicyManagerInternal); in isConsentGranted_policyFlagDisabled_packageVerifierNotGranted()
128 verifyZeroInteractions(mMockDevicePolicyManagerInternal); in isConsentGranted_policyFlagEnabled_packageVerifierNotGranted()
141 verifyZeroInteractions(mMockDevicePolicyManagerInternal); in isConsentGranted_policyFlagDisabled_contentProtectionNotGranted()
154 verify(mMockDevicePolicyManagerInternal).isUserOrganizationManaged(TEST_USER_ID); in isConsentGranted_policyFlagDisabled_packageVerifierGranted_userNotManaged()
161 when(mMockDevicePolicyManagerInternal.isUserOrganizationManaged(TEST_USER_ID)) in isConsentGranted_policyFlagDisabled_packageVerifierGranted_userManaged()
181 verify(mMockDevicePolicyManagerInternal).isUserOrganizationManaged(TEST_USER_ID); in isConsentGranted_policyFlagEnabled_packageVerifierGranted_userNotManaged_contentProtectionNotGranted()
194 verify(mMockDevicePolicyManagerInternal).isUserOrganizationManaged(TEST_USER_ID); in isConsentGranted_policyFlagEnabled_packageVerifierGranted_userNotManaged_contentProtectionGranted()
201 when(mMockDevicePolicyManagerInternal.isUserOrganizationManaged(TEST_USER_ID)) in isConsentGranted_policyFlagEnabled_packageVerifierGranted_userManaged_policyDisabled()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java120 @Mock private DevicePolicyManagerInternal mMockDevicePolicyManagerInternal; field in AccountManagerServiceTest
522 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
523 when(mMockDevicePolicyManagerInternal.createUserRestrictionSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
525 when(mMockDevicePolicyManagerInternal.createShowAdminSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
539 verify(mMockDevicePolicyManagerInternal).createUserRestrictionSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountWithDPM()
579 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
580 when(mMockDevicePolicyManagerInternal.createUserRestrictionSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
582 when(mMockDevicePolicyManagerInternal.createShowAdminSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
596 verify(mMockDevicePolicyManagerInternal).createShowAdminSupportIntent( in testStartAddAccountSessionUserCannotModifyAccountForTypeWithDPM()
1039 DevicePolicyManagerInternal.class, mMockDevicePolicyManagerInternal); in testFinishSessionAsUserUserCannotModifyAccountWithDPM()
[all …]