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.java416 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
420 InCallButtonIdsExtension.toString(buttonId), in showButton()
422 if (isSupportedButton(buttonId)) { in showButton()
423 getButtonController(buttonId).setAllowed(show); in showButton()
424 if (buttonId == InCallButtonIds.BUTTON_UPGRADE_TO_VIDEO && show) { in showButton()
432 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
436 InCallButtonIdsExtension.toString(buttonId), in enableButton()
438 if (isSupportedButton(buttonId)) { in enableButton()
439 getButtonController(buttonId).setEnabled(enable); in enableButton()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSurfaceViewVideoCallFragment.java728 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
732 InCallButtonIdsExtension.toString(buttonId), in showButton()
734 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in showButton()
736 } else if (buttonId == InCallButtonIds.BUTTON_MUTE) { in showButton()
738 } else if (buttonId == InCallButtonIds.BUTTON_PAUSE_VIDEO) { in showButton()
740 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_TO_SECONDARY) { in showButton()
742 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_CAMERA) { in showButton()
748 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
752 InCallButtonIdsExtension.toString(buttonId), in enableButton()
754 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in enableButton()
[all …]
DVideoCallFragment.java797 public void showButton(@InCallButtonIds int buttonId, boolean show) { in showButton() argument
801 InCallButtonIdsExtension.toString(buttonId), in showButton()
803 if (buttonId == InCallButtonIds.BUTTON_AUDIO) { in showButton()
805 } else if (buttonId == InCallButtonIds.BUTTON_MUTE) { in showButton()
807 } else if (buttonId == InCallButtonIds.BUTTON_PAUSE_VIDEO) { in showButton()
809 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_TO_SECONDARY) { in showButton()
811 } else if (buttonId == InCallButtonIds.BUTTON_SWITCH_CAMERA) { in showButton()
817 public void enableButton(@InCallButtonIds int buttonId, boolean enable) { in enableButton() argument
821 InCallButtonIdsExtension.toString(buttonId), in enableButton()
823 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.java540 public void showButton(int buttonId, boolean show) { in showButton() argument
541 if (buttonId == InCallButtonIds.BUTTON_SWAP) { in showButton()
547 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);