Lines Matching refs:dataMap

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()
246 DataMap dataMap = request.getDataMap(); in toPutDataRequest() local
247 dataMap.putString(QUESTION, question); in toPutDataRequest()
248 dataMap.putInt(QUESTION_INDEX, questionIndex); in toPutDataRequest()
249 dataMap.putStringArray(ANSWERS, answers); in toPutDataRequest()
250 dataMap.putInt(CORRECT_ANSWER_INDEX, correctAnswerIndex); in toPutDataRequest()
337 DataMap dataMap = DataMapItem.fromDataItem(event.getDataItem()) in onDataChanged()
339 boolean questionWasAnswered = dataMap.getBoolean(QUESTION_WAS_ANSWERED); in onDataChanged()
340 boolean questionWasDeleted = dataMap.getBoolean(QUESTION_WAS_DELETED); in onDataChanged()
343 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged()
344 boolean questionCorrect = dataMap.getBoolean(CHOSEN_ANSWER_CORRECT); in onDataChanged()
349 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged()
401 DataMap dataMap = new DataMap(); in askNextQuestionIfExists() local
402 dataMap.putInt(NUM_CORRECT, mNumCorrect); in askNextQuestionIfExists()
403 dataMap.putInt(NUM_INCORRECT, mNumIncorrect); in askNextQuestionIfExists()
404 dataMap.putInt(NUM_SKIPPED, mNumSkipped); in askNextQuestionIfExists()
405 sendMessageToWearable(QUIZ_ENDED_PATH, dataMap.toByteArray()); in askNextQuestionIfExists()
496 DataMap dataMap = request.getDataMap(); in onResult() local
497 dataMap.putBoolean(QUESTION_WAS_ANSWERED, false); in onResult()
498 dataMap.putBoolean(QUESTION_WAS_DELETED, false); in onResult()
499 if (!mHasQuestionBeenAsked && dataMap.getInt(QUESTION_INDEX) == 0) { in onResult()
508 mFutureQuestions.add(new Question(dataMap.getString(QUESTION), in onResult()
509 dataMap.getInt(QUESTION_INDEX), dataMap.getStringArray(ANSWERS), in onResult()
510 dataMap.getInt(CORRECT_ANSWER_INDEX))); in onResult()