Searched refs:dataMap (Results 1 – 7 of 7) sorted by relevance
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
D | MainActivity.java | 164 DataMap dataMap = new DataMap(); in onStop() local 165 dataMap.putInt(NUM_CORRECT, mNumCorrect); in onStop() 166 dataMap.putInt(NUM_INCORRECT, mNumIncorrect); in onStop() 171 dataMap.putInt(NUM_SKIPPED, mNumSkipped); in onStop() 173 sendMessageToWearable(QUIZ_EXITED_PATH, dataMap.toByteArray()); in onStop() 245 DataMap dataMap = request.getDataMap(); in toPutDataRequest() local 246 dataMap.putString(QUESTION, question); in toPutDataRequest() 247 dataMap.putInt(QUESTION_INDEX, questionIndex); in toPutDataRequest() 248 dataMap.putStringArray(ANSWERS, answers); in toPutDataRequest() 249 dataMap.putInt(CORRECT_ANSWER_INDEX, correctAnswerIndex); in toPutDataRequest() [all …]
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | QuizListenerService.java | 99 DataMap dataMap = DataMapItem.fromDataItem(dataItem).getDataMap(); in onDataChanged() local 100 if (dataMap.getBoolean(QUESTION_WAS_ANSWERED) in onDataChanged() 101 || dataMap.getBoolean(QUESTION_WAS_DELETED)) { in onDataChanged() 106 String question = dataMap.getString(QUESTION); in onDataChanged() 107 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged() 109 String[] answers = dataMap.getStringArray(ANSWERS); in onDataChanged() 110 int correctAnswerIndex = dataMap.getInt(CORRECT_ANSWER_INDEX); in onDataChanged() 178 DataMap dataMap = DataMap.fromByteArray(messageEvent.getData()); in onMessageReceived() local 179 int numCorrect = dataMap.getInt(NUM_CORRECT); in onMessageReceived() 180 int numIncorrect = dataMap.getInt(NUM_INCORRECT); in onMessageReceived() [all …]
|
D | UpdateQuestionService.java | 81 DataMap dataMap = putDataMapRequest.getDataMap(); in onHandleIntent() local 86 dataMap.putInt(QUESTION_INDEX, questionIndex); in onHandleIntent() 87 dataMap.putBoolean(CHOSEN_ANSWER_CORRECT, chosenAnswerCorrect); in onHandleIntent() 88 dataMap.putBoolean(QUESTION_WAS_ANSWERED, true); in onHandleIntent()
|
D | DeleteQuestionService.java | 76 DataMap dataMap = putDataMapRequest.getDataMap(); in onHandleIntent() local 77 dataMap.putBoolean(QUESTION_WAS_DELETED, true); in onHandleIntent()
|
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/db/ |
D | UpdateService.java | 80 DataMap dataMap = DataMapItem.fromDataItem(dataEvent.getDataItem()) in onDataChanged() local 82 double longitude = dataMap.getDouble(Constants.KEY_LONGITUDE); in onDataChanged() 83 double latitude = dataMap.getDouble(Constants.KEY_LATITUDE); in onDataChanged() 84 long time = dataMap.getLong(Constants.KEY_TIME); in onDataChanged()
|
/development/samples/browseable/SynchronizedNotifications/Wearable/src/com.example.android.wearable.synchronizednotifications/ |
D | NotificationUpdateService.java | 95 DataMap dataMap = DataMapItem.fromDataItem(dataEvent.getDataItem()).getDataMap(); in onDataChanged() local 96 String content = dataMap.getString(Constants.KEY_CONTENT); in onDataChanged() 97 String title = dataMap.getString(Constants.KEY_TITLE); in onDataChanged()
|
/development/samples/browseable/DataLayer/Application/src/com.example.android.wearable.datalayer/ |
D | MainActivity.java | 436 PutDataMapRequest dataMap = PutDataMapRequest.create(IMAGE_PATH); in sendPhoto() local 437 dataMap.getDataMap().putAsset(IMAGE_KEY, asset); in sendPhoto() 438 dataMap.getDataMap().putLong("time", new Date().getTime()); in sendPhoto() 439 PutDataRequest request = dataMap.asPutDataRequest(); in sendPhoto()
|