Home
last modified time | relevance | path

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

123456

/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.java123 Button button = mActionButtons.get(i); in bind() local
124 button.setVisibility(View.VISIBLE); in bind()
126 button.setText(action.title.toString()); in bind()
129 button.setOnClickListener(clickHandlerFactory.getActionClickHandler( in bind()
157 Button button = mActionButtons.get(PLAY_MESSAGE_ACTION_BUTTON_INDEX); in createPlayButton() local
158 button.setText(mContext.getString(R.string.assist_action_play_label)); in createPlayButton()
159 button.setVisibility(View.VISIBLE); in createPlayButton()
160 button.setOnClickListener(clickHandlerFactory.getPlayClickHandler(statusBarNotification)); in createPlayButton()
169 Button button = mActionButtons.get(MUTE_MESSAGE_ACTION_BUTTON_INDEX); in createMuteButton() local
171 button.setText((manager != null && manager.isMessageNotificationMuted( in createMuteButton()
[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/services/Telephony/src/com/android/phone/
DEmergencyDialer.java497 public void onConfirmClick(EmergencyShortcutButton button) { in onConfirmClick() argument
498 if (button == null) return; in onConfirmClick()
499 String phoneNumber = button.getPhoneNumber(); in onConfirmClick()
516 public void onConfirmClick(EmergencyInfoGroup button) { in onConfirmClick() argument
517 if (button == null) return; in onConfirmClick()
519 Intent intent = (Intent) button.getTag(R.id.tag_intent); in onConfirmClick()
1062 EmergencyShortcutButton button = (EmergencyShortcutButton) getLayoutInflater() in setupEmergencyCallShortcutButton()
1064 button.setPhoneNumber(number); in setupEmergencyCallShortcutButton()
1065 button.setPhoneDescription(description); in setupEmergencyCallShortcutButton()
1066 button.setPhoneTypeIcon(iconRes); in setupEmergencyCallShortcutButton()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupTypeFragment.java66 final Button button = (Button)parent.getChildAt(i); in onCreateView() local
69 (RelativeLayout.LayoutParams)button.getLayoutParams(); in onCreateView()
72 button.setId(i); in onCreateView()
73 button.setTag(info.protocol); in onCreateView()
74 button.setText(info.name); in onCreateView()
75 button.setOnClickListener(this); in onCreateView()
76 lastView = button; in onCreateView()
/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/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/Settings/tests/robotests/src/com/android/settings/wifi/
DNetworkRequestDialogFragmentTest.java281 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in display_shouldNotShowNeutralButton() local
282 assertThat(button).isNotNull(); in display_shouldNotShowNeutralButton()
283 assertThat(button.getVisibility()).isEqualTo(View.GONE); in display_shouldNotShowNeutralButton()
305 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in onMatchManyResult_showNeutralButton() local
306 assertThat(button).isNotNull(); in onMatchManyResult_showNeutralButton()
307 assertThat(button.getVisibility()).isEqualTo(View.VISIBLE); in onMatchManyResult_showNeutralButton()
327 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEUTRAL); in clickNeutralButton_hideNeutralButton() local
328 button.performClick(); in clickNeutralButton_hideNeutralButton()
331 assertThat(button.getVisibility()).isEqualTo(View.GONE); in clickNeutralButton_hideNeutralButton()
344 final Button button = alertDialog.getButton(AlertDialog.BUTTON_NEGATIVE); in cancelDialog_callsReject() local
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsRowView.java304 PlayControlsButton button, in initializeButton() argument
309 button.setImageResId(imageResId); in initializeButton()
310 button.setAction(clickAction); in initializeButton()
312 button.setFocusedIconColor(focusedIconColor); in initializeButton()
314 button.findViewById(R.id.button) in initializeButton()
614 PlayControlsButton button; in updateButtons() local
617 button = mFastForwardButton; in updateButtons()
620 button = mRewindButton; in updateButtons()
623 button.setLabel(null); in updateButtons()
625 button.setLabel( in updateButtons()
[all …]
/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/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.java137 ImageButton button = mControlBar.createIconButton(icon); in createIconButton() local
140 button.setImageTintList( in createIconButton()
143 button.setImageTintList(mIconsColor); in createIconButton()
145 button.setImageTintMode(PorterDuff.Mode.SRC_ATOP); in createIconButton()
146 return button; in createIconButton()
238 ImageButton button = createIconButton(action.mIcon); in updateCustomActions()
239 button.setOnClickListener(view -> in updateCustomActions()
241 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()
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/
DSubRatingsFragment.java103 CompoundButton button = (CompoundButton) view.findViewById(getCompoundButtonId()); in onBind() local
104 button.setButtonDrawable(R.drawable.btn_lock_material_anim); in onBind()
105 button.setVisibility(View.VISIBLE); in onBind()
164 CompoundButton button = (CompoundButton) view.findViewById(getCompoundButtonId()); in onBind() local
165 button.setButtonDrawable(R.drawable.btn_lock_material_anim); in onBind()
166 button.setVisibility(View.VISIBLE); in onBind()

123456