Home
last modified time | relevance | path

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

1234567891011

/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailNotificationSettingsUtil.java17 package com.android.phone.settings;
28 import com.android.phone.R;
48 public static void setVibrationEnabled(Phone phone, boolean isEnabled) { in setVibrationEnabled() argument
49 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setVibrationEnabled()
51 editor.putBoolean(getVoicemailVibrationSharedPrefsKey(phone), isEnabled); in setVibrationEnabled()
55 public static boolean isVibrationEnabled(Phone phone) { in isVibrationEnabled() argument
56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in isVibrationEnabled()
57 migrateVoicemailVibrationSettingsIfNeeded(phone, prefs); in isVibrationEnabled()
58 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(phone), false /* defValue */); in isVibrationEnabled()
61 public static void setRingtoneUri(Phone phone, Uri ringtoneUri) { in setRingtoneUri() argument
[all …]
DVisualVoicemailSettingsUtil.java16 package com.android.phone.settings;
24 import com.android.phone.PhoneUtils;
25 import com.android.phone.vvm.omtp.OmtpConstants;
26 import com.android.phone.vvm.omtp.sms.StatusMessage;
53 public static void setVisualVoicemailEnabled(Phone phone, boolean isEnabled, in setVisualVoicemailEnabled() argument
55 setVisualVoicemailEnabled(phone.getContext(), PhoneUtils.makePstnPhoneAccountHandle(phone), in setVisualVoicemailEnabled()
81 public static boolean isVisualVoicemailEnabled(Phone phone) { in isVisualVoicemailEnabled() argument
82 return isVisualVoicemailEnabled(phone.getContext(), in isVisualVoicemailEnabled()
83 PhoneUtils.makePstnPhoneAccountHandle(phone)); in isVisualVoicemailEnabled()
DVoicemailRingtonePreference.java1 package com.android.phone.settings;
13 import com.android.phone.common.util.SettingsUtil;
42 public void init(Phone phone) { in init() argument
43 mPhone = phone; in init()
46 VoicemailNotificationSettingsUtil.getRingtoneUri(phone); in init()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java51 import com.android.phone.MMIDialogActivity;
52 import com.android.phone.PhoneUtils;
53 import com.android.phone.R;
118 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection() local
119 if (phone == null) { in onCreateOutgoingConnection()
126 number = phone.getVoiceMailNumber(); in onCreateOutgoingConnection()
155 final Phone phone = getPhoneForAccount(request.getAccountHandle(), false); in onCreateOutgoingConnection() local
156 if (phone != null && CDMA_ACTIVATION_CODE_REGEX_PATTERN.matcher(number).matches()) { in onCreateOutgoingConnection()
162 phone.getContext().getSystemService(Context.CARRIER_CONFIG_SERVICE); in onCreateOutgoingConnection()
164 disableActivation = cfgManager.getConfigForSubId(phone.getSubId()) in onCreateOutgoingConnection()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java17 package com.android.phone;
80 import com.android.phone.settings.VoicemailNotificationSettingsUtil;
252 final Phone phone = getPhoneFromRequest(request); in handleMessage() local
253 request.result = phone != null ? in handleMessage()
295 Phone phone = getPhone(end_subId); in handleMessage() local
296 if (phone == null) { in handleMessage()
300 int phoneType = phone.getPhoneType(); in handleMessage()
848 /* package */ static PhoneInterfaceManager init(PhoneGlobals app, Phone phone) { in init() argument
851 sInstance = new PhoneInterfaceManager(app, phone); in init()
860 private PhoneInterfaceManager(PhoneGlobals app, Phone phone) { in PhoneInterfaceManager() argument
[all …]
DPhoneUtils.java17 package com.android.phone;
66 import com.android.phone.CallGatewayManager.RawGatewayInfo;
219 final Phone phone = ringingCall.getPhone(); in answerCall() local
220 final boolean phoneIsCdma = (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA); in answerCall()
377 static boolean hangupRingingAndActive(Phone phone) { in hangupRingingAndActive() argument
380 Call ringingCall = phone.getRingingCall(); in hangupRingingAndActive()
381 Call fgCall = phone.getForegroundCall(); in hangupRingingAndActive()
524 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
526 return placeCall(context, phone, number, contactRef, isEmergencyCall, in placeCall()
552 public static int placeCall(Context context, Phone phone, String number, Uri contactRef, in placeCall() argument
[all …]
DCallController.java17 package com.android.phone;
23 import com.android.phone.CallGatewayManager.RawGatewayInfo;
24 import com.android.phone.Constants.CallStatusCode;
232 Phone phone = mApp.mCM.getDefaultPhone(); in placeCall() local
233 if (TelephonyCapabilities.supportsOtasp(phone)) { in placeCall()
289 Phone phone = null; in placeCallInternal() local
317 phone = PhoneUtils.pickPhoneBasedOnNumber(mCM, scheme, number, sipPhoneUri, in placeCallInternal()
319 if (VDBG) log("- got Phone instance: " + phone + ", class = " + phone.getClass()); in placeCallInternal()
323 phone.getServiceState().getState()); in placeCallInternal()
437 phone, in placeCallInternal()
[all …]
DHfaLogic.java17 package com.android.phone;
136 final Phone phone = PhoneGlobals.getInstance().getPhone(); in bounceRadio() local
137 phone.registerForServiceStateChanged(mHandler, SERVICE_STATE_CHANGED, null); in bounceRadio()
140 phone.setRadioPower(false); in bounceRadio()
141 onServiceStateChange(phone.getServiceState()); in bounceRadio()
146 final Phone phone = PhoneGlobals.getInstance().getPhone(); in onServiceStateChange() local
153 phone.setRadioPower(true); in onServiceStateChange()
158 phone.unregisterForServiceStateChanged(mHandler); in onServiceStateChange()
DCdmaVoicePrivacyCheckBoxPreference.java17 package com.android.phone;
33 Phone phone; field in CdmaVoicePrivacyCheckBoxPreference
39 phone = PhoneGlobals.getPhone(); in CdmaVoicePrivacyCheckBoxPreference()
40 phone.getEnhancedVoicePrivacy(mHandler.obtainMessage(MyHandler.MESSAGE_GET_VP)); in CdmaVoicePrivacyCheckBoxPreference()
56 phone.enableEnhancedVoicePrivacy(isChecked(), in onClick()
102 phone.getEnhancedVoicePrivacy(obtainMessage(MESSAGE_GET_VP)); in handleSetVPResponse()
DNotificationMgr.java17 package com.android.phone;
52 import com.android.phone.settings.VoicemailSettingsActivity;
53 import com.android.phone.vvm.omtp.sync.VoicemailStatusQueryHelper;
54 import com.android.phone.settings.VoicemailNotificationSettingsUtil;
208 Phone phone = PhoneGlobals.getPhone(subId); in updateMwi() local
209 if (visible && phone != null) { in updateMwi()
211 PhoneAccountHandle phoneAccount = PhoneUtils.makePstnPhoneAccountHandle(phone); in updateMwi()
222 if (phone == null) { in updateMwi()
246 String vmNumber = phone.getVoiceMailNumber(); in updateMwi()
255 if ((vmNumber == null) && !phone.getIccRecordsLoaded()) { in updateMwi()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaTests.java72 final ContentValues phone = new ContentValues(); in getRawContact() local
73 phone.put(Data._ID, phoneId); in getRawContact()
74 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in getRawContact()
75 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in getRawContact()
76 phone.put(Phone.TYPE, Phone.TYPE_HOME); in getRawContact()
79 before.addDataItemValues(phone); in getRawContact()
105 final ContentValues phone = new ContentValues(); in testParcelChangesInsert() local
106 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testParcelChangesInsert()
107 phone.put(Phone.NUMBER, TEST_PHONE_NUMBER_2); in testParcelChangesInsert()
108 phone.put(Phone.TYPE, Phone.TYPE_WORK); in testParcelChangesInsert()
[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/deviceinfo/
DImeiInformation.java66 final Phone phone = PhoneFactory.getPhone(phoneId); in setPreferenceValue() local
68 if (phone != null) { in setPreferenceValue()
69 if (phone.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in setPreferenceValue()
70 setSummaryText(KEY_MEID_NUMBER, phone.getMeid()); in setPreferenceValue()
71 setSummaryText(KEY_MIN_NUMBER, phone.getCdmaMin()); in setPreferenceValue()
77 setSummaryText(KEY_PRL_VERSION, phone.getCdmaPrlVersion()); in setPreferenceValue()
80 if (phone.getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) { in setPreferenceValue()
82 setSummaryText(KEY_ICC_ID, phone.getIccSerialNumber()); in setPreferenceValue()
83 setSummaryText(KEY_IMEI, phone.getImei()); in setPreferenceValue()
91 setSummaryText(KEY_IMEI, phone.getImei()); in setPreferenceValue()
[all …]
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/
DImapHelper.java16 package com.android.phone.vvm.omtp.imap;
32 import com.android.phone.PhoneUtils;
33 import com.android.phone.VoicemailUtils;
34 import com.android.phone.common.mail.Address;
35 import com.android.phone.common.mail.Body;
36 import com.android.phone.common.mail.BodyPart;
37 import com.android.phone.common.mail.FetchProfile;
38 import com.android.phone.common.mail.Flag;
39 import com.android.phone.common.mail.Message;
40 import com.android.phone.common.mail.MessagingException;
[all …]
/packages/services/Telephony/src/com/android/phone/common/mail/store/
DImapConnection.java16 package com.android.phone.common.mail.store;
21 import com.android.phone.common.mail.AuthenticationFailedException;
22 import com.android.phone.common.mail.CertificateValidationException;
23 import com.android.phone.common.mail.MailTransport;
24 import com.android.phone.common.mail.MessagingException;
25 import com.android.phone.common.mail.store.imap.ImapConstants;
26 import com.android.phone.common.mail.store.imap.ImapResponse;
27 import com.android.phone.common.mail.store.imap.ImapResponseParser;
28 import com.android.phone.common.mail.store.imap.ImapUtility;
29 import com.android.phone.common.mail.utils.LogUtils;
[all …]
DImapFolder.java16 package com.android.phone.common.mail.store;
30 import com.android.phone.common.R;
31 import com.android.phone.common.mail.AuthenticationFailedException;
32 import com.android.phone.common.mail.Body;
33 import com.android.phone.common.mail.FetchProfile;
34 import com.android.phone.common.mail.Flag;
35 import com.android.phone.common.mail.Message;
36 import com.android.phone.common.mail.MessagingException;
37 import com.android.phone.common.mail.Part;
38 import com.android.phone.common.mail.internet.BinaryTempFileBody;
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapbMessageTest.java94 String[] phone = {"+4512345678", "+4587654321"}; in testSmsEncodeText() local
96 msg.addOriginator("Bonde,Casper", "Casper Bonde", phone, email, null, null); in testSmsEncodeText()
97 msg.addOriginator("Bonde,Casper", "Casper Bonde", phone, email, null, null); in testSmsEncodeText()
98 msg.addRecipient("", "Jens Hansen", phone, email, null, null); in testSmsEncodeText()
99 msg.addRecipient("", "Jens Hansen", phone, email, null, null); in testSmsEncodeText()
197 String[] phone = {"00498912345678", "+4587654321"}; in testSmsEncodeNativeDeliverPdu() local
199 msg.addOriginator("Bonde,Casper", "Casper Bonde", phone, email, null, null); in testSmsEncodeNativeDeliverPdu()
200 msg.addRecipient("", "Jens Hansen", phone, email, null, null); in testSmsEncodeNativeDeliverPdu()
267 String[] phone = {"00498912345678", "+4587654321"}; in testSmsEncodeDecodeNativeSubmitPdu() local
269 msg.addOriginator("Bonde,Casper", "Casper Bonde", phone, email, null, null); in testSmsEncodeDecodeNativeSubmitPdu()
[all …]
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sms/
DOmtpMessageReceiver.java16 package com.android.phone.vvm.omtp.sms;
32 import com.android.phone.PhoneGlobals;
33 import com.android.phone.PhoneUtils;
34 import com.android.phone.settings.VisualVoicemailSettingsUtil;
35 import com.android.phone.vvm.omtp.LocalLogHelper;
36 import com.android.phone.vvm.omtp.OmtpConstants;
37 import com.android.phone.vvm.omtp.sync.OmtpVvmSourceManager;
38 import com.android.phone.vvm.omtp.sync.OmtpVvmSyncService;
39 import com.android.phone.vvm.omtp.sync.VoicemailsQueryHelper;
/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/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DOmtpVvmSourceManager.java16 package com.android.phone.vvm.omtp.sync;
26 import com.android.phone.PhoneUtils;
27 import com.android.phone.vvm.omtp.VvmPhoneStateListener;
103 public void removeSource(Phone phone) { in removeSource() argument
104 removeSource(PhoneUtils.makePstnPhoneAccountHandle(phone)); in removeSource()
117 public void addPhoneStateListener(Phone phone) { in addPhoneStateListener() argument
118 addPhoneStateListener(PhoneUtils.makePstnPhoneAccountHandle(phone)); in addPhoneStateListener()
/packages/apps/Settings/src/com/android/settings/
DRadioInfo.java193 private Phone phone = null; field in RadioInfo
340 phone = PhoneFactory.getDefaultPhone(); in onCreate()
411 phone.getPreferredNetworkType( in onCreate()
476 phone.setCellInfoListRate(CELL_INFO_LIST_RATE_DISABLED); in onPause()
552 dnsCheckState.setText(phone.isDnsCheckDisabled() ? in updateDnsCheckState()
843 if( phone != null ) { in updateNetworkType()
844 ServiceState ss = phone.getServiceState(); in updateNetworkType()
846 phone.getServiceState().getRilDataRadioTechnology())); in updateNetworkType()
848 phone.getServiceState().getRilVoiceRadioTechnology())); in updateNetworkType()
857 s = phone.getDeviceId(); in updateProperties()
[all …]
/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/src/com/android/phone/vvm/omtp/
DVvmPhoneStateListener.java16 package com.android.phone.vvm.omtp;
26 import com.android.phone.PhoneGlobals;
27 import com.android.phone.PhoneUtils;
28 import com.android.phone.vvm.omtp.sync.OmtpVvmSourceManager;
29 import com.android.phone.vvm.omtp.sync.OmtpVvmSyncService;
30 import com.android.phone.vvm.omtp.sync.VoicemailStatusQueryHelper;
/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()
/packages/services/Telephony/src/com/android/phone/common/mail/internet/
DMimeBodyPart.java16 package com.android.phone.common.mail.internet;
18 import com.android.phone.common.mail.Body;
19 import com.android.phone.common.mail.BodyPart;
20 import com.android.phone.common.mail.MessagingException;
90 if (body instanceof com.android.phone.common.mail.Multipart) { in setBody()
91 com.android.phone.common.mail.Multipart multipart = in setBody()
92 ((com.android.phone.common.mail.Multipart)body); in setBody()

1234567891011