/frameworks/base/core/tests/coretests/src/android/accessibilityservice/ |
D | InterrogationActivityTest.java | 77 AccessibilityNodeInfo button = AccessibilityInteractionClient.getInstance() in testFindAccessibilityNodeInfoByViewId() local 79 assertNotNull(button); in testFindAccessibilityNodeInfoByViewId() 80 assertEquals(0, button.getChildCount()); in testFindAccessibilityNodeInfoByViewId() 84 button.getBoundsInParent(bounds); in testFindAccessibilityNodeInfoByViewId() 91 assertEquals("com.android.frameworks.coretests", button.getPackageName()); in testFindAccessibilityNodeInfoByViewId() 92 assertEquals("android.widget.Button", button.getClassName()); in testFindAccessibilityNodeInfoByViewId() 93 assertEquals("Button5", button.getText()); in testFindAccessibilityNodeInfoByViewId() 94 assertNull(button.getContentDescription()); in testFindAccessibilityNodeInfoByViewId() 97 assertTrue(button.isFocusable()); in testFindAccessibilityNodeInfoByViewId() 98 assertTrue(button.isClickable()); in testFindAccessibilityNodeInfoByViewId() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | VerticalFocusSearch.java | 102 Button button = new MyButton(this); in makeWide() local 103 button.setText(label); in makeWide() 104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide() 107 return button; in makeWide() 119 Button button = new MyButton(this); in addSkinny() local 120 button.setText(label); in addSkinny() 121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny() 141 ll.addView(button); in addSkinny() 144 ll.addView(button); in addSkinny() 148 return button; in addSkinny()
|
D | HorizontalFocusSearch.java | 94 Button button = new MyButton(this); in makeTall() local 95 button.setText(label); in makeTall() 96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall() 99 return button; in makeTall() 103 Button button = new MyButton(this); in addShort() local 104 button.setText(label); in addShort() 105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort() 125 ll.addView(button); in addShort() 128 ll.addView(button); in addShort() 132 return button; in addShort()
|
D | ListOfButtonsTest.java | 51 mButtonAtTop = (Button) a.findViewById(R.id.button); in setUp() 110 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 111 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 112 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 113 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack() 127 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 128 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 129 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 130 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
|
D | ListOfButtons.java | 66 Button button = new Button(parent.getContext()); in getView() local 67 button.setText(label); in getView() 68 return button; in getView()
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
D | OneEditTextActivityNotSelected.java | 53 Button button = new Button(this); in onCreate() local 54 button.setText("The focus is here."); in onCreate() 55 button.setFocusableInTouchMode(true); in onCreate() 56 button.requestFocus(); in onCreate() 57 mDefaultFocusedView = button; in onCreate() 58 layout.addView(button); in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/ |
D | ShortButtonsTest.java | 61 final Button button = getActivity().getButtonAt(i); in testScrollDownToBottomThroughButtons() local 62 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollDownToBottomThroughButtons() 63 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollDownToBottomThroughButtons() 90 final Button button = getActivity().getButtonAt(i); in testScrollFromBottomToTopThroughButtons() local 91 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollFromBottomToTopThroughButtons() 92 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollFromBottomToTopThroughButtons()
|
/frameworks/base/tests/SslLoad/src/com/android/sslload/ |
D | SslLoad.java | 48 private Button button; field in SslLoad 59 button = new Button(this); in onCreate() 60 button.setText("GO"); in onCreate() 61 button.setOnClickListener(this); in onCreate() 63 setContentView(button); in onCreate() 78 button.setText(running ? "STOP" : "GO"); in onClick()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | ListItemFactory.java | 119 final Button button = new Button(context); in horizontalButtonSlots() local 120 button.setText("left"); in horizontalButtonSlots() 121 ll.addView(button, lp); in horizontalButtonSlots() 127 final Button button = new Button(context); in horizontalButtonSlots() local 128 button.setText("center"); in horizontalButtonSlots() 129 ll.addView(button, lp); in horizontalButtonSlots() 135 final Button button = new Button(context); in horizontalButtonSlots() local 136 button.setText("right"); in horizontalButtonSlots() 137 ll.addView(button, lp); in horizontalButtonSlots() 155 public static View button(int position, Context context, String text, int desiredHeight) { in button() method in ListItemFactory
|
D | ScrollViewScenario.java | 131 final Button button = new Button(context); in addButton() 132 button.setText(text); in addButton() 133 return button; in addButton() 183 final Button button = new Button(context); in addVerticalLLOfButtons() 184 button.setText(prefix + i); in addVerticalLLOfButtons() 185 ll.addView(button, lp); in addVerticalLLOfButtons()
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | AnimatorSetEventsTest.java | 31 Button button; field in AnimatorSetEventsTest 37 button = (Button) getActivity().findViewById(R.id.animatingButton); in setUp() 79 button.setTranslationX(value); in setTranslationX() 84 button.setTranslationY(value); in setTranslationY()
|
D | ObjectAnimatorEventsTest.java | 29 Button button = (Button) activity.findViewById(R.id.animatingButton); in setUp() local 31 mAnimator = ObjectAnimator.ofFloat(button, "translationX", 0, 100); in setUp()
|
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/ |
D | ButtonActivityTest.java | 35 final Button button = (Button) mTargetActivity.findViewById(ButtonActivity.BUTTON_ID); in testButtonActivatesIme() local 41 button.requestFocus(); in testButtonActivatesIme() 55 destructiveCheckImeInitialState(mTargetActivity.getRootView(), button); in testButtonActivatesIme() local
|
/frameworks/base/core/java/com/android/internal/app/ |
D | HeavyWeightSwitcherActivity.java | 81 View button = findViewById((R.id.switch_old)); in onCreate() local 82 button.setOnClickListener(mSwitchOldListener); in onCreate() 83 button = findViewById((R.id.switch_new)); in onCreate() 84 button.setOnClickListener(mSwitchNewListener); in onCreate() 85 button = findViewById((R.id.cancel)); in onCreate() 86 button.setOnClickListener(mCancelListener); in onCreate()
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | GetBitmapActivity.java | 49 Button button = new Button(this); in onCreate() local 50 button.setText("Copy bitmap to /sdcard/textureview.png"); in onCreate() 51 button.setOnClickListener(new View.OnClickListener() { in onCreate() 74 content.addView(button, new FrameLayout.LayoutParams( in onCreate()
|
D | TextureViewActivity.java | 48 Button button = new Button(this); in onCreate() local 49 button.setText("Remove/Add"); in onCreate() 50 button.setOnClickListener(new View.OnClickListener() { in onCreate() 67 mContent.addView(button, new FrameLayout.LayoutParams( in onCreate()
|
D | DisplayListLayersActivity.java | 54 Button button = new Button(this); in createButton() local 55 button.setText("Invalidate"); in createButton() 56 button.setOnClickListener(new View.OnClickListener() { in createButton() 68 return button; in createButton()
|
/frameworks/base/core/tests/coretests/src/android/widget/scroll/ |
D | ScrollViewButtonsAndLabels.java | 85 Button button = new Button(this); in onCreate() local 86 button.setText("Button " + (i + 1)); in onCreate() 87 mLinearLayout.addView(button, p); in onCreate()
|
D | ScrollViewButtonsAndLabelsTest.java | 185 Button button = getActivity().getButton(i); in findFirstButtonOffScreenTop2Bottom() local 186 button.getLocationOnScreen(buttonLoc); in findFirstButtonOffScreenTop2Bottom() 203 Button button = getActivity().getButton(i); in findFirstButtonOffScreenBottom2Top() local 204 button.getLocationOnScreen(buttonLoc); in findFirstButtonOffScreenBottom2Top()
|
/frameworks/base/docs/html/resources/tutorials/views/ |
D | hello-formstuff.jd | 49 <p>In this section, you will create a button with a custom image instead of text, using the {@link 51 different button states. When the button is pressed, a short message will be displayed.</p> 58 your project. These will be used for the different button states.</li> 73 state of the button. The first <code><item></code> defines 74 <code>android_pressed.png</code> as the image when the button is pressed (it's been 76 when the button is focused (when the button is highlighted using the trackball or directional 83 determine which one is appropriate for the current button state. Because the "normal" image is last, 90 android:id="@+id/button" 97 button background (which, when saved at <code>res/drawable/android.xml</code>, is 100 the button state, the image must be applied to the background.</p> [all …]
|
/frameworks/base/data/keyboards/ |
D | Vendor_046d_Product_c532.kl | 25 # as well as several of the other fn buttons and the PIP button? 124 # key 288 left mouse button 125 # key 289 right mouse button (fn + button)
|
/frameworks/base/docs/html/guide/tutorials/views/ |
D | hello-formstuff.jd | 30 <p>A button with a custom image on it. 36 We'll use this for the button.</li> 45 <p>The source of the button 49 like <code>ic_media_play</code>, for a "play" button image. To do so, change the source 52 <li>To make the button to actually do something, add the following 55 final ImageButton button = (ImageButton) findViewById(R.id.android_button); 56 button.setOnClickListener(new OnClickListener() { 65 defines the action to be made when the button is clicked. Here, we show a 210 <p>A button used specifically for toggling something on and off.</p> 237 defines the action to be made when the button is clicked. Here, we query the current state of the [all …]
|
/frameworks/base/docs/html/guide/publishing/ |
D | publishing.jd | 26 <li><a href="#BuildaButton">Build an Android Market button</a></li> 158 applications in Android Market. You can use these URIs to create a button in your application or a 326 <h3 id="BuildaButton">Build an Android Market button</h3> 328 <p>Use the following form to generate an "Available in Android Market" button that you can use on 329 your web site. Input either your application's package name or publisher name and the button will 331 your published apps. If users click the button while on an Android-powered device, the Android 334 <p>This form offers four versions of the official "Available in Android Market" button at 336 the button images from the <a href="http://www.android.com/branding.html">Android Brand 341 form.button-form { 360 div.button-row { [all …]
|
/frameworks/base/docs/html/guide/developing/tools/ |
D | MonkeyRunner.jd | 163 button. 184 The text displayed in the dialog button. The default value is "OK". 243 If the user makes a selection and clicks the "OK" button, the method returns 245 If the user clicks the "Cancel" button, the method returns -1. 308 and the other the cancelTitle value. If the user clicks the okTitle button, 310 button, an empty string is returned. 337 The text displayed in the okTitle button. The default is "OK". 343 The text displayed in the cancelTitle button. The default is "Cancel". 352 If the user clicks the okTitle button, then the method returns the current value of 353 the dialog's input box. If the user clicks the cancelTitle button, the method returns
|
/frameworks/base/core/java/android/widget/ |
D | RadioGroup.java | 128 final RadioButton button = (RadioButton) child; in addView() local 129 if (button.isChecked()) { in addView() 135 setCheckedId(button.getId()); in addView()
|