Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DWorkPolicyInfoPreferenceControllerTest.java49 private EnterprisePrivacyFeatureProvider mEnterpriseProvider; field in WorkPolicyInfoPreferenceControllerTest
56 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()
/packages/apps/Settings/src/com/android/settings/privacy/
DWorkPolicyInfoPreferenceController.java32 private final @NonNull EnterprisePrivacyFeatureProvider mEnterpriseProvider; field in WorkPolicyInfoPreferenceController
36 mEnterpriseProvider = in WorkPolicyInfoPreferenceController()
45 && mEnterpriseProvider.hasWorkPolicyInfo() in getAvailabilityStatus()
53 mEnterpriseProvider.showWorkPolicyInfo(preference.getContext()); in handlePreferenceTreeClick()