Searched refs:questionIndex (Results 1 – 3 of 3) sorted by relevance
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/ |
D | MainActivity.java | 215 private int questionIndex; field in MainActivity.Question 219 public Question(String question, int questionIndex, String[] answers, in Question() argument 222 this.questionIndex = questionIndex; in Question() 227 public static Question fromJson(JSONObject questionObject, int questionIndex) in fromJson() argument 236 return new Question(question, questionIndex, answers, correctIndex); in fromJson() 241 return this.questionIndex - that.questionIndex; in compareTo() 245 PutDataMapRequest request = PutDataMapRequest.create("/question/" + questionIndex); in toPutDataRequest() 248 dataMap.putInt(QUESTION_INDEX, questionIndex); in toPutDataRequest() 343 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged() 345 updateQuestionStatus(questionIndex, questionCorrect); in onDataChanged() [all …]
|
/development/samples/browseable/Quiz/Wearable/src/com.example.android.wearable.quiz/ |
D | UpdateQuestionService.java | 85 int questionIndex = intent.getIntExtra(EXTRA_QUESTION_INDEX, -1); in onHandleIntent() local 87 dataMap.putInt(QUESTION_INDEX, questionIndex); in onHandleIntent() 95 ((NotificationManager) getSystemService(NOTIFICATION_SERVICE)).cancel(questionIndex); in onHandleIntent()
|
D | QuizListenerService.java | 104 int questionIndex = dataMap.getInt(QUESTION_INDEX); in onDataChanged() local 105 int questionNum = questionIndex + 1; in onDataChanged() 135 updateOperation.setAction("question_" + questionIndex + "_answer_" + i); in onDataChanged() 138 questionIndex); in onDataChanged() 150 .notify(questionIndex, notification); in onDataChanged()
|