Home | History | Annotate | Download | only in settings

Lines Matching refs:Stage

127                     updateStage(Stage.Introduction);
149 if (mUiStage == Stage.NeedToConfirm || mUiStage == Stage.ConfirmWrong) {
151 "null chosen pattern in stage 'need to confirm");
153 updateStage(Stage.ChoiceConfirmed);
155 updateStage(Stage.ConfirmWrong);
157 } else if (mUiStage == Stage.Introduction || mUiStage == Stage.ChoiceTooShort){
159 updateStage(Stage.ChoiceTooShort);
162 updateStage(Stage.FirstChoiceValid);
165 throw new IllegalStateException("Unexpected stage " + mUiStage + " when "
233 protected enum Stage {
269 Stage(int headerMessage,
287 private Stage mUiStage = Stage.Introduction;
340 updateStage(Stage.NeedToConfirm);
345 updateStage(Stage.Introduction);
348 updateStage(Stage.Introduction);
356 updateStage(Stage.values()[savedInstanceState.getInt(KEY_UI_STAGE)]);
366 updateStage(Stage.Introduction);
372 throw new IllegalStateException("left footer button pressed, but stage of " +
378 if (mUiStage != Stage.FirstChoiceValid) {
379 throw new IllegalStateException("expected ui stage " + Stage.FirstChoiceValid
382 updateStage(Stage.NeedToConfirm);
384 if (mUiStage != Stage.ChoiceConfirmed) {
385 throw new IllegalStateException("expected ui stage " + Stage.ChoiceConfirmed
390 if (mUiStage != Stage.HelpScreen) {
392 "stage is " + mUiStage);
396 updateStage(Stage.Introduction);
403 if (mUiStage == Stage.HelpScreen) {
404 updateStage(Stage.Introduction);
408 if (keyCode == KeyEvent.KEYCODE_MENU && mUiStage == Stage.Introduction) {
409 updateStage(Stage.HelpScreen);
426 * Updates the messages and buttons appropriate to what stage the user
429 * @param stage
431 protected void updateStage(Stage stage) {
433 mUiStage = stage;
436 // enabled state all known from the stage
437 if (stage == Stage.ChoiceTooShort) {
440 stage.headerMessage,
443 mHeaderText.setText(stage.headerMessage);
445 if (stage.footerMessage == ID_EMPTY_MESSAGE) {
448 mFooterText.setText(stage.footerMessage);
451 if (stage.leftMode == LeftButtonMode.Gone) {
455 mFooterLeftButton.setText(stage.leftMode.text);
456 mFooterLeftButton.setEnabled(stage.leftMode.enabled);
459 mFooterRightButton.setText(stage.rightMode.text);
460 mFooterRightButton.setEnabled(stage.rightMode.enabled);
463 if (stage.patternEnabled) {