• Home
  • Raw
  • Download

Lines Matching refs:button

184         MultiToggleImageButton button = null;  in onSettingChanged()  local
190 button = getButtonOrError(BUTTON_FLASH); in onSettingChanged()
194 button = getButtonOrError(BUTTON_TORCH); in onSettingChanged()
198 button = getButtonOrError(BUTTON_HDR_PLUS_FLASH); in onSettingChanged()
202 button = getButtonOrError(BUTTON_CAMERA); in onSettingChanged()
206 button = getButtonOrError(BUTTON_HDR_PLUS); in onSettingChanged()
210 button = getButtonOrError(BUTTON_HDR); in onSettingChanged()
214 button = getButtonOrError(BUTTON_GRID_LINES); in onSettingChanged()
222 button = getButtonOrError(BUTTON_COUNTDOWN); in onSettingChanged()
225 if (button != null && button.getState() != index) { in onSettingChanged()
226 button.setState(Math.max(index, 0), false); in onSettingChanged()
349 MultiToggleImageButton button = getButtonOrError(buttonId); in initializeButton() local
352 initializeFlashButton(button, cb, preCb, R.array.camera_flashmode_icons); in initializeButton()
355 initializeTorchButton(button, cb, preCb, R.array.video_flashmode_icons); in initializeButton()
358 initializeHdrPlusFlashButton(button, cb, preCb, R.array.camera_flashmode_icons); in initializeButton()
361 initializeCameraButton(button, cb, preCb, R.array.camera_id_icons); in initializeButton()
364 initializeHdrPlusButton(button, cb, preCb, R.array.pref_camera_hdr_plus_icons); in initializeButton()
367 initializeHdrButton(button, cb, preCb, R.array.pref_camera_hdr_icons); in initializeButton()
370 initializeGridLinesButton(button, cb, preCb, R.array.grid_lines_icons); in initializeButton()
373 initializeCountdownButton(button, cb, preCb, R.array.countdown_duration_icons); in initializeButton()
390 ImageButton button = getImageButtonOrError(buttonId); in initializePushButton() local
391 button.setOnClickListener(cb); in initializePushButton()
393 button.setImageResource(imageId); in initializePushButton()
396 button.setContentDescription(mAppController in initializePushButton()
400 if (!button.isEnabled()) { in initializePushButton()
401 button.setEnabled(true); in initializePushButton()
406 button.setTag(R.string.tag_enabled_id, buttonId); in initializePushButton()
408 if (button.getVisibility() != View.VISIBLE) { in initializePushButton()
409 button.setVisibility(View.VISIBLE); in initializePushButton()
446 View button; in disableButton() local
448 button = getImageButtonOrError(buttonId); in disableButton()
450 button = getButtonOrError(buttonId); in disableButton()
459 … initializeHdrPlusButtonIcons((MultiToggleImageButton) button, R.array.pref_camera_hdr_plus_icons); in disableButton()
461 … initializeHdrButtonIcons((MultiToggleImageButton) button, R.array.pref_camera_hdr_icons); in disableButton()
464 if (button.isEnabled()) { in disableButton()
465 button.setEnabled(false); in disableButton()
470 button.setTag(R.string.tag_enabled_id, null); in disableButton()
490 ImageButton button; in enableButton() local
495 button = getImageButtonOrError(buttonId); in enableButton()
497 button = getButtonOrError(buttonId); in enableButton()
499 if (!button.isEnabled()) { in enableButton()
500 button.setEnabled(true); in enableButton()
505 button.setTag(R.string.tag_enabled_id, buttonId); in enableButton()
514 ImageButton button = getButtonOrError(buttonId); in disableButtonClick() local
515 if (button instanceof MultiToggleImageButton) { in disableButtonClick()
516 ((MultiToggleImageButton) button).setClickEnabled(false); in disableButtonClick()
526 ImageButton button = getButtonOrError(buttonId); in enableButtonClick() local
527 if (button instanceof MultiToggleImageButton) { in enableButtonClick()
528 ((MultiToggleImageButton) button).setClickEnabled(true); in enableButtonClick()
536 View button; in hideButton() local
538 button = getButtonOrError(buttonId); in hideButton()
540 button = getImageButtonOrError(buttonId); in hideButton()
542 if (button.getVisibility() == View.VISIBLE) { in hideButton()
543 button.setVisibility(View.GONE); in hideButton()
554 View button; in showButton() local
556 button = getButtonOrError(buttonId); in showButton()
558 button = getImageButtonOrError(buttonId); in showButton()
560 if (button.getVisibility() != View.VISIBLE) { in showButton()
561 button.setVisibility(View.VISIBLE); in showButton()
633 View button; in isEnabled() local
635 button = getButtonOrError(buttonId); in isEnabled()
637 button = getImageButtonOrError(buttonId); in isEnabled()
640 Integer enabledId = (Integer) button.getTag(R.string.tag_enabled_id); in isEnabled()
642 return (enabledId.intValue() == buttonId) && button.isEnabled(); in isEnabled()
652 View button; in isVisible() local
654 button = getButtonOrError(buttonId); in isVisible()
656 button = getImageButtonOrError(buttonId); in isVisible()
658 return (button.getVisibility() == View.VISIBLE); in isVisible()
664 private void initializeFlashButton(MultiToggleImageButton button, in initializeFlashButton() argument
668 button.overrideImageIds(resIdImages); in initializeFlashButton()
670 button.overrideContentDescriptions(R.array.camera_flash_descriptions); in initializeFlashButton()
674 button.setState(index >= 0 ? index : 0, false); in initializeFlashButton()
676 setPreChangeCallback(button, preCb); in initializeFlashButton()
678 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeFlashButton()
693 private void initializeTorchButton(MultiToggleImageButton button, in initializeTorchButton() argument
697 button.overrideImageIds(resIdImages); in initializeTorchButton()
699 button.overrideContentDescriptions(R.array.video_flash_descriptions); in initializeTorchButton()
703 button.setState(index >= 0 ? index : 0, false); in initializeTorchButton()
705 setPreChangeCallback(button, preCb); in initializeTorchButton()
707 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeTorchButton()
722 private void initializeHdrPlusFlashButton(MultiToggleImageButton button, in initializeHdrPlusFlashButton() argument
726 button.overrideImageIds(resIdImages); in initializeHdrPlusFlashButton()
728 button.overrideContentDescriptions(R.array.hdr_plus_flash_descriptions); in initializeHdrPlusFlashButton()
732 button.setState(index >= 0 ? index : 0, false); in initializeHdrPlusFlashButton()
734 setPreChangeCallback(button, preCb); in initializeHdrPlusFlashButton()
736 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeHdrPlusFlashButton()
751 private void initializeCameraButton(final MultiToggleImageButton button, in initializeCameraButton() argument
755 button.overrideImageIds(resIdImages); in initializeCameraButton()
760 button.setState(index >= 0 ? index : 0, false); in initializeCameraButton()
762 setPreChangeCallback(button, preCb); in initializeCameraButton()
764 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeCameraButton()
775 button.setEnabled(false); in initializeCameraButton()
787 private void initializeHdrPlusButton(MultiToggleImageButton button, in initializeHdrPlusButton() argument
790 initializeHdrPlusButtonIcons(button, resIdImages); in initializeHdrPlusButton()
794 button.setState(index >= 0 ? index : 0, false); in initializeHdrPlusButton()
796 setPreChangeCallback(button, preCb); in initializeHdrPlusButton()
798 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeHdrPlusButton()
810 private void initializeHdrPlusButtonIcons(MultiToggleImageButton button, int resIdImages) { in initializeHdrPlusButtonIcons() argument
812 button.overrideImageIds(resIdImages); in initializeHdrPlusButtonIcons()
814 button.overrideContentDescriptions(R.array.hdr_plus_descriptions); in initializeHdrPlusButtonIcons()
820 private void initializeHdrButton(MultiToggleImageButton button, in initializeHdrButton() argument
823 initializeHdrButtonIcons(button, resIdImages); in initializeHdrButton()
827 button.setState(index >= 0 ? index : 0, false); in initializeHdrButton()
829 setPreChangeCallback(button, preCb); in initializeHdrButton()
831 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeHdrButton()
843 private void initializeHdrButtonIcons(MultiToggleImageButton button, int resIdImages) { in initializeHdrButtonIcons() argument
845 button.overrideImageIds(resIdImages); in initializeHdrButtonIcons()
847 button.overrideContentDescriptions(R.array.hdr_descriptions); in initializeHdrButtonIcons()
853 private void initializeCountdownButton(MultiToggleImageButton button, in initializeCountdownButton() argument
856 button.overrideImageIds(resIdImages); in initializeCountdownButton()
861 button.setState(index >= 0 ? index : 0, false); in initializeCountdownButton()
863 setPreChangeCallback(button, preCb); in initializeCountdownButton()
865 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeCountdownButton()
892 private void initializeGridLinesButton(MultiToggleImageButton button, in initializeGridLinesButton() argument
896 button.overrideImageIds(resIdImages); in initializeGridLinesButton()
898 button.overrideContentDescriptions(R.array.grid_lines_descriptions); in initializeGridLinesButton()
900 setPreChangeCallback(button, preCb); in initializeGridLinesButton()
902 button.setOnStateChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in initializeGridLinesButton()
915 button.setState(index >= 0 ? index : 0, true); in initializeGridLinesButton()
1000 private void setPreChangeCallback(MultiToggleImageButton button, final ButtonCallback preCb) { in setPreChangeCallback() argument
1001 button.setOnPreChangeListener(new MultiToggleImageButton.OnStateChangeListener() { in setPreChangeCallback()