Home
last modified time | relevance | path

Searched refs:messages (Results 1 – 22 of 22) sorted by relevance

/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/
DConversations.java63 private final List<String> messages; field in Conversations.Conversation
68 List<String> messages) { in Conversation() argument
71 this.messages = messages == null ? Collections.<String>emptyList() : messages; in Conversation()
84 return messages; in getMessages()
94 ", messages=" + messages + in toString()
115 List<String> messages = new ArrayList<>(messagesPerConversation); in makeMessages() local
117 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]); in makeMessages()
119 return messages; in makeMessages()
DMessagingService.java123 for (Iterator<String> messages = conversation.getMessages().iterator(); in sendNotificationForConversation()
124 messages.hasNext(); ) { in sendNotificationForConversation()
125 String message = messages.next(); in sendNotificationForConversation()
128 if (messages.hasNext()) { in sendNotificationForConversation()
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/
DConversations.java63 private final List<String> messages; field in Conversations.Conversation
68 List<String> messages) { in Conversation() argument
71 this.messages = messages == null ? Collections.<String>emptyList() : messages; in Conversation()
84 return messages; in getMessages()
94 ", messages=" + messages + in toString()
115 List<String> messages = new ArrayList<>(messagesPerConversation); in makeMessages() local
117 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]); in makeMessages()
119 return messages; in makeMessages()
DMessagingService.java123 for (Iterator<String> messages = conversation.getMessages().iterator(); in sendNotificationForConversation()
124 messages.hasNext(); ) { in sendNotificationForConversation()
125 String message = messages.next(); in sendNotificationForConversation()
128 if (messages.hasNext()) { in sendNotificationForConversation()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/chat/
DChatViewModelTest.kt60 assertThat(viewModel.messages.observedValue()).hasSize(2) in <lambda>()
68 val messages = viewModel.messages.observedValue() in <lambda>() constant
69 assertThat(messages).hasSize(4) in <lambda>()
70 assertThat(messages[2].text).isEqualTo("a") in <lambda>()
71 assertThat(messages[3].text).isEqualTo("Meow") in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/
DTestChatRepository.kt48 private val listener = { messages: List<Message> -> in <lambda>() method
49 postValue(messages) in <lambda>()
53 value = chat.messages in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DChatRepository.kt85 private val listener = { messages: List<Message> -> in findMessages() method
86 postValue(messages) in findMessages()
90 value = chat.messages in findMessages()
DChat.kt28 val messages: List<Message> in <lambda>() constant in com.example.android.bubbles.data.Chat
DNotificationHelper.kt138 val lastOutgoingId = chat.messages.last { !it.isIncoming }.id in <lambda>()
139 val newMessages = chat.messages.filter { message -> in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/
DChatFragment.kt111 val messages: RecyclerView = view.findViewById(R.id.messages) in <lambda>() constant
122 messages.run { in <lambda>()
144 viewModel.messages.observe(viewLifecycleOwner, Observer { in <lambda>()
DChatViewModel.kt65 val messages: LiveData<List<Message>> = Transformations.switchMap(chatId) { id -> in <lambda>() constant
/developers/build/prebuilts/gradle/MidiSynth/
DREADME.md5 Sample demonstrating how to use the MIDI API to receive and play MIDI messages coming from an
12 an Android device and process MIDI messages coming from it.
18 - Receiving and processing MIDI messages
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java190 Collection<Message> messages = getAllMessagesForChat(context, chat.getId()); in saveMessage() local
191 messages.add(message); in saveMessage()
194 context, chat, new ArrayList<>(messages)); in saveMessage()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java190 Collection<Message> messages = getAllMessagesForChat(context, chat.getId()); in saveMessage() local
191 messages.add(message); in saveMessage()
194 context, chat, new ArrayList<>(messages)); in saveMessage()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DSharedPreferencesHelper.java157 Context context, Chat chat, List<Message> messages) { in writeMessagesForChatToJsonPref() argument
158 setList(context, messages, Constants.PREFS_MESSAGE_PREFIX + chat.getId()); in writeMessagesForChatToJsonPref()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DSharedPreferencesHelper.java157 Context context, Chat chat, List<Message> messages) { in writeMessagesForChatToJsonPref() argument
158 setList(context, messages, Constants.PREFS_MESSAGE_PREFIX + chat.getId()); in writeMessagesForChatToJsonPref()
/developers/build/prebuilts/gradle/WearMessagingApp/
DREADME.md6 chat list, send messages, message style notification, and sign-in with Google.
40 - Handles incoming messages from a mocked back end server.
41 - Replies to messages from a notification
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DChatAdapter.java151 public void addMessages(Collection<Message> messages) { in addMessages() argument
157 for (Message message : messages) { in addMessages()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DChatAdapter.java151 public void addMessages(Collection<Message> messages) { in addMessages() argument
157 for (Message message : messages) { in addMessages()
/developers/build/templates/create/_MODULE_/src/androidTest/java/_PACKAGE_/test/
DSampleTests.java.ftl51 //Try to add a message to add context to your assertions. These messages will be shown if
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/
DREADME.md13 launched again in 10 seconds (logcat will show debug messages).
/developers/samples/android/background/JobScheduler/kotlinApp/
DREADME.md13 launched again in 10 seconds (logcat will show debug messages).