Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DNetworkMobileProviderControllerTest.java64 private SubscriptionsPreferenceController mSubscriptionsController; field in NetworkMobileProviderControllerTest
87 return mSubscriptionsController; in setUp()
99 when(mSubscriptionsController.isAvailable()).thenReturn(true); in testDisplayPreference_subscriptionsControllerAvailable()
107 when(mSubscriptionsController.isAvailable()).thenReturn(false); in testDisplayPreference_subscriptionsControllerUnAvailable()
115 when(mSubscriptionsController.isAvailable()).thenReturn(false); in testGetAvailabilityStatus_subscriptionsControllerIsNull()
132 when(mSubscriptionsController.isAvailable()).thenReturn(true); in testGetAvailabilityStatus_subscriptionsControllerAvailable()
142 when(mSubscriptionsController.isAvailable()).thenReturn(true); in testOnChildUpdated_subscriptionsControllerAvailable_categoryIsVisible()
154 when(mSubscriptionsController.isAvailable()).thenReturn(false); in testOnChildUpdated_subscriptionsControllerUnavailable_categoryIsInvisible()
166 when(mSubscriptionsController.isAvailable()).thenReturn(true); in testOnChildUpdated_noExpandedChildCountAndAvailable_doesNotSetExpandedCount()
177 when(mSubscriptionsController.isAvailable()).thenReturn(true); in hidePreference_hidePreferenceTrue_preferenceIsNotVisible()
[all …]
/packages/apps/Settings/src/com/android/settings/network/
DNetworkMobileProviderController.java48 private SubscriptionsPreferenceController mSubscriptionsController; field in NetworkMobileProviderController
62 mSubscriptionsController = createSubscriptionsController(lifecycle); in init()
67 if (mSubscriptionsController == null) { in createSubscriptionsController()
75 return mSubscriptionsController; in createSubscriptionsController()
81 if (mSubscriptionsController == null) { in displayPreference()
91 mSubscriptionsController.displayPreference(screen); in displayPreference()
96 if (mHide || mSubscriptionsController == null) { in getAvailabilityStatus()
99 return mSubscriptionsController.isAvailable() ? AVAILABLE : CONDITIONALLY_UNAVAILABLE; in getAvailabilityStatus()