/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/chat/ |
D | MessageAdapter.kt | 68 holder.message.setOnClickListener { in onCreateViewHolder() 78 val message = getItem(position) in onBindViewHolder() constant 79 val lp = holder.message.layoutParams as FrameLayout.LayoutParams in onBindViewHolder() 80 if (message.isIncoming) { in onBindViewHolder() 81 holder.message.run { in onBindViewHolder() 91 if (message.photo != null) { in onBindViewHolder() 92 holder.message.setTag(R.id.tag_photo, message.photo) in onBindViewHolder() 93 setCompoundDrawablesWithIntrinsicBounds(0, 0, 0, message.photo) in onBindViewHolder() 95 holder.message.setTag(R.id.tag_photo, null) in onBindViewHolder() 100 holder.message.run { in onBindViewHolder() [all …]
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/ |
D | Message.java | 31 public Message(Message message, String name) { in Message() argument 32 senderId = message.getSenderId(); in Message() 34 text = message.getText(); in Message() 118 Message message = (Message) other; in equals() local 120 if (sentTime != message.sentTime) { in equals() 123 if (id != null ? !id.equals(message.id) : message.id != null) { in equals() 126 if (!senderId.equals(message.senderId)) { in equals() 129 if (name != null ? !name.equals(message.name) : message.name != null) { in equals() 132 return text != null ? text.equals(message.text) : message.text == null; in equals()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/ |
D | Message.java | 31 public Message(Message message, String name) { in Message() argument 32 senderId = message.getSenderId(); in Message() 34 text = message.getText(); in Message() 118 Message message = (Message) other; in equals() local 120 if (sentTime != message.sentTime) { in equals() 123 if (id != null ? !id.equals(message.id) : message.id != null) { in equals() 126 if (!senderId.equals(message.senderId)) { in equals() 129 if (name != null ? !name.equals(message.name) : message.name != null) { in equals() 132 return text != null ? text.equals(message.text) : message.text == null; in equals()
|
/developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/ |
D | PermissionRequestFragment.java | 177 public boolean onConsoleMessage(@NonNull ConsoleMessage message) { 178 switch (message.messageLevel()) { 180 Log.v(TAG, message.message()); 183 Log.i(TAG, message.message()); 186 Log.w(TAG, message.message()); 189 Log.e(TAG, message.message()); 192 Log.d(TAG, message.message()); 196 mConsoleMonitor.onConsoleMessage(message); 228 void onConsoleMessage(ConsoleMessage message); in onConsoleMessage() argument
|
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/ |
D | PermissionRequestFragment.java | 177 public boolean onConsoleMessage(@NonNull ConsoleMessage message) { 178 switch (message.messageLevel()) { 180 Log.v(TAG, message.message()); 183 Log.i(TAG, message.message()); 186 Log.w(TAG, message.message()); 189 Log.e(TAG, message.message()); 192 Log.d(TAG, message.message()); 196 mConsoleMonitor.onConsoleMessage(message); 228 void onConsoleMessage(ConsoleMessage message); in onConsoleMessage() argument
|
/developers/samples/android/notification/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
D | MessageLogger.java | 39 public static void logMessage(Context context, String message) { in logMessage() argument 41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage() 43 .putString(LOG_KEY, prefs.getString(LOG_KEY, "") + LINE_BREAKS + message) in logMessage()
|
/developers/build/prebuilts/gradle/MessagingService/Application/src/main/java/com/example/android/messagingservice/ |
D | MessageLogger.java | 39 public static void logMessage(Context context, String message) { in logMessage() argument 41 message = DATE_FORMAT.format(new Date(System.currentTimeMillis())) + ": " + message; in logMessage() 43 .putString(LOG_KEY, prefs.getString(LOG_KEY, "") + LINE_BREAKS + message) in logMessage()
|
/developers/samples/android/deprecated/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
D | NotificationIntentReceiver.java | 43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE); in onReceive() local 50 message = message + ": \"" + replyMessage + "\""; in onReceive() 52 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in onReceive()
|
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
D | NotificationIntentReceiver.java | 43 String message = intent.getStringExtra(NotificationUtil.EXTRA_MESSAGE); in onReceive() local 50 message = message + ": \"" + replyMessage + "\""; in onReceive() 52 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in onReceive()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 70 Message message = new Message.Builder().senderId(user.getId()).text("").build(); in createChat() local 72 chat.setLastMessage(message); in createChat() 184 public static Message saveMessage(Context context, Chat chat, Message message) { in saveMessage() argument 186 message.setSentTime(System.currentTimeMillis()); in saveMessage() 188 updateLastMessage(context, chat, message); in saveMessage() 191 messages.add(message); in saveMessage() 196 return message; in saveMessage() 218 for (Message message : getAllMessagesForChat(context, chatId)) { in findMessageById() 219 if (message.getId().equals(messageId)) { in findMessageById() 220 return message; in findMessageById()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 70 Message message = new Message.Builder().senderId(user.getId()).text("").build(); in createChat() local 72 chat.setLastMessage(message); in createChat() 184 public static Message saveMessage(Context context, Chat chat, Message message) { in saveMessage() argument 186 message.setSentTime(System.currentTimeMillis()); in saveMessage() 188 updateLastMessage(context, chat, message); in saveMessage() 191 messages.add(message); in saveMessage() 196 return message; in saveMessage() 218 for (Message message : getAllMessagesForChat(context, chatId)) { in findMessageById() 219 if (message.getId().equals(messageId)) { in findMessageById() 220 return message; in findMessageById()
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | MessageDialogFragment.java | 30 public static MessageDialogFragment newInstance(int message) { in newInstance() argument 33 args.putInt(ARG_MESSAGE_INT, message); in newInstance() 38 public static MessageDialogFragment newInstance(String message) { in newInstance() argument 41 args.putString(ARG_MESSAGE_STRING, message); in newInstance()
|
/developers/build/prebuilts/gradle/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | MessageDialogFragment.java | 30 public static MessageDialogFragment newInstance(int message) { in newInstance() argument 33 args.putInt(ARG_MESSAGE_INT, message); in newInstance() 38 public static MessageDialogFragment newInstance(String message) { in newInstance() argument 41 args.putString(ARG_MESSAGE_STRING, message); in newInstance()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
D | MockIncomingMessageReceiver.java | 66 Message message = MockDatabase.findMessageById(context, chatId, messageId); in onReceive() local 67 if (message == null) { in onReceive() 72 mockReply(context, chat, message); in onReceive() 75 private void mockReply(Context context, Chat chat, Message message) { in mockReply() argument 88 .text(mockReplyMessage + " " + message.getText()) in mockReply() 103 private void generateMessagingStyleNotification(Context context, Chat chat, Message message) { in generateMessagingStyleNotification() argument 111 Profile sender = chat.getParticipants().get(message.getSenderId()); in generateMessagingStyleNotification() 113 messagingStyle.addMessage(message.getText(), message.getSentTime(), senderId); in generateMessagingStyleNotification()
|
D | ReplyToMessageIntentService.java | 49 String message = "User is not stored locally."; in onCreate() local 50 Log.e(TAG, message); in onCreate() 51 throw new RuntimeException(message); in onCreate() 75 Message message = in handleReply() local 82 MockDatabase.saveMessage(this, chat, message); in handleReply()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ |
D | MockIncomingMessageReceiver.java | 66 Message message = MockDatabase.findMessageById(context, chatId, messageId); in onReceive() local 67 if (message == null) { in onReceive() 72 mockReply(context, chat, message); in onReceive() 75 private void mockReply(Context context, Chat chat, Message message) { in mockReply() argument 88 .text(mockReplyMessage + " " + message.getText()) in mockReply() 103 private void generateMessagingStyleNotification(Context context, Chat chat, Message message) { in generateMessagingStyleNotification() argument 111 Profile sender = chat.getParticipants().get(message.getSenderId()); in generateMessagingStyleNotification() 113 messagingStyle.addMessage(message.getText(), message.getSentTime(), senderId); in generateMessagingStyleNotification()
|
D | ReplyToMessageIntentService.java | 49 String message = "User is not stored locally."; in onCreate() local 50 Log.e(TAG, message); in onCreate() 51 throw new RuntimeException(message); in onCreate() 75 Message message = in handleReply() local 82 MockDatabase.saveMessage(this, chat, message); in handleReply()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SchedulerHelper.java | 39 public static void scheduleMockNotification(Context context, Chat chat, Message message) { in scheduleMockNotification() argument 41 PendingIntent alarmIntent = createPendingIntentToNotifyMessage(context, chat, message); in scheduleMockNotification() 51 Context context, Chat chat, Message message) { in createPendingIntentToNotifyMessage() argument 55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId()); in createPendingIntentToNotifyMessage()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SchedulerHelper.java | 39 public static void scheduleMockNotification(Context context, Chat chat, Message message) { in scheduleMockNotification() argument 41 PendingIntent alarmIntent = createPendingIntentToNotifyMessage(context, chat, message); in scheduleMockNotification() 51 Context context, Chat chat, Message message) { in createPendingIntentToNotifyMessage() argument 55 intent.putExtra(Constants.EXTRA_MESSAGE, message.getId()); in createPendingIntentToNotifyMessage()
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
D | Util.java | 242 public static void logd(String message, Object... params) { in logd() argument 244 Log.d(TAG, String.format(message, params)); in logd() 248 public static void logv(String message, Object... params) { in logv() argument 250 Log.v(TAG, String.format(message, params)); in logv() 262 public static void logw(String message, Object... params) { in logw() argument 263 Log.w(TAG, String.format(message, params)); in logw() 266 public static void logw(Throwable throwable, String message, Object... params) { in logw() argument 267 Log.w(TAG, String.format(message, params), throwable); in logw() 270 public static void loge(String message, Object... params) { in loge() argument 271 Log.e(TAG, String.format(message, params)); in loge() [all …]
|
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/ |
D | Util.java | 242 public static void logd(String message, Object... params) { in logd() argument 244 Log.d(TAG, String.format(message, params)); in logd() 248 public static void logv(String message, Object... params) { in logv() argument 250 Log.v(TAG, String.format(message, params)); in logv() 262 public static void logw(String message, Object... params) { in logw() argument 263 Log.w(TAG, String.format(message, params)); in logw() 266 public static void logw(Throwable throwable, String message, Object... params) { in logw() argument 267 Log.w(TAG, String.format(message, params), throwable); in logw() 270 public static void loge(String message, Object... params) { in loge() argument 271 Log.e(TAG, String.format(message, params)); in loge() [all …]
|
/developers/build/prebuilts/gradle/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/ |
D | SampleTests.java | 171 public void onConsoleMessage(ConsoleMessage message) { in onConsoleMessage() argument 172 mMessages.offer(message.message()); in onConsoleMessage() 178 String message; in waitForKeyword() local 179 while (null != (message = mMessages.poll())) { in waitForKeyword() 180 if (message.contains(keyword)) { in waitForKeyword()
|
/developers/samples/android/content/webview/PermissionRequest/Application/tests/src/com/example/android/permissionrequest/test/ |
D | SampleTests.java | 171 public void onConsoleMessage(ConsoleMessage message) { in onConsoleMessage() argument 172 mMessages.offer(message.message()); in onConsoleMessage() 178 String message; in waitForKeyword() local 179 while (null != (message = mMessages.poll())) { in waitForKeyword() 180 if (message.contains(keyword)) { in waitForKeyword()
|
/developers/samples/android/system/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/ |
D | Utils.java | 27 public static void showToast(Context context, String message) { in showToast() argument 29 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
|
/developers/build/prebuilts/gradle/AppShortcuts/app/src/main/java/com/example/android/appshortcuts/ |
D | Utils.java | 27 public static void showToast(Context context, String message) { in showToast() argument 29 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in showToast()
|