Home
last modified time | relevance | path

Searched refs:PhoneUtils (Results 1 – 25 of 80) 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()
DFactory.java32 import com.android.messaging.util.PhoneUtils;
68 public abstract PhoneUtils getPhoneUtils(int subId); in getPhoneUtils()
/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()
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()
/packages/services/Telephony/tests/src/com/android/phone/
DPhoneUtilsTest.java71 assertTrue(PhoneUtils.isPhoneAccountActive( in testIsPhoneAccountActive()
77 assertEquals(mMockPhone, PhoneUtils.getPhoneForPhoneAccountHandle( in testGetPhoneForPhoneAccountHandle()
85 assertEquals(phoneAccountHandleTest, PhoneUtils.makePstnPhoneAccountHandleWithId( in testMakePstnPhoneAccountHandleWithPrefix()
94 assertEquals(phoneAccountHandleTest, PhoneUtils.makePstnPhoneAccountHandleWithId( in testMakePstnPhoneAccountHandleWithPrefixForAnotherUser()
/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.java40 import com.android.phone.PhoneUtils;
185 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
193 if (!PhoneUtils.isPhoneAccountActive(subscriptionManager, phoneAccountHandle)) { in checkRemovedSim()
/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/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/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/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/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()
/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/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()
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()
/packages/services/Telephony/src/com/android/phone/otasp/
DOtaspActivationService.java36 import com.android.phone.PhoneUtils;
159 int callStatus = PhoneUtils.placeOtaspCall(this, in onStartOtaspCall()
162 if (callStatus == PhoneUtils.CALL_STATUS_DIALED) { in onStartOtaspCall()
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java66 public abstract class PhoneUtils { class
83 public PhoneUtils(int subId) { in PhoneUtils() method in PhoneUtils
262 public static class PhoneUtilsPreLMR1 extends PhoneUtils {
416 public static class PhoneUtilsLMR1 extends PhoneUtils implements LMr1 {
633 numbers.add(PhoneUtils.get(info.getSubscriptionId()).getCanonicalForSelf( in getNormalizedSelfNumbers()
646 public static PhoneUtils getDefault() { in getDefault()
657 public static PhoneUtils get(int subId) { in get()
/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