Home
last modified time | relevance | path

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

/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
DMainActivity.java103 private PriorityQueue<Question> mFutureQuestions;
133 mFutureQuestions = new PriorityQueue<Question>(10); in onCreate()
212 private static class Question implements Comparable<Question> { class in MainActivity
219 public Question(String question, int questionIndex, String[] answers, in Question() method in MainActivity.Question
227 public static Question fromJson(JSONObject questionObject, int questionIndex) in fromJson()
236 return new Question(question, questionIndex, answers, correctIndex); in fromJson()
240 public int compareTo(Question that) { in compareTo()
268 Question question = Question.fromJson(questionObject, mQuestionIndex++); in readQuizFromFile()
287 addQuestionDataItem(new Question(question, mQuestionIndex++, answers, correctAnswerIndex)); in addQuestion()
302 private void addQuestionDataItem(Question question) { in addQuestionDataItem()
[all …]