/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_CommonDataKinds_PhoneTest.java | 20 import android.provider.ContactsContract.CommonDataKinds.Phone; 34 assertGetTypeLabel(Phone.TYPE_ASSISTANT); 35 assertGetTypeLabel(Phone.TYPE_CALLBACK); 36 assertGetTypeLabel(Phone.TYPE_CAR); 37 assertGetTypeLabel(Phone.TYPE_COMPANY_MAIN); 38 assertGetTypeLabel(Phone.TYPE_FAX_HOME); 39 assertGetTypeLabel(Phone.TYPE_FAX_WORK); 40 assertGetTypeLabel(Phone.TYPE_HOME); 41 assertGetTypeLabel(Phone.TYPE_ISDN); 42 assertGetTypeLabel(Phone.TYPE_MAIN) [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
MoreContactUtilsTest.java | 3 import android.provider.ContactsContract.CommonDataKinds.Phone; 35 assertCollapses("41", true, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE, null); 36 assertCollapses("42", true, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "1"); 38 assertCollapses("51", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "2"); 39 assertCollapses("52", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, null); 40 assertCollapses("53", false, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE, "2") [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TestPhoneNotifier.java | 19 import com.android.internal.telephony.Phone; 33 public void notifyPhoneState(Phone sender) { 36 public void notifyServiceState(Phone sender) { 39 public void notifyCellLocation(Phone sender) { 42 public void notifySignalStrength(Phone sender) { 45 public void notifyMessageWaitingChanged(Phone sender) { 48 public void notifyCallForwardingChanged(Phone sender) { 51 public void notifyDataConnection(Phone sender, String reason, String apnType) { 54 public void notifyDataConnection(Phone sender, String reason, String apnType, 58 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType) [all...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
InCallPhoneListener.java | 19 import android.telecom.Phone; 23 * {@code Phone} object. Clarifies the expectations associated with the relevant method calls. 28 * Called once at {@code InCallService} startup time with a valid {@code Phone}. At 31 * @param phone The {@code Phone} object. 33 void setPhone(Phone phone);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
PhoneNotifier.java | 30 public void notifyPhoneState(Phone sender); 32 public void notifyServiceState(Phone sender); 34 public void notifyCellLocation(Phone sender); 36 public void notifySignalStrength(Phone sender); 38 public void notifyMessageWaitingChanged(Phone sender); 40 public void notifyCallForwardingChanged(Phone sender); 43 public void notifyDataConnection(Phone sender, String reason, String apnType, 46 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType); 48 public void notifyDataActivity(Phone sender); 50 public void notifyOtaspChanged(Phone sender, int otaspMode) [all...] |
TelephonyCapabilities.java | 21 import com.android.internal.telephony.Phone; 24 * Utilities that check if the phone supports specified capabilities. 34 * Return true if the current phone supports ECM ("Emergency Callback 47 public static boolean supportsEcm(Phone phone) { 48 Rlog.d(LOG_TAG, "supportsEcm: Phone type = " + phone.getPhoneType() + 49 " Ims Phone = " + phone.getImsPhone()); 50 return (phone.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA | [all...] |
MmiCode.java | 48 * @return Phone associated with the MMI/USSD message 50 public Phone getPhone();
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/testapps/ |
TestInCallServiceImpl.java | 20 import android.telecom.Phone; 33 private Phone mPhone; 35 private Phone.Listener mPhoneListener = new Phone.Listener() { 37 public void onCallAdded(Phone phone, android.telecom.Call call) { 41 public void onCallRemoved(Phone phone, android.telecom.Call call) { 47 public void onPhoneCreated(Phone phone) { [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
ContactDisplayUtils.java | 19 import static android.provider.ContactsContract.CommonDataKinds.Phone; 49 * @param type Phone data type. 53 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT; 57 * Gets a display label for a given phone type. 60 * @param customLabel A custom label to use if the phone is determined to be of custom type 98 case Phone.TYPE_HOME: 100 case Phone.TYPE_MOBILE: 102 case Phone.TYPE_WORK: 104 case Phone.TYPE_FAX_WORK [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List3.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 40 Cursor c = getContentResolver().query(Phone.CONTENT_URI, 48 Phone.TYPE, 49 Phone.NUMBER 52 //Used to display a readable string for the phone type 62 if (type == Phone.TYPE_CUSTOM) { 66 String text = (String) Phone.getTypeLabel(getResources(), type, label); 76 Phone._ID, 77 Phone.TYPE, 78 Phone.LABEL [all...] |
List7.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 43 Phone._ID, 44 Phone.TYPE, 45 Phone.LABEL, 46 Phone.NUMBER, 47 Phone.DISPLAY_NAME 58 mPhone = (TextView) findViewById(R.id.phone); 62 // This query will only return contacts with phone numbers 63 Cursor c = getContentResolver().query(Phone.CONTENT_URI, 64 PHONE_PROJECTION, Phone.NUMBER + " NOT NULL", null, null) 84 String phone = c.getString(COLUMN_PHONE_NUMBER); local [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
ContactDisplayUtilTests.java | 19 import static android.provider.ContactsContract.CommonDataKinds.Phone; 33 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_CUSTOM)); 34 assertTrue(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_ASSISTANT)); 38 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_HOME)); 39 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_FAX_WORK)); 40 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_MOBILE)); 41 assertFalse(ContactDisplayUtils.isCustomPhoneType(Phone.TYPE_OTHER)); 45 final CharSequence smsResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, 49 final CharSequence callResult = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_CUSTOM, 55 CharSequence result = ContactDisplayUtils.getLabelForCallOrSms(Phone.TYPE_HOME, "" [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
TypePrecedence.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 45 Phone.TYPE_CUSTOM, 46 Phone.TYPE_MAIN, 47 Phone.TYPE_MOBILE, 48 Phone.TYPE_HOME, 49 Phone.TYPE_WORK, 50 Phone.TYPE_OTHER, 51 Phone.TYPE_FAX_HOME, 52 Phone.TYPE_FAX_WORK, 53 Phone.TYPE_PAGER} [all...] |
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
TypePrecedence.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 38 Phone.TYPE_CUSTOM, 39 Phone.TYPE_MOBILE, 40 Phone.TYPE_HOME, 41 Phone.TYPE_WORK, 42 Phone.TYPE_OTHER, 43 Phone.TYPE_FAX_HOME, 44 Phone.TYPE_FAX_WORK, 45 Phone.TYPE_PAGER}; 94 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) [all...] |
FallbackSource.java | 33 import android.provider.ContactsContract.CommonDataKinds.Phone; 86 return new EditType(type, Phone.getTypeLabelResource(type)); 179 DataKind kind = getKindForMimetype(Phone.CONTENT_ITEM_TYPE); 181 kind = addKind(new DataKind(Phone.CONTENT_ITEM_TYPE, R.string.phoneLabelsGroup, 186 kind.actionBody = new SimpleInflater(Phone.NUMBER); 190 kind.typeColumn = Phone.TYPE; 192 kind.typeList.add(buildPhoneType(Phone.TYPE_HOME)); 193 kind.typeList.add(buildPhoneType(Phone.TYPE_MOBILE)); 194 kind.typeList.add(buildPhoneType(Phone.TYPE_WORK)); 195 kind.typeList.add(buildPhoneType(Phone.TYPE_FAX_WORK).setSecondary(true)) [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
Queries.java | 23 import android.provider.ContactsContract.CommonDataKinds.Phone; 27 * Phone and Email queries for supporting Chips UI. 31 public static final Query PHONE = new Query(new String[] { 33 Phone.NUMBER, // 1 34 Phone.TYPE, // 2 35 Phone.LABEL, // 3 36 Phone.CONTACT_ID, // 4 37 Phone._ID, // 5 42 }, Phone.CONTENT_FILTER_URI, Phone.CONTENT_URI) [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/ |
VCardExporterTests.java | 32 import android.provider.ContactsContract.CommonDataKinds.Phone; 408 mVerifier.addInputEntry().addContentValues(Phone.CONTENT_ITEM_TYPE) 409 .put(Phone.NUMBER, "1") 410 .put(Phone.TYPE, Phone.TYPE_HOME); 434 mVerifier.addInputEntry().addContentValues(Phone.CONTENT_ITEM_TYPE) 435 .put(Phone.NUMBER, "1234567890(abcdefghijklmnopqrstuvwxyz)") 436 .put(Phone.TYPE, Phone.TYPE_HOME); 448 entry.addContentValues(Phone.CONTENT_ITEM_TYPE [all...] |
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
VoiceContact.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 53 * Id for a phone number which doesn't belong to any other ids stored above. 62 * @param primaryId primary ID in phone table. 63 * @param homeId home ID in phone table. 64 * @param mobileId mobile ID in phone table. 65 * @param workId work ID in phone table. 66 * @param otherId other ID in phone table. 117 Phone._ID, 118 Phone.TYPE, 119 Phone.IS_PRIMARY [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForPhoneNumber.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 32 * Handler for phone number data rows. 38 super(context, dbHelper, aggregator, Phone.CONTENT_ITEM_TYPE, Phone.TYPE, Phone.LABEL); 47 if (values.containsKey(Phone.NUMBER)) { 48 final String number = values.getAsString(Phone.NUMBER); 49 final String normalizedNumber = values.getAsString(Phone.NORMALIZED_NUMBER); 68 if (values.containsKey(Phone.NUMBER)) { 72 values.getAsString(Phone.NUMBER) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsPhoneFactory.java | 19 import com.android.internal.telephony.Phone; 32 * @param context {@code Context} needed to create a Phone object 33 * @param phoneNotifier {@code PhoneNotifier} needed to create a Phone 38 PhoneNotifier phoneNotifier, Phone defaultPhone) {
|
/packages/services/Telephony/src/com/android/phone/ |
CdmaSystemSelectListPreference.java | 17 package com.android.phone; 31 import com.android.internal.telephony.Phone; 39 private Phone mPhone; 73 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 77 case Phone.CDMA_RM_ANY: 78 statusCdmaRoamingMode = Phone.CDMA_RM_ANY; 80 case Phone.CDMA_RM_HOME: 82 statusCdmaRoamingMode = Phone.CDMA_RM_HOME; 123 Settings.Global.CDMA_ROAMING_MODE, Phone.CDMA_RM_HOME); 125 if (statusCdmaRoamingMode == Phone.CDMA_RM_HOME | [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
SqlInjectionDetectionTest.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 43 private static final String[] PHONE_ID_PROJECTION = new String[] { Phone._ID }; 49 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, 50 Phone.NUMBER + "='555-123-4567'", null); 57 assertQueryThrows(IllegalArgumentException.class, Phone.CONTENT_URI, 65 assertQueryThrows(SQLiteException.class, Phone.CONTENT_URI, PHONE_ID_PROJECTION, 73 assertQueryThrows(SQLiteException.class, Phone.CONTENT_URI, 85 assertQueryValid(Phone.CONTENT_URI, 88 final Cursor c = mResolver.query(Phone.CONTENT_URI, PHONE_ID_PROJECTION, null, null, null);
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
ContactAccessorSdk5.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 36 * one and the phone number from the other. 74 // Load the phone number (if any). 75 cursor = contentResolver.query(Phone.CONTENT_URI, 76 new String[]{Phone.NUMBER}, 77 Phone.CONTACT_ID + "=" + contactId, null, Phone.IS_SUPER_PRIMARY + " DESC");
|
/packages/apps/Dialer/tests/src/com/android/dialer/interactions/ |
PhoneNumberInteractionTest.java | 24 import android.provider.ContactsContract.CommonDataKinds.Phone; 83 .returnRow(1, "123", 0, null, null, Phone.TYPE_HOME, null, 84 Phone.CONTENT_ITEM_TYPE, 13); 102 .returnRow(1, "987", 0, null, null, Phone.TYPE_HOME, null, 103 Phone.CONTENT_ITEM_TYPE, 1); 121 .returnRow(1, "123", 0, null, null, Phone.TYPE_HOME, null, 122 Phone.CONTENT_ITEM_TYPE, 13) 123 .returnRow(2, "456", 1, null, null, Phone.TYPE_HOME, null, 124 Phone.CONTENT_ITEM_TYPE, 13); 162 .returnRow(1, "123", 0, null, null, Phone.TYPE_HOME, null [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
TelephonyGlobals.java | 21 import com.android.internal.telephony.Phone; 32 * app - running as the default user. {@link com.android.phone.PhoneApp} determines whether or not 42 // For supporting MSIM phone, change Phone and TtyManager as 1 to 1 63 Phone[] phones = PhoneFactory.getPhones(); 64 for (Phone phone : phones) { 65 mTtyManagers.add(new TtyManager(mContext, phone));
|