Home
last modified time | relevance | path

Searched refs:messageEvent (Results 1 – 12 of 12) sorted by relevance

/development/samples/browseable/XYZTouristAttractions/Application/src/com.example.android.xyztouristattractions/service/
DListenerService.java36 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
37 Log.v(TAG, "onMessageReceived: " + messageEvent); in onMessageReceived()
39 if (Constants.CLEAR_NOTIFICATIONS_PATH.equals(messageEvent.getPath())) { in onMessageReceived()
42 } else if (Constants.START_ATTRACTION_PATH.equals(messageEvent.getPath())) { in onMessageReceived()
45 String attractionName = new String(messageEvent.getData()); in onMessageReceived()
49 } else if (Constants.START_NAVIGATION_PATH.equals(messageEvent.getPath())) { in onMessageReceived()
52 String attractionQuery = new String(messageEvent.getData()); in onMessageReceived()
/development/samples/browseable/RuntimePermissionsWear/Application/src/com.example.android.wearable.runtimepermissions/
DIncomingRequestPhoneService.java53 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
54 super.onMessageReceived(messageEvent); in onMessageReceived()
55 Log.d(TAG, "onMessageReceived(): " + messageEvent); in onMessageReceived()
57 String messagePath = messageEvent.getPath(); in onMessageReceived()
61 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived()
65 promptUserForStoragePermission(messageEvent.getSourceNodeId()); in onMessageReceived()
68 respondWithStorageInformation(messageEvent.getSourceNodeId()); in onMessageReceived()
DMainPhoneActivity.java264 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
265 Log.d(TAG, "onMessageReceived(): " + messageEvent); in onMessageReceived()
267 String messagePath = messageEvent.getPath(); in onMessageReceived()
270 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DDigitalWatchFaceConfigListenerService.java42 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
45 Log.d(TAG, "onMessageReceived: " + messageEvent); in onMessageReceived()
48 if (!messageEvent.getPath().equals(DigitalWatchFaceUtil.PATH_WITH_FEATURE)) { in onMessageReceived()
51 byte[] rawData = messageEvent.getData(); in onMessageReceived()
/development/samples/browseable/DataLayer/Wearable/src/com.example.android.wearable.datalayer/
DDataLayerListenerService.java88 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
89 LOGD(TAG, "onMessageReceived: " + messageEvent); in onMessageReceived()
92 if (messageEvent.getPath().equals(START_ACTIVITY_PATH)) { in onMessageReceived()
/development/samples/browseable/DelayedConfirmation/Application/src/com.example.android.wearable.delayedconfirmation/
DMainActivity.java84 public void onMessageReceived(final MessageEvent messageEvent) { in onMessageReceived() argument
88 if (messageEvent.getPath().equals(TIMER_SELECTED_PATH)) { in onMessageReceived()
91 } else if (messageEvent.getPath().equals(TIMER_FINISHED_PATH)) { in onMessageReceived()
/development/samples/browseable/RuntimePermissionsWear/Wearable/src/com.example.android.wearable.runtimepermissions/
DIncomingRequestWearService.java63 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
64 Log.d(TAG, "onMessageReceived(): " + messageEvent); in onMessageReceived()
66 String messagePath = messageEvent.getPath(); in onMessageReceived()
69 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived()
DMainWearActivity.java373 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
374 Log.d(TAG, "onMessageReceived(): " + messageEvent); in onMessageReceived()
376 String messagePath = messageEvent.getPath(); in onMessageReceived()
380 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived()
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/service/
DListenerService.java70 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
71 Log.v(TAG, "onMessageReceived: " + messageEvent); in onMessageReceived()
73 if (Constants.CLEAR_NOTIFICATIONS_PATH.equals(messageEvent.getPath())) { in onMessageReceived()
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/
DMainActivity.java232 public void onMessageReceived(final MessageEvent messageEvent) { in onMessageReceived() argument
234 + messageEvent.getRequestId() + " " + messageEvent.getPath()); in onMessageReceived()
236 mDataItemListAdapter.add(new Event("Message from watch", messageEvent.toString())); in onMessageReceived()
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/
DQuizListenerService.java167 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
168 String path = messageEvent.getPath(); in onMessageReceived()
175 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived()
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DMainActivity.java197 public void onMessageReceived(MessageEvent messageEvent) { in onMessageReceived() argument
198 if (messageEvent.getPath().equals(RESET_QUIZ_PATH)) { in onMessageReceived()