| /development/samples/ApiDemos/src/com/example/android/apis/app/ |
| RedirectMain.java | 27 import android.widget.Button; 43 // Watch for button clicks. 44 Button clearButton = (Button)findViewById(R.id.clear); 46 Button newButton = (Button)findViewById(R.id.newView);
|
| SetWallpaperActivity.java | 33 import android.widget.Button; 66 Button randomize = (Button) findViewById(R.id.randomize); 76 Button setWallpaper = (Button) findViewById(R.id.setwallpaper);
|
| Animation.java | 31 import android.widget.Button; 44 // Watch for button clicks. 45 Button button = (Button)findViewById(R.id.fade_animation); local 46 button.setOnClickListener(mFadeListener); 47 button = (Button)findViewById(R.id.zoom_animation); 48 button.setOnClickListener(mZoomListener); 50 button = (Button)findViewById(R.id.modern_fade_animation) [all...] |
| /development/samples/devbytes/animation/LayoutTransChanging/src/com/example/android/layouttranschanging/ |
| LayoutTransChanging.java | 25 import android.widget.Button; 43 final Button addButton = 44 (Button) findViewById(R.id.addButton); 45 final Button removeButton = 46 (Button) findViewById(R.id.removeButton);
|
| /external/chromium_org/ash/system/tray/ |
| tray_popup_label_button_border.cc | 12 #include "ui/views/controls/button/label_button.h" 18 : LabelButtonBorder(views::Button::STYLE_TEXTBUTTON) { 30 SetPainter(false, views::Button::STATE_NORMAL, 33 SetPainter(false, views::Button::STATE_DISABLED, 48 SetPainter(false, views::Button::STATE_HOVERED, 51 SetPainter(false, views::Button::STATE_PRESSED, 75 // button from the preceding sibling. If this button is its parent's first
|
| /frameworks/base/core/tests/coretests/src/android/view/ |
| PopupWindowVisibility.java | 25 import android.widget.Button; 36 private Button mHide; 37 private Button mShow; 48 mHide = (Button) findViewById(R.id.hide); 51 mShow = (Button) findViewById(R.id.show);
|
| /frameworks/base/services/core/java/com/android/server/am/ |
| BaseErrorDialog.java | 27 import android.widget.Button; 62 Button b = (Button)findViewById(R.id.button1); 66 b = (Button)findViewById(R.id.button2); 70 b = (Button)findViewById(R.id.button3);
|
| /frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
| DialogActivity.java | 25 import android.widget.Button; 36 private Button mButton1; 37 private Button mButton2; 52 mButton1 = new Button(this); 62 mButton2 = new Button(this);
|
| /frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
| FadingTest.java | 23 import android.widget.Button; 30 Button mRemovingButton, mInvisibleButton, mGoneButton; 50 mRemovingButton = (Button) findViewById(R.id.removingButton); 51 mInvisibleButton = (Button) findViewById(R.id.invisibleButton); 52 mGoneButton = (Button) findViewById(R.id.goneButton);
|
| /frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
| VectorDrawable01.java | 21 import android.widget.Button; 56 final Button []bArray = new Button[icon.length]; 59 Button button = new Button(this); local 60 bArray[i] = button; 61 button.setWidth(200); 62 button.setBackgroundResource(icon[i]); 63 container.addView(button); [all...] |
| /packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
| EncryptDeviceActivity.java | 29 import android.widget.Button; 44 private Button mCancelButton; 45 private Button mEncryptButton; 52 mEncryptButton = (Button) contentView.findViewById(R.id.accept_button); 53 mCancelButton = (Button) contentView.findViewById(R.id.cancel_button);
|
| /packages/apps/Mms/apptests/src/com/android/mms/tests/ |
| SmsSendIntentTestActivity.java | 30 import android.widget.Button; 37 // without the user having to confirm or press a send button. This app uses the intent: 65 Button sendButton = (Button) findViewById(R.id.sms_send_message); 72 Button sendUnlockButton = (Button) findViewById(R.id.sms_send_message_unlock_screen); 79 Button sendMultiButton = (Button) findViewById(R.id.sms_send_multi_message); 86 Button sendLongButton = (Button) findViewById(R.id.sms_send_long_message) [all...] |
| /frameworks/base/core/tests/coretests/src/android/widget/focus/ |
| ListOfButtonsTest.java | 25 import android.widget.Button; 37 private Button mButtonAtTop; 52 mButtonAtTop = (Button) a.findViewById(R.id.button); 93 assertFalse("button at top should have focus back", 111 Button button = (Button) mListView.getSelectedView(); local 112 assertNotNull(indexInfo, button); 113 assertEquals(indexInfo, label, button.getText().toString()) 128 Button button = (Button) mListView.getSelectedView(); local [all...] |
| /frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
| MainInteractionSession.java | 25 import android.widget.Button; 35 Button mStartButton; 36 Button mConfirmButton; 37 Button mCompleteButton; 38 Button mAbortButton; 65 mStartButton = (Button)mContentView.findViewById(R.id.start); 67 mConfirmButton = (Button)mContentView.findViewById(R.id.confirm); 69 mCompleteButton = (Button)mContentView.findViewById(R.id.complete); 71 mAbortButton = (Button)mContentView.findViewById(R.id.abort);
|
| /packages/apps/Settings/tests/src/com/android/settings/tests/ |
| BluetoothRequestPermissionTest.java | 31 import android.widget.Button; 39 // Discoverable button alternates between 20 second timeout and no timeout. 56 Button scanButton = (Button) v; 73 Button enable = (Button) findViewById(R.id.enable); 76 Button discoverable = (Button) findViewById(R.id.discoverable); 79 Button scanButton = (Button) findViewById(R.id.scan) [all...] |
| /packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
| StrictModeActivity.java | 53 import android.widget.Button; 109 final Button readButton = (Button) findViewById(R.id.read_button); 126 final Button writeButton = (Button) findViewById(R.id.write_button); 135 final Button writeLoopButton = (Button) findViewById(R.id.write_loop_button); 150 final Button dnsButton = (Button) findViewById(R.id.dns_button); 177 final Button httpButton = (Button) findViewById(R.id.http_button) [all...] |
| /sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/ |
| SystraceOptionsDialogV1.java | 27 import org.eclipse.swt.widgets.Button; 53 private Button mTraceCpuFreqBtn; 54 private Button mTraceCpuIdleBtn; 55 private Button mTraceCpuLoadBtn; 56 private Button mTraceDiskIoBtn; 57 private Button mTraceKernelWorkqueuesBtn; 58 private Button mTraceCpuSchedulerBtn; 67 private Button mGfxTagBtn; 68 private Button mInputTagBtn; 69 private Button mViewTagBtn [all...] |
| /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
| WorkingSetGroup.java | 19 import org.eclipse.swt.widgets.Button; 37 private Button mEnableButton; 92 * Finds the first button of style Checkbox in the given parent composite. 95 private Button findCheckbox(Composite parent) { 97 if (control instanceof Button && (control.getStyle() & SWT.CHECK) == SWT.CHECK) { 98 return (Button) control; 100 Button found = findCheckbox((Composite) control);
|
| /cts/tests/tests/widget/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...] |
| /cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
| Test2DetailFragment.java | 28 import android.widget.Button; 32 private Button mButton1, mButton2, mButton3, mDynaButton; 63 mButton1 = (Button) rootView.findViewById(R.id.test2button1); 64 mButton2 = (Button) rootView.findViewById(R.id.test2button2); 65 mButton3 = (Button) rootView.findViewById(R.id.test2button3); 66 mDynaButton = (Button) rootView.findViewById(R.id.test2dynaButton); 68 mButton1.setOnClickListener(new Button.OnClickListener() { 80 mButton1.setOnLongClickListener(new Button.OnLongClickListener() { 93 mButton2.setOnClickListener(new Button.OnClickListener() { 105 mButton2.setOnLongClickListener(new Button.OnLongClickListener() [all...] |
| /frameworks/base/core/tests/coretests/src/android/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 155 public static View button(int position, Context context, String text, int desiredHeight) { method in class:ListItemFactory [all...] |
| /packages/apps/Mms/src/com/android/mms/ui/ |
| AttachmentEditor.java | 27 import android.widget.Button; 62 private Button mSendButton; 189 Button viewButton = (Button) view.findViewById(view_button_id); 190 Button replaceButton = (Button) view.findViewById(replace_button_id); 191 Button removeButton = (Button) view.findViewById(remove_button_id); 206 Button editBtn = (Button) view.findViewById(R.id.edit_slideshow_button) [all...] |
| /external/chromium_org/chrome/browser/ui/views/ |
| outdated_upgrade_bubble_view.h | 9 #include "ui/views/controls/button/button.h" 54 virtual void ButtonPressed(views::Button* sender, 57 // Handle the message when the user presses a button. 58 void HandleButtonPressed(views::Button* sender); 70 // Identifies if the accept button was hit before closing the bubble. 73 // Button that lets the user accept the proposal, which is to navigate to a 78 // Button for the user to be reminded later about the outdated upgrade.
|
| /external/chromium_org/chrome/browser/ui/views/profiles/ |
| new_avatar_button.cc | 25 #include "ui/views/controls/button/label_button_border.h" 34 new views::LabelButtonBorder(views::Button::STYLE_TEXTBUTTON)); 35 border->SetPainter(false, views::Button::STATE_NORMAL, 37 border->SetPainter(false, views::Button::STATE_HOVERED, 39 border->SetPainter(false, views::Button::STATE_PRESSED, 52 // Maximum characters the button can be before the text will get elided. 78 SetTextColor(views::Button::STATE_NORMAL, SK_ColorWHITE); 79 SetTextColor(views::Button::STATE_HOVERED, SK_ColorWHITE); 80 SetTextColor(views::Button::STATE_PRESSED, SK_ColorWHITE); 116 // Subscribe to authentication error changes so that the avatar button ca [all...] |
| /external/chromium_org/ui/android/java/src/org/chromium/ui/ |
| ColorPickerMoreButton.java | 11 import android.widget.Button; 14 * Simple class that draws a white border around a button, purely for a UI change. 16 public class ColorPickerMoreButton extends Button { 46 * Draws the border around the edge of the button.
|