Lines Matching refs:buttonId
133 public void onButtonVisibilityChanged(ButtonManager buttonManager, int buttonId); in onButtonVisibilityChanged() argument
138 public void onButtonEnabledChanged(ButtonManager buttonManager, int buttonId); in onButtonEnabledChanged() argument
245 private MultiToggleImageButton getButtonOrError(int buttonId) { in getButtonOrError() argument
246 switch (buttonId) { in getButtonOrError()
288 throw new IllegalArgumentException("button not known by id=" + buttonId); in getButtonOrError()
297 private ImageButton getImageButtonOrError(int buttonId) { in getImageButtonOrError() argument
298 switch (buttonId) { in getImageButtonOrError()
325 throw new IllegalArgumentException("button not known by id=" + buttonId); in getImageButtonOrError()
336 public void initializeButton(int buttonId, ButtonCallback cb) { in initializeButton() argument
337 initializeButton(buttonId, cb, null); in initializeButton()
348 public void initializeButton(int buttonId, ButtonCallback cb, ButtonCallback preCb) { in initializeButton() argument
349 MultiToggleImageButton button = getButtonOrError(buttonId); in initializeButton()
350 switch (buttonId) { in initializeButton()
376 throw new IllegalArgumentException("button not known by id=" + buttonId); in initializeButton()
379 showButton(buttonId); in initializeButton()
380 enableButton(buttonId); in initializeButton()
388 public void initializePushButton(int buttonId, View.OnClickListener cb, in initializePushButton() argument
390 ImageButton button = getImageButtonOrError(buttonId); in initializePushButton()
403 mListener.onButtonEnabledChanged(this, buttonId); in initializePushButton()
406 button.setTag(R.string.tag_enabled_id, buttonId); in initializePushButton()
411 mListener.onButtonVisibilityChanged(this, buttonId); in initializePushButton()
420 public void initializePushButton(int buttonId, View.OnClickListener cb, in initializePushButton() argument
422 initializePushButton(buttonId, cb, imageId, NO_RESOURCE); in initializePushButton()
428 public void initializePushButton(int buttonId, View.OnClickListener cb) { in initializePushButton() argument
429 initializePushButton(buttonId, cb, NO_RESOURCE, NO_RESOURCE); in initializePushButton()
445 public void disableButton(int buttonId) { in disableButton() argument
447 if (buttonId == BUTTON_EXPOSURE_COMPENSATION) { in disableButton()
448 button = getImageButtonOrError(buttonId); in disableButton()
450 button = getButtonOrError(buttonId); in disableButton()
458 if (buttonId == BUTTON_HDR_PLUS) { in disableButton()
460 } else if (buttonId == BUTTON_HDR) { in disableButton()
467 mListener.onButtonEnabledChanged(this, buttonId); in disableButton()
485 public void enableButton(int buttonId) { in enableButton() argument
487 if(buttonId == BUTTON_CAMERA && mIsCameraButtonBlocked) { in enableButton()
494 if (buttonId == BUTTON_EXPOSURE_COMPENSATION) { in enableButton()
495 button = getImageButtonOrError(buttonId); in enableButton()
497 button = getButtonOrError(buttonId); in enableButton()
502 mListener.onButtonEnabledChanged(this, buttonId); in enableButton()
505 button.setTag(R.string.tag_enabled_id, buttonId); in enableButton()
513 public void disableButtonClick(int buttonId) { in disableButtonClick() argument
514 ImageButton button = getButtonOrError(buttonId); in disableButtonClick()
525 public void enableButtonClick(int buttonId) { in enableButtonClick() argument
526 ImageButton button = getButtonOrError(buttonId); in enableButtonClick()
535 public void hideButton(int buttonId) { in hideButton() argument
538 button = getButtonOrError(buttonId); in hideButton()
540 button = getImageButtonOrError(buttonId); in hideButton()
545 mListener.onButtonVisibilityChanged(this, buttonId); in hideButton()
553 public void showButton(int buttonId) { in showButton() argument
556 button = getButtonOrError(buttonId); in showButton()
558 button = getImageButtonOrError(buttonId); in showButton()
563 mListener.onButtonVisibilityChanged(this, buttonId); in showButton()
632 public boolean isEnabled(int buttonId) { in isEnabled() argument
635 button = getButtonOrError(buttonId); in isEnabled()
637 button = getImageButtonOrError(buttonId); in isEnabled()
642 return (enabledId.intValue() == buttonId) && button.isEnabled(); in isEnabled()
651 public boolean isVisible(int buttonId) { in isVisible() argument
654 button = getButtonOrError(buttonId); in isVisible()
656 button = getImageButtonOrError(buttonId); in isVisible()