/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/ |
D | ChatViewModel.kt | 33 private val chatId = MutableLiveData<Long>() in <lambda>() constant 46 chatId.value?.let { id -> in <lambda>() 58 val contact: LiveData<Contact?> = Transformations.switchMap(chatId) { id -> in <lambda>() 65 val messages: LiveData<List<Message>> = Transformations.switchMap(chatId) { id -> in <lambda>() 80 chatId.value = id in <lambda>() 89 val id = chatId.value in <lambda>() 96 chatId.value?.let { id -> in <lambda>() 102 chatId.value?.let { id -> repository.deactivateChat(id) } in <lambda>()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 102 private static Chat findChat(Collection<Chat> chats, String chatId) { in findChat() argument 104 if (c.getId().equals(chatId)) { in findChat() 205 public static Collection<Message> getAllMessagesForChat(Context context, String chatId) { in getAllMessagesForChat() argument 206 return SharedPreferencesHelper.readMessagesForChat(context, chatId); in getAllMessagesForChat() 217 public static Message findMessageById(Context context, String chatId, String messageId) { in findMessageById() argument 218 for (Message message : getAllMessagesForChat(context, chatId)) { in findMessageById()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 102 private static Chat findChat(Collection<Chat> chats, String chatId) { in findChat() argument 104 if (c.getId().equals(chatId)) { in findChat() 205 public static Collection<Message> getAllMessagesForChat(Context context, String chatId) { in getAllMessagesForChat() argument 206 return SharedPreferencesHelper.readMessagesForChat(context, chatId); in getAllMessagesForChat() 217 public static Message findMessageById(Context context, String chatId, String messageId) { in findMessageById() argument 218 for (Message message : getAllMessagesForChat(context, chatId)) { in findMessageById()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
D | MockIncomingMessageReceiver.java | 57 String chatId = intent.getStringExtra(Constants.EXTRA_CHAT); in onReceive() local 60 Chat chat = MockDatabase.findChatById(context, chatId); in onReceive() 62 Log.e(TAG, "Could not find chat with id " + chatId); in onReceive() 66 Message message = MockDatabase.findMessageById(context, chatId, messageId); in onReceive()
|
D | ReplyToMessageIntentService.java | 86 String chatId = intent.getStringExtra(Constants.EXTRA_CHAT); in extractChat() local 87 return MockDatabase.findChatById(this, chatId); in extractChat()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
D | MockIncomingMessageReceiver.java | 57 String chatId = intent.getStringExtra(Constants.EXTRA_CHAT); in onReceive() local 60 Chat chat = MockDatabase.findChatById(context, chatId); in onReceive() 62 Log.e(TAG, "Could not find chat with id " + chatId); in onReceive() 66 Message message = MockDatabase.findMessageById(context, chatId, messageId); in onReceive()
|
D | ReplyToMessageIntentService.java | 86 String chatId = intent.getStringExtra(Constants.EXTRA_CHAT); in extractChat() local 87 return MockDatabase.findChatById(this, chatId); in extractChat()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SharedPreferencesHelper.java | 140 public static List<Message> readMessagesForChat(Context context, String chatId) { in readMessagesForChat() argument 142 return getList(context, Message.class, Constants.PREFS_MESSAGE_PREFIX + chatId); in readMessagesForChat()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SharedPreferencesHelper.java | 140 public static List<Message> readMessagesForChat(Context context, String chatId) { in readMessagesForChat() argument 142 return getList(context, Message.class, Constants.PREFS_MESSAGE_PREFIX + chatId); in readMessagesForChat()
|