/packages/apps/Settings/tests/unit/src/com/android/settings/network/ |
D | CarrierConfigCacheTest.java | 54 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/ |
D | CarrierSettingsVersionPreferenceControllerTest.java | 42 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()
|
D | ApnPreferenceControllerTest.java | 62 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()
|
D | CarrierPreferenceControllerTest.java | 69 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()
|
D | Enable2gPreferenceControllerTest.java | 62 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()
|
D | DataServiceSetupPreferenceControllerTest.java | 64 private CarrierConfigCache mCarrierConfigCache; field in DataServiceSetupPreferenceControllerTest 77 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp() 85 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
|
D | Enhanced4gBasePreferenceControllerTest.java | 58 private CarrierConfigCache mCarrierConfigCache; field in Enhanced4gBasePreferenceControllerTest 74 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp() 81 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
|
D | PreferredNetworkModePreferenceControllerTest.java | 63 private CarrierConfigCache mCarrierConfigCache; field in PreferredNetworkModePreferenceControllerTest 79 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp() 86 doReturn(mPersistableBundle).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
|
D | MobileNetworkUtilsTest.java | 96 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()
|
D | EnabledNetworkModePreferenceControllerTest.java | 84 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/ |
D | CarrierPreferenceController.java | 39 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()
|
D | CarrierSettingsVersionPreferenceController.java | 31 private CarrierConfigCache mCarrierConfigCache; field in CarrierSettingsVersionPreferenceController 35 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in CarrierSettingsVersionPreferenceController() 45 final PersistableBundle config = mCarrierConfigCache.getConfigForSubId(mSubscriptionId); in getSummary()
|
D | DataServiceSetupPreferenceController.java | 38 private CarrierConfigCache mCarrierConfigCache; field in DataServiceSetupPreferenceController 44 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in DataServiceSetupPreferenceController() 52 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
|
D | PreferredNetworkModePreferenceController.java | 40 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()
|
D | ApnPreferenceController.java | 50 CarrierConfigCache mCarrierConfigCache; field in ApnPreferenceController 56 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in ApnPreferenceController() 62 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
|
D | SatelliteSettingPreferenceController.java | 50 CarrierConfigCache mCarrierConfigCache; field in SatelliteSettingPreferenceController 56 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in SatelliteSettingPreferenceController() 67 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
|
D | ContactDiscoveryPreferenceController.java | 51 private CarrierConfigCache mCarrierConfigCache; field in ContactDiscoveryPreferenceController 61 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in ContactDiscoveryPreferenceController() 97 PersistableBundle bundle = mCarrierConfigCache.getConfigForSubId(subId); in getAvailabilityStatus()
|
D | Enable2gPreferenceController.java | 64 private CarrierConfigCache mCarrierConfigCache; field in Enable2gPreferenceController 77 mCarrierConfigCache = CarrierConfigCache.getInstance(context); in Enable2gPreferenceController() 120 final PersistableBundle carrierConfig = mCarrierConfigCache.getConfigForSubId(mSubId); in updateState()
|
D | EnabledNetworkModePreferenceController.java | 73 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/ |
D | WifiPickerTrackerHelperTest.java | 69 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/ |
D | WifiPickerTrackerHelper.java | 68 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/ |
D | VideoCallingPreferenceControllerTest.java | 55 private CarrierConfigCache mCarrierConfigCache; field in VideoCallingPreferenceControllerTest 73 CarrierConfigCache.setTestInstance(mContext, mCarrierConfigCache); in setUp() 79 doReturn(mCarrierConfig).when(mCarrierConfigCache).getConfigForSubId(SUB_ID); in setUp()
|
D | ContactDiscoveryPreferenceControllerTest.java | 76 @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()
|