/packages/apps/Music/src/com/android/music/ |
RepeatingImageButton.java | 28 * A button that will repeatedly call a 'listener' method 29 * as long as the button is pressed. 53 * Sets the listener to be called while the button is pressed and 131 * specified in setRepeatListener(), for as long as the button 133 * @param v The button as a View. 134 * @param duration The number of milliseconds the button has been pressed so far. 137 * just stopped pressing the button), the value will be -1.
|
/frameworks/base/core/tests/coretests/src/android/util/ |
ScrollViewScenario.java | 27 import android.widget.Button; 120 * Add a button. 121 * @param text The text of the button. 127 final Button button = new Button(context); 128 button.setText(text); 129 return button; 138 * @param textPrefix The text to prepend to each button. 179 final Button button = new Button(context) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
AlertDialogSamples.java | 30 import android.widget.Button; 158 /* User clicked on a radio button do some stuff */ 259 Button twoButtonsTitle = (Button) findViewById(R.id.two_buttons); 267 Button twoButtons2Title = (Button) findViewById(R.id.two_buttons2); 276 Button selectButton = (Button) findViewById(R.id.select_button); 284 Button progressButton = (Button) findViewById(R.id.progress_button) [all...] |
ServiceStartArguments.java | 35 import android.widget.Button; 136 // For the start fail button, we will simulate the process dying 216 // Watch for button clicks. 217 Button button = (Button)findViewById(R.id.start1); local 218 button.setOnClickListener(mStart1Listener); 219 button = (Button)findViewById(R.id.start2); 220 button.setOnClickListener(mStart2Listener) [all...] |
IncomingMessage.java | 30 import android.widget.Button; 41 Button button = (Button) findViewById(R.id.notify); local 42 button.setOnClickListener(new Button.OnClickListener() {
|
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);
|
/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...] |
CompoundButton.java | 34 * A button with two states, checked and unchecked. When the button is pressed 41 * CompoundButton Attributes}, {@link android.R.styleable#Button Button 46 public abstract class CompoundButton extends Button implements Checkable { 93 * which will need to be implemented in Button if we only override 108 * <p>Changes the checked state of this button.</p> 110 * @param checked true to check the button, false to uncheck it 135 * Register a callback to be invoked when the checked state of this button 145 * Register a callback to be invoked when the checked state of this button [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroupTest.java | 140 // (PassThroughHierarchyChangeListener's behaviour when button is added) 153 // inject the tracker to the button when the button is added by 162 // the tracker informs the checked state change of the button to the group 166 // the tracker informs the checked state change of the button to the group 170 // remove the tracker from the button when the button is removed 226 // uncheck the original button 236 // why the method is called while none of the button is checked or unchecked? 246 // why the method is called while none of the button is checked or unchecked 434 RadioButton button = new RadioButton(mContext); local [all...] |
RadioButtonTest.java | 107 RadioButton button = new RadioButton(mContext); local 108 assertFalse(button.isChecked()); 110 button.toggle(); 111 assertTrue(button.isChecked()); 114 button.toggle(); 115 assertTrue(button.isChecked());
|
/packages/experimental/RpcPerformance/res/layout/ |
main.xml | 51 <Button 68 <Button 87 <Button 104 <Button 122 <Button 137 <Button 154 <Button 169 <Button 186 <Button 201 <Button [all...] |
/external/qemu/distrib/sdl-1.2.12/src/events/ |
SDL_mouse.c | 57 /* We lost the mouse, so post button up messages for all pressed buttons */ 192 int SDL_PrivateMouseButton(Uint8 state, Uint8 button, Sint16 x, Sint16 y) 230 buttonstate |= SDL_BUTTON(button); 234 buttonstate &= ~SDL_BUTTON(button); 252 event.button.state = state; 253 event.button.button = button; 254 event.button.x = x; 255 event.button.y = y [all...] |
/external/webkit/WebCore/platform/graphics/android/ |
PlatformGraphicsContext.h | 77 // no other pictures reference this one, so the button is no longer being 94 // button may have changed due to a new layout. If it is a new rectangle, 105 // Update the focus state of this button, depending on whether it 113 // If this button is being told to draw focused, but it is already in a 128 // The rectangle representing the bounds of the button. 131 // picture, so that we can rerecord this button without rerecording the 134 // The state of the button - Currently kFocused or kNormal (and kDisabled 146 // Pass in a recording canvas, and an array of button information to be 154 // If our graphicscontext has a button list, add a new container for the 155 // nod/rect, and record a new subpicture for this node/button in the curren [all...] |
/frameworks/base/docs/html/guide/tutorials/views/ |
hello-datepicker.jd | 24 <Button android:id="@+id/pickDate" 32 will display the date and a {@link android.widget.Button} that will initiate the DatePicker dialog. 33 With this layout, the TextView will sit above the Button. 41 private Button mPickDate; 56 mPickDate = (Button) findViewById(R.id.pickDate); 58 // add a click listener to the button 79 Then we create an on-click listener for the Button, so that when it is clicked it will 135 (clicks the "Set" button). At that time, this fires and we update our member fields with 141 <p>When you press the "Change the date" button, you should see the following:</p> 147 <li>{@link android.widget.Button}</li [all...] |
hello-timepicker.jd | 25 <Button android:id="@+id/pickTime" 33 will display the time and a {@link android.widget.Button} that will initiate the 35 With this layout, the TextView will sit above the Button. 43 private Button mPickTime; 57 mPickTime = (Button) findViewById(R.id.pickTime); 59 // add a click listener to the button 79 We then set an on-click listener for the Button, so that when it is clicked, it will 130 <p>Now when the user is done setting the time (clicks the "Set" button), we update our member fields with 149 <p>When you press the "Change the time" button, you should see the following:</p> 155 <li>{@link android.widget.Button}</li [all...] |
/packages/apps/Settings/src/com/android/settings/ |
MasterClear.java | 32 import android.widget.Button; 50 private Button mInitiateButton; 53 private Button mFinalButton; 60 private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() { 108 private Button.OnClickListener mInitiateListener = new Button.OnClickListener() { 123 (Button) mFinalView.findViewById(R.id.execute_master_clear); 131 * In its initial state, the activity presents a button for the user to 146 (Button) mInitialView.findViewById(R.id.initiate_master_clear) [all...] |
MediaFormat.java | 34 import android.widget.Button; 52 private Button mInitiateButton; 55 private Button mFinalButton; 61 private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() { 122 private Button.OnClickListener mInitiateListener = new Button.OnClickListener() { 137 (Button) mFinalView.findViewById(R.id.execute_media_format); 145 * In its initial state, the activity presents a button for the user to 160 (Button) mInitialView.findViewById(R.id.initiate_media_format) [all...] |
/external/webkit/WebKit/gtk/webkit/ |
webkitwebnavigationaction.cpp | 40 * clicked a link to start that navigation, and what mouse button was used. 46 gint button; member in struct:_WebKitWebNavigationActionPrivate 105 priv->button = g_value_get_int(value); 178 * WebKitWebNavigationAction:button: 180 * The DOM identifier for the mouse button used to click. DOM button values 187 g_param_spec_int("button", 188 _("Button"), 189 _("The button used to click"), 313 * Returns the DOM identifier for the mouse button used to click [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/ |
UiElementPullParserTest.java | 46 // We have button, textview, linear layout, relative layout. 49 ElementDescriptor buttonDescriptor = new ElementDescriptor("Button", "Button", "", "", 94 * <Button android:name="button1" android:text="button1text"/> 96 * <Button android:name="button2" android:text="button2text"/> 101 MockXmlNode button1 = new MockXmlNode(null /* namespace */, "Button", Node.ELEMENT_NODE, 114 MockXmlNode button2 = new MockXmlNode(null /* namespace */, "Button", Node.ELEMENT_NODE, 179 // Button 181 assertEquals("Button", parser.getName()); 185 // end of button [all...] |
/development/samples/ApiDemos/res/layout/ |
linear_layout_10.xml | 25 <!-- Top label/button text field. --> 58 The button goes at the right. 61 style="@android:style/Widget.Button.Inset" 73 <!-- Bottom label/button text field. (Identical to the top one 107 The button goes at the right. 110 style="@android:style/Widget.Button.Inset"
|
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/ |
SkeletonActivity.java | 26 import android.widget.Button; 56 // Hook up button presses to the appropriate event handler. 57 ((Button) findViewById(R.id.back)).setOnClickListener(mBackListener); 58 ((Button) findViewById(R.id.clear)).setOnClickListener(mClearListener); 119 * A call-back for when the user presses the back button. 128 * A call-back for when the user presses the clear button.
|
/external/qemu/distrib/sdl-1.2.12/src/joystick/os2/ |
joyos2.h | 28 USHORT usJs_ButtonA1Cnt; /* button A1 press count */ 29 USHORT usJs_ButtonA2Cnt; /* button A2 press count */ 30 USHORT usJs_ButtonB1Cnt; /* button B1 press count */ 31 USHORT usJs_ButtonB2Cnt; /* button B2 press count */ 63 // bit masks for each button 104 // current data for all sticks as well as button counts since last read
|
/packages/apps/Camera/src/com/android/camera/ |
ShutterButton.java | 24 * A button designed to be used for the on-screen shutter button. 72 // When pressing the physical camera button the sequence of 76 // button. When clicking using a trackball button, the view 84 // Since we're emulating the physical camera button, we want to
|
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupNamesTests.java | 29 import android.widget.Button; 45 private Button mDoneButton; 77 * Test a "good" account name (enables the button) 89 * Test a "bad" account name (disables the button) 101 * Test a "bad" account name (disables the button) 117 mDoneButton = (Button) mActivity.findViewById(R.id.done);
|
/external/proguard/docs/manual/ |
gui.html | 25 <tr><td class="button"><a href="#proguard">ProGuard</a></td> 27 <tr><td class="button"><a href="#inputoutput">Input/Output</a></td> 29 <tr><td class="button"><a href="#shrinking">Shrinking</a></td> 31 <tr><td class="button"><a href="#obfuscation">Obfuscation</a></td> 33 <tr><td class="button"><a href="#optimization">Optimization</a></td> 35 <tr><td class="button"><a href="#information">Information</a></td> 37 <tr><td class="button"><a href="#process">Process</a></td> 46 <tr><td class="button"><a href="#retrace">ReTrace</a></td> 63 The <i>ProGuard</i> tab presents a welcome message and one important button at 68 <tr><td class="button">Load configuration...</td [all...] |