Home
last modified time | relevance | path

Searched refs:mCarrierConfigManager (Results 1 – 25 of 67) sorted by relevance

123

/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DApnPreferenceControllerTest.java61 private CarrierConfigManager mCarrierConfigManager; field in ApnPreferenceControllerTest
75 mCarrierConfigManager); in setUp()
84 mController.mCarrierConfigManager = mCarrierConfigManager; in setUp()
93 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsNotSupported_returnUnavailable()
103 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithCDMA_returnAvailable()
113 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_apnSettingsSupportedWithGsm_returnAvailable()
121 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(null); in getAvailabilityStatus_carrierConfigNull_returnUnavailable()
132 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_hideCarrierNetworkSettings_returnUnavailable()
DCarrierPreferenceControllerTest.java68 private CarrierConfigManager mCarrierConfigManager; field in CarrierPreferenceControllerTest
85 mCarrierConfigManager); in setUp()
90 mController.mCarrierConfigManager = mCarrierConfigManager; in setUp()
99 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOff_returnUnavailable()
109 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_cdmaWithFlagOnreturnAvailable()
119 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in getAvailabilityStatus_gsmWithFlagOnreturnAvailable()
130 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityFound_openCarrierSettingActivity()
151 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotFound_DoNothing()
165 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in handlePreferenceClick_activityNotConfigured_DoNothing()
DCarrierSettingsVersionPreferenceControllerTest.java40 private CarrierConfigManager mCarrierConfigManager; field in CarrierSettingsVersionPreferenceControllerTest
49 … when(context.getSystemService(CarrierConfigManager.class)).thenReturn(mCarrierConfigManager); in setUp()
56 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(mSubscriptionId); in getSummary_nullConfig_noCrash()
63 doReturn(new PersistableBundle()).when(mCarrierConfigManager) in getSummary_nullVersionString_noCrash()
73 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(mSubscriptionId); in getSummary_hasVersionString_correctSummary()
DEnable2gPreferenceControllerTest.java53 private CarrierConfigManager mCarrierConfigManager; field in Enable2gPreferenceControllerTest
67 .thenReturn(mCarrierConfigManager); in setUp()
74 doReturn(mPersistableBundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setUp()
75 doReturn(mPersistableBundle).when(mCarrierConfigManager).getConfigForSubId( in setUp()
102 doReturn(null).when(mCarrierConfigManager); in getAvailabilityStatus_nullCarrierConfig_returnUnavailable()
DRoamingPreferenceControllerTest.java64 private CarrierConfigManager mCarrierConfigManager; field in RoamingPreferenceControllerTest
79 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp()
110 doReturn(bundle).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in isDialogNeeded_roamingDisabledWithoutFlag_returnTrue()
127 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setChecked_needDialog_showDialog()
DWifiCallingPreferenceControllerTest.java60 private CarrierConfigManager mCarrierConfigManager; field in WifiCallingPreferenceControllerTest
89 mController.mCarrierConfigManager = mCarrierConfigManager; in setUp()
93 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfig); in setUp()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DVideoCallingPreferenceController.java51 private CarrierConfigManager mCarrierConfigManager; field in VideoCallingPreferenceController
59 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in VideoCallingPreferenceController()
146 if (mCarrierConfigManager == null) { in isVideoCallEnabled()
148 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in isVideoCallEnabled()
149 if (mCarrierConfigManager == null) { in isVideoCallEnabled()
155 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in isVideoCallEnabled()
DCarrierPreferenceController.java37 CarrierConfigManager mCarrierConfigManager; field in CarrierPreferenceController
41 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in CarrierPreferenceController()
50 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in getAvailabilityStatus()
75 final PersistableBundle config = mCarrierConfigManager.getConfigForSubId(subId); in getCarrierSettingsActivityIntent()
DPreferredNetworkModePreferenceController.java37 private CarrierConfigManager mCarrierConfigManager; field in PreferredNetworkModePreferenceController
44 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in PreferredNetworkModePreferenceController()
49 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in getAvailabilityStatus()
93 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in init()
DDataServiceSetupPreferenceController.java36 private CarrierConfigManager mCarrierConfigManager; field in DataServiceSetupPreferenceController
42 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in DataServiceSetupPreferenceController()
50 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in getAvailabilityStatus()
DEnable2gPreferenceController.java43 private CarrierConfigManager mCarrierConfigManager; field in Enable2gPreferenceController
54 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in Enable2gPreferenceController()
73 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in getAvailabilityStatus()
DRoamingDialogFragment.java40 private CarrierConfigManager mCarrierConfigManager; field in RoamingDialogFragment
57 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in onAttach()
65 final PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(mSubId); in onCreateDialog()
DWifiCallingPreferenceController.java59 CarrierConfigManager mCarrierConfigManager; field in WifiCallingPreferenceController
68 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in WifiCallingPreferenceController()
133 if (mCarrierConfigManager != null) { in getResourceIdForWfcMode()
135 mCarrierConfigManager.getConfigForSubId(subId); in getResourceIdForWfcMode()
DNetworkProviderWifiCallingGroup.java67 protected CarrierConfigManager mCarrierConfigManager; field in NetworkProviderWifiCallingGroup
80 mCarrierConfigManager = context.getSystemService(CarrierConfigManager.class); in NetworkProviderWifiCallingGroup()
275 if (mCarrierConfigManager != null) { in isWifiCallingAvailableForCarrier()
277 mCarrierConfigManager.getConfigForSubId(subId); in isWifiCallingAvailableForCarrier()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java120 @Mock CarrierConfigManager mCarrierConfigManager; field in WifiCarrierInfoManagerTest
162 .thenReturn(mCarrierConfigManager); in setUp()
222 when(mCarrierConfigManager.getConfigForSubId(anyInt())) in setUp()
303 verify(mCarrierConfigManager, never()).getConfig(); in receivedNonCarrierConfigChangedIntent()
331 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in receivedCarrierConfigChangedIntent()
333 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in receivedCarrierConfigChangedIntent()
359 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)).thenReturn(bundle); in receivedCarrierConfigChangedAllowMergedNetworkToFalse()
376 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)).thenReturn(disallowedBundle); in receivedCarrierConfigChangedAllowMergedNetworkToFalse()
390 when(mCarrierConfigManager.getConfigForSubId(DATA_SUBID)) in imsiEncryptionRequiredInfoIsCleared()
392 when(mCarrierConfigManager.getConfigForSubId(NON_DATA_SUBID)) in imsiEncryptionRequiredInfoIsCleared()
[all …]
/packages/apps/Settings/src/com/android/settings/accessibility/
DRTTSettingPreferenceController.java50 private final CarrierConfigManager mCarrierConfigManager; field in RTTSettingPreferenceController
63 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in RTTSettingPreferenceController()
111 PersistableBundle carrierConfig = mCarrierConfigManager.getConfigForSubId(subId); in isRttSettingSupported()
145 if (mCarrierConfigManager == null) { in getBooleanCarrierConfig()
152 final PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId(subId); in getBooleanCarrierConfig()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DImsUtils.java35 private final CarrierConfigManager mCarrierConfigManager; field in ImsUtils
66 mCarrierConfigManager = in ImsUtils()
142 if (mCarrierConfigManager != null) { in disableAndResetVoWiFiImsSettings()
143 PersistableBundle b = mCarrierConfigManager.getConfigForSubId(mSubId); in disableAndResetVoWiFiImsSettings()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/gsm/
DAutoSelectPreferenceControllerTest.java61 private CarrierConfigManager mCarrierConfigManager; field in AutoSelectPreferenceControllerTest
82 mCarrierConfigManager); in setUp()
88 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(mCarrierConfig); in setUp()
139 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(null); in init_carrierConfigNull_shouldNotCrash()
/packages/apps/Settings/src/com/android/settings/wifi/calling/
DDisclaimerItem.java36 private final CarrierConfigManager mCarrierConfigManager; field in DisclaimerItem
41 mCarrierConfigManager = mContext.getSystemService(CarrierConfigManager.class); in DisclaimerItem()
73 PersistableBundle config = mCarrierConfigManager.getConfigForSubId(mSubId); in getCarrierConfig()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiPickerTrackerHelperTest.java63 public CarrierConfigManager mCarrierConfigManager; field in WifiPickerTrackerHelperTest
81 .thenReturn(mCarrierConfigManager); in setUp()
83 doReturn(mCarrierConfig).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in setUp()
111 doReturn(null).when(mCarrierConfigManager).getConfigForSubId(SUB_ID); in isCarrierNetworkProvisionEnabled_getNullConfig_returnFalse()
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/
DImsEntitlementReceiverTest.java89 @Mock private CarrierConfigManager mCarrierConfigManager; field in ImsEntitlementReceiverTest
220 .thenReturn(mCarrierConfigManager); in setupCarrierConfig()
221 when(mCarrierConfigManager.getConfigForSubId(SUB_ID)).thenReturn(carrierConfig); in setupCarrierConfig()
222 when(mCarrierConfigManager.getConfigForSubId(LAST_SUB_ID)).thenReturn(carrierConfig); in setupCarrierConfig()
/packages/apps/Settings/src/com/android/settings/security/
DSimLockPreferenceController.java38 private final CarrierConfigManager mCarrierConfigManager; field in SimLockPreferenceController
50 mCarrierConfigManager = (CarrierConfigManager) in SimLockPreferenceController()
113 final PersistableBundle bundle = mCarrierConfigManager.getConfigForSubId( in isHideSimLockSetting()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/calling/
DEmergencyCallLimitationDisclaimerTest.java46 private CarrierConfigManager mCarrierConfigManager; field in EmergencyCallLimitationDisclaimerTest
56 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp()
58 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp()
DLocationPolicyDisclaimerTest.java46 private CarrierConfigManager mCarrierConfigManager; field in LocationPolicyDisclaimerTest
56 doReturn(mCarrierConfigManager).when(mContext).getSystemService( in setUp()
58 when(mCarrierConfigManager.getConfigForSubId(anyInt())).thenReturn(mBundle); in setUp()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastTest.java49 CarrierConfigManager mCarrierConfigManager; field in CellBroadcastTest
76 doReturn(mCarrierConfigManager).when(mContext) in initContext()
93 doReturn(mBundles.get(subId)).when(mCarrierConfigManager).getConfigForSubId(eq(subId)); in carrierConfigSetStringArray()

123