Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 160) sorted by relevance

1234567

/packages/apps/Camera2/src/com/android/camera/
DButtonManager.java184 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()
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java51 void setButton(CheckableLabeledButton button); in setButton() argument
55 private static void resetButton(CheckableLabeledButton button) { in resetButton() argument
56 if (button != null) { in resetButton()
57 button.setOnCheckedChangeListener(null); in resetButton()
58 button.setOnClickListener(null); in resetButton()
72 protected CheckableLabeledButton button; field in ButtonController.CheckableButtonController
94 if (button != null) { in setEnabled()
95 button.setEnabled(isEnabled); in setEnabled()
107 if (button != null) { in setAllowed()
108 button.setVisibility(isAllowed ? View.VISIBLE : View.INVISIBLE); in setAllowed()
[all …]
DInCallButtonGridFragment.java82 for (CheckableLabeledButton button : buttons) { in onInCallScreenDialpadVisibilityChange()
83 button.setImportantForAccessibility( in onInCallScreenDialpadVisibilityChange()
124 @InCallButtonIds int button = buttonsToPlace.get(i); in updateButtonStates() local
125 buttonGridListener.getButtonController(button).setButton(buttons[i]); in updateButtonStates()
132 for (CheckableLabeledButton button : buttons) { in updateButtonColor()
133 button.setCheckedColor(color); in updateButtonColor()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetBar.java116 for (ButtonDropTarget button : mDropTargets) { in setInsets()
117 button.setToolTipLocation(tooltipLocation); in setInsets()
138 for (ButtonDropTarget button : mDropTargets) { in onMeasure()
139 if (button.getVisibility() != GONE) { in onMeasure()
140 button.setTextVisible(false); in onMeasure()
141 button.measure(widthSpec, heightSpec); in onMeasure()
156 for (ButtonDropTarget button : mDropTargets) { in onMeasure()
157 if (button.getVisibility() != GONE) { in onMeasure()
158 button.setTextVisible(textVisible); in onMeasure()
159 button.measure(widthSpec, heightSpec); in onMeasure()
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationActionsView.java127 Button button = mActionButtons.get(i); in bind() local
128 button.setVisibility(View.VISIBLE); in bind()
130 button.setText(action.title.toString()); in bind()
133 button.setOnClickListener(clickHandlerFactory.getActionClickHandler(alertEntry, i)); in bind()
158 for (Button button : mActionButtons) { in reset()
159 button.setVisibility(View.GONE); in reset()
160 button.setText(null); in reset()
161 button.setOnClickListener(null); in reset()
193 Button button = mActionButtons.get(FIRST_MESSAGE_ACTION_BUTTON_INDEX); in createPlayButton()
194 button.setText(mContext.getString(R.string.assist_action_play_label)); in createPlayButton()
[all …]
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DSpeakerButtonController.java37 @NonNull private CheckableImageButton button; field in SpeakerButtonController
47 @NonNull CheckableImageButton button, in SpeakerButtonController()
52 this.button = Assert.isNotNull(button); in SpeakerButtonController()
61 button.setVisibility(View.VISIBLE); in updateButtonState()
62 button.setEnabled(isEnabled); in updateButtonState()
63 button.setChecked(isChecked); in updateButtonState()
64 button.setOnClickListener(checkable ? null : this); in updateButtonState()
65 button.setOnCheckedChangeListener(checkable ? this : null); in updateButtonState()
66 button.setImageResource(icon); in updateButtonState()
67 button.setContentDescription(contentDescription); in updateButtonState()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
DColorChooser.java65 final Button button = (Button) mTopView.findViewById(mButtonsID[i]); in setUp() local
66 mButton[i] = button; in setUp()
70 button.setTag(hsvo); in setUp()
71 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in setUp()
76 button.setOnClickListener(new View.OnClickListener() { in setUp()
83 Button button = (Button) mTopView.findViewById(R.id.draw_color_popupbutton); in setUp() local
85 button.setOnClickListener(new View.OnClickListener() { in setUp()
115 final Button button = mButton[i]; in resetBorders() local
116 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
122 public void selectColor(View button, int buttonNo) { in selectColor() argument
[all …]
DStyleChooser.java47 final ImageButton button = new ImageButton(context); in setUp() local
48 button.setScaleType(ScaleType.CENTER_CROP); in setUp()
49 button.setLayoutParams(lp); in setUp()
50 button.setBackgroundResource(android.R.color.transparent); in setUp()
51 mIconButton.add(button); in setUp()
53 button.setOnClickListener(new View.OnClickListener() { in setUp()
59 mLinearLayout.addView(button); in setUp()
67 button.setImageBitmap(bmap); in setUp()
/packages/apps/Camera2/src/com/android/camera/ui/
DRadioOptions.java87 public void onClick(View button) { in updateListeners()
88 setSelectedOptionByView(button); in updateListeners()
93 View button = getChildAt(i); in updateListeners() local
94 button.setOnClickListener(onClickListener); in updateListeners()
103 View button = findViewWithTag(tag); in setSelectedOptionByTag() local
104 setSelectedOptionByView(button); in setSelectedOptionByTag()
112 View button = findViewById(id); in setSeletedOptionById() local
113 setSelectedOptionByView(button); in setSeletedOptionById()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockPatternTest.java95 Button button = mActivity.findViewById(R.id.screen_lock_options); in optionsButton_whenPatternSelected_shouldBeVisible() local
96 assertThat(button).isNotNull(); in optionsButton_whenPatternSelected_shouldBeVisible()
97 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in optionsButton_whenPatternSelected_shouldBeVisible()
103 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in optionsButton_whenPatternSelected_shouldBeVisible()
107 Button button = mActivity.findViewById(R.id.screen_lock_options); in verifyScreenLockOptionsShown() local
108 assertThat(button).isNotNull(); in verifyScreenLockOptionsShown()
109 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in verifyScreenLockOptionsShown()
111 button.performClick(); in verifyScreenLockOptionsShown()
131 Button button = mActivity.findViewById(R.id.screen_lock_options); in verifyScreenLockOptionsHidden() local
132 assertThat(button).isNotNull(); in verifyScreenLockOptionsHidden()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DGestureBot.java115 private void swipe(int downX, int downY, int upX, int upY, int steps, int button, in swipe() argument
130 touchDown(downX, downY, button); in swipe()
135 touchMove(downX + (int) (xStep * i), downY + (int) (yStep * i), button); in swipe()
145 private boolean touchDown(int x, int y, int button) { in touchDown() argument
147 MotionEvent event = getMotionEvent(mDownTime, mDownTime, MotionEvent.ACTION_DOWN, button, x, in touchDown()
159 private boolean touchMove(int x, int y, int button) { in touchMove() argument
161 MotionEvent event = getMotionEvent(mDownTime, eventTime, MotionEvent.ACTION_MOVE, button, x, in touchMove()
167 private static MotionEvent getMotionEvent(long downTime, long eventTime, int action, int button, in getMotionEvent() argument
182 0, button, 1.0f, 1.0f, 0, 0, InputDevice.SOURCE_TOUCHSCREEN, 0); in getMotionEvent()
/packages/services/Telephony/src/com/android/phone/
DEmergencyDialer.java491 public void onConfirmClick(EmergencyShortcutButton button) { in onConfirmClick() argument
492 if (button == null) return; in onConfirmClick()
493 String phoneNumber = button.getPhoneNumber(); in onConfirmClick()
506 public void onConfirmClick(EmergencyInfoGroup button) { in onConfirmClick() argument
507 if (button == null) return; in onConfirmClick()
509 Intent intent = (Intent) button.getTag(R.id.tag_intent); in onConfirmClick()
1020 EmergencyShortcutButton button = (EmergencyShortcutButton) getLayoutInflater() in setupEmergencyCallShortcutButton()
1022 button.setPhoneNumber(number); in setupEmergencyCallShortcutButton()
1023 button.setPhoneDescription(description); in setupEmergencyCallShortcutButton()
1024 button.setPhoneTypeIcon(iconRes); in setupEmergencyCallShortcutButton()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java241 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in display_shouldNotShowNeutralButton() local
242 assertThat(button).isNotNull(); in display_shouldNotShowNeutralButton()
243 assertThat(button.getVisibility()).isEqualTo(View.GONE); in display_shouldNotShowNeutralButton()
263 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onMatchManyResult_showNeutralButton() local
264 assertThat(button).isNotNull(); in onMatchManyResult_showNeutralButton()
265 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in onMatchManyResult_showNeutralButton()
284 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in clickNeutralButton_hideNeutralButton() local
285 button.performClick(); in clickNeutralButton_hideNeutralButton()
288 assertThat(button.getVisibility()).isEqualTo(View.GONE); in clickNeutralButton_hideNeutralButton()
300 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE); in cancelDialog_callsReject() local
[all …]
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/template/
DCarNotificationActionsViewTest.java118 Button button = mCarNotificationActionsView.getActionButtons().get(i); in onBind_noAction_doesNotCreateButtons() local
119 assertThat(button.getVisibility()).isNotEqualTo(View.VISIBLE); in onBind_noAction_doesNotCreateButtons()
120 assertThat(button.hasOnClickListeners()).isFalse(); in onBind_noAction_doesNotCreateButtons()
235 Button button = mCarNotificationActionsView.getActionButtons().get(0); in onBind_actionExists_notCarCompatibleMessage_buttonIsVisible() local
237 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in onBind_actionExists_notCarCompatibleMessage_buttonIsVisible()
248 Button button = mCarNotificationActionsView.getActionButtons().get(0); in onBind_actionExists_notCarCompatibleMessage_buttonShowsActionTitle() local
250 assertThat(button.getText()).isEqualTo(ACTION_TITLE); in onBind_actionExists_notCarCompatibleMessage_buttonShowsActionTitle()
261 Button button = mCarNotificationActionsView.getActionButtons().get(0); in onBind_actionExists_notCarCompatibleMessage_hasIntent_buttonHasClickListener() local
263 assertThat(button.hasOnClickListeners()).isTrue(); in onBind_actionExists_notCarCompatibleMessage_hasIntent_buttonHasClickListener()
279 Button button = mCarNotificationActionsView.getActionButtons().get(0); in onBind_actionExists_notCarCompatibleMessage_hasNoIntent_buttonHasNoClickListener() local
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DEntityHeaderController.java339 private void bindButton(ImageButton button, @ActionType int action) { in bindButton() argument
340 if (button == null) { in bindButton()
346 button.setVisibility(View.GONE); in bindButton()
348 button.setImageResource(com.android.internal.R.drawable.ic_mode_edit); in bindButton()
349 button.setVisibility(View.VISIBLE); in bindButton()
350 button.setOnClickListener(mEditOnClickListener); in bindButton()
356 button.setVisibility(View.GONE); in bindButton()
358 button.setOnClickListener(v -> { in bindButton()
366 button.setVisibility(View.VISIBLE); in bindButton()
371 button.setVisibility(View.GONE); in bindButton()
/packages/apps/Settings/src/com/android/settings/widget/
DEntityHeaderController.java339 private void bindButton(ImageButton button, @ActionType int action) { in bindButton() argument
340 if (button == null) { in bindButton()
346 button.setVisibility(View.GONE); in bindButton()
348 button.setImageResource(com.android.internal.R.drawable.ic_mode_edit); in bindButton()
349 button.setVisibility(View.VISIBLE); in bindButton()
350 button.setOnClickListener(mEditOnClickListener); in bindButton()
356 button.setVisibility(View.GONE); in bindButton()
358 button.setOnClickListener(v -> { in bindButton()
366 button.setVisibility(View.VISIBLE); in bindButton()
371 button.setVisibility(View.GONE); in bindButton()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DTutorialController.java65 mCloseButton.setOnClickListener(button -> mTutorialFragment.closeTutorial()); in TutorialController()
138 void onActionButtonClicked(View button) {} in onActionButtonClicked() argument
140 void onActionTextButtonClicked(View button) {} in onActionTextButtonClicked() argument
191 private void updateButton(Button button, @Nullable Integer stringId, OnClickListener listener) { in updateButton() argument
193 button.setVisibility(View.INVISIBLE); in updateButton()
197 button.setVisibility(View.VISIBLE); in updateButton()
198 button.setText(stringId); in updateButton()
199 button.setOnClickListener(listener); in updateButton()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DButtonSwitcher.java159 private ViewPropertyAnimator animateButton(final View button, final int direction) { in animateButton() argument
161 final float innerX = button.getX() - button.getTranslationX(); in animateButton()
164 button.setClickable(true); in animateButton()
165 return button.animate().translationX(0); in animateButton()
167 button.setClickable(false); in animateButton()
168 return button.animate().translationX(outerX - innerX); in animateButton()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsRowView.java305 PlayControlsButton button, in initializeButton() argument
310 button.setImageResId(imageResId); in initializeButton()
311 button.setAction(clickAction); in initializeButton()
313 button.setFocusedIconColor(focusedIconColor); in initializeButton()
315 button.findViewById(R.id.button) in initializeButton()
620 PlayControlsButton button; in updateButtons() local
623 button = mFastForwardButton; in updateButtons()
626 button = mRewindButton; in updateButtons()
629 button.setLabel(null); in updateButtons()
631 button.setLabel( in updateButtons()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
DEditorDrawTabletUI.java132 final ImageButton button = new ImageButton(context); in EditorDrawTabletUI() local
133 mStyleButton[i] = button; in EditorDrawTabletUI()
134 button.setScaleType(ImageView.ScaleType.CENTER_CROP); in EditorDrawTabletUI()
135 button.setLayoutParams(params); in EditorDrawTabletUI()
137 button.setImageBitmap(bitmap); in EditorDrawTabletUI()
138 button.setBackgroundResource(android.R.color.transparent); in EditorDrawTabletUI()
139 buttonContainer.addView(button); in EditorDrawTabletUI()
141 button.setOnClickListener(new View.OnClickListener() { in EditorDrawTabletUI()
271 final Button button = mColorButton[i]; in resetBorders() local
273 GradientDrawable sd = ((GradientDrawable) button.getBackground()); in resetBorders()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/
DMediaButtonController.java140 ImageButton button = mControlBar.createIconButton(icon); in createIconButton() local
143 button.setImageTintList( in createIconButton()
146 button.setImageTintList(mIconsColor); in createIconButton()
148 button.setImageTintMode(PorterDuff.Mode.SRC_ATOP); in createIconButton()
149 return button; in createIconButton()
232 ImageButton button = createIconButton(action.mIcon); in updateCustomActions()
233 button.setOnClickListener(view -> in updateCustomActions()
235 return button; in updateCustomActions()
/packages/apps/Dialer/java/com/android/dialer/logging/
Ddialer_impression.proto22 // User pressed the speaker phone button
25 // User pressed the speaker phone button again
29 // button in the call log
146 // sense e.g user pressed a speaker button and we want to associate that to
211 // the voicemail call log entry or pressed the play button when the
217 // The play button for voicemail call log entry was tapped directly (i.e
224 // The play button after expanding the voicemail call log entry was tapped
260 // The user has clicked the decline ToS button, and a conformation dialog
264 // The use has clicked the decline ToS button but the PIN has been
330 // User tapped the 'Share and call' button to start the call composer
[all …]
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptions.java224 View button = mModeOptionsButtons.getChildAt(i); in setupToggleButtonParams() local
225 if (button instanceof MultiToggleImageButton) { in setupToggleButtonParams()
226 MultiToggleImageButton toggleButton = (MultiToggleImageButton) button; in setupToggleButtonParams()
287 final View button; in setupAnimators() local
289 button = mActiveBar.getChildAt(i); in setupAnimators()
291 button = mActiveBar.getChildAt(childCount-1-i); in setupAnimators()
301 button.setTranslationX((Float) animation.getAnimatedValue()); in setupAnimators()
303 button.setTranslationY(-((Float) animation.getAnimatedValue())); in setupAnimators()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java127 private void setPositionTaggedCallback(int position, Button button, View.OnClickListener l) { in setPositionTaggedCallback() argument
128 button.setTag(position); in setPositionTaggedCallback()
129 button.setOnClickListener(l); in setPositionTaggedCallback()
132 private void setToggleButton(int position, Button button, boolean on, String ifOn, String ifOff, in setToggleButton() argument
136 button.setText(ifOn); in setToggleButton()
138 button.setText(ifOff); in setToggleButton()
140 setPositionTaggedCallback(position, button, l); in setToggleButton()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestEvents.java151 for (int button : buttons) { in pressButton()
152 mState.mButtons.add(button); in pressButton()
161 for (int button : buttons) { in releaseButton()
162 mState.mButtons.remove(button); in releaseButton()
254 for (Integer button : mState.mButtons) { in build()
255 buttons |= button; in build()

1234567