Home
last modified time | relevance | path

Searched refs:contact (Results 1 – 25 of 25) sorted by relevance

/developers/samples/android/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/
DContactViewBinder.java32 public static void bind(Contact contact, TextView textView) { in bind() argument
33 textView.setText(contact.getName()); in bind()
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0); in bind()
DSharingShortcutsManager.java78 Contact contact = Contact.byId(id); in pushDirectShareTargets() local
86 .setShortLabel(contact.getName()) in pushDirectShareTargets()
88 .setIcon(IconCompat.createWithResource(context, contact.getIcon())) in pushDirectShareTargets()
96 .setName(contact.getName()) in pushDirectShareTargets()
DSelectContactActivity.java73 Contact contact = Contact.CONTACTS[position];
74 ContactViewBinder.bind(contact, (TextView) holder.itemView);
DSendMessageActivity.java126 Contact contact = Contact.byId(mContactId); in prepareUi() local
127 ContactViewBinder.bind(contact, mTextContactName); in prepareUi()
/developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/
DContactViewBinder.java32 public static void bind(Contact contact, TextView textView) { in bind() argument
33 textView.setText(contact.getName()); in bind()
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0); in bind()
DSampleChooserTargetService.java43 Contact contact = Contact.byId(i); in onGetChooserTargets() local
48 contact.getName(), in onGetChooserTargets()
50 Icon.createWithResource(this, contact.getIcon()), in onGetChooserTargets()
DSelectContactActivity.java77 view = LayoutInflater.from(parent.getContext()).inflate(R.layout.contact, parent,
81 Contact contact = (Contact) getItem(i);
82 ContactViewBinder.bind(contact, textView);
DSendMessageActivity.java117 Contact contact = Contact.byId(mContactId); in prepareUi() local
118 ContactViewBinder.bind(contact, mTextContactName); in prepareUi()
/developers/build/prebuilts/gradle/DirectShare/Application/src/main/java/com/example/android/directshare/
DContactViewBinder.java32 public static void bind(Contact contact, TextView textView) { in bind() argument
33 textView.setText(contact.getName()); in bind()
34 textView.setCompoundDrawablesRelativeWithIntrinsicBounds(contact.getIcon(), 0, 0, 0); in bind()
DSampleChooserTargetService.java43 Contact contact = Contact.byId(i); in onGetChooserTargets() local
48 contact.getName(), in onGetChooserTargets()
50 Icon.createWithResource(this, contact.getIcon()), in onGetChooserTargets()
DSelectContactActivity.java77 view = LayoutInflater.from(parent.getContext()).inflate(R.layout.contact, parent,
81 Contact contact = (Contact) getItem(i);
82 ContactViewBinder.bind(contact, textView);
DSendMessageActivity.java117 Contact contact = Contact.byId(mContactId); in prepareUi() local
118 ContactViewBinder.bind(contact, mTextContactName); in prepareUi()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DChat.kt20 class Chat(val contact: Contact) { in <lambda>() constant in com.example.android.bubbles.data.Chat
25 Message(1L, contact.id, "Send me a message", null, System.currentTimeMillis()), in <lambda>()
26 Message(2L, contact.id, "I will reply in 5 seconds", null, System.currentTimeMillis()) in <lambda>()
DChatRepository.kt58 private val chats = Contact.CONTACTS.map { contact -> in contact() method
59 contact.id to Chat(contact) in contact()
112 chat.addMessage(chat.contact.reply(text)) in sendMessage()
114 if (chat.contact.id != currentChat) { in sendMessage()
DNotificationHelper.kt74 val icon = Icon.createWithBitmap(roundIcon(context, chat.contact.icon)) in <lambda>()
76 .setName(chat.contact.name) in <lambda>()
115 .setContentTitle(chat.contact.name) in <lambda>()
135 builder.setContentText(context.getString(R.string.chat_with_contact, chat.contact.name)) in <lambda>()
164 notificationManager.notify(chat.contact.id.toInt(), builder.build()) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/chat/
DChatViewModelTest.kt47 repository = TestChatRepository(dummyContacts.map { contact -> in <lambda>() method
48 contact.id to Chat(contact) in <lambda>()
59 assertThat(viewModel.contact.observedValue()).isEqualTo(dummyContacts.find { it.id == 1L }) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/main/
DMainViewModelTest.kt46 TestChatRepository(dummyContacts.map { contact -> in <lambda>() method
47 contact.id to Chat(contact) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/main/
DContactAdapter.kt51 val contact: Contact = getItem(position) in onBindViewHolder() constant
52 …Glide.with(holder.icon).load(contact.icon).apply(RequestOptions.circleCropTransform()).into(holder… in onBindViewHolder()
53 holder.name.text = contact.name in onBindViewHolder()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/
DTestChatRepository.kt34 value = chats.values.map { it.contact } in <lambda>()
70 chat.addMessage(chat.contact.reply(text)) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/
DChatFragment.kt127 viewModel.contact.observe(viewLifecycleOwner, Observer { chat -> in <lambda>()
177 val contact = viewModel.contact.value ?: return in <lambda>() constant
180 .putExtra(VoiceCallActivity.EXTRA_NAME, contact.name) in <lambda>()
181 .putExtra(VoiceCallActivity.EXTRA_ICON, contact.icon) in <lambda>()
DChatViewModel.kt58 val contact: LiveData<Contact?> = Transformations.switchMap(chatId) { id -> in <lambda>() constant
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/
DContactsListAdapter.java163 Profile contact = mContacts.get(position - INDEX_OFFSET); in onBindViewHolder() local
165 viewHolderContent.name.setText(contact.getName()); in onBindViewHolder()
168 .load(contact.getProfileImageSource()) in onBindViewHolder()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/
DContactsListAdapter.java163 Profile contact = mContacts.get(position - INDEX_OFFSET); in onBindViewHolder() local
165 viewHolderContent.name.setText(contact.getName()); in onBindViewHolder()
168 .load(contact.getProfileImageSource()) in onBindViewHolder()
/developers/samples/android/notification/LNotifications/
DREADME.md23 (`VisibilityMetadataFragment`), and how to set the category, priority, and associated contact
/developers/build/prebuilts/gradle/LNotifications/
DREADME.md23 (`VisibilityMetadataFragment`), and how to set the category, priority, and associated contact