| /development/samples/ApiDemos/src/com/example/android/apis/view/ |
| ChronometerDemo.java | 28 import android.widget.Button; 40 Button button; local 44 // Watch for button clicks. 45 button = (Button) findViewById(R.id.start); 46 button.setOnClickListener(mStartListener); 48 button = (Button) findViewById(R.id.stop); 49 button.setOnClickListener(mStopListener) [all...] |
| SecureView.java | 29 import android.widget.Button; 51 * 1. The "unsecured button" does not apply any touch filtering of any kind. 52 * When the toast appears, this button remains clickable as usual which creates an 55 * 2. The "built-in secured button" leverages the android:filterTouchesWhenObscured view 57 * When the toast appears, the button does not receive the touch and appears to be inoperable. 59 * 3. The "custom secured button" adds a touch listener to the button which intercepts the 78 Button toastButton = (Button) findViewById(R.id.secure_view_toast_button); 85 Button unsecureButton = (Button) findViewById(R.id.secure_view_unsecure_button) [all...] |
| /external/qemu/distrib/sdl-1.2.12/src/video/nanox/ |
| SDL_nxevents.c | 217 if (check_boundary (this, event.button.x, event.button.y)) { 218 SDL_PrivateMouseMotion (0, 0, event.button.x - OffsetX, 219 event.button.y - OffsetY) ; 222 SDL_PrivateMouseMotion (0, 0, event.button.x, event.button.y) ; 230 int button = event.button.buttons ; local 232 Dprintf ("button down\n") ; 234 switch (button) { [all...] |
| /external/webkit/WebCore/dom/ |
| MouseEvent.h | 41 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button, 45 ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget, clipboard, isSimulated)); 52 unsigned short button, PassRefPtr<EventTarget> relatedTarget); 56 unsigned short button() const { return m_button; } function in class:WebCore::MouseEvent 75 bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, unsigned short button,
|
| /frameworks/base/core/tests/coretests/src/android/widget/focus/ |
| ListOfButtons.java | 27 import android.widget.Button; 66 Button button = new Button(parent.getContext()); local 67 button.setText(label); 68 return button;
|
| HorizontalFocusSearch.java | 21 import android.widget.Button; 31 private Button mLeftTall; 32 private Button mMidShort1Top; 33 private Button mMidShort2Bottom; 34 private Button mRightTall; 41 public Button getLeftTall() { 45 public Button getMidShort1Top() { 49 public Button getMidShort2Bottom() { 53 public Button getRightTall() { 80 private static class MyButton extends Button { 94 Button button = new MyButton(this); local 103 Button button = new MyButton(this); local [all...] |
| VerticalFocusSearch.java | 22 import android.widget.Button; 36 private Button mTopWide; 37 private Button mMidSkinny1Left; 38 private Button mBottomWide; 40 private Button mMidSkinny2Right; 47 public Button getTopWide() { 51 public Button getMidSkinny1Left() { 55 public Button getMidSkinny2Right() { 59 public Button getBottomWide() { 88 private static class MyButton extends Button { 102 Button button = new MyButton(this); local 119 Button button = new MyButton(this); local [all...] |
| /frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
| ButtonActivityTest.java | 21 import android.widget.Button; 35 final Button button = (Button) mTargetActivity.findViewById(ButtonActivity.BUTTON_ID); local 37 // Push button 41 button.requestFocus(); 52 // imm.mServedInputConnection should be null since Button doesn't override onCreateInputConnection(). 55 destructiveCheckImeInitialState(mTargetActivity.getRootView(), button); local
|
| /development/samples/ApiDemos/src/com/example/android/apis/app/ |
| IncomingMessage.java | 30 import android.widget.Button; 41 Button button = (Button) findViewById(R.id.notify); local 42 button.setOnClickListener(new Button.OnClickListener() {
|
| StatusBarNotifications.java | 28 import android.widget.Button; 47 Button button; local 52 button = (Button) findViewById(R.id.happy); 53 button.setOnClickListener(new Button.OnClickListener() { 60 button = (Button) findViewById(R.id.neutral); 61 button.setOnClickListener(new Button.OnClickListener() [all...] |
| LocalServiceActivities.java | 30 import android.widget.Button; 50 // Watch for button clicks. 51 Button button = (Button)findViewById(R.id.start); local 52 button.setOnClickListener(mStartListener); 53 button = (Button)findViewById(R.id.stop); 54 button.setOnClickListener(mStopListener); 164 // Watch for button clicks 165 Button button = (Button)findViewById(R.id.bind); local [all...] |
| MessengerServiceActivities.java | 19 import android.widget.Button; 156 // Watch for button clicks. 157 Button button = (Button)findViewById(R.id.bind); local 158 button.setOnClickListener(mBindListener); 159 button = (Button)findViewById(R.id.unbind); 160 button.setOnClickListener(mUnbindListener);
|
| ForegroundService.java | 30 import android.widget.Button; 198 // Watch for button clicks. 199 Button button = (Button)findViewById(R.id.start_foreground); local 200 button.setOnClickListener(mForegroundListener); 201 button = (Button)findViewById(R.id.start_background); 202 button.setOnClickListener(mBackgroundListener); 203 button = (Button)findViewById(R.id.stop) [all...] |
| /frameworks/base/tests/SslLoad/src/com/android/sslload/ |
| SslLoad.java | 35 import android.widget.Button; 48 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/widget/scroll/ |
| ScrollViewButtonsAndLabels.java | 26 import android.widget.Button; 52 public Button getButton(int groupNum) { 56 return (Button) mLinearLayout.getChildAt(2*groupNum); 78 // want button to be first and last 85 Button button = new Button(this); local 86 button.setText("Button " + (i + 1)); 87 mLinearLayout.addView(button, p) [all...] |
| /packages/apps/Browser/src/com/android/browser/ |
| WebDialog.java | 40 View button = findViewById(R.id.done); local 41 if (button != null) button.setOnClickListener(mCancelListener);
|
| /external/webkit/WebCore/platform/wx/wxcode/gtk/ |
| scrollbar_render.cpp | 136 GtkWidget* button = GetButtonWidget(); local 143 gtk_paint_arrow( button->style, gdk_window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, button, "arrow", arrowType, false, x + 4, y + 4, 8, 8); 176 gtk_paint_arrow( button->style, gdk_window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, button, "arrow", arrowType, false, x + 4, y + 4, 8, 8);
|
| /frameworks/base/core/java/com/android/internal/app/ |
| HeavyWeightSwitcherActivity.java | 34 import android.widget.Button; 80 View button = findViewById((R.id.switch_old)); local 81 button.setOnClickListener(mSwitchOldListener); 82 button = findViewById((R.id.switch_new)); 83 button.setOnClickListener(mSwitchNewListener); 84 button = findViewById((R.id.cancel)); 85 button.setOnClickListener(mCancelListener);
|
| /frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
| ShortButtonsTest.java | 26 import android.widget.Button; 60 String prefix = "after " + i + " downs expected button " + i; 61 final Button button = getActivity().getButtonAt(i); local 62 assertTrue(prefix + " to have focus", button.isFocused()); 63 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); 76 final Button lastButton = getActivity().getButtonAt(numButtons - 1); 89 String prefix = "after " + i + " ups expected button " + i; 90 final Button button = getActivity().getButtonAt(i) local [all...] |
| /frameworks/base/core/java/android/widget/ |
| RadioGroup.java | 30 * buttons. Checking one radio button that belongs to a radio group unchecks 31 * any previously checked radio button within the same group.</p> 34 * to uncheck a particular radio button, the radio group can be cleared to 37 * <p>The selection is identified by the unique id of the radio button as defined 77 // retrieve selected radio button as requested by the user in the 116 // checks the appropriate radio button as requested in the XML file 128 final RadioButton button = (RadioButton) child; local 129 if (button.isChecked()) { 135 setCheckedId(button.getId()); 143 * <p>Sets the selection to the radio button whose identifier is passed i [all...] |
| /packages/apps/Calendar/src/com/android/calendar/ |
| SelectCalendarsActivity.java | 133 MultiStateButton button = (MultiStateButton) view.findViewById(R.id.multiStateButton); local 134 return button.performClick(); 138 MultiStateButton button = (MultiStateButton) view.findViewById(R.id.multiStateButton); local 139 button.performClick();
|
| /packages/apps/Tag/src/com/android/apps/tag/ |
| TagList.java | 83 View button = findViewById(R.id.more_info); local 87 button.setVisibility(View.GONE); 90 button.setVisibility(View.VISIBLE); 91 button.setOnClickListener(this);
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| FrameLayoutTest.java | 43 import android.widget.Button; 214 // text view and button are VISIBLE, they should be measured 230 Button button = (Button) frameLayout.findViewById(R.id.framelayout_button); local 231 compareScaledPixels(15, button.getMeasuredHeight()); 232 compareScaledPixels(50, button.getMeasuredWidth()); 233 assertEquals(button.getMeasuredHeight(), frameLayout.getMeasuredHeight()); 234 assertEquals(button.getMeasuredWidth(), frameLayout.getMeasuredWidth());
|
| /cts/tests/src/android/widget/cts/util/ |
| ListItemFactory.java | 24 import android.widget.Button; 34 * Create a view with a button at the top and bottom, with filler in between. 56 final Button topButton = new Button(context); 69 final Button bottomButton = new Button(context); 119 final Button button = new Button(context); local 120 button.setText("left") 127 final Button button = new Button(context); local 135 final Button button = new Button(context); local 154 public static View button(int position, Context context, String text, int desiredHeight) { method in class:ListItemFactory [all...] |
| /external/webkit/WebCore/plugins/symbian/ |
| PluginViewSymbian.cpp | 207 Qt::MouseButton button; local 210 button = Qt::LeftButton; 213 button = Qt::MidButton; 216 button = Qt::RightButton; 219 button = Qt::NoButton; 230 QMouseEvent mouseEvent(type, position, button, button, modifiers);
|