/packages/apps/Contacts/tests/src/com/android/contacts/ |
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...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
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...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TestPhoneNotifier.java.broken | 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...] |
PhoneFactoryTest.java | 30 Phone phone = PhoneFactory.getDefaultPhone(); local 36 Phone phone = PhoneFactory.getPhone(0); local 42 Phone[] phone = PhoneFactory.getPhones(); local
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
Projections.java | 19 import android.provider.ContactsContract.CommonDataKinds.Phone; 46 Phone._ID, // 0 47 Phone.TYPE, // 1 48 Phone.LABEL, // 2 49 Phone.NUMBER, // 3 50 Phone.DISPLAY_NAME_PRIMARY, // 4 51 Phone.PHOTO_ID, // 5 52 Phone.PHOTO_THUMBNAIL_URI, // 6 53 Phone.LOOKUP_KEY, // 7 54 Phone.CARRIER_PRESENCE, // [all...] |
/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...] |
/packages/apps/Contacts/src/com/android/contacts/compat/ |
PhoneCompat.java | 20 import android.provider.ContactsContract.CommonDataKinds.Phone; 28 Uri.withAppendedPath(Phone.CONTENT_URI, "filter_enterprise"); 34 return Phone.CONTENT_FILTER_URI;
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
ContactDisplayUtils.java | 19 import static android.provider.ContactsContract.CommonDataKinds.Phone; 50 * @param type Phone data type. 54 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT; 58 * Gets a display label for a given phone type. 61 * @param customLabel A custom label to use if the phone is determined to be of custom type 99 case Phone.TYPE_HOME: 101 case Phone.TYPE_MOBILE: 103 case Phone.TYPE_WORK: 105 case Phone.TYPE_FAX_WORK [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
ContactDisplayUtils.java | 21 import android.provider.ContactsContract.CommonDataKinds.Phone; 44 * @param type Phone data type. 48 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT; 52 * Gets a display label for a given phone type. 55 * @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/Dialer/java/com/android/contacts/common/ |
ContactTileLoaderFactory.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 29 * <p>Only returns contacts with phone numbers. 36 * strequent items, use Phone.contact_id instead. 46 Phone.NUMBER, 47 Phone.TYPE, 48 Phone.LABEL, 49 Phone.IS_SUPER_PRIMARY, 51 Phone.CONTACT_ID,
|
/packages/apps/Dialer/java/com/android/contacts/common/compat/ |
PhoneCompat.java | 22 import android.provider.ContactsContract.CommonDataKinds.Phone; 28 Uri.withAppendedPath(Phone.CONTENT_URI, "filter_enterprise"); 34 return Phone.CONTENT_FILTER_URI;
|
/external/guice/examples/src/example/xml/ |
Phone.java | 3 public class Phone {
|
/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...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/resolver/ |
ResolverTest.java | 43 yaml.addImplicitResolver(new Tag(Tag.PREFIX + "Phone"), regexp, "0123456789"); 44 Phone phone1 = new Phone("12-34-567"); 45 Phone phone2 = new Phone("11-22-333"); 46 Phone phone3 = new Phone("44-55-777"); 47 List<Phone> etalonList = new ArrayList<Phone>(); 53 List<Phone> parsedList = (List<Phone>) yaml.load(output) 107 Phone phone = (Phone) data; local 135 Point phone = (Point) data; local 143 Phone phone = (Phone) data; local [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...] |
/packages/apps/Dialer/java/com/android/dialer/speeddial/ |
StrequentContactsCursorLoader.java | 25 import android.provider.ContactsContract.CommonDataKinds.Phone; 46 Phone._ID, // 0 47 Phone.DISPLAY_NAME, // 1 48 Phone.STARRED, // 2 49 Phone.PHOTO_URI, // 3 50 Phone.LOOKUP_KEY, // 4 51 Phone.PHOTO_ID, // 5 52 Phone.NUMBER, // 6 53 Phone.TYPE, // 7 54 Phone.LABEL, // [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
SqlInjectionDetectionTest.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 44 private static final String[] PHONE_ID_PROJECTION = new String[] { Phone._ID }; 52 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, 53 Phone.NUMBER + "='555-123-4567'", null); 61 assertQueryThrows(Phone.CONTENT_URI, 65 assertQueryThrows(Phone.CONTENT_URI, new String[] { "a" }, null, null); 66 assertQueryThrows(Phone.CONTENT_URI, new String[] { " _id" }, null, null); 69 assertQueryThrows(Phone.CONTENT_URI, new String[] { "[_id]" }, null, null); 73 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, 75 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, ";delete from contacts", null) [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...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
ImsExternalCall.java | 24 import com.android.internal.telephony.Phone; 34 private Phone mPhone; 36 public ImsExternalCall(Phone phone, ImsExternalConnection connection) { 37 mPhone = phone; 47 public Phone getPhone() {
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
MultiSelectPhoneNumbersListAdapter.java | 26 import android.provider.ContactsContract.CommonDataKinds.Phone; 34 /** Phone Numbers multi-select cursor adapter. */ 39 Phone._ID, // 0 40 Phone.TYPE, // 1 41 Phone.LABEL, // 2 42 Phone.NUMBER, // 3 43 Phone.CONTACT_ID, // 4 44 Phone.LOOKUP_KEY, // 5 45 Phone.PHOTO_ID, // 6 46 Phone.DISPLAY_NAME_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...] |