Home
last modified time | relevance | path

Searched refs:mCarrierConfigCache (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/network/
DCarrierConfigCacheTest.java54 CarrierConfigCache mCarrierConfigCache; field in CarrierConfigCacheTest
61 mCarrierConfigCache = CarrierConfigCache.getInstance(mContext); in setUp()
62 mCarrierConfigCache.sCarrierConfigManager = mCarrierConfigManager; in setUp()
71 assertThat(mCarrierConfigCache).isEqualTo(instance); in getInstance_diffContext_getSameInstance()
76 assertThat(mCarrierConfigCache.hasCarrierConfigManager()).isTrue(); in hasCarrierConfigManager_getSystemService_returnTrue()
83 PersistableBundle config = mCarrierConfigCache.getConfigForSubId(ONCE_SUB_ID); in getConfigForSubId_getOnce_onlyGetOnceFromManager()
93 mCarrierConfigCache.getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager()
97 mCarrierConfigCache.getConfigForSubId(TWICE_SUB_ID); in getConfigForSubId_getTwice_onlyGetOnceFromManager()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DCarrierSettingsVersionPreferenceControllerTest.java42 private CarrierConfigCache mCarrierConfigCache; field in CarrierSettingsVersionPreferenceControllerTest
51 CarrierConfigCache.setTestInstance(context, mCarrierConfigCache); in setUp()
58 doReturn(null).when(mCarrierConfigCache).getConfigForSubId(mSubscriptionId); in getSummary_nullConfig_noCrash()
65 doReturn(new PersistableBundle()).when(mCarrierConfigCache) in getSummary_nullVersionString_noCrash()
75 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(mSubscriptionId); in getSummary_hasVersionString_correctSummary()
DApnPreferenceControllerTest.java62 private CarrierConfigCache mCarrierConfigCache; field in ApnPreferenceControllerTest
75 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
92 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
102 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
112 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
120 when(mCarrierConfigCache.getConfigForSubId(SUB_ID)).thenReturn(null); in getAvailabilityStatus_carrierConfigNull_returnUnavailable()
131 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
DCarrierPreferenceControllerTest.java69 private CarrierConfigCache mCarrierConfigCache; field in CarrierPreferenceControllerTest
85 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
98 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
108 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
118 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
129 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityFound_openCarrierSettingActivity()
150 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotFound_DoNothing()
164 doReturn(bundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotConfigured_DoNothing()
DEnable2gPreferenceControllerTest.java62 private CarrierConfigCache mCarrierConfigCache; field in Enable2gPreferenceControllerTest
85 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
92 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
93 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfigForSubId( in setUp()
DDataServiceSetupPreferenceControllerTest.java64 private CarrierConfigCache mCarrierConfigCache; field in DataServiceSetupPreferenceControllerTest
77 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
85 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
DEnhanced4gBasePreferenceControllerTest.java58 private CarrierConfigCache mCarrierConfigCache; field in Enhanced4gBasePreferenceControllerTest
74 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
81 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
DPreferredNetworkModePreferenceControllerTest.java63 private CarrierConfigCache mCarrierConfigCache; field in PreferredNetworkModePreferenceControllerTest
79 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
86 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
DMobileNetworkUtilsTest.java96 private CarrierConfigCache mCarrierConfigCache; field in MobileNetworkUtilsTest
122 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
124 when(mCarrierConfigCache.getConfigForSubId(SUB_ID_1)).thenReturn(mCarrierConfig); in setUp()
304 when(mCarrierConfigCache.getConfig()).thenReturn(mCarrierConfig); in shouldSpeciallyUpdateGsmCdma_supportTdscdma_returnFalse()
DEnabledNetworkModePreferenceControllerTest.java84 private CarrierConfigCache mCarrierConfigCache; field in EnabledNetworkModePreferenceControllerTest
105 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
113 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfig(); in setUp()
114 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DCarrierPreferenceController.java39 CarrierConfigCache mCarrierConfigCache; field in CarrierPreferenceController
43 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in CarrierPreferenceController()
52 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
77 final PersistableBundle config = mCarrierConfigCache.getConfigForSubId(subId); in getCarrierSettingsActivityIntent()
DCarrierSettingsVersionPreferenceController.java31 private CarrierConfigCache mCarrierConfigCache; field in CarrierSettingsVersionPreferenceController
35 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in CarrierSettingsVersionPreferenceController()
45 final PersistableBundle config = mCarrierConfigCache.getConfigForSubId(mSubscriptionId); in getSummary()
DDataServiceSetupPreferenceController.java38 private CarrierConfigCache mCarrierConfigCache; field in DataServiceSetupPreferenceController
44 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in DataServiceSetupPreferenceController()
52 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
DPreferredNetworkModePreferenceController.java40 private CarrierConfigCache mCarrierConfigCache; field in PreferredNetworkModePreferenceController
46 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in PreferredNetworkModePreferenceController()
51 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
95 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(mSubId); in init()
DApnPreferenceController.java50 CarrierConfigCache mCarrierConfigCache; field in ApnPreferenceController
56 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in ApnPreferenceController()
62 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
DSatelliteSettingPreferenceController.java50 CarrierConfigCache mCarrierConfigCache; field in SatelliteSettingPreferenceController
56 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in SatelliteSettingPreferenceController()
67 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
DContactDiscoveryPreferenceController.java51 private CarrierConfigCache mCarrierConfigCache; field in ContactDiscoveryPreferenceController
61 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in ContactDiscoveryPreferenceController()
97 PersistableBundle bundle = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
DEnable2gPreferenceController.java64 private CarrierConfigCache mCarrierConfigCache; field in Enable2gPreferenceController
77 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in Enable2gPreferenceController()
120 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(mSubId); in updateState()
DEnabledNetworkModePreferenceController.java73 private CarrierConfigCache mCarrierConfigCache; field in EnabledNetworkModePreferenceController
84 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in EnabledNetworkModePreferenceController()
94 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
221 private CarrierConfigCache mCarrierConfigCache; field in EnabledNetworkModePreferenceController.PreferenceEntriesBuilder
243 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in PreferenceEntriesBuilder()
251 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(mSubId); in updateConfig()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiPickerTrackerHelperTest.java69 public CarrierConfigCache mCarrierConfigCache; field in WifiPickerTrackerHelperTest
86 when(mCarrierConfigCache.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfig); in setUp()
87 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
117 when(mCarrierConfigCache.getConfigForSubId(SUB_ID)).thenReturn(null); in isCarrierNetworkProvisionEnabled_getNullConfig_returnFalse()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiPickerTrackerHelper.java68 protected final CarrierConfigCache mCarrierConfigCache; field in WifiPickerTrackerHelper
92 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in WifiPickerTrackerHelper()
108 final PersistableBundle config = mCarrierConfigCache.getConfigForSubId(subId); in isCarrierNetworkProvisionEnabled()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DVideoCallingPreferenceControllerTest.java55 private CarrierConfigCache mCarrierConfigCache; field in VideoCallingPreferenceControllerTest
73 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
79 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
DContactDiscoveryPreferenceControllerTest.java76 @Mock private CarrierConfigCache mCarrierConfigCache; field in ContactDiscoveryPreferenceControllerTest
97 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp()
98 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(eq(TEST_SUB_ID)); in setUp()