Home
last modified time | relevance | path

Searched refs:phone (Results 1 – 25 of 203) sorted by relevance

123456789

/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java17 package com.android.phone;
101 import com.android.phone.vvm.PhoneAccountHandleConverter;
102 import com.android.phone.vvm.RemoteVvmTaskManager;
103 import com.android.phone.vvm.VisualVoicemailSettingsUtil;
104 import com.android.phone.vvm.VisualVoicemailSmsFilterConfig;
284 final Phone phone = getPhoneFromRequest(request); in handleMessage() local
305 request.result = phone != null ? in handleMessage()
306 phone.handleUssdRequest(ussdRequest, wrappedCallback) in handleMessage()
320 final Phone phone = getPhoneFromRequest(request); in handleMessage() local
321 request.result = phone != null ? in handleMessage()
[all …]
DPhoneUtils.java17 package com.android.phone;
66 import com.android.phone.CallGatewayManager.RawGatewayInfo;
218 final Phone phone = ringingCall.getPhone(); in answerCall() local
219 final boolean phoneIsCdma = (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); in answerCall()
376 static boolean hangupRingingAndActive(Phone phone) { in hangupRingingAndActive() argument
379 Call ringingCall = phone.getRingingCall(); in hangupRingingAndActive()
380 Call fgCall = phone.getForegroundCall(); in hangupRingingAndActive()
523 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
525 return placeCall(context, phone, number, contactRef, isEmergencyCall, in placeCall()
551 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
[all …]
DNotificationMgr.java17 package com.android.phone;
59 import com.android.phone.settings.VoicemailSettingsActivity;
259 Phone phone = PhoneGlobals.getPhone(subId); in updateMwi() local
264 if (phone == null) { in updateMwi()
288 String vmNumber = phone.getVoiceMailNumber(); in updateMwi()
297 if ((vmNumber == null) && !phone.getIccRecordsLoaded()) { in updateMwi()
304 if (TelephonyCapabilities.supportsVoiceMessageCount(phone)) { in updateMwi()
305 vmCount = phone.getVoiceMessageCount(); in updateMwi()
311 PhoneAccountHandle phoneAccountHandle = PhoneUtils.makePstnPhoneAccountHandle(phone); in updateMwi()
369 if (!maybeSendVoicemailNotificationUsingDefaultDialer(phone, vmCount, vmNumber, in updateMwi()
[all …]
DCallController.java17 package com.android.phone;
22 import com.android.phone.CallGatewayManager.RawGatewayInfo;
23 import com.android.phone.Constants.CallStatusCode;
280 Phone phone = null; in placeCallInternal() local
308 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUri, in placeCallInternal()
310 if (VDBG) log("- got Phone instance: " + phone + ", class = " + phone.getClass()); in placeCallInternal()
314 phone.getServiceState().getState()); in placeCallInternal()
428 phone, in placeCallInternal()
457 if (PhoneUtils.isPhoneInEcm(phone) && !isEmergencyNumber) { in placeCallInternal()
462 if (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) { in placeCallInternal()
DNetworkSetting.java17 package com.android.phone;
205 Phone phone = PhoneFactory.getPhone(mPhoneId); in onPreferenceTreeClick() local
206 if (phone != null) { in onPreferenceTreeClick()
207 phone.selectNetworkManually(mNetworkMap.get(selectedCarrier), true, msg); in onPreferenceTreeClick()
393 Phone phone = PhoneFactory.getPhone(mPhoneId); in displayNetworkSelectionFailed() local
394 if (phone != null) { in displayNetworkSelectionFailed()
395 ServiceState ss = tm.getServiceStateForSubscriber(phone.getSubId()); in displayNetworkSelectionFailed()
397 app.notificationMgr.updateNetworkSelection(ss.getState(), phone.getSubId()); in displayNetworkSelectionFailed()
534 Phone phone = PhoneFactory.getPhone(mPhoneId); in selectNetworkAutomatic() local
535 if (phone != null) { in selectNetworkAutomatic()
[all …]
DSpecialCharSequenceMgr.java17 package com.android.phone;
157 final Phone phone = PhoneGlobals.getPhone(); in handleSecretCode() local
158 phone.sendDialerSpecialCode(input.substring(4, len - 4)); in handleSecretCode()
201 Phone phone = PhoneGlobals.getPhone(); in handlePinEntry() local
202 boolean isMMIHandled = phone.handlePinMmi(input); in handlePinEntry()
230 Phone phone = PhoneGlobals.getPhone(); in showDeviceIdPanel() local
231 int labelId = TelephonyCapabilities.getDeviceIdLabel(phone); in showDeviceIdPanel()
232 String deviceId = phone.getDeviceId(); in showDeviceIdPanel()
DPhoneGlobals.java17 package com.android.phone;
58 import com.android.phone.common.CallLogAsync;
59 import com.android.phone.settings.SettingsConstants;
60 import com.android.phone.vvm.CarrierVvmPackageInstalledReceiver;
269 for (Phone phone : PhoneFactory.getPhones()) { in onCreate()
270 mCM.registerPhone(phone); in onCreate()
669 Phone phone = SubscriptionManager.isValidPhoneId(phoneId) ? in onReceive() local
686 && !phone.getDataRoamingEnabled()) { in onReceive()
782 Phone phone = getPhone(subId); in clearMwiIndicator() local
783 if (phone == null) { in clearMwiIndicator()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java55 import com.android.phone.MMIDialogActivity;
56 import com.android.phone.PhoneUtils;
57 import com.android.phone.R;
275 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection() local
276 if (phone == null) { in onCreateOutgoingConnection()
283 number = phone.getVoiceMailNumber(); in onCreateOutgoingConnection()
312 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection() local
313 if (phone != null && CDMA_ACTIVATION_CODE_REGEX_PATTERN.matcher(number).matches()) { in onCreateOutgoingConnection()
319 phone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE); in onCreateOutgoingConnection()
321 disableActivation = cfgManager.getConfigForSubId(phone.getSubId()) in onCreateOutgoingConnection()
[all …]
DTelephonyConnection.java53 import com.android.phone.ImsUtil;
54 import com.android.phone.PhoneGlobals;
55 import com.android.phone.PhoneUtils;
56 import com.android.phone.R;
635 Phone phone = mOriginalConnection.getCall().getPhone(); in performHold() local
636 Call ringingCall = phone.getRingingCall(); in performHold()
649 phone.switchHoldingAndActive(); in performHold()
748 Phone phone = getPhone(); in buildConnectionProperties() local
749 if (phone != null && phone.isInEcm()) { in buildConnectionProperties()
932 Phone phone = getPhone(); in shouldSetDisableAddCallExtra() local
[all …]
DEmergencyCallStateListener.java64 Phone phone = (Phone) args.arg1;
67 startSequenceInternal(phone, callback);
104 public void waitForRadioOn(Phone phone, Callback callback) { in waitForRadioOn() argument
105 Log.d(this, "waitForRadioOn: Phone " + phone.getPhoneId()); in waitForRadioOn()
113 args.arg1 = phone; in waitForRadioOn()
123 private void startSequenceInternal(Phone phone, Callback callback) { in startSequenceInternal() argument
124 Log.d(this, "startSequenceInternal: Phone " + phone.getPhoneId()); in startSequenceInternal()
131 mPhone = phone; in startSequenceInternal()
DImsConference.java41 import com.android.phone.PhoneGlobals;
42 import com.android.phone.PhoneUtils;
43 import com.android.phone.R;
442 Phone phone = mConferenceHost.getPhone(); in onMerge() local
443 if (phone != null) { in onMerge()
444 phone.conference(); in onMerge()
961 Phone phone = mConferenceHost.getPhone(); in updateStatusHints() local
962 if (phone != null) { in updateStatusHints()
963 Context context = phone.getContext(); in updateStatusHints()
1008 Phone phone = mConferenceHost.getPhone(); in getCarrierConfig() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaTests.java68 final ContentValues phone = new ContentValues(); in getRawContact() local
69 phone.put(Data._ID, phoneId); in getRawContact()
70 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in getRawContact()
71 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in getRawContact()
72 phone.put(Phone.TYPE, Phone.TYPE_HOME); in getRawContact()
75 before.addDataItemValues(phone); in getRawContact()
101 final ContentValues phone = new ContentValues(); in testParcelChangesInsert() local
102 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testParcelChangesInsert()
103 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_2); in testParcelChangesInsert()
104 phone.put(Phone.TYPE, Phone.TYPE_WORK); in testParcelChangesInsert()
[all …]
DRawContactDeltaListTests.java384 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteInsert() local
385 phone.put(Phone.NUMBER, TEST_PHONE); in testMergeDataLocalUpdateRemoteInsert()
390 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
398 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
409 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalUpdateRemoteDelete() local
410 phone.put(Phone.NUMBER, TEST_PHONE); in testMergeDataLocalUpdateRemoteDelete()
415 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete()
424 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete()
435 final ValuesDelta phone = getPhone(first, CONTACT_BOB, PHONE_RED); in testMergeDataLocalDeleteRemoteUpdate() local
436 phone.markDeleted(); in testMergeDataLocalDeleteRemoteUpdate()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java167 SipPhone phone = findPhoneForProfile(sipAudioCall.getLocalProfile()); in onCreateIncomingConnection() local
168 if (phone == null) { in onCreateIncomingConnection()
169 phone = createPhoneForProfile(sipAudioCall.getLocalProfile()); in onCreateIncomingConnection()
171 if (phone != null) { in onCreateIncomingConnection()
172 com.android.internal.telephony.Connection originalConnection = phone.takeIncomingCall( in onCreateIncomingConnection()
192 SipPhone phone = findPhoneForProfile(profile); in createConnectionForProfile() local
193 if (phone == null) { in createConnectionForProfile()
194 phone = createPhoneForProfile(profile); in createConnectionForProfile()
196 if (phone != null) { in createConnectionForProfile()
197 return startCallWithPhone(phone, request); in createConnectionForProfile()
[all …]
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java206 private Phone phone = null; field in RadioInfo
358 phone = PhoneFactory.getDefaultPhone(); in onCreate()
431 phone.getPreferredNetworkType( in onCreate()
574 dnsCheckState.setText(phone.isDnsCheckDisabled() ? in updateDnsCheckState()
865 if(phone != null) { in updateNetworkType()
866 ServiceState ss = phone.getServiceState(); in updateNetworkType()
868 phone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
870 phone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
879 s = phone.getDeviceId(); in updateProperties()
884 s = phone.getLine1Number(); in updateProperties()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/
DOmtpMessageReceiver.java56 PhoneAccountHandle phone = sms.getPhoneAccountHandle(); in onReceive() local
58 if (phone == null) { in onReceive()
73 OmtpVvmCarrierConfigHelper helper = new OmtpVvmCarrierConfigHelper(mContext, phone); in onReceive()
74 if (!VisualVoicemailSettingsUtil.isEnabled(mContext, phone)) { in onReceive()
95 TAG, "Received SYNC sms for " + phone + " with event " + message.getSyncTriggerEvent()); in onReceive()
96 processSync(phone, message); in onReceive()
98 VvmLog.v(TAG, "Received Status sms for " + phone); in onReceive()
103 ActivationTask.start(context, phone, data); in onReceive()
113 ActivationTask.start(context, phone, data); in onReceive()
125 private void processSync(PhoneAccountHandle phone, SyncMessage message) { in processSync() argument
[all …]
/packages/providers/ContactsProvider/tests/assets/upgradeTest/
Dcontacts2_1108.sql155phone._id AS primary_phone, phone.data1 AS number, phone.data2 AS type, phone.data3 AS label, _PHO…
157phone._id AS primary_phone, phone.data1 AS number, phone.data2 AS type, phone.data3 AS label, _PHO…
158phone._id AS primary_phone, phone.data1 AS number, phone.data2 AS type, phone.data3 AS label, _PHO…
162phone ON (raw_contacts._id = phone.raw_contact_id AND (SELECT mimetype FROM mimetypes WHERE mimety…
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DImeiInformation.java71 final Phone phone = PhoneFactory.getPhone(phoneId); in setPreferenceValue() local
73 if (phone != null) { in setPreferenceValue()
74 if (phone.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in setPreferenceValue()
75 setSummaryText(KEY_MEID_NUMBER, phone.getMeid()); in setPreferenceValue()
76 setSummaryText(KEY_MIN_NUMBER, phone.getCdmaMin()); in setPreferenceValue()
82 setSummaryText(KEY_PRL_VERSION, phone.getCdmaPrlVersion()); in setPreferenceValue()
84 if (phone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) { in setPreferenceValue()
86 setSummaryText(KEY_ICC_ID, phone.getIccSerialNumber()); in setPreferenceValue()
87 setSummaryTextAsDigit(KEY_IMEI, phone.getImei()); in setPreferenceValue()
88 setSummaryTextAsDigit(KEY_IMEI_SV, phone.getDeviceSvn()); in setPreferenceValue()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java977 String phone = c.getString(fi.mSmsColAddress); in setRecipientName() local
978 if (phone != null && !phone.isEmpty()) in setRecipientName()
979 name = getContactNameFromPhone(phone, mResolver); in setRecipientName()
985 String phone; in setRecipientName() local
987 phone = getAddressMms(mResolver, id, MMS_TO); in setRecipientName()
989 phone = e.getRecipientAddressing(); in setRecipientName()
991 if (phone != null && !phone.isEmpty()) in setRecipientName()
992 name = getContactNameFromPhone(phone, mResolver); in setRecipientName()
1095 String phone = c.getString(fi.mSmsColAddress); in setSenderName() local
1096 if (phone != null && !phone.isEmpty()) in setSenderName()
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java158 CharSequence phone = sim.getFormattedPhone(); in onCreateDialog()
159 if (phone == null) { in onCreateDialog()
160 phone = sim.getPhone(); in onCreateDialog()
162 if (phone != null) { in onCreateDialog()
163 phone = PhoneNumberUtilsCompat.createTtsSpannable(phone); in onCreateDialog()
166 if (count != -1 && phone != null) { in onCreateDialog()
170 return TextUtils.expandTemplate(template, String.valueOf(count), phone); in onCreateDialog()
171 } else if (phone != null) { in onCreateDialog()
172 return phone; in onCreateDialog()
/packages/apps/Contacts/src/com/android/contacts/model/
DSimContact.java51 public SimContact(long id, String name, String phone) { in SimContact() argument
52 this(id, name, phone, null); in SimContact()
55 public SimContact(long id, String name, String phone, String[] emails) { in SimContact() argument
58 mPhone = phone == null ? "" : phone.trim(); in SimContact()
200 final String phone = source.readString();
202 return new SimContact(id, name, phone, emails);
234 public static int findByPhoneAndName(List<SimContact> contacts, String phone, String name) { in findByPhoneAndName() argument
235 return Collections.binarySearch(contacts, new SimContact(-1, name, phone, null), in findByPhoneAndName()
/packages/apps/Settings/src/com/android/settings/support/
DSupportPhoneDialogFragment.java42 public static SupportPhoneDialogFragment newInstance(SupportPhone phone) { in newInstance() argument
45 bundle.putParcelable(EXTRA_PHONE, phone); in newInstance()
52 final SupportPhone phone = getArguments().getParcelable(EXTRA_PHONE); in onCreateDialog() local
61 new Locale(phone.language).getDisplayLanguage(), phone.number); in onCreateDialog()
71 final SupportPhone phone = getArguments().getParcelable(EXTRA_PHONE); in onClick() local
73 final Intent intent = phone.getDialIntent(); in onClick()
/packages/services/Telephony/src/com/android/phone/vvm/
DPhoneAccountHandleConverter.java17 package com.android.phone.vvm;
24 import com.android.phone.PhoneUtils;
25 import com.android.phone.vvm.VvmLog;
45 Phone phone = PhoneFactory.getPhone(SubscriptionManager.getPhoneId(subId)); in fromSubId() local
46 if (phone == null) { in fromSubId()
50 return PhoneUtils.makePstnPhoneAccountHandle(phone); in fromSubId()
/packages/apps/Messaging/tools/messagegen/
Dfillsms185 phone="+1$AREA_CODE$middle$last"
186 echo $phone
193 add_sql "insert into canonical_addresses (_id,address) values ($addr_id,'$phone');"
207 …,date,status,type,body,read,seen) values ($message_id, $thread_id, '$phone', '$phone', $date, -1, …
241 …nsert into addr (_id,msg_id,address,type,charset) values ($id_1, $message_id, '$phone', 137, 106);"
245 …nsert into addr (_id,msg_id,address,type,charset) values ($id_2, $message_id, '$phone', 151, 106);"
/packages/services/Telephony/tests/src/com/android/phone/tests/
DCallDialTest.java17 package com.android.phone.tests;
158 ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.checkService("phone")); in doITelephonyCall() local
159 log("- phone: " + phone); in doITelephonyCall()
161 phone.call(getPackageName(), number); in doITelephonyCall()
176 ITelephony phone = ITelephony.Stub.asInterface(ServiceManager.checkService("phone")); in doITelephonyDial() local
177 log("- phone: " + phone); in doITelephonyDial()
179 phone.dial(number); in doITelephonyDial()

123456789