Searched defs:button (Results 1 - 22 of 22) sorted by relevance

/frameworks/support/v4/api23/android/support/v4/widget/
H A DCompoundButtonCompatApi23.java27 static Drawable getButtonDrawable(CompoundButton button) { argument
28 return button.getButtonDrawable();
/frameworks/base/core/tests/coretests/src/android/animation/
H A DAnimatorSetEventsTest.java31 Button button; field in class:AnimatorSetEventsTest
37 button = (Button) getActivity().findViewById(R.id.animatingButton);
77 button.setTranslationX(value);
82 button.setTranslationY(value);
/frameworks/support/v4/api21/android/support/v4/widget/
H A DCompoundButtonCompatLollipop.java25 static void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
26 button.setButtonTintList(tint);
29 static ColorStateList getButtonTintList(CompoundButton button) { argument
30 return button.getButtonTintList();
33 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { argument
34 button.setButtonTintMode(tintMode);
37 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { argument
38 return button.getButtonTintMode();
/frameworks/support/v4/donut/android/support/v4/widget/
H A DCompoundButtonCompatDonut.java34 static void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
35 if (button instanceof TintableCompoundButton) {
36 ((TintableCompoundButton) button).setSupportButtonTintList(tint);
40 static ColorStateList getButtonTintList(CompoundButton button) { argument
41 if (button instanceof TintableCompoundButton) {
42 return((TintableCompoundButton) button).getSupportButtonTintList();
47 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { argument
48 if (button instanceof TintableCompoundButton) {
49 ((TintableCompoundButton) button).setSupportButtonTintMode(tintMode);
53 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { argument
60 getButtonDrawable(CompoundButton button) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java34 * Create a view with a button at the top and bottom, with filler in between.
119 final Button button = new Button(context);
120 button.setText("left");
121 ll.addView(button, lp);
127 final Button button = new Button(context);
128 button.setText("center");
129 ll.addView(button, lp);
135 final Button button = new Button(context);
136 button.setText("right");
137 ll.addView(button, l
155 public static View button(int position, Context context, String text, int desiredHeight) { method in class:ListItemFactory
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DMouseClickAction.java98 * @param button the mouse button used to send motion events
101 @MouseUiController.MouseButton int button) {
103 mButton = button;
100 MouseClickAction(Tapper tapper, CoordinatesProvider coordinatesProvider, @MouseUiController.MouseButton int button) argument
H A DMouseUiController.java52 * @param button the button to be used for generating input events.
54 public MouseUiController(UiController uiController, @MouseButton int button) { argument
56 mButton = button;
H A DTextViewActions.java79 * @param button the mouse button to use.
82 @MouseUiController.MouseButton int button) {
84 new MouseClickAction(Tap.SINGLE, new TextCoordinates(index), button));
81 mouseClickOnTextAtIndex(int index, @MouseUiController.MouseButton int button) argument
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DUniqueIds.java45 Button button = (Button) inflater.inflate(R.layout.button_template, null);
46 container.addView(button);
47 ToggleScene scene = new ToggleScene(container, button);
48 mSceneMap.put(button, scene);
49 button = (Button) inflater.inflate(R.layout.button_template, null);
50 container.addView(button);
51 scene = new ToggleScene(container, button);
52 mSceneMap.put(button, scene);
64 ToggleScene(ViewGroup rootView, Button button) { argument
66 mButton = button;
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DCompoundButtonCompat.java50 void setButtonTintList(CompoundButton button, ColorStateList tint); argument
51 ColorStateList getButtonTintList(CompoundButton button); argument
52 void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode); argument
53 PorterDuff.Mode getButtonTintMode(CompoundButton button); argument
54 Drawable getButtonDrawable(CompoundButton button); argument
59 public void setButtonTintList(CompoundButton button, ColorStateList tint) { argument
60 CompoundButtonCompatDonut.setButtonTintList(button, tint);
64 public ColorStateList getButtonTintList(CompoundButton button) { argument
65 return CompoundButtonCompatDonut.getButtonTintList(button);
69 public void setButtonTintMode(CompoundButton button, PorterDuf argument
74 getButtonTintMode(CompoundButton button) argument
79 getButtonDrawable(CompoundButton button) argument
86 setButtonTintList(CompoundButton button, ColorStateList tint) argument
91 getButtonTintList(CompoundButton button) argument
96 setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) argument
101 getButtonTintMode(CompoundButton button) argument
108 getButtonDrawable(CompoundButton button) argument
127 setButtonTintList(@onNull CompoundButton button, @Nullable ColorStateList tint) argument
137 getButtonTintList(@onNull CompoundButton button) argument
152 setButtonTintMode(@onNull CompoundButton button, @Nullable PorterDuff.Mode tintMode) argument
163 getButtonTintMode(@onNull CompoundButton button) argument
173 getButtonDrawable(@onNull CompoundButton button) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
H A DCarNavigationBarView.java47 public void addButton(CarNavigationButton button, CarNavigationButton lightsOutButton){ argument
48 mNavButtons.addView(button);
73 // navigation bar does not have a back button.
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java219 private void verifyRedOnly(final int pixelX, final int pixelY, final View button, argument
224 button.draw(canvas);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$id.class ... Object { public static final int action_settings public static final int button public static final int button2 public static final int checkBox ...
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewHeader.java254 private void updateLayoutParams(View icon, View title, View secondaryButton, View button) { argument
275 button.setLayoutParams(lp);
276 button.setPadding(mHeaderButtonPadding, mHeaderButtonPadding, mHeaderButtonPadding,
466 // When freeform workspaces are enabled, then update the move-task button depending on the
496 // In accessibility, a single click on the focused app info button will show it
595 // In accessibility, a single click on the focused app info button will show it
601 // Keep track of deletions by the dismiss button
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DNavBarTuner.java167 for (String button : views[i].split(BUTTON_SEPARATOR)) {
168 mNavBarAdapter.addButton(button, getLabel(button, context));
178 // TODO: Show save button conditionally, only when there are changes.
206 private static CharSequence getLabel(String button, Context context) { argument
207 if (button.startsWith(HOME)) {
209 } else if (button.startsWith(BACK)) {
211 } else if (button.startsWith(RECENT)) {
213 } else if (button.startsWith(NAVSPACE)) {
215 } else if (button
318 addButton(String button, CharSequence label) argument
490 showAddedMessage(Context context, String button) argument
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DAlertController.java305 * Sets a hint for the best button panel layout.
312 * Sets a click listener or a message to be sent when the button is clicked.
315 * @param whichButton Which button, can be one of
319 * @param text The text to display in positive button.
725 * If we only have 1 button it should be centered on the layout and
743 private void centerButton(Button button) { argument
744 LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) button.getLayoutParams();
747 button.setLayoutParams(params);
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp466 jlong nativePtr, jint button) {
468 event->setActionButton(button);
465 android_view_MotionEvent_nativeSetActionButton(JNIEnv* env, jclass clazz, jlong nativePtr, jint button) argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNavigationBarView.java135 // When dismissing ime during unlock, force the back button to run the same appearance
337 // We have to replace or restore the back and home button icons when exiting or entering
358 // Update menu button in case the IME state has changed.
731 private static void dumpButton(PrintWriter pw, String caption, ButtonDispatcher button) { argument
733 if (button == null) {
736 pw.print(visibilityToString(button.getVisibility())
737 + " alpha=" + button.getAlpha()
/frameworks/native/include/input/
H A DInput.h174 // Indicates that the key is virtual, such as a capacitive button, and should
405 inline void setActionButton(int32_t button) { mActionButton = button; } argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSMSDispatcher.java1628 void setPositiveButton(Button button) { argument
1629 mPositiveButton = button;
1632 void setNegativeButton(Button button) { argument
1633 mNegativeButton = button;
/frameworks/base/core/java/android/view/
H A DMotionEvent.java72 * good idea to check the button state while handling {@link #ACTION_DOWN} as part
74 * if the touch event starts due to a secondary button click, such as presenting a
138 * or {@link #ACTION_UP} motion events when the trackball button is pressed or released.
190 * This is also a good time to check the button state to distinguish
191 * secondary and tertiary button clicks and handle them appropriately.
192 * Use {@link #getButtonState} to retrieve the button state.
306 * Constant for {@link #getActionMasked}: A button has been pressed.
309 * Use {@link #getActionButton()} to get which button was pressed.
319 * Constant for {@link #getActionMasked}: A button has been released.
322 * Use {@link #getActionButton()} to get which button wa
2358 setActionButton(int button) argument
3325 isButtonPressed(int button) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DNumberPicker.java72 * presents the current value as an editable input field with an increment button
73 * above and a decrement button below. Long pressing the buttons allows for a quick
210 * The increment button.
215 * The decrement button.
462 * Whether the increment virtual button is pressed.
467 * Whether the decrement virtual button is pressed.
705 // increment button
714 // decrement button
2184 public void buttonPressDelayed(int button) { argument
2187 mManagedButton = button;
2191 buttonTapped(int button) argument
[all...]

Completed in 750 milliseconds