/packages/apps/Dialer/java/com/android/contacts/common/util/ |
TelephonyManagerUtils.java | 19 import android.telephony.TelephonyManager; 21 /** This class provides several TelephonyManager util functions. */ 31 final TelephonyManager telephonyManager = 32 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 33 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag();
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
TelephonyMangerCompat.java | 22 import android.telephony.TelephonyManager; 28 /** Handles {@link TelephonyManager} API changes in experimental SDK */ 30 /** Moved from VisualVoicemailService to TelephonyManager */ 40 TelephonyManager.class.getMethod( 43 LogUtil.i("TelephonyMangerCompat.sendVisualVoicemailSms", "using TelephonyManager"); 44 TelephonyManager telephonyManager = 46 .getSystemService(TelephonyManager.class) 48 return (String) method.invoke(telephonyManager, number, port, text, sentIntent); 75 /** Moved from VisualVoicemailService to TelephonyManager */ [all...] |
PreOMigrationHandler.java | 23 import android.telephony.TelephonyManager; 71 TelephonyManager telephonyManager = 73 .getSystemService(TelephonyManager.class) 75 if (telephonyManager == null) { 81 Method method = TelephonyManager.class.getMethod(METHOD_GET_VISUAL_VOICEMAIL_SETTINGS); 82 legacySettings = (Bundle) method.invoke(telephonyManager);
|
StatusCheckTask.java | 23 import android.telephony.TelephonyManager; 59 TelephonyManager telephonyManager = 61 .getSystemService(TelephonyManager.class) 64 if (telephonyManager == null) { 70 if (telephonyManager.getServiceState().getState() != ServiceState.STATE_IN_SERVICE) {
|
/packages/apps/Dialer/java/com/android/dialer/notification/ |
VoicemailChannelUtils.java | 32 import android.telephony.TelephonyManager; 173 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); 174 channel.enableVibration(telephonyManager.isVoicemailVibrationEnabled(handle)); 176 telephonyManager.getVoicemailRingtoneUri(handle), 213 return context.getSystemService(TelephonyManager.class).getPhoneCount() <= 1;
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
VoicemailRingtonePreference.java | 27 import android.telephony.TelephonyManager; 47 private final TelephonyManager telephonyManager; 71 telephonyManager = context.getSystemService(TelephonyManager.class); 84 telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle), 98 return telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle); 103 telephonyManager.setVoicemailRingtoneUri(phoneAccountHandle, ringtoneUri);
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
TestUssdActivity.java | 9 import android.telephony.TelephonyManager; 21 private TelephonyManager.UssdResponseCallback mReceiveUssdResponseCallback = 22 new TelephonyManager.UssdResponseCallback () { 24 public void onReceiveUssdResponse(final TelephonyManager telephonyManager, 31 public void onReceiveUssdResponseFailed(final TelephonyManager telephonyManager, 64 final TelephonyManager telephonyManager = 65 (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE) [all...] |
/packages/services/Telephony/src/com/android/phone/otasp/ |
OtaspSimStateReceiver.java | 24 import android.telephony.TelephonyManager; 38 if (otaspMode == TelephonyManager.OTASP_NEEDED) { 41 } else if (otaspMode == TelephonyManager.OTASP_NOT_NEEDED) { 76 final TelephonyManager telephonyManager = TelephonyManager.from(context); 77 telephonyManager.listen(mPhoneStateListener,
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
TelephonyManagerUtils.java | 19 import android.telephony.TelephonyManager; 25 * This class provides several TelephonyManager util functions. 37 final TelephonyManager telephonyManager = 38 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 39 final String voiceMailLabel = telephonyManager.getVoiceMailAlphaTag(); 51 final TelephonyManager telephonyManager = 52 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); 53 String countryIso = telephonyManager.getNetworkCountryIso().toUpperCase() [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/ |
VvmDumpHandler.java | 6 import android.telephony.TelephonyManager; 17 TelephonyManager telephonyManager = TelephonyManager.from(context); 26 "VisualVoicemailPackageName:" + telephonyManager.createForSubscriptionId(subId) 29 "VisualVoicemailSmsFilterSettings(" + subId + "):" + telephonyManager
|
VvmSimStateTracker.java | 30 import android.telephony.TelephonyManager; 82 TelephonyManager telephonyManager = getTelephonyManager(mContext, mPhoneAccountHandle); 83 if(telephonyManager == null){ 84 VvmLog.e(TAG, "Cannot create TelephonyManager from " + mPhoneAccountHandle); 87 telephonyManager.listen(this, PhoneStateListener.LISTEN_SERVICE_STATE); 91 // TelephonyManager does not need to be pinned to an account when removing a 94 mContext.getSystemService(TelephonyManager.class) 157 TelephonyManager telephonyManager = getTelephonyManager(context, phoneAccountHandle) [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...] |
/frameworks/base/telephony/java/android/telephony/ |
VisualVoicemailService.java | 203 * {@link TelephonyManager#setVisualVoicemailSmsFilterSettings(VisualVoicemailSmsFilterSettings) 252 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); 255 telephonyManager.disableVisualVoicemailSmsFilter(subId); 257 telephonyManager.enableVisualVoicemailSmsFilter(subId, settings); 284 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); 285 telephonyManager.sendVisualVoicemailSmsForSubscriber(getSubId(context, phoneAccountHandle) [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/apps/Dialer/java/com/android/dialer/app/voicemail/error/ |
VoicemailStatusCorruptionHandler.java | 26 import android.telephony.TelephonyManager; 70 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); 73 TelephonyManagerCompat.isVisualVoicemailEnabled(telephonyManager, phoneAccountHandle);
|
/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/apps/Settings/src/com/android/settings/datausage/ |
DataUsageUtils.java | 25 import android.telephony.TelephonyManager; 86 TelephonyManager telephonyManager = TelephonyManager.from(context); 88 telephonyManager.getSubscriberId(defaultSubId)); 90 telephonyManager.getMergedSubscriberIds());
|
/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);
|
/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()));
|
/packages/services/Telephony/src/com/android/phone/ |
PhoneSearchIndexablesProvider.java | 39 import android.telephony.TelephonyManager; 127 TelephonyManager telephonyManager = 128 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE); 130 .hideEnhanced4gLteSettings(getContext(), telephonyManager.getCarrierConfig());
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
VoicemailErrorManager.java | 27 import android.telephony.TelephonyManager; 110 TelephonyManager telephonyManager = 112 .getSystemService(TelephonyManager.class) 114 if (telephonyManager == null) { 126 telephonyManager.listen(serviceStateListener, PhoneStateListener.LISTEN_SERVICE_STATE); 159 TelephonyManager telephonyManager = context.getSystemService(TelephonyManager.class); 161 telephonyManager.listen(listener, PhoneStateListener.LISTEN_NONE) [all...] |
/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(
|