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

/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/base/tests/SslLoad/src/com/android/sslload/
H A DSslLoad.java48 private Button button; field in class:SslLoad
59 button = new Button(this);
60 button.setText("GO");
61 button.setOnClickListener(this);
63 setContentView(button);
78 button.setText(running ? "STOP" : "GO");
/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/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNavigationBarTransitions.java117 private void setKeyButtonViewQuiescentAlpha(View button, float alpha, boolean animate) { argument
118 if (button instanceof KeyButtonView) {
119 ((KeyButtonView) button).setQuiescentAlpha(alpha, animate);
H A DNavigationBarView.java129 // When dismissing ime during unlock, force the back button to run the same appearance
321 // Update menu button in case the IME state has changed.
656 private static void dumpButton(PrintWriter pw, String caption, View button) { argument
658 if (button == null) {
661 pw.print(PhoneStatusBar.viewInfo(button)
662 + " " + visibilityToString(button.getVisibility())
663 + " alpha=" + button.getAlpha()
665 if (button instanceof KeyButtonView) {
666 pw.print(" drawingAlpha=" + ((KeyButtonView)button).getDrawingAlpha());
667 pw.print(" quiescentAlpha=" + ((KeyButtonView)button)
[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.
708 * If we only have 1 button it should be centered on the layout and
723 private void centerButton(Button button) { argument
724 LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) button.getLayoutParams();
727 button.setLayoutParams(params);
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternUtils.java1555 * Sets the emergency button visibility based on isEmergencyCallCapable().
1557 * If the emergency button is visible, sets the text on the emergency button
1560 * If there's currently a call in progress, the button will take them to the call
1561 * @param button The button to update
1562 * @param shown Indicates whether the given screen wants the emergency button to show at all
1563 * @param showIcon Indicates whether to show a phone icon for the button.
1565 public void updateEmergencyCallButtonState(Button button, boolean shown, boolean showIcon) { argument
1567 button
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSMSDispatcher.java1604 void setPositiveButton(Button button) { argument
1605 mPositiveButton = button;
1608 void setNegativeButton(Button button) { argument
1609 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.
499 * <li>For a trackball, the value is set to 1 if the trackball button is pressed
501 * <li>For a mouse, the value is set to 1 if the primary mouse button is pressed
1167 * Button constant: Primary button (left mouse button)
3176 isButtonPressed(int button) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DNumberPicker.java71 * presents the current value as an editable input field with an increment button
72 * above and a decrement button below. Long pressing the buttons allows for a quick
204 * The increment button.
209 * The decrement button.
456 * Whether the increment virtual button is pressed.
461 * Whether the decrement virtual button is pressed.
690 // increment button
699 // decrement button
2127 public void buttonPressDelayed(int button) { argument
2130 mManagedButton = button;
2134 buttonTapped(int button) argument
[all...]
/frameworks/base/core/java/android/app/
H A DNotification.java208 * the "Clear All" button or by swiping it away individually.
423 * the Clear all button.
2609 * the system as a button adjacent to the notification content.
2631 * the system as a button adjacent to the notification content.
2980 final RemoteViews button = generateActionButton(mActions.get(i));
2981 big.addView(R.id.actions, button);
3017 RemoteViews button = new RemoteViews(mContext.getPackageName(),
3020 button.setTextViewCompoundDrawablesRelative(R.id.action0, action.icon, 0, 0, 0);
3021 button.setTextViewText(R.id.action0, processLegacyText(action.title));
3023 button
3038 processLegacyAction(Action action, RemoteViews button) argument
[all...]

Completed in 2260 milliseconds