• Home
  • Raw
  • Download

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()
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()
333 DataMap dataMap = DataMapItem.fromDataItem(event.getDataItem()) in onDataChanged()
335 boolean questionWasAnswered = dataMap.getBoolean(QUESTION_WAS_ANSWERED); in onDataChanged()
336 boolean questionWasDeleted = dataMap.getBoolean(QUESTION_WAS_DELETED); in onDataChanged()
339 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged()
340 boolean questionCorrect = dataMap.getBoolean(CHOSEN_ANSWER_CORRECT); in onDataChanged()
345 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged()
397 DataMap dataMap = new DataMap(); in askNextQuestionIfExists() local
398 dataMap.putInt(NUM_CORRECT, mNumCorrect); in askNextQuestionIfExists()
399 dataMap.putInt(NUM_INCORRECT, mNumIncorrect); in askNextQuestionIfExists()
400 dataMap.putInt(NUM_SKIPPED, mNumSkipped); in askNextQuestionIfExists()
401 sendMessageToWearable(QUIZ_ENDED_PATH, dataMap.toByteArray()); in askNextQuestionIfExists()
489 DataMap dataMap = request.getDataMap(); in onResult() local
490 dataMap.putBoolean(QUESTION_WAS_ANSWERED, false); in onResult()
491 dataMap.putBoolean(QUESTION_WAS_DELETED, false); in onResult()
492 if (!mHasQuestionBeenAsked && dataMap.getInt(QUESTION_INDEX) == 0) { in onResult()
498 mFutureQuestions.add(new Question(dataMap.getString(QUESTION), in onResult()
499 dataMap.getInt(QUESTION_INDEX), dataMap.getStringArray(ANSWERS), in onResult()
500 dataMap.getInt(CORRECT_ANSWER_INDEX))); in onResult()