/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()),
|
SendMessageActivity.java | 27 * Provides the UI for sharing a text with a {@link Contact}. 43 * The ID of the contact to share the text with. 69 // The contact ID will not be passed on when the user clicks on the app icon rather than any 70 // of the Direct Share icons. In this case, we show another dialog for selecting a contact. 71 if (mContactId == Contact.INVALID_ID) { 81 mContactId = data.getIntExtra(Contact.ID, Contact.INVALID_ID); 83 // Give up sharing the send_message if the user didn't choose a contact. 84 if (mContactId == Contact.INVALID_ID) { 106 mContactId = intent.getIntExtra(Contact.ID, Contact.INVALID_ID) 117 Contact contact = Contact.byId(mContactId); local [all...] |
/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()),
|
SendMessageActivity.java | 27 * Provides the UI for sharing a text with a {@link Contact}. 43 * The ID of the contact to share the text with. 69 // The contact ID will not be passed on when the user clicks on the app icon rather than any 70 // of the Direct Share icons. In this case, we show another dialog for selecting a contact. 71 if (mContactId == Contact.INVALID_ID) { 81 mContactId = data.getIntExtra(Contact.ID, Contact.INVALID_ID); 83 // Give up sharing the send_message if the user didn't choose a contact. 84 if (mContactId == Contact.INVALID_ID) { 106 mContactId = intent.getIntExtra(Contact.ID, Contact.INVALID_ID) 117 Contact contact = Contact.byId(mContactId); local [all...] |
/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()),
|
SendMessageActivity.java | 27 * Provides the UI for sharing a text with a {@link Contact}. 43 * The ID of the contact to share the text with. 69 // The contact ID will not be passed on when the user clicks on the app icon rather than any 70 // of the Direct Share icons. In this case, we show another dialog for selecting a contact. 71 if (mContactId == Contact.INVALID_ID) { 81 mContactId = data.getIntExtra(Contact.ID, Contact.INVALID_ID); 83 // Give up sharing the send_message if the user didn't choose a contact. 84 if (mContactId == Contact.INVALID_ID) { 106 mContactId = intent.getIntExtra(Contact.ID, Contact.INVALID_ID) 117 Contact contact = Contact.byId(mContactId); local [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_ContactsTest.java | 67 TestContact contact = rawContact.getContact().load(); local 68 long oldLastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 70 Contacts.markAsContacted(mResolver, contact.getId()); 71 contact.load(); // Reload 73 long lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 77 Contacts.markAsContacted(mResolver, contact.getId()); 78 contact.load(); 80 lastContacted = contact.getLong(Contacts.LAST_TIME_CONTACTED); 95 TestContact contact = rawContact.getContact().load(); 97 Uri contactUri = contact.getUri() [all...] |
ContactsContract_IsSuperPrimaryName.java | 107 TestContact contact = rawContact2.getContact().load(); local 108 contact.assertColumn(Contacts.DISPLAY_NAME, expectedDisplayName); 111 // Now test what happens when you change IS_SUPER_PRIMARY on an existing contact 127 contact.load(); 128 contact.assertColumn(Contacts.DISPLAY_NAME, otherDisplayName);
|
ContactsContract_StructuredPhoneticName.java | 59 // Setup: contact with only phonetic name 71 TestContact contact = rawContact1.getContact().load(); local 72 contact.assertColumn(Contacts.DISPLAY_NAME_SOURCE, 83 // Setup: one raw contact has a complex phonetic name and the other a simple given name 114 TestContact contact = rawContact2.getContact().load(); local 115 contact.assertColumn(Contacts.DISPLAY_NAME, "name"); 120 // Setup: one raw contact has a complex phonetic name and the other a simple given name 151 TestContact contact = rawContact2.getContact().load(); local 152 contact.assertColumn(Contacts.DISPLAY_NAME, "name");
|
/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...] |
/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.
|
ContactRecipientPhotoManager.java | 16 package com.android.messaging.ui.contact; 38 * {@link MediaResourceManager} for retrieving and caching contact avatars.
|
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.
|
AddContactsConfirmationDialog.java | 16 package com.android.messaging.ui.contact;
|
ContactDropdownLayouter.java | 16 package com.android.messaging.ui.contact; 86 // RTL : To format contact name and detail if they happen to be phone numbers. 114 // These show contact cards by default, but that isn't what we want here
|
ContactListAdapter.java | 17 package com.android.messaging.ui.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/src/com/android/dialer/contact/ |
ContactUpdateService.java | 17 package com.android.dialer.contact; 26 * Service for updating primary number on a contact.
|
/packages/services/Car/car-cluster-demo-renderer/src/android/car/cluster/demorenderer/ |
CallStateMonitor.java | 20 import android.car.cluster.demorenderer.PhoneBook.Contact; 76 public void onContactLoaded(String number, @Nullable Contact contact) { 77 if (contact != null) { 78 mListener.onContactDetailsUpdated(contact.getName(), contact.getType(), 81 mPhoneBook.getContactPictureAsync(contact.getId(), this);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
RawContactDeltaTests.java | 67 // Build an existing contact read from database 68 final ContentValues contact = new ContentValues(); local 69 contact.put(RawContacts.VERSION, 43); 70 contact.put(RawContacts._ID, contactId); 78 final RawContact before = new RawContact(contact); 220 // Update parent contact values 230 // Assert three operations: update Contact, insert Data row, enforce version 309 // Assert two operations: delete Contact and enforce version 335 // Assert two operations: insert Contact and enforce version 364 // Assert two operations: delete Contact and enforce versio [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ContactsManagerTest.java | 114 ContactsManager.RankedContact contact = new ContactsManager.RankedContact(cursor); local 115 contact.computeAffinity(1, month_ago); 116 assertEquals(contact.getAffinity(), 1.0f); 117 contact.computeAffinity(2, now); 118 assertEquals(contact.getAffinity(), (2.0f/3.0f + (float)Math.pow(0.5, 3) + 1.0f) / 3);
|
/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...] |