HomeSort by relevance Sort by last modified time
    Searched refs:contact (Results 1 - 25 of 73) sorted by null

1 2 3

  /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()),
SelectContactActivity.java 32 * The dialog for selecting a contact to share the text with. This dialog is shown when the user
61 return Contact.CONTACTS.length;
66 return Contact.byId(i);
77 view = LayoutInflater.from(parent.getContext()).inflate(R.layout.contact, parent,
81 Contact contact = (Contact) getItem(i);
82 ContactViewBinder.bind(contact, textView);
92 data.putExtra(Contact.ID, i);
  /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()),
SelectContactActivity.java 32 * The dialog for selecting a contact to share the text with. This dialog is shown when the user
61 return Contact.CONTACTS.length;
66 return Contact.byId(i);
77 view = LayoutInflater.from(parent.getContext()).inflate(R.layout.contact, parent,
81 Contact contact = (Contact) getItem(i);
82 ContactViewBinder.bind(contact, textView);
92 data.putExtra(Contact.ID, i);
  /developers/samples/android/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/
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);
SharingShortcutsManager.java 78 Contact contact = Contact.byId(id); local
86 .setShortLabel(contact.getName())
88 .setIcon(IconCompat.createWithResource(context, contact.getIcon()))
96 .setName(contact.getName())
  /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()),
SelectContactActivity.java 32 * The dialog for selecting a contact to share the text with. This dialog is shown when the user
61 return Contact.CONTACTS.length;
66 return Contact.byId(i);
77 view = LayoutInflater.from(parent.getContext()).inflate(R.layout.contact, parent,
81 Contact contact = (Contact) getItem(i);
82 ContactViewBinder.bind(contact, textView);
92 data.putExtra(Contact.ID, i);
  /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...]
  /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...]
  /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));
74 // Note we no longer support contact affinity as of Q, so times_contacted and
78 Contacts.markAsContacted(mResolver, contact.getId());
79 contact.load();
82 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED));
83 assertEquals("#" + i, 0, contact.getLong(Contacts.TIMES_CONTACTED));
101 TestContact contact = rawContact.getContact().load(); local
103 Uri contactUri = contact.getUri()
183 final TestContact contact = rawContact.getContact().load(); local
228 final TestContact contact = rawContact.getContact().load(); local
257 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");
ContactsContract_DataUsageTest.java 34 * Note we no longer support contact affinity as of Q, so times_contacted and
158 final TestContact contact = rawContact.getContact().load(); local
164 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values));
172 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values));
182 assertEquals(1, ContactUtil.update(mResolver, contact.getId(), values));
189 contact.load();
192 assertEquals(0, contact.getLong(Contacts.LAST_TIME_CONTACTED));
193 assertEquals(0, contact.getLong(Contacts.TIMES_CONTACTED));
  /developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
Chat.kt 20 class Chat(val contact: Contact) {
25 Message(1L, contact.id, "Send me a message", null, System.currentTimeMillis()),
26 Message(2L, contact.id, "I will reply in 5 seconds", null, System.currentTimeMillis())
ChatRepository.kt 26 fun getContacts(): LiveData<List<Contact>>
27 fun findContact(id: Long): LiveData<Contact?>
58 private val chats = Contact.CONTACTS.map { contact ->
59 contact.id to Chat(contact)
67 override fun getContacts(): LiveData<List<Contact>> {
68 return MutableLiveData<List<Contact>>().apply {
69 postValue(Contact.CONTACTS)
74 override fun findContact(id: Long): LiveData<Contact?>
    [all...]
  /developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/main/
MainViewModelTest.kt 24 import com.example.android.bubbles.data.Contact
39 private val dummyContacts = Contact.CONTACTS
46 TestChatRepository(dummyContacts.map { contact ->
47 contact.id to Chat(contact)
  /developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/chat/
ChatViewModelTest.kt 24 import com.example.android.bubbles.data.Contact
40 private val dummyContacts = Contact.CONTACTS
47 repository = TestChatRepository(dummyContacts.map { contact ->
48 contact.id to Chat(contact)
59 assertThat(viewModel.contact.observedValue()).isEqualTo(dummyContacts.find { it.id == 1L })
  /external/ims/rcs/rcsservice/src/com/android/service/ims/
TaskManager.java 130 public int addAvailabilityTask(String contact, IRcsPresenceListener listener){
134 contacts[0] = contact;
143 public int addPublishTask(String contact, IRcsPresenceListener listener){
147 contacts[0] = contact;
193 public void onTerminated(String contact){ // for single number capability polling
194 if(contact == null){
214 PhoneNumberUtils.compare(contact, capabilityTask.mContacts[0])){
364 public PresenceAvailabilityTask getAvailabilityTaskByContact(String contact){
380 if(PhoneNumberUtils.compare(contact, availabilityTask.mContacts[0])){
  /developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/
TestChatRepository.kt 32 override fun getContacts(): LiveData<List<Contact>> {
33 return MutableLiveData<List<Contact>>().apply {
34 value = chats.values.map { it.contact }
38 override fun findContact(id: Long): LiveData<Contact?> {
39 return MutableLiveData<Contact>().apply {
40 value = Contact.CONTACTS.find { it.id == id }
70 chat.addMessage(chat.contact.reply(text))

Completed in 1641 milliseconds

1 2 3