Home
last modified time | relevance | path

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

/packages/apps/PhoneCommon/src/com/android/phone/common/dialpad/
DDialpadView.java326 private int getKeyButtonAnimationDelay(int buttonId) { in getKeyButtonAnimationDelay() argument
329 if (buttonId == R.id.three) { in getKeyButtonAnimationDelay()
331 } else if (buttonId == R.id.six) { in getKeyButtonAnimationDelay()
333 } else if (buttonId == R.id.nine) { in getKeyButtonAnimationDelay()
335 } else if (buttonId == R.id.pound) { in getKeyButtonAnimationDelay()
337 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
339 } else if (buttonId == R.id.five) { in getKeyButtonAnimationDelay()
341 } else if (buttonId == R.id.eight) { in getKeyButtonAnimationDelay()
343 } else if (buttonId == R.id.zero) { in getKeyButtonAnimationDelay()
345 } else if (buttonId == R.id.one) { in getKeyButtonAnimationDelay()
[all …]
/packages/apps/Dialer/java/com/android/dialer/dialpadview/
DDialpadView.java338 private int getKeyButtonAnimationDelay(int buttonId) { in getKeyButtonAnimationDelay() argument
341 if (buttonId == R.id.three) { in getKeyButtonAnimationDelay()
343 } else if (buttonId == R.id.six) { in getKeyButtonAnimationDelay()
345 } else if (buttonId == R.id.nine) { in getKeyButtonAnimationDelay()
347 } else if (buttonId == R.id.pound) { in getKeyButtonAnimationDelay()
349 } else if (buttonId == R.id.two) { in getKeyButtonAnimationDelay()
351 } else if (buttonId == R.id.five) { in getKeyButtonAnimationDelay()
353 } else if (buttonId == R.id.eight) { in getKeyButtonAnimationDelay()
355 } else if (buttonId == R.id.zero) { in getKeyButtonAnimationDelay()
357 } else if (buttonId == R.id.one) { in getKeyButtonAnimationDelay()
[all …]
DDialpadFragment.java721 for (int buttonId : buttonIds) { in configureKeypadListeners()
722 dialpadKey = fragmentView.findViewById(buttonId); in configureKeypadListeners()
/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java133 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()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java66 @InCallButtonIds protected final int buttonId; field in ButtonController.CheckableButtonController
76 @InCallButtonIds int buttonId, in CheckableButtonController() argument
81 this.buttonId = buttonId; in CheckableButtonController()
123 return buttonId; in getInCallButtonId()
161 @InCallButtonIds int buttonId, in SimpleCheckableButtonController() argument
168 buttonId, in SimpleCheckableButtonController()
189 @InCallButtonIds protected final int buttonId; field in ButtonController.NonCheckableButtonController
197 @InCallButtonIds int buttonId, in NonCheckableButtonController() argument
200 this.buttonId = buttonId; in NonCheckableButtonController()
238 return buttonId; in getInCallButtonId()
[all …]
DInCallFragment.java415 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
419 InCallButtonIdsExtension.toString(buttonId), in showButton()
421 if (isSupportedButton(buttonId)) { in showButton()
422 getButtonController(buttonId).setAllowed(show); in showButton()
423 if (buttonId == InCallButtonIds.BUTTON_UPGRADE_TO_VIDEO && show) { in showButton()
431 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
435 InCallButtonIdsExtension.toString(buttonId), in enableButton()
437 if (isSupportedButton(buttonId)) { in enableButton()
438 getButtonController(buttonId).setEnabled(enable); in enableButton()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java727 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
731 InCallButtonIdsExtension.toString(buttonId), in showButton()
733 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in showButton()
735 } else if (buttonId == InCallButtonIds.BUTTON_MUTE) { in showButton()
737 } else if (buttonId == InCallButtonIds.BUTTON_PAUSE_VIDEO) { in showButton()
739 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_TO_SECONDARY) { in showButton()
741 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_CAMERA) { in showButton()
747 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
751 InCallButtonIdsExtension.toString(buttonId), in enableButton()
753 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in enableButton()
[all …]
DVideoCallFragment.java841 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
845 InCallButtonIdsExtension.toString(buttonId), in showButton()
847 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in showButton()
849 } else if (buttonId == InCallButtonIds.BUTTON_MUTE) { in showButton()
851 } else if (buttonId == InCallButtonIds.BUTTON_PAUSE_VIDEO) { in showButton()
853 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_TO_SECONDARY) { in showButton()
855 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_CAMERA) { in showButton()
861 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
865 InCallButtonIdsExtension.toString(buttonId), in enableButton()
867 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in enableButton()
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DIndicatorIconController.java99 public void onButtonVisibilityChanged(ButtonManager buttonManager, int buttonId) { in onButtonVisibilityChanged() argument
100 syncIndicatorWithButton(buttonId); in onButtonVisibilityChanged()
104 public void onButtonEnabledChanged(ButtonManager buttonManager, int buttonId) { in onButtonEnabledChanged() argument
105 syncIndicatorWithButton(buttonId); in onButtonEnabledChanged()
112 private void syncIndicatorWithButton(int buttonId) { in syncIndicatorWithButton() argument
113 switch (buttonId) { in syncIndicatorWithButton()
/packages/apps/Dialer/java/com/android/incallui/incall/protocol/
DInCallButtonUi.java26 void showButton(@InCallButtonIds int buttonId, boolean show); in showButton() argument
28 void enableButton(@InCallButtonIds int buttonId, boolean enable); in enableButton() argument
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DStorageManagerUpsellDialog.java87 public void onClick(DialogInterface dialog, int buttonId) { in onClick() argument
88 if (buttonId == DialogInterface.BUTTON_POSITIVE) { in onClick()
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/
DPlayControlsRowViewTest.java150 private void assertButtonHasFocus(String buttonId) { in assertButtonHasFocus() argument
156 assertEquals(buttonId, focusedButtonGroup.getResourceName()); in assertButtonHasFocus()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DImportancePreference.java151 private void colorizeImageButton(int buttonId) { in colorizeImageButton() argument
161 if (buttonId == imageButton.getId()) { in colorizeImageButton()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DRttChatFragment.java539 public void showButton(int buttonId, boolean show) { in showButton() argument
540 if (buttonId == InCallButtonIds.BUTTON_SWAP) { in showButton()
546 public void enableButton(int buttonId, boolean enable) {} in enableButton() argument
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java618 public static int getResponseFromButtonId(int buttonId) { in getResponseFromButtonId() argument
837 int buttonId = findButtonIdForResponse(mTentativeUserSetResponse); in onResume() local
838 mResponseRadioGroup.check(buttonId); in onResume()
/packages/apps/Camera2/src/com/android/camera/app/
DCameraAppUI.java2136 int buttonId = ButtonManager.BUTTON_HDR;
2139 buttonId = ButtonManager.BUTTON_HDR_PLUS;
2141 buttonManager.showButton(buttonId);
2142 buttonManager.disableButton(buttonId);