/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
PhoneFactory.java | 64 static private Phone[] sPhones = null; 65 static private Phone sPhone = null; 135 /* In case of multi SIM mode two instances of Phone, RIL are created, 140 sPhones = new Phone[numPhones]; 161 Phone phone = null; local 164 phone = new GsmCdmaPhone(context, 169 phone = new GsmCdmaPhone(context, 174 Rlog.i(LOG_TAG, "Creating Phone with type = " + phoneType + " sub = " + i); 176 sPhones[i] = phone; 245 Phone phone; local 380 Phone phone = phones[i]; local [all...] |
WakeLockStateMachine.java | 53 protected Phone mPhone; 64 protected WakeLockStateMachine(String debugTag, Context context, Phone phone) { 68 mPhone = phone; 80 public void updatePhoneObject(Phone phone) { 81 sendMessage(EVENT_UPDATE_PHONE_OBJECT, phone); 116 mPhone = (Phone) msg.obj; 117 log("updatePhoneObject: phone=" + mPhone.getClass().getSimpleName());
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/ |
BluetoothPbapVcardManagerTest.java | 31 import android.provider.ContactsContract.CommonDataKinds.Phone; 50 columnNames = new String[]{Phone.CONTACT_ID, Phone.DISPLAY_NAME}; 93 new String[]{ContactsContract.CommonDataKinds.Phone.CONTACT_ID, 94 ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME}); 120 new String[]{ContactsContract.CommonDataKinds.Phone.CONTACT_ID, 121 ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME});
|
/packages/services/Telephony/src/com/android/phone/ |
OtaUtils.java | 17 package com.android.phone; 19 import com.android.internal.telephony.Phone; 23 import com.android.phone.OtaUtils.CdmaOtaInCallScreenUiState.State; 87 "com.android.phone.PERFORM_CDMA_PROVISIONING"; 91 "com.android.phone.PERFORM_VOICELESS_CDMA_PROVISIONING"; 95 "com.android.phone.DISPLAY_ACTIVATION_SCREEN"; 100 "com.android.phone.VOICELESS_PROVISIONING_OFFER_DONTSHOW"; 120 // PendingIntent which the phone app can use to send a result code 204 * true IFF the current device is a voice-capable phone. 227 Phone phone = PhoneGlobals.getPhone() local 391 Phone phone = PhoneGlobals.getPhone(); local 434 Phone phone = app.mCM.getDefaultPhone(); local [all...] |
CallWaitingCheckBoxPreference.java | 1 package com.android.phone; 4 import com.android.internal.telephony.Phone; 6 import static com.android.phone.TimeConsumingPreferenceActivity.RESPONSE_ERROR; 16 import com.android.internal.telephony.Phone; 23 private Phone mPhone; 39 TimeConsumingPreferenceListener listener, boolean skipReading, Phone phone) { 40 mPhone = phone;
|
SubscriptionInfoHelper.java | 17 package com.android.phone; 28 import com.android.phone.PhoneGlobals; 29 import com.android.internal.telephony.Phone; 44 "com.android.phone.settings.SubscriptionInfoHelper.SubscriptionId"; 47 "com.android.phone.settings.SubscriptionInfoHelper.SubscriptionLabel"; 92 * @return Phone object. If a subscription id exists, it returns the phone for the id. 94 public Phone getPhone() {
|
PhoneInterfaceManager.java | 17 package com.android.phone; 69 import com.android.internal.telephony.Phone; 80 import com.android.phone.settings.VoicemailNotificationSettingsUtil; 146 private Phone mPhone; 229 * A handler that processes messages on the main thread in the phone process. Since many 230 * of the Phone calls are not thread safe this is needed to shuttle the requests from the 231 * inbound binder threads to the main thread in the phone process. The Binder thread 252 final Phone phone = getPhoneFromRequest(request); local 253 request.result = phone != null 295 Phone phone = getPhone(end_subId); local 886 Phone phone = getPhoneFromRequest(request); local 1051 final Phone phone = getPhone(subId); local 1070 final Phone phone = getPhone(subId); local 1089 final Phone phone = getPhone(subId); local 1247 final Phone phone = getPhone(subId); local 1267 final Phone phone = getPhone(subId); local 1282 final Phone phone = getPhone(subId); local 1294 final Phone phone = getPhone(subId); local 1311 Phone phone = PhoneFactory.getPhone(i); local 1327 Phone phone = PhoneFactory.getPhone(phoneId); local 1339 final Phone phone = getPhone(subId); local 1353 final Phone phone = getPhone(subId); local 1367 final Phone phone = getPhone(subId); local 1380 final Phone phone = getPhone(subId); local 1405 Phone phone = PhoneFactory.getPhone(slotId); local 1412 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); local 1422 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); local 1445 Phone phone = getPhone(mSubscriptionController.getDefaultDataSubId()); local 1480 final Phone phone = getPhone(subId); local 1495 final Phone phone = getPhone(subId); local 1573 Phone phone = PhoneFactory.getPhone(slotId); local 1582 Phone phone = PhoneFactory.getPhone(slotId); local 1711 final Phone phone = PhoneFactory.getPhone(slotId); local 1732 final Phone phone = getPhone(subId); local 1755 final Phone phone = getPhone(subId); local 1776 final Phone phone = getPhone(subId); local 1790 final Phone phone = getPhone(subId); local 1804 final Phone phone = getPhone(subId); local 1842 final Phone phone = getPhone(subId); local 1858 final Phone phone = getPhone(getDefaultSubscription()); local 1875 final Phone phone = getPhone(subId); local 1900 final Phone phone = getPhone(subId); local 1917 final Phone phone = getPhone(subId); local 1939 final Phone phone = getPhone(subId[0]); local 1967 final Phone phone = getPhone(subId); local 2350 Phone phone = PhoneFactory.getPhone(phoneId); local 2379 Phone phone = PhoneFactory.getPhone(phoneId); local 2392 final Phone phone = getPhone(subId); local 2488 final Phone phone = getPhone(subId); local 2508 final Phone phone = getPhone(subId); local 2659 final Phone phone = getPhone(subId); local 2668 final Phone phone = getPhone(subId); local 2783 final Phone phone = PhoneFactory.getPhone(0); local 3009 final Phone phone = getPhone(subId); local 3027 final Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(accountHandle); local 3044 final Phone phone = PhoneUtils.getPhoneForPhoneAccountHandle(accountHandle); local [all...] |
SimContacts.java | 17 package com.android.phone; 39 import android.provider.ContactsContract.CommonDataKinds.Phone; 62 * SIM Address Book UI for the Phone app. 84 phoneType = Phone.TYPE_WORK; 86 phoneType = Phone.TYPE_MOBILE; 88 phoneType = Phone.TYPE_HOME; 90 phoneType = Phone.TYPE_OTHER; 94 phoneType = Phone.TYPE_OTHER; 173 builder.withValueBackReference(Phone.RAW_CONTACT_ID, 0); 174 builder.withValue(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/ |
ContactsUtils.java | 36 import android.provider.ContactsContract.CommonDataKinds.Phone; 56 if (Phone.CONTENT_ITEM_TYPE.equals(mimeType) 58 // Reset to phone mimetype so we generate a label for SMS case 59 mimeType = Phone.CONTENT_ITEM_TYPE; 60 colType = cursor.getColumnIndex(Phone.TYPE); 61 colLabel = cursor.getColumnIndex(Phone.LABEL); 88 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { 89 defaultType = Phone.TYPE_HOME; 90 customType = Phone.TYPE_CUSTOM; 293 String phone = null local [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/ |
OmtpVvmSourceManager.java | 16 package com.android.phone.vvm.omtp.sync; 25 import com.android.internal.telephony.Phone; 26 import com.android.phone.PhoneUtils; 27 import com.android.phone.vvm.omtp.VvmPhoneStateListener; 36 * voicemail source is tied 1:1 to a phone account, the phone account handle is used as the key 47 // Each phone account is associated with a phone state listener for updates to whether the 85 * list of registered phone accounts against the active subscriptions list and remove the 95 // Remove any orphaned phone state listeners as well [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
PstnPhoneCapabilitiesNotifier.java | 26 import com.android.internal.telephony.Phone; 28 import com.android.phone.PhoneUtils; 31 * Listens to phone's capabilities changed event and notifies Telecomm. One instance of these exists 44 private final Phone mPhone; 61 PstnPhoneCapabilitiesNotifier(Phone phone, Listener listener) { 62 Preconditions.checkNotNull(phone); 64 mPhone = phone;
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardJapanizationTests.java | 21 import android.provider.ContactsContract.CommonDataKinds.Phone; 365 entry.addContentValues(Phone.CONTENT_ITEM_TYPE) 366 .put(Phone.NUMBER, "0312341234") 367 .put(Phone.TYPE, Phone.TYPE_HOME); 368 entry.addContentValues(Phone.CONTENT_ITEM_TYPE) 369 .put(Phone.NUMBER, "09012341234") 370 .put(Phone.TYPE, Phone.TYPE_MOBILE); 387 entry.addContentValues(Phone.CONTENT_ITEM_TYPE [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
AtPhonebook.java | 29 import android.provider.ContactsContract.CommonDataKinds.Phone; 48 * to AT+CPBR for the MC, RC, and DC phone books (missed, received, and 56 * to AT+CPBR for the ME phonebook (saved phone numbers). 59 Phone._ID, Phone.DISPLAY_NAME, Phone.NUMBER, Phone.TYPE 69 private static final String VISIBLE_PHONEBOOK_WHERE = Phone.IN_VISIBLE_GROUP + "=1"; 88 // package and class name to which we send intent to check phone book access permission 272 * for the selected phone book, but this causes problems for th [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmInboundSmsHandler.java | 26 import com.android.internal.telephony.Phone; 47 Phone phone) { 48 super("GsmInboundSmsHandler", context, storageMonitor, phone, 49 GsmCellBroadcastHandler.makeGsmCellBroadcastHandler(context, phone)); 50 phone.mCi.setOnNewGsmSms(getHandler(), EVENT_NEW_SMS, null); 51 mDataDownloadHandler = new UsimDataDownloadHandler(phone.mCi); 70 SmsStorageMonitor storageMonitor, Phone phone) { 71 GsmInboundSmsHandler handler = new GsmInboundSmsHandler(context, storageMonitor, phone); [all...] |
/packages/apps/EmergencyInfo/src/com/android/emergency/ |
EmergencyContactManager.java | 29 * Provides methods to read name, phone number, photo, etc. from contacts. 48 ContactsContract.CommonDataKinds.Phone.NUMBER, 49 ContactsContract.CommonDataKinds.Phone.TYPE, 50 ContactsContract.CommonDataKinds.Phone.LABEL, 57 phoneType = ContactsContract.CommonDataKinds.Phone.getTypeLabel( 108 /** Wrapper for a contact with a phone number. */ 113 * The contact uri is associated to a particular phone number and can be used to reload that 119 /** The emergency contact's phone number selected by the user. */ 121 /** The emergency contact's phone number type (mobile, work, home, etc). */ 147 * The contact uri as defined in ContactsContract.CommonDataKinds.Phone.CONTENT_URI. Us [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/ |
ContactListItemViewTest.java | 19 import android.provider.ContactsContract.CommonDataKinds.Phone; 84 (String) cursor.getAt(Phone.NUMBER, row), 95 (String) cursor.getAt(Phone.NUMBER, row), 119 (String) cursor.getAt(Phone.NUMBER, 1),
|
/packages/apps/Dialer/src/com/android/dialer/interactions/ |
PhoneNumberInteraction.java | 35 import android.provider.ContactsContract.CommonDataKinds.Phone; 66 * Initiates phone calls or a text message. If there are multiple candidates, this class shows a 70 * Note that this class initiates not only usual *phone* calls but also *SIP* calls. 72 * TODO: clean up code and documents since it is quite confusing to use "phone numbers" or 73 * "phone calls" here while they can be SIP addresses or SIP calls (See also issue 5039627). 79 * A model object for capturing a phone number for a given contact. 89 /** {@link Phone#CONTENT_ITEM_TYPE} or {@link SipAddress#CONTENT_ITEM_TYPE}. */ 128 return MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE, phoneNumber, 129 Phone.CONTENT_ITEM_TYPE, phoneItem.phoneNumber); 152 * A list adapter that populates the list of contact's phone numbers [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_PhoneLookup.java | 25 import android.provider.ContactsContract.CommonDataKinds.Phone; 82 long dataId = rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 83 .with(Phone.DATA, "1111222333444") 84 .with(Email.TYPE, Phone.TYPE_HOME) 96 long dataId2 = rawContact2.newDataRow(Phone.CONTENT_ITEM_TYPE) 97 .with(Phone.DATA, "2111222333444") 98 .with(Phone.TYPE, Phone.TYPE_OTHER) 132 .appendPath("no-such-phone-number").build(); 192 .appendPath("no-such-phone-number").build() [all...] |
ContactsContract_SearchSnippetsTest.java | 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 224 rawContact.newDataRow(Phone.CONTENT_ITEM_TYPE) 225 .with(Phone.DATA, "510-123-5769") 226 .with(Email.TYPE, Phone.TYPE_HOME) 242 rawContact2.newDataRow(Phone.CONTENT_ITEM_TYPE) 243 .with(Phone.DATA, "123-456-7890") 244 .with(Phone.TYPE, Phone.TYPE_OTHER)
|
/packages/services/Telephony/src/com/android/phone/settings/ |
CallForwardInfoUtil.java | 17 package com.android.phone.settings; 24 import com.android.internal.telephony.Phone; 25 import com.android.phone.PhoneGlobals; 74 * Sets the call forwarding option on the phone, with the command interface action set to the 77 public static void setCallForwardingOption(Phone phone, CallForwardInfo info, Message message) { 82 phone.setCallForwardingOption(commandInterfaceCfAction,
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/ |
ContactManager.java | 32 import android.provider.ContactsContract.CommonDataKinds.Phone; 289 .addPhone(rawContact.getCellPhone(), Phone.TYPE_MOBILE) 290 .addPhone(rawContact.getHomePhone(), Phone.TYPE_HOME) 291 .addPhone(rawContact.getOfficePhone(), Phone.TYPE_WORK) 358 } else if (mimeType.equals(Phone.CONTENT_ITEM_TYPE)) { 360 if (type == Phone.TYPE_MOBILE) { 364 } else if (type == Phone.TYPE_HOME) { 368 } else if (type == Phone.TYPE_WORK) { 386 // Add the cell phone, if present and not updated above 388 contactOp.addPhone(rawContact.getCellPhone(), Phone.TYPE_MOBILE) [all...] |
ContactOperations.java | 29 import android.provider.ContactsContract.CommonDataKinds.Phone; 172 * Adds a phone number 174 * @param phone new phone number for the contact 178 public ContactOperations addPhone(String phone, int phoneType) { 180 if (!TextUtils.isEmpty(phone)) { 181 mValues.put(Phone.NUMBER, phone); 182 mValues.put(Phone.TYPE, phoneType); 183 mValues.put(Phone.MIMETYPE, Phone.CONTENT_ITEM_TYPE) [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ExchangeSource.java | 29 import android.provider.ContactsContract.CommonDataKinds.Phone; 128 kind.typeColumn = Phone.TYPE; 130 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME).setSpecificMax(2)); 131 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE).setSpecificMax(1)); 132 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK).setSpecificMax(2)); 133 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true) 135 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true) 138 .add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true).setSpecificMax(1)); 139 kind.typeList.add(buildPhoneType(Phone.TYPE_CAR).setSecondary(true).setSpecificMax(1)); 140 kind.typeList.add(buildPhoneType(Phone.TYPE_COMPANY_MAIN).setSecondary(true [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
BaseAccountType.java | 30 import android.provider.ContactsContract.CommonDataKinds.Phone; 104 static final int PHONE = 10; 126 return new EditType(type, Phone.getTypeLabelResource(type)); 257 DataKind kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup, 258 Weight.PHONE, true)); 263 kind.actionBody = new SimpleInflater(Phone.NUMBER); 264 kind.typeColumn = Phone.TYPE; 266 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 267 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 268 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)) [all...] |
ExchangeAccountType.java | 27 import android.provider.ContactsContract.CommonDataKinds.Phone; 177 kind.typeColumn = Phone.TYPE; 179 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE).setSpecificMax(1)); 180 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME).setSpecificMax(2)); 181 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK).setSpecificMax(2)); 182 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true) 184 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_HOME).setSecondary(true) 187 .add(buildPhoneType(Phone.TYPE_PAGER).setSecondary(true).setSpecificMax(1)); 188 kind.typeList.add(buildPhoneType(Phone.TYPE_CAR).setSecondary(true).setSpecificMax(1)); 189 kind.typeList.add(buildPhoneType(Phone.TYPE_COMPANY_MAIN).setSecondary(true [all...] |