/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
VisualVoicemailSmsFilterTest.java | 20 import android.telephony.TelephonyManager; 37 TelephonyManager telephonyManager = Mockito.mock(TelephonyManager.class); 38 Mockito.when(context.getSystemServiceName(TelephonyManager.class)) 40 Mockito.when(context.getSystemService(Mockito.anyString())).thenReturn(telephonyManager); 45 Mockito.when(telephonyManager
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
TelephonyManagerUtils.java | 20 import android.telephony.TelephonyManager; 27 * This class provides several TelephonyManager util functions. 39 final TelephonyManager telephonyManager = 40 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 41 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag(); 53 final TelephonyManager telephonyManager = 54 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 55 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase() [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoLocationPermissionTest.java | 29 import android.telephony.TelephonyManager; 77 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( 81 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); 82 fail("TelephonyManager.listen(LISTEN_CELL_LOCATION) did not" + 89 telephonyManager.getCellLocation(); 90 fail("TelephonyManager.getCellLocation did not throw SecurityException as expected"); 108 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
ImeiInformation.java | 23 import android.telephony.TelephonyManager; 54 final TelephonyManager telephonyManager = 55 (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); 56 initPreferenceScreen(telephonyManager.getSimCount()); 74 if (phone.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) {
|
/packages/services/Telephony/src/com/android/phone/ |
OtaStartupReceiver.java | 31 import android.telephony.TelephonyManager; 122 TelephonyManager telephonyManager = (TelephonyManager)context.getSystemService( 124 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_OTASP_CHANGED);
|
CallFeaturesSetting.java | 44 import android.telephony.TelephonyManager; 194 mEnableVideoCalling.setEnabled(state == TelephonyManager.CALL_STATE_IDLE); 202 TelephonyManager telephonyManager = 203 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 204 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE); 218 TelephonyManager telephonyManager = 219 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 220 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_CALL_STATE) [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
DefaultUserAgentInfoLoader.java | 20 import android.telephony.TelephonyManager; 75 // load the MMS User agent and UaProfUrl from TelephonyManager APIs 76 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( 78 mUserAgent = telephonyManager.getMmsUserAgent(); 79 mUAProfUrl = telephonyManager.getMmsUAProfUrl();
|
Utils.java | 25 import android.telephony.TelephonyManager; 112 final TelephonyManager telephonyManager = 113 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 114 final String mccMncString = telephonyManager.getSimOperator();
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
BugleUserAgentInfoLoader.java | 21 import android.telephony.TelephonyManager; 78 // load the MMS User agent and UaProfUrl from TelephonyManager APIs 79 final TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( 81 mUserAgent = telephonyManager.getMmsUserAgent(); 82 mUAProfUrl = telephonyManager.getMmsUAProfUrl();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
TelephonyUtil.java | 26 import android.telephony.TelephonyManager; 78 final TelephonyManager telephonyManager = TelephonyManager.from(context); 93 int subId1 = telephonyManager.getSubIdForPhoneAccount(account1); 94 int subId2 = telephonyManager.getSubIdForPhoneAccount(account2);
|
CreateConnectionTimeout.java | 24 import android.telephony.TelephonyManager; 124 TelephonyManager telephonyManager = 125 (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); 126 if (telephonyManager.isRadioOn()) {
|
/packages/apps/Settings/src/com/android/settings/ |
SettingsDumpService.java | 26 import android.telephony.TelephonyManager; 79 TelephonyManager telephonyManager = TelephonyManager.from(this); 84 telephonyManager.getSubscriberId(info.getSubscriptionId()));
|
/packages/experimental/ExampleImsFramework/src/com/android/example/imsframework/ |
ImsFrameworkApp.java | 28 import android.telephony.TelephonyManager; 92 // all ISIM records are loaded, query them through TelephonyManager 107 TelephonyManager telephonyManager = 108 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 110 Log.d(TAG, "ISIM IMPI: " + telephonyManager.getIsimImpi()); 111 Log.d(TAG, "ISIM Domain: " + telephonyManager.getIsimDomain()); 112 Log.d(TAG, "ISIM IMPU: " + Arrays.toString(telephonyManager.getIsimImpu()));
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
TelephonyManagerTest.java | 4 import android.telephony.TelephonyManager; 23 private TelephonyManager manager; 29 manager = newInstanceOf(TelephonyManager.class); 46 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE); 47 shadowOf(telephonyManager).setDeviceId(testId); 48 assertEquals(testId, telephonyManager.getDeviceId()); 53 TelephonyManager telephonyManager = (TelephonyManager) application.getSystemService(TELEPHONY_SERVICE) [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
DeviceInfoUtils.java | 27 import android.telephony.TelephonyManager; 180 final TelephonyManager telephonyManager = 181 (TelephonyManager) context.getSystemService(TELEPHONY_SERVICE); 183 telephonyManager.getLine1Number(subscriptionInfo.getSubscriptionId()); 196 final TelephonyManager telephonyManager = 197 (TelephonyManager) context.getSystemService(TELEPHONY_SERVICE); 200 final String rawNumber = telephonyManager.getLine1Number(
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
VisualVoicemailSmsFilter.java | 23 import android.telephony.TelephonyManager; 60 TelephonyManager telephonyManager = 61 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 67 telephonyManager.getVisualVoicemailSmsFilterSettings(vvmClientPackage, subId); 98 String mccMnc = telephonyManager.getSimOperator(subId);
|
/packages/apps/Dialer/src/com/android/dialer/settings/ |
DialerSettingsActivity.java | 27 import android.telephony.TelephonyManager; 84 TelephonyManager telephonyManager = 85 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); 93 && TelephonyManagerCompat.getPhoneCount(telephonyManager) <= 1) { 119 && (TelephonyManagerCompat.isTtyModeSupported(telephonyManager) 120 || TelephonyManagerCompat.isHearingAidCompatibilitySupported(telephonyManager))) {
|
SoundSettingsFragment.java | 33 import android.telephony.TelephonyManager; 112 TelephonyManager telephonyManager = 113 (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); 115 && telephonyManager.canChangeDtmfToneLength() 116 && (telephonyManager.isWorldPhone() || !shouldHideCarrierSettings())) {
|
/packages/apps/Settings/src/com/android/settings/sim/ |
SimSelectNotification.java | 29 import android.telephony.TelephonyManager; 45 final TelephonyManager telephonyManager = (TelephonyManager) 48 final int numSlots = telephonyManager.getSimCount(); 70 state = telephonyManager.getSimState(i); 71 if (!(state == TelephonyManager.SIM_STATE_ABSENT 72 || state == TelephonyManager.SIM_STATE_READY 73 || state == TelephonyManager.SIM_STATE_UNKNOWN)) {
|
/packages/services/Telephony/src/com/android/phone/settings/ |
VoicemailNotificationSettingsUtil.java | 24 import android.telephony.TelephonyManager; 88 TelephonyManager telephonyManager = TelephonyManager.from(phone.getContext()); 91 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) { 127 TelephonyManager telephonyManager = TelephonyManager.from(phone.getContext()); 130 if (prefs.contains(key) || telephonyManager.getPhoneCount() != 1) {
|
/frameworks/base/services/core/java/com/android/server/policy/ |
GlobalActions.java | 58 import android.telephony.TelephonyManager; 151 TelephonyManager telephonyManager = 152 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 153 telephonyManager.listen(mPhoneStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); [all...] |
/packages/apps/Dialer/src/com/android/dialer/ |
SpecialCharSequenceMgr.java | 36 import android.telephony.TelephonyManager; 198 TelephonyManager telephonyManager = 199 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 200 if (telephonyManager == null 201 || telephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_GSM) { 326 TelephonyManager telephonyManager = 327 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE) [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
OmtpVvmCarrierConfigHelper.java | 26 import android.telephony.TelephonyManager; 105 TelephonyManager telephonyManager = 106 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 108 .getConfig(telephonyManager.getSimOperator(subId)); 330 TelephonyManager telephonyManager = mContext.getSystemService(TelephonyManager.class); 331 telephonyManager.enableVisualVoicemailSmsFilter(mSubId, 339 mContext.getSystemService(TelephonyManager.class [all...] |
/packages/apps/BasicSmsReceiver/tests/src/com/android/basicsmsreceiver/ |
DialogSmsDisplayTests.java | 34 import android.telephony.TelephonyManager; 77 TelephonyManager telephonyManager = ((TelephonyManager)dialogSmsDisplayActivity 79 mHasSms = true; //telephonyManager.isSmsCapable(); 80 mMyNumber = telephonyManager.getLine1Number();
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/ |
FetchVoicemailReceiver.java | 32 import android.telephony.TelephonyManager; 108 TelephonyManager telephonyManager = (TelephonyManager) 110 accountId = telephonyManager.getSimSerialNumber();
|