Searched refs:mMockDevicePolicyManagerInternal (Results 1 – 2 of 2) sorted by relevance
97 @Mock private DevicePolicyManagerInternal mMockDevicePolicyManagerInternal; field in ContentProtectionConsentManagerTest103 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 …]
120 @Mock private DevicePolicyManagerInternal mMockDevicePolicyManagerInternal; field in AccountManagerServiceTest522 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 …]