/developers/build/prebuilts/gradle/DirectShare/Application/src/main/java/com/example/android/directshare/ |
ContactViewBinder.java | 22 * A simple utility to bind a {@link TextView} with a {@link Contact}. 27 * Binds the {@code textView} with the specified {@code contact}. 29 * @param contact The contact. 32 public static void bind(Contact contact, TextView textView) { 33 textView.setText(contact.getName()); 34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
|
SampleChooserTargetService.java | 42 for (int i = 0; i < Contact.CONTACTS.length; ++i) { 43 Contact contact = Contact.byId(i); local 45 extras.putInt(Contact.ID, i); 48 contact.getName(), 50 Icon.createWithResource(this, contact.getIcon()),
|
/developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/ |
ContactViewBinder.java | 22 * A simple utility to bind a {@link TextView} with a {@link Contact}. 27 * Binds the {@code textView} with the specified {@code contact}. 29 * @param contact The contact. 32 public static void bind(Contact contact, TextView textView) { 33 textView.setText(contact.getName()); 34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
|
SampleChooserTargetService.java | 42 for (int i = 0; i < Contact.CONTACTS.length; ++i) { 43 Contact contact = Contact.byId(i); local 45 extras.putInt(Contact.ID, i); 48 contact.getName(), 50 Icon.createWithResource(this, contact.getIcon()),
|
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
ContactViewBinder.java | 22 * A simple utility to bind a {@link TextView} with a {@link Contact}. 27 * Binds the {@code textView} with the specified {@code contact}. 29 * @param contact The contact. 32 public static void bind(Contact contact, TextView textView) { 33 textView.setText(contact.getName()); 34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0);
|
SampleChooserTargetService.java | 42 for (int i = 0; i < Contact.CONTACTS.length; ++i) { 43 Contact contact = Contact.byId(i); local 45 extras.putInt(Contact.ID, i); 48 contact.getName(), 50 Icon.createWithResource(this, contact.getIcon()),
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
ContactParser.java | 28 import gov.nist.javax.sip.header.Contact; 38 * A parser for The SIP contact header. 45 public ContactParser(String contact) { 46 super(contact); 56 headerName(TokenTypes.CONTACT); 59 Contact contact = new Contact(); local 64 contact.setWildCardFlag(true); 66 super.parse(contact); [all...] |
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
ContactsContract_ContactsTest.java | 66 TestContact contact = rawContact.getContact().load(); local 68 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED)); 69 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED)); 75 Contacts.markAsContacted(mResolver, contact.getId()); 76 contact.load(); 80 contact.getLong(Contacts.LAST_TIME_CONTACTED)); 81 assertEquals("#" + i, i, contact.getLong(Contacts.TIMES_CONTACTED)); 89 Contacts.markAsContacted(mResolver, contact.getId()); 90 contact.load(); 94 contact.getLong(Contacts.LAST_TIME_CONTACTED)) 128 TestContact contact = rawContact.getContact().load(); local 206 final TestContact contact = rawContact.getContact().load(); local 251 final TestContact contact = rawContact.getContact().load(); local 296 final TestContact contact = rawContact.getContact().load(); local [all...] |
ContactsContract_PhotoTest.java | 64 TestContact contact = rawContact.getContact().load(); local 66 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 67 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); 68 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); 78 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 79 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)); 80 assertPhotoStream(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), false)); 85 TestContact contact = rawContact.getContact().load(); local 87 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri())); 88 assertNull(Contacts.openContactPhotoInputStream(mResolver, contact.getUri(), true)) [all...] |
ContactsContract_StructuredPhoneticName.java | 58 // Setup: contact with only phonetic name 70 TestContact contact = rawContact1.getContact().load(); local 71 contact.assertColumn(Contacts.DISPLAY_NAME_SOURCE, 82 // Setup: one raw contact has a complex phonetic name and the other a simple given name 113 TestContact contact = rawContact2.getContact().load(); local 114 contact.assertColumn(Contacts.DISPLAY_NAME, "name"); 119 // Setup: one raw contact has a complex phonetic name and the other a simple given name 150 TestContact contact = rawContact2.getContact().load(); local 151 contact.assertColumn(Contacts.DISPLAY_NAME, "name");
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
RawContact.java | 205 public static RawContact valueOf(JSONObject contact) { 208 final String userName = !contact.isNull("u") ? contact.getString("u") : null; 209 final int serverContactId = !contact.isNull("i") ? contact.getInt("i") : -1; 210 // If we didn't get either a username or serverId for the contact, then 213 throw new JSONException("JSON contact missing required 'u' or 'i' fields"); 216 final int rawContactId = !contact.isNull("c") ? contact.getInt("c") : -1; 217 final String firstName = !contact.isNull("f") ? contact.getString("f") : null [all...] |
/development/samples/SampleSyncAdapter/samplesyncadapter_server/ |
web_services.py | 131 it returns user's contact info in JSON format. 139 logging.info('*** Starting contact sync ***') 149 # the newly added contact. 159 logging.info('Returning ' + str(len(updated_contacts)) + ' contact records') 184 contacts = datastore.Contact.all() 190 for contact in contacts: 191 if (contact.updated > high_water_date): 192 high_water_date = contact.updated 198 for contact in contacts: 200 # contact (for example, it's a contact just uploaded from the client [all...] |
dashboard.py | 18 Defines Django forms for inserting/updating/viewing contact data 66 """Represents django form for entering contact info.""" 69 model = datastore.Contact 74 Processes requests to add a new contact. GET presents an empty 75 contact form for the user to fill in. POST saves the new contact 80 self.send_form('Add Contact', '/add_contact', -1, None, ContactForm()) 91 self.send_form('Add Contact', '/add_contact', -1, None, data) 96 Process requests to edit a contact's information. GET presents a form 97 with the current contact information filled in. POST saves new informatio [all...] |
/packages/apps/Dialer/java/com/android/dialer/calldetails/ |
CallDetailsHeaderViewHolder.java | 43 /** ViewHolder for Header/Contact in {@link CallDetailsActivity}. */ 57 private DialerContact contact; field in class:CallDetailsHeaderViewHolder 133 /** Populates the contact info fields based on the current contact information. */ 134 void updateContactInfo(DialerContact contact, @CallbackAction int callbackAction) { 135 this.contact = contact; 139 contact.getContactUri().isEmpty() ? null : Uri.parse(contact.getContactUri()), 140 contact.getPhotoId() [all...] |
CallDetailsAdapter.java | 43 private final DialerContact contact; field in class:CallDetailsAdapter 52 @NonNull DialerContact contact, 57 this.contact = Assert.isNotNull(contact); 89 ((CallDetailsHeaderViewHolder) holder).updateContactInfo(contact, getCallbackAction()); 93 ((CallDetailsFooterViewHolder) holder).setPhoneNumber(contact.getNumber()); 98 contact.getNumber(), 133 contact.getNumber(), entry.getFeatures(), entry.getIsDuoCall());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
GlobalSearchSupportTest.java | 56 // Remove the new contact from all groups 63 // If the contact is not in the "my contacts" group, nothing should be found 70 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 72 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 77 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 79 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 85 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 87 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 92 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").nickname( local 94 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2 99 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 106 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").company("Google") local 115 GoldenContact contact = new GoldenContactBuilder().name("Deer", "Dough").photo( local 127 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTester 294 private final GoldenContact contact; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
ContactLoaderTest.java | 50 * Runs ContactLoader tests for the the contact-detail and editor view. 92 private Contact assertLoadContact(Uri uri) { 98 Contact result = assertLoadContact(null); 103 Contact result = assertLoadContact(Uri.EMPTY); 108 Contact result = assertLoadContact(Uri.parse("content://wtf")); 124 Contact contact = assertLoadContact(baseUri); local 126 assertEquals(CONTACT_ID, contact.getId()); 127 assertEquals(RAW_CONTACT_ID, contact.getNameRawContactId()); 128 assertEquals(DisplayNameSources.STRUCTURED_NAME, contact.getDisplayNameSource()) 152 Contact contact = assertLoadContact(legacyUri); local 183 Contact contact = assertLoadContact(rawContactUri); local 207 Contact contact = assertLoadContact(lookupNoIdUri); local 231 Contact contact = assertLoadContact(lookupUri); local 265 Contact contact = assertLoadContact(lookupWithWrongIdUri); local 298 Contact contact = assertLoadContact(lookupUri); local [all...] |
RawContactTest.java | 42 final RawContact contact = new RawContact(values); local 43 contact.addDataItemValues(dataItem); 45 return contact; 57 final RawContact contact = new RawContact(values); local 58 contact.addDataItemValues(dataItem); 60 return contact;
|
SimContactTests.java | 45 private void assertParcelsCorrectly(SimContact contact) { 47 parcel.writeParcelable(contact, 0); 51 assertThat(unparceled, equalTo(contact));
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
UsbHid.java | 53 0x09, 0x55, // USAGE (Contact Count Maximum) 59 0x09, 0x54, // USAGE (Contact Count) 77 0x09, 0x51, // USAGE (Contact Identifier) 100 public void generateReport(ByteBuffer buffer, Contact[] contacts, int contactCount) { 103 // Contact Count 107 final Contact contact = contacts[i]; local 108 // Tip Switch, In Range, Contact Identifier 109 buffer.put((byte)((contact.id << 2) | 0x03)); 111 buffer.put((byte)contact.x).put((byte)(contact.x >> 8)) [all...] |
/packages/apps/Dialer/java/com/android/dialer/smartdial/ |
SmartDialCursorLoader.java | 96 for (ContactNumber contact : allMatches) { 97 row[PhoneQuery.PHONE_ID] = contact.dataId; 98 row[PhoneQuery.PHONE_NUMBER] = contact.phoneNumber; 99 row[PhoneQuery.CONTACT_ID] = contact.id; 100 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey; 101 row[PhoneQuery.PHOTO_ID] = contact.photoId; 102 row[PhoneQuery.DISPLAY_NAME] = contact.displayName; 103 row[PhoneQuery.CARRIER_PRESENCE] = contact.carrierPresence;
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
AllContactsListViewHolder.java | 16 package com.android.messaging.ui.contact; 22 import com.android.messaging.ui.contact.ContactListItemView.HostInterface; 25 * Holds the all contacts view for the contact picker's view pager.
|
FrequentContactsListViewHolder.java | 16 package com.android.messaging.ui.contact; 22 import com.android.messaging.ui.contact.ContactListItemView.HostInterface; 25 * Holds the frequent contacts view for the contact picker's view pager.
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
SmsMmsContacts.java | 64 * Get a contacts phone number based on the canonical addresses id of the contact. 67 * @param id the id of the contact, as listed in the Threads table 68 * @return the phone number of the contact - or null if id does not exist. 151 * @param phone the phone number of the contact 153 * @return the name of the contact or null, if no contact was found. 157 MapContact contact = mNames.get(phone); local 159 if (contact != null) { 160 if (contact.getId() < 0) { 164 return contact; [all...] |
/packages/apps/Dialer/java/com/android/dialer/app/list/ |
PhoneFavoritesTileAdapter.java | 65 * The soft limit on how many contact tiles to show. NOTE This soft limit would not restrict the 71 /** Contact data stored in cache. This is used to populate the associated view. */ 100 /** Back up of the temporarily removed Contact during dragging. */ 102 /** Position of the temporarily removed contact in the cache. */ 104 /** New position of the temporarily removed contact in the cache. */ 106 /** New position of the temporarily entered contact in the cache. */ 250 final ContactEntry contact = new ContactEntry(); local 252 contact.id = id; 253 contact.namePrimary = 255 contact.nameAlternative 575 final ContactEntry contact = toArrange.get(i); local [all...] |