Home
last modified time | relevance | path

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

12

/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java23 import com.example.android.wearable.wear.messaging.model.Chat;
63 public static Chat createChat(Context context, Collection<Profile> participants, Profile user) { in createChat()
67 Chat chat = new Chat(); in createChat()
84 Collection<Chat> allChats = getAllChats(context); in createChat()
85 Chat exists = findChat(allChats, chat.getId()); in createChat()
97 private static void persistsChats(Context context, Collection<Chat> chats) { in persistsChats()
102 private static Chat findChat(Collection<Chat> chats, String chatId) { in findChat()
103 for (Chat c : chats) { in findChat()
118 public static Collection<Chat> getAllChats(Context context) { in getAllChats()
134 public static Chat findChatById(Context context, String id) { in findChatById()
[all …]
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java23 import com.example.android.wearable.wear.messaging.model.Chat;
63 public static Chat createChat(Context context, Collection<Profile> participants, Profile user) { in createChat()
67 Chat chat = new Chat(); in createChat()
84 Collection<Chat> allChats = getAllChats(context); in createChat()
85 Chat exists = findChat(allChats, chat.getId()); in createChat()
97 private static void persistsChats(Context context, Collection<Chat> chats) { in persistsChats()
102 private static Chat findChat(Collection<Chat> chats, String chatId) { in findChat()
103 for (Chat c : chats) { in findChat()
118 public static Collection<Chat> getAllChats(Context context) { in getAllChats()
134 public static Chat findChatById(Context context, String id) { in findChatById()
[all …]
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DChat.java25 public class Chat implements Parcelable { class
36 public Chat() { in Chat() method in Chat
40 public Chat(String id) { in Chat() method in Chat
146 protected Chat(Parcel in) { in Chat() method in Chat
172 public static final Parcelable.Creator<Chat> CREATOR =
173 new Parcelable.Creator<Chat>() {
175 public Chat createFromParcel(Parcel source) {
176 return new Chat(source);
180 public Chat[] newArray(int size) {
181 return new Chat[size];
[all …]
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/
DChat.java25 public class Chat implements Parcelable { class
36 public Chat() { in Chat() method in Chat
40 public Chat(String id) { in Chat() method in Chat
146 protected Chat(Parcel in) { in Chat() method in Chat
172 public static final Parcelable.Creator<Chat> CREATOR =
173 new Parcelable.Creator<Chat>() {
175 public Chat createFromParcel(Parcel source) {
176 return new Chat(source);
180 public Chat[] newArray(int size) {
181 return new Chat[size];
[all …]
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/
DChatListAdapter.java34 import com.example.android.wearable.wear.messaging.model.Chat;
59 private final SortedList<Chat> mChats;
66 Chat.class, in ChatListAdapter()
67 new SortedList.Callback<Chat>() { in ChatListAdapter()
71 public int compare(Chat chat1, Chat chat2) { in ChatListAdapter()
104 public boolean areContentsTheSame(Chat oldItem, Chat newItem) { in ChatListAdapter()
109 public boolean areItemsTheSame(Chat item1, Chat item2) { in ChatListAdapter()
122 void openChat(Chat chat); in openChat()
163 final Chat chat = mChats.get(position - INDEX_OFFSET); in onBindViewHolder()
228 public void setChats(final Collection<Chat> chats) { in setChats()
[all …]
DChatListActivity.java31 import com.example.android.wearable.wear.messaging.model.Chat;
113 public void openChat(Chat chat) { in openChat()
134 private class RetrieveChatsAsyncTask extends AsyncTask<Void, Void, Collection<Chat>> {
143 protected Collection<Chat> doInBackground(Void... params) { in doInBackground()
148 protected void onPostExecute(Collection<Chat> chats) { in onPostExecute()
154 private class CreateNewChatAsyncTask extends AsyncTask<Void, Void, Chat> {
167 protected Chat doInBackground(Void... params) { in doInBackground()
172 protected void onPostExecute(Chat chat) { in onPostExecute()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/
DChatListAdapter.java34 import com.example.android.wearable.wear.messaging.model.Chat;
59 private final SortedList<Chat> mChats;
66 Chat.class, in ChatListAdapter()
67 new SortedList.Callback<Chat>() { in ChatListAdapter()
71 public int compare(Chat chat1, Chat chat2) { in ChatListAdapter()
104 public boolean areContentsTheSame(Chat oldItem, Chat newItem) { in ChatListAdapter()
109 public boolean areItemsTheSame(Chat item1, Chat item2) { in ChatListAdapter()
122 void openChat(Chat chat); in openChat()
163 final Chat chat = mChats.get(position - INDEX_OFFSET); in onBindViewHolder()
228 public void setChats(final Collection<Chat> chats) { in setChats()
[all …]
DChatListActivity.java31 import com.example.android.wearable.wear.messaging.model.Chat;
113 public void openChat(Chat chat) { in openChat()
134 private class RetrieveChatsAsyncTask extends AsyncTask<Void, Void, Collection<Chat>> {
143 protected Collection<Chat> doInBackground(Void... params) { in doInBackground()
148 protected void onPostExecute(Collection<Chat> chats) { in onPostExecute()
154 private class CreateNewChatAsyncTask extends AsyncTask<Void, Void, Chat> {
167 protected Chat doInBackground(Void... params) { in doInBackground()
172 protected void onPostExecute(Chat chat) { in onPostExecute()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DSchedulerHelper.java25 import com.example.android.wearable.wear.messaging.model.Chat;
39 public static void scheduleMockNotification(Context context, Chat chat, Message message) { in scheduleMockNotification()
51 Context context, Chat chat, Message message) { in createPendingIntentToNotifyMessage()
DSharedPreferencesHelper.java21 import com.example.android.wearable.wear.messaging.model.Chat;
113 public static List<Chat> readChatsFromJsonPref(Context context) throws IOException { in readChatsFromJsonPref()
115 return getList(context, Chat.class, Constants.PREFS_CHATS_KEY); in readChatsFromJsonPref()
128 public static void writeChatsToJsonPref(Context context, List<Chat> chats) { in writeChatsToJsonPref()
157 Context context, Chat chat, List<Message> messages) { in writeMessagesForChatToJsonPref()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/
DSchedulerHelper.java25 import com.example.android.wearable.wear.messaging.model.Chat;
39 public static void scheduleMockNotification(Context context, Chat chat, Message message) { in scheduleMockNotification()
51 Context context, Chat chat, Message message) { in createPendingIntentToNotifyMessage()
DSharedPreferencesHelper.java21 import com.example.android.wearable.wear.messaging.model.Chat;
113 public static List<Chat> readChatsFromJsonPref(Context context) throws IOException { in readChatsFromJsonPref()
115 return getList(context, Chat.class, Constants.PREFS_CHATS_KEY); in readChatsFromJsonPref()
128 public static void writeChatsToJsonPref(Context context, List<Chat> chats) { in writeChatsToJsonPref()
157 Context context, Chat chat, List<Message> messages) { in writeMessagesForChatToJsonPref()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DReplyToMessageIntentService.java25 import com.example.android.wearable.wear.messaging.model.Chat;
72 private void handleReply(CharSequence reply, Chat chat) { in handleReply()
85 private Chat extractChat(Intent intent) { in extractChat()
DChatActivity.java41 import com.example.android.wearable.wear.messaging.model.Chat;
74 private Chat mChat;
252 final Chat mChat;
254 FindChatsAsyncTask(Context context, Chat chat) { in FindChatsAsyncTask()
282 final Chat mChat;
284 SendMessageAsyncTask(Context context, Chat chat) { in SendMessageAsyncTask()
DMockIncomingMessageReceiver.java31 import com.example.android.wearable.wear.messaging.model.Chat;
60 Chat chat = MockDatabase.findChatById(context, chatId); in onReceive()
75 private void mockReply(Context context, Chat chat, Message message) { in mockReply()
103 private void generateMessagingStyleNotification(Context context, Chat chat, Message message) { in generateMessagingStyleNotification()
DChatAdapter.java37 import com.example.android.wearable.wear.messaging.model.Chat;
54 private final Chat mChat;
61 ChatAdapter(Context context, Chat chat, Profile user) { in ChatAdapter()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/
DReplyToMessageIntentService.java25 import com.example.android.wearable.wear.messaging.model.Chat;
72 private void handleReply(CharSequence reply, Chat chat) { in handleReply()
85 private Chat extractChat(Intent intent) { in extractChat()
DChatActivity.java41 import com.example.android.wearable.wear.messaging.model.Chat;
74 private Chat mChat;
252 final Chat mChat;
254 FindChatsAsyncTask(Context context, Chat chat) { in FindChatsAsyncTask()
282 final Chat mChat;
284 SendMessageAsyncTask(Context context, Chat chat) { in SendMessageAsyncTask()
DMockIncomingMessageReceiver.java31 import com.example.android.wearable.wear.messaging.model.Chat;
60 Chat chat = MockDatabase.findChatById(context, chatId); in onReceive()
75 private void mockReply(Context context, Chat chat, Message message) { in mockReply()
103 private void generateMessagingStyleNotification(Context context, Chat chat, Message message) { in generateMessagingStyleNotification()
DChatAdapter.java37 import com.example.android.wearable.wear.messaging.model.Chat;
54 private final Chat mChat;
61 ChatAdapter(Context context, Chat chat, Profile user) { in ChatAdapter()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/main/
DMainViewModelTest.kt23 import com.example.android.bubbles.data.Chat in <lambda>()
47 contact.id to Chat(contact) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/ui/chat/
DChatViewModelTest.kt23 import com.example.android.bubbles.data.Chat in <lambda>()
48 contact.id to Chat(contact) in <lambda>()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/data/
DChat.kt20 class Chat(val contact: Contact) { in <lambda>() class
DChatRepository.kt59 contact.id to Chat(contact) in contact()
/developers/samples/android/notification/Bubbles/app/src/test/java/com/example/android/bubbles/data/
DTestChatRepository.kt26 class TestChatRepository(private val chats: Map<Long, Chat>) : ChatRepository { in <lambda>()

12