Searched refs:mTelephonyManager (Results 1 - 25 of 38) sorted by relevance

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSIMAccessor.java11 private final TelephonyManager mTelephonyManager; field in class:SIMAccessor
15 mTelephonyManager = TelephonyManager.from(context);
25 String imsi = mTelephonyManager.getSubscriberId(subId);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DCarrierAppUtilsTest.java53 @Mock private TelephonyManager mTelephonyManager; field in class:CarrierAppUtilsTest
76 mTelephonyManager, mContentResolver, USER_ID, new String[0],
78 Mockito.verifyNoMoreInteractions(mPackageManager, mTelephonyManager);
87 mTelephonyManager, mContentResolver, USER_ID,
95 Mockito.verifyNoMoreInteractions(mTelephonyManager);
105 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS);
112 Mockito.verifyNoMoreInteractions(mTelephonyManager);
128 Mockito.when(mTelephonyManager.checkCarrierPrivilegesForPackageAnyPhone(CARRIER_APP))
131 mTelephonyManager, mContentResolver, USER_ID, CARRIER_APPS, ASSOCIATED_APPS);
148 Mockito.when(mTelephonyManager
[all...]
H A DSmsNumberUtilsTest.java121 doReturn(TMO_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
162 doReturn(INDIA_AIRTEL_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
184 doReturn(TAIWAN_FET_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
192 doReturn(INDIA_AIRTEL_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
200 doReturn(JAPAN_NTTDOCOMO_MCC_MNC).when(mTelephonyManager).getNetworkOperator(anyInt());
H A DSubscriptionInfoUpdaterTest.java121 .when(mTelephonyManager).getSimCount();
123 .when(mTelephonyManager).getPhoneCount();
229 doReturn(FAKE_PLMN).when(mTelephonyManager).getSimOperatorNumericForPhone(0);
258 verify(mTelephonyManager).getSimOperatorNumericForPhone(0);
297 doReturn("").when(mTelephonyManager).getSimOperatorNumericForPhone(0);
306 verify(mTelephonyManager).getSimOperatorNumericForPhone(0);
H A DSms7BitEncodingTranslatorTest.java93 doReturn(PhoneConstants.PHONE_TYPE_CDMA).when(mTelephonyManager).getCurrentPhoneType();
H A DTelephonyTest.java179 protected TelephonyManager mTelephonyManager; field in class:TelephonyTest
309 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
404 doReturn(true).when(mTelephonyManager).getSmsReceiveCapableForPhone(anyInt(), anyBoolean());
405 doReturn(true).when(mTelephonyManager).getSmsSendCapableForPhone(
H A DSubscriptionControllerTest.java146 doReturn(SINGLE_SIM).when(mTelephonyManager).getSimCount();
147 doReturn(SINGLE_SIM).when(mTelephonyManager).getPhoneCount();
/frameworks/base/services/core/java/com/android/server/emergency/
H A DEmergencyAffordanceService.java70 private TelephonyManager mTelephonyManager; field in class:EmergencyAffordanceService
142 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
160 mTelephonyManager = mContext.getSystemService(TelephonyManager.class);
161 mVoiceCapable = mTelephonyManager.isVoiceCapable();
179 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_INFO
233 String simOperator = mTelephonyManager.getSimOperator(info.getSubscriptionId());
268 List<CellInfo> cellInfos = mTelephonyManager.getAllCellInfo();
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
H A DDataIdleTest.java38 private TelephonyManager mTelephonyManager; field in class:DataIdleTest
49 mTelephonyManager = (TelephonyManager) c.getSystemService(Context.TELEPHONY_SERVICE);
64 String subscriberId = mTelephonyManager.getSubscriberId();
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
H A DTrackerService.java68 private TelephonyManager mTelephonyManager; field in class:TrackerService
143 mTelephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
147 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION);
161 mTelephonyManager.listen(mPhoneStateListener,
251 if (mTelephonyManager != null) {
252 mTelephonyManager.listen(mPhoneStateListener, 0);
370 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) {
373 } else if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_GSM) {
/frameworks/base/services/core/java/com/android/server/location/
H A DComprehensiveCountryDetector.java77 private final TelephonyManager mTelephonyManager; field in class:ComprehensiveCountryDetector
145 mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
213 final int phoneType = mTelephonyManager.getPhoneType();
224 countryIso = mTelephonyManager.getNetworkCountryIso();
244 countryIso = mTelephonyManager.getSimCountryIso();
451 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE);
457 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DDataUsageController.java58 private final TelephonyManager mTelephonyManager; field in class:DataUsageController
69 mTelephonyManager = TelephonyManager.from(context);
123 template = NetworkTemplate.normalize(template, mTelephonyManager.getMergedSubscriberIds());
222 mTelephonyManager.setDataEnabled(enabled);
231 && mTelephonyManager.getSimState() == SIM_STATE_READY;
235 return mTelephonyManager.getDataEnabled();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcController.java74 TelephonyManager mTelephonyManager; field in class:DcController
107 mTelephonyManager = (TelephonyManager) phone.getContext().getSystemService(Context.TELEPHONY_SERVICE);
108 if(mTelephonyManager != null) {
109 mTelephonyManager.listen(mPhoneStateListener,
122 if(mTelephonyManager != null) mTelephonyManager.listen(mPhoneStateListener, 0);
/frameworks/base/core/java/com/android/internal/policy/
H A DPhoneFallbackEventHandler.java50 TelephonyManager mTelephonyManager; field in class:PhoneFallbackEventHandler
286 if (mTelephonyManager == null) {
287 mTelephonyManager = (TelephonyManager)mContext.getSystemService(
290 return mTelephonyManager;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardHostView.java59 private TelephonyManager mTelephonyManager = null; field in class:KeyguardHostView
322 if (mTelephonyManager == null) {
323 mTelephonyManager = (TelephonyManager) getContext().getSystemService(
326 if (mTelephonyManager != null &&
327 mTelephonyManager.getCallState() != TelephonyManager.CALL_STATE_IDLE) {
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsHelper.java47 private TelephonyManager mTelephonyManager; field in class:SettingsHelper
98 mTelephonyManager = (TelephonyManager) context
182 if (mTelephonyManager != null && mTelephonyManager.isVoiceCapable()) {
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkNotificationManager.java47 private final TelephonyManager mTelephonyManager; field in class:NetworkNotificationManager
52 mTelephonyManager = t;
143 details = mTelephonyManager.getNetworkOperatorName();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DIccCardProxy.java99 private TelephonyManager mTelephonyManager; field in class:IccCardProxy
124 mTelephonyManager = (TelephonyManager) mContext.getSystemService(
248 mTelephonyManager.setSimOperatorNumericForPhone(mPhoneId, operator);
251 mTelephonyManager.setSimCountryIsoForPhone(mPhoneId,
292 mTelephonyManager.setSimOperatorNameForPhone(
356 mTelephonyManager.setSimOperatorNumericForPhone(mPhoneId, "");
357 mTelephonyManager.setSimCountryIsoForPhone(mPhoneId, "");
358 mTelephonyManager.setSimOperatorNameForPhone(mPhoneId, "");
454 mTelephonyManager.setSimStateForPhone(mPhoneId, getState().toString());
521 mTelephonyManager
[all...]
H A DSIMRecords.java270 mTelephonyManager.setSimOperatorNumericForPhone(mParentApp.getPhoneId(), "");
271 mTelephonyManager.setSimOperatorNameForPhone(mParentApp.getPhoneId(), "");
272 mTelephonyManager.setSimCountryIsoForPhone(mParentApp.getPhoneId(), "");
1484 mTelephonyManager.setSimOperatorNumericForPhone(
1494 mTelephonyManager.setSimCountryIsoForPhone(
1517 mTelephonyManager.setSimOperatorNameForPhone(mParentApp.getPhoneId(),
1527 mTelephonyManager.setSimOperatorNameForPhone(
1788 mTelephonyManager.setSimOperatorNameForPhone(
1824 mTelephonyManager.setSimOperatorNameForPhone(
1856 mTelephonyManager
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DMmsServiceBroker.java75 private volatile TelephonyManager mTelephonyManager = null; field in class:MmsServiceBroker
311 if (mTelephonyManager == null) {
312 mTelephonyManager = (TelephonyManager) mContext.getSystemService(
315 return mTelephonyManager;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGsmCellBroadcastHandlerTest.java70 doReturn(true).when(mTelephonyManager).getSmsReceiveCapableForPhone(anyInt(), anyBoolean());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DUiccControllerTest.java78 doReturn(PHONE_COUNT).when(mTelephonyManager).getPhoneCount();
79 doReturn(PHONE_COUNT).when(mTelephonyManager).getSimCount();
/frameworks/base/location/java/com/android/internal/location/
H A DGpsNetInitiatedHandler.java97 private final TelephonyManager mTelephonyManager; field in class:GpsNetInitiatedHandler
191 mTelephonyManager =
204 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSubscriptionController.java125 protected TelephonyManager mTelephonyManager; field in class:SubscriptionController
176 mTelephonyManager = TelephonyManager.from(mContext);
302 String line1Number = mTelephonyManager.getLine1Number(id);
321 return mTelephonyManager.getSimCountryIsoForPhone(phoneId);
662 return mTelephonyManager.getSimCount();
801 String simCarrierName = mTelephonyManager.getSimOperatorName(subIds[0]);
1012 phoneId >= mTelephonyManager.getPhoneCount()) {
1480 if (phoneId >= 0 && (phoneId < mTelephonyManager.getPhoneCount()
1481 || mTelephonyManager.getSimCount() == 1)) {
1485 String defaultMccMnc = mTelephonyManager
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerHelper.java83 private final TelephonyManager mTelephonyManager; field in class:SoundTriggerHelper
112 mTelephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
812 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);
865 mCallActive = mTelephonyManager.getCallState() != TelephonyManager.CALL_STATE_IDLE;
868 mTelephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE);

Completed in 1581 milliseconds

12