Searched refs:mEnterpriseProvider (Results 1 – 2 of 2) sorted by relevance
49 private EnterprisePrivacyFeatureProvider mEnterpriseProvider; field in WorkPolicyInfoPreferenceControllerTest56 mEnterpriseProvider = mFakeFeatureFactory.getEnterprisePrivacyFeatureProvider(); in setUp()62 when(mEnterpriseProvider.hasWorkPolicyInfo()).thenReturn(false); in getAvailabilityStatus_noWorkPolicyInfo_shouldReturnUnsupported()71 when(mEnterpriseProvider.hasWorkPolicyInfo()).thenReturn(true); in getAvailabilityStatus_haveWorkPolicyInfo_shouldReturnAvailable()89 when(mEnterpriseProvider.hasWorkPolicyInfo()).thenReturn(true); in handlePreferenceTreeClick_nonMatchingKey_shouldDoNothing()95 verify(mEnterpriseProvider, never()).showWorkPolicyInfo(mContext); in handlePreferenceTreeClick_nonMatchingKey_shouldDoNothing()100 when(mEnterpriseProvider.hasWorkPolicyInfo()).thenReturn(true); in handlePreferenceTreeClick_matchingKey_shouldShowWorkPolicyInfo()107 verify(mEnterpriseProvider).showWorkPolicyInfo(mContext); in handlePreferenceTreeClick_matchingKey_shouldShowWorkPolicyInfo()
32 private final @NonNull EnterprisePrivacyFeatureProvider mEnterpriseProvider; field in WorkPolicyInfoPreferenceController36 mEnterpriseProvider = in WorkPolicyInfoPreferenceController()45 && mEnterpriseProvider.hasWorkPolicyInfo() in getAvailabilityStatus()53 mEnterpriseProvider.showWorkPolicyInfo(preference.getContext()); in handlePreferenceTreeClick()