Home
last modified time | relevance | path

Searched refs:PhoneUtils (Results 1 – 25 of 91) sorted by relevance

1234

/packages/apps/Messaging/src/com/android/messaging/
DFactoryImpl.java46 import com.android.messaging.util.PhoneUtils;
62 private PhoneUtils mPhoneUtils;
69 private static PhoneUtils sPhoneUtilsInstancePreLMR1 = null;
71 private static final ConcurrentHashMap<Integer, PhoneUtils> sPhoneUtilsInstanceCacheLMR1 =
160 subId = PhoneUtils.getDefault().getEffectiveSubId(subId); in getSubscriptionPrefs()
199 public PhoneUtils getPhoneUtils(int subId) { in getPhoneUtils()
208 PhoneUtils instance = sPhoneUtilsInstanceCacheLMR1.get(subId); in getPhoneUtils()
210 instance = new PhoneUtils.PhoneUtilsLMR1(subId); in getPhoneUtils()
219 sPhoneUtilsInstancePreLMR1 = new PhoneUtils.PhoneUtilsPreLMR1(); in getPhoneUtils()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DOmtpVvmSourceManager.java26 import com.android.phone.PhoneUtils;
90 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { in removeInactiveSources()
97 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { in removeInactiveSources()
104 removeSource(PhoneUtils.makePstnPhoneAccountHandle(phone)); in removeSource()
118 addPhoneStateListener(PhoneUtils.makePstnPhoneAccountHandle(phone)); in addPhoneStateListener()
124 PhoneUtils.makePstnPhoneAccountHandle(phoneAccount.getId())); in addPhoneStateListener()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DPhoneNumberPreference.java29 import com.android.messaging.util.PhoneUtils;
63 ? PhoneUtils.get(mSubId).formatForDisplay(value) in onBindView()
83 (PhoneUtils.get(mSubId).getCanonicalBySystemLocale(mDefaultPhoneNumber), in onBindDialogView()
94 final PhoneUtils phoneUtils = PhoneUtils.get(mSubId); in onDialogClosed()
DApplicationSettingsActivity.java45 import com.android.messaging.util.PhoneUtils;
194 PhoneUtils.getDefault().getDefaultSmsAppLabel()); in updateSmsEnabledPreferences()
197 if (PhoneUtils.getDefault().isDefaultSmsApp()) { in updateSmsEnabledPreferences()
225 || PhoneUtils.getDefault().isDefaultSmsApp(); in updateNotificationsPreferences()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DMmsWapPushReceiver.java26 import com.android.messaging.util.PhoneUtils;
39 if (PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
41 final int subId = PhoneUtils.getDefault().getEffectiveIncomingSubIdFromSystem( in onReceive()
50 if (!PhoneUtils.getDefault().isSmsEnabled()) { in mmsReceived()
DAbortSmsReceiver.java24 import com.android.messaging.util.PhoneUtils;
35 if (!OsUtil.isAtLeastKLP() && PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
DAbortMmsWapPushReceiver.java26 import com.android.messaging.util.PhoneUtils;
38 if (!OsUtil.isAtLeastKLP() && PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
DMmsWapPushDeliverReceiver.java25 import com.android.messaging.util.PhoneUtils;
37 int subId = PhoneUtils.getDefault().getEffectiveIncomingSubIdFromSystem( in onReceive()
/packages/services/Telephony/src/com/android/phone/
DCallController.java304 number = PhoneUtils.getInitialNumber(intent); in placeCallInternal()
317 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUri, in placeCallInternal()
325 } catch (PhoneUtils.VoiceMailNumberMissingException ex) { in placeCallInternal()
436 int callStatus = PhoneUtils.placeCall(mApp, in placeCallInternal()
445 case PhoneUtils.CALL_STATUS_DIALED: in placeCallInternal()
466 if (PhoneUtils.isPhoneInEcm(phone) && !isEmergencyNumber) { in placeCallInternal()
501 case PhoneUtils.CALL_STATUS_DIALED_MMI: in placeCallInternal()
514 case PhoneUtils.CALL_STATUS_FAILED: in placeCallInternal()
DPhoneGlobals.java222 PhoneUtils.cancelMmiCode(mCM.getFgPhone());
345 PhoneUtils.registerIccStatus(mHandler, EVENT_SIM_NETWORK_LOCKED); in onCreate()
351 PhoneUtils.initializeConnectionHandler(mCM); in onCreate()
371 PhoneUtils.setAudioMode(mCM); in onCreate()
594 … boolean isSpeakerInUse = (state == PhoneConstants.State.OFFHOOK) && PhoneUtils.isSpeakerOn(this); in updateWakeState()
625 PhoneUtils.displayMMIComplete(mmiCode.getPhone(), getInstance(), mmiCode, null, null); in onMMIComplete()
644 if (PhoneUtils.isInEmergencyCall(mCM)) { in handleAirplaneModeChange()
652 PhoneUtils.setRadioPower(false); in handleAirplaneModeChange()
656 PhoneUtils.setRadioPower(true); in handleAirplaneModeChange()
DCallLogger.java67 log("- onDisconnect(): logNumber set to:" + PhoneUtils.toLogSafePhoneNumber(logNumber) + in logCall()
68 ", number set to: " + PhoneUtils.toLogSafePhoneNumber(number)); in logCall()
130 ci = ((PhoneUtils.CallerInfoToken) o).currentInfo; in getCallerInfoFromConnection()
179 String newNumber = PhoneUtils.modifyForSpecialCnapCases(mApplication, callerInfo, in getLogNumber()
DMMIDialogActivity.java91 mMMIDialog = PhoneUtils.displayMMIInitiate(this, mmiCode, message, mMMIDialog); in showMMIDialog()
108 PhoneUtils.displayMMIComplete(mPhone, this, mmiCode, null, null); in onMMIComplete()
126 PhoneUtils.cancelMmiCode(mPhone); in onMMICancel()
DEmergencyCallHelper.java369 int callStatus = PhoneUtils.placeCall(mApp, in placeEmergencyCall()
380 case PhoneUtils.CALL_STATUS_DIALED: in placeEmergencyCall()
384 case PhoneUtils.CALL_STATUS_DIALED_MMI: in placeEmergencyCall()
385 case PhoneUtils.CALL_STATUS_FAILED: in placeEmergencyCall()
DOtaUtils.java394 int callStatus = PhoneUtils.placeCall(context, in startNonInteractiveOtasp()
400 if (callStatus == PhoneUtils.CALL_STATUS_DIALED) { in startNonInteractiveOtasp()
464 number = PhoneUtils.getInitialNumber(intent); in isOtaspCallIntent()
465 } catch (PhoneUtils.VoiceMailNumberMissingException ex) { in isOtaspCallIntent()
552 if (state == PhoneUtils.isSpeakerOn(mContext)) { in setSpeaker()
557 PhoneUtils.turnOnSpeaker(mContext, state, true); in setSpeaker()
741 boolean speakerOn = PhoneUtils.isSpeakerOn(mContext); in otaShowListeningScreen()
874 boolean speakerOn = PhoneUtils.isSpeakerOn(mContext); in otaShowInProgressScreen()
1222 if (PhoneUtils.hangup(mApplication.mCM) == false) { in onClickOtaEndButton()
1235 boolean isChecked = !PhoneUtils.isSpeakerOn(mContext); in onClickOtaSpeakerButton()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/
DVvmPhoneStateListener.java27 import com.android.phone.PhoneUtils;
43 super(PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle)); in VvmPhoneStateListener()
70 PhoneUtils.getSubIdForPhoneAccountHandle(mPhoneAccount)); in onServiceStateChanged()
92 mContext, PhoneUtils.getSubIdForPhoneAccountHandle(mPhoneAccount)); in onServiceStateChanged()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DParticipantData.java37 import com.android.messaging.util.PhoneUtils;
176 PhoneUtils.getDefault().getCanonicalBySystemLocale(pd.mSendDestination); in getFromRecipientEntry()
179 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRecipientEntry()
233 PhoneUtils.getDefault().getCanonicalBySystemLocale(pd.mSendDestination); in getFromRawPhoneBySystemLocale()
236 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRawPhoneBySystemLocale()
256 PhoneUtils.get(subId).getCanonicalBySimLocale(pd.mSendDestination); in getFromRawPhoneBySimLocale()
259 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRawPhoneBySimLocale()
361 PhoneUtils.get(mSubId).getCanonicalForSelf(true/*allowOverride*/); in updatePhoneNumberForSelfIfChanged()
368 PhoneUtils.getDefault().formatForDisplay(phoneNumber); in updatePhoneNumberForSelfIfChanged()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java41 import com.android.messaging.util.PhoneUtils;
61 @Mock protected PhoneUtils mPhoneUtils;
84 factory.mPhoneUtils = Mockito.mock(PhoneUtils.class); in registerWithFakeContext()
116 new PhoneUtils.LMr1() { in registerWithFakeContext()
212 public PhoneUtils getPhoneUtils(final int subId) { in getPhoneUtils()
/packages/apps/Messaging/src/com/android/messaging/sms/
DBugleCarrierConfigValuesLoader.java30 import com.android.messaging.util.PhoneUtils;
58 subId = PhoneUtils.getDefault().getEffectiveSubId(subId); in get()
112 PhoneUtils.get(subId).getSmsManager().getCarrierConfigValues(); in loadFromSystem()
163 final int[] mccMnc = PhoneUtils.get(subId).getMccMnc(); in getSubDepContext()
DSmsStorageStatusManager.java29 import com.android.messaging.util.PhoneUtils;
39 if (!PhoneUtils.getDefault().isSmsEnabled()) { in handleStorageLow()
53 if (!PhoneUtils.getDefault().isSmsEnabled()) { in handleStorageOk()
DSmsSender.java36 import com.android.messaging.util.PhoneUtils;
174 final String carrierName = PhoneUtils.get(subId).getCarrierName(); in getSendErrorToastMessage()
214 final SmsManager smsManager = PhoneUtils.get(subId).getSmsManager(); in sendMessage()
258 final SmsManager smsManager = PhoneUtils.get(subId).getSmsManager(); in sendInternal()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java63 public abstract class PhoneUtils { class
80 public PhoneUtils(int subId) { in PhoneUtils() method in PhoneUtils
259 public static class PhoneUtilsPreLMR1 extends PhoneUtils {
410 public static class PhoneUtilsLMR1 extends PhoneUtils implements LMr1 {
627 numbers.add(PhoneUtils.get(info.getSubscriptionId()).getCanonicalForSelf( in getNormalizedSelfNumbers()
640 public static PhoneUtils getDefault() { in getDefault()
651 public static PhoneUtils get(int subId) { in get()
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
DContactRecipientAutoCompleteView.java39 import com.android.messaging.util.PhoneUtils;
167 } else if (PhoneUtils.isValidSmsMmsDestination( in doInBackground()
255 PhoneUtils.isValidSmsMmsDestination(entry.getDestination())) { in getRecipientParticipantDataForConversationCreation()
275 set.add(PhoneUtils.getDefault().getCanonicalBySystemLocale( in getSelectedDestinations()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DBugleActionToasts.java29 import com.android.messaging.util.PhoneUtils;
58 final PhoneUtils phoneUtils = PhoneUtils.get(subId); in onSendMessageOrManualDownloadActionCompleted()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/
DFetchVoicemailReceiver.java34 import com.android.phone.PhoneUtils;
108 mPhoneAccount = PhoneUtils.makePstnPhoneAccountHandle(accountId); in onReceive()
115 int subId = PhoneUtils.getSubIdForPhoneAccountHandle(mPhoneAccount); in onReceive()
/packages/services/Telephony/src/com/android/phone/settings/
DVisualVoicemailSettingsUtil.java24 import com.android.phone.PhoneUtils;
55 setVisualVoicemailEnabled(phone.getContext(), PhoneUtils.makePstnPhoneAccountHandle(phone), in setVisualVoicemailEnabled()
83 PhoneUtils.makePstnPhoneAccountHandle(phone)); in isVisualVoicemailEnabled()

1234