Home
last modified time | relevance | path

Searched refs:PhoneUtils (Results 1 – 25 of 79) 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()
DBugleApplication.java45 import com.android.messaging.util.PhoneUtils;
241 PhoneUtils.forEachActiveSubscription(new PhoneUtils.SubscriptionRunnable() { in maybeHandleSharedPrefsUpgrade()
/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()
DSmsReceiver.java53 import com.android.messaging.util.PhoneUtils;
95 final boolean carrierSmsEnabled = PhoneUtils.getDefault().isSmsEnabled(); in updateSmsReceiveHandler()
192 int subId = PhoneUtils.getDefault().getEffectiveIncomingSubIdFromSystem( in deliverSmsIntent()
233 if (PhoneUtils.getDefault().isSmsEnabled()) { in onReceive()
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/apps/Messaging/src/com/android/messaging/datamodel/data/
DParticipantData.java39 import com.android.messaging.util.PhoneUtils;
182 PhoneUtils.getDefault().getCanonicalBySystemLocale(pd.mSendDestination); in getFromRecipientEntry()
185 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRecipientEntry()
239 PhoneUtils.getDefault().getCanonicalBySystemLocale(pd.mSendDestination); in getFromRawPhoneBySystemLocale()
242 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRawPhoneBySystemLocale()
262 PhoneUtils.get(subId).getCanonicalBySimLocale(pd.mSendDestination); in getFromRawPhoneBySimLocale()
265 PhoneUtils.getDefault().formatForDisplay(pd.mNormalizedDestination); in getFromRawPhoneBySimLocale()
395 PhoneUtils.get(mSubId).getCanonicalForSelf(true/*allowOverride*/); in updatePhoneNumberForSelfIfChanged()
402 PhoneUtils.getDefault().formatForDisplay(phoneNumber); in updatePhoneNumberForSelfIfChanged()
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeFactory.java41 import com.android.messaging.util.PhoneUtils;
62 @Mock protected PhoneUtils mPhoneUtils;
85 factory.mPhoneUtils = Mockito.mock(PhoneUtils.class); in registerWithFakeContext()
117 new PhoneUtils.LMr1() { in registerWithFakeContext()
214 public PhoneUtils getPhoneUtils(final int subId) { in getPhoneUtils()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModelImpl.java58 import com.android.messaging.util.PhoneUtils;
230 PhoneUtils.getDefault().toLMr1().registerOnSubscriptionsChangedListener( in onApplicationCreated()
249 PhoneUtils.forEachActiveSubscription(new PhoneUtils.SubscriptionRunnable() { in createConnectivityUtilForEachActiveSubscription()
254 subId = PhoneUtils.getDefault().getDefaultSmsSubscriptionId(); in createConnectivityUtilForEachActiveSubscription()
/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;
171 final String carrierName = PhoneUtils.get(subId).getCarrierName(); in getSendErrorToastMessage()
211 final SmsManager smsManager = PhoneUtils.get(subId).getSmsManager(); in sendMessage()
255 final SmsManager smsManager = PhoneUtils.get(subId).getSmsManager(); in sendInternal()
/packages/services/Telephony/src/com/android/phone/vvm/
DPhoneAccountHandleConverter.java25 import com.android.phone.PhoneUtils;
50 return PhoneUtils.makePstnPhoneAccountHandle(phone); in fromSubId()
54 return PhoneUtils.getSubIdForPhoneAccountHandle(handle); in toSubId()
DVvmSimStateTracker.java37 import com.android.phone.PhoneUtils;
180 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
188 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessPendingMessagesAction.java43 import com.android.messaging.util.PhoneUtils;
62 PhoneUtils.forEachActiveSubscription(new PhoneUtils.SubscriptionRunnable() { in processFirstPendingMessage()
87 final boolean isDefaultSmsApp = PhoneUtils.getDefault().isDefaultSmsApp(); in scheduleProcessPendingMessagesAction()
303 if (PhoneUtils.getDefault().isDefaultSmsApp()) { in executeAction()
372 .getOrCreateSelf(db, PhoneUtils.getDefault() in findNextMessageToSend()
DBugleActionToasts.java29 import com.android.messaging.util.PhoneUtils;
58 final PhoneUtils phoneUtils = PhoneUtils.get(subId); in onSendMessageOrManualDownloadActionCompleted()
/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;
171 } else if (PhoneUtils.isValidSmsMmsDestination( in doInBackground()
263 PhoneUtils.isValidSmsMmsDestination(entry.getDestination())) { in getRecipientParticipantDataForConversationCreation()
283 set.add(PhoneUtils.getDefault().getCanonicalBySystemLocale( in getSelectedDestinations()
/packages/services/Telephony/src/com/android/phone/
DMMIDialogActivity.java105 mMMIDialog = PhoneUtils.displayMMIInitiate(this, mmiCode, message, mMMIDialog); in showMMIDialog()
124 PhoneUtils.displayMMIComplete(mPhone, this, mmiCode, null, null); in onMMIComplete()
144 PhoneUtils.cancelMmiCode(mPhone); in onMMICancel()
DPhoneGlobals.java260 PhoneUtils.cancelMmiCode(mCM.getFgPhone());
410 PhoneUtils.registerIccStatus(mHandler, EVENT_SIM_NETWORK_LOCKED); in onCreate()
564 PhoneUtils.displayMMIComplete(mmiCode.getPhone(), getInstance(), mmiCode, null, null); in onMMIComplete()
609 PhoneUtils.setRadioPower(false); in setRadioPowerOff()
619 PhoneUtils.setRadioPower(true); in setRadioPowerOn()
670 PhoneUtils.unregisterIccStatus(mHandler, phoneId); in onReceive()
671 PhoneUtils.registerIccStatus(mHandler, EVENT_SIM_NETWORK_LOCKED, phoneId); in onReceive()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java35 import com.android.phone.PhoneUtils;
153 int callStatus = PhoneUtils.placeOtaspCall(this, in onStartOtaspCall()
156 if (callStatus == PhoneUtils.CALL_STATUS_DIALED) { in onStartOtaspCall()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugMmsConfigFragment.java38 import com.android.messaging.util.PhoneUtils;
66 final int[] mccmnc = PhoneUtils.get(subIdArray[position]).getMccMnc(); in onCreateView()
86 PhoneUtils.getDefault().toLMr1().getActiveSubscriptionInfoList(); in getActiveSubIds()

1234