Home
last modified time | relevance | path

Searched refs:correctAnswerIndex (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DMainActivity.java217 private int correctAnswerIndex; field in MainActivity.Question
220 int correctAnswerIndex) { in Question() argument
224 this.correctAnswerIndex = correctAnswerIndex; in Question()
250 dataMap.putInt(CORRECT_ANSWER_INDEX, correctAnswerIndex); in toPutDataRequest()
285 int correctAnswerIndex = radioIdToIndex.get(choicesRadioGroup.getCheckedRadioButtonId()); in addQuestion() local
287 addQuestionDataItem(new Question(question, mQuestionIndex++, answers, correctAnswerIndex)); in addQuestion()
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/
DQuizListenerService.java107 int correctAnswerIndex = dataMap.getInt(CORRECT_ANSWER_INDEX); in onDataChanged() local
132 boolean correct = (i == correctAnswerIndex); in onDataChanged()