/frameworks/base/core/tests/coretests/src/android/accessibilityservice/ |
D | InterrogationActivityTest.java | 101 AccessibilityNodeInfo button = mUiTestAutomationBridge in testFindAccessibilityNodeInfoByViewId() local 103 assertNotNull(button); in testFindAccessibilityNodeInfoByViewId() 104 assertEquals(0, button.getChildCount()); in testFindAccessibilityNodeInfoByViewId() 108 button.getBoundsInParent(bounds); in testFindAccessibilityNodeInfoByViewId() 115 assertEquals("com.android.frameworks.coretests", button.getPackageName()); in testFindAccessibilityNodeInfoByViewId() 116 assertEquals("android.widget.Button", button.getClassName()); in testFindAccessibilityNodeInfoByViewId() 117 assertEquals("Button5", button.getText()); in testFindAccessibilityNodeInfoByViewId() 118 assertNull(button.getContentDescription()); in testFindAccessibilityNodeInfoByViewId() 121 assertTrue(button.isFocusable()); in testFindAccessibilityNodeInfoByViewId() 122 assertTrue(button.isClickable()); in testFindAccessibilityNodeInfoByViewId() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
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 | 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 | ListOfButtonsTest.java | 52 mButtonAtTop = (Button) a.findViewById(R.id.button); in setUp() 111 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 112 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 113 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 114 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack() 128 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local 129 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack() 130 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack() 131 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/docs/html/guide/topics/ui/controls/ |
D | button.jd | 17 <li><a href="#Borderless">Borderless button</a></li> 31 <p>A button consists of text or an icon (or both text and an icon) that communicates what action 34 <img src="{@docRoot}images/ui/button-types.png" alt="" /> 36 <p>Depending on whether you want a button with text, an icon, or both, you can create the 37 button in your layout in three ways:</p> 73 <p>When the user clicks a button, the {@link android.widget.Button} object receives 76 <p>To define the click event handler for a button, add the {@link 82 <p>For example, here's a layout with a button using {@link 99 /** Called when the user touches the button */ 101 // Do something in response to button click [all …]
|
/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/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/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/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/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/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/docs/html/training/design-navigation/ |
D | ancestral-temporal.jd | 35 button is respected to respect Android conventions.</p> 46 system. All Android users expect the <em>Back</em> button to take them to the previous screen, 49 you back at the Launcher, after which the <em>Back</em> button will do nothing.</p> 53 alt="The Back button behavior after entering the Email app from the People (or Contacts) app" 56 <p class="img-caption"><strong>Figure 1.</strong> The <em>Back</em> button behavior after entering 60 <p>Applications generally don't have to worry about managing the <em>Back</em> button themselves; 63 button by default simply traverses this list of screens, removing the current screen from the list 69 behavior when users press the device's <em>Back</em> button. Upon reaching the beginning of the 71 <em>Back</em> button.</p> 78 button, or a <em>Home</em> button at the top-left of the screen, usually as a component of the [all …]
|
/frameworks/base/docs/html/distribute/googleplay/promote/ |
D | badges.jd | 6 … and click "Build my badge". The form will generate code for an embbeded button that links to your… 12 form.button-form { 31 div.button-row { 36 div.button-row input { 40 #jd-content div.button-row img { 48 // variables for creating 'try it out' demo button 77 $("#button-preview").html(linkStart + "apps/details?id=" + form["package"].value 85 $("#button-preview").html(linkStart + "search?q=pub:" + form["publisher"].value 134 $(".button-form input.text").each(function(index) { 148 <form class="button-form"> [all …]
|
/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 | 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()
|
D | TextureViewActivity.java | 75 Button button = new Button(this); in onCreate() local 76 button.setText("Remove/Add"); in onCreate() 77 button.setOnClickListener(new View.OnClickListener() { in onCreate() 94 mContent.addView(button, new FrameLayout.LayoutParams( in onCreate()
|
/frameworks/base/docs/html/design/downloads/ |
D | index.jd | 15 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_Downloads… 40 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_Fireworks… 41 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_OmniGraff… 42 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_Holo_Widg… 68 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_Icons_201… 93 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Roboto_Hinted_20111129.z… 94 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Roboto_Specimen_Book_201… 117 …<a class="download-button" href="https://dl-ssl.google.com/android/design/Android_Design_Color_Swa…
|
/frameworks/base/docs/html/training/implementing-navigation/ |
D | ancestral.jd | 33 class="button">Download the sample app</a> 41 …sson discusses how to provide ancestral navigation using the <em>Up</em> button in the action bar.… 46 …ting to the immediate parent screen in the hierarchy via the <em>Up</em> button in the action bar.… 50 alt="The Up button in the action bar." id="figure-up"> 52 <p class="img-caption"><strong>Figure 1.</strong> The <em>Up</em> button in the action bar.</p> 54 <p>Regardless of how the current screen was reached, pressing this button should always take the us… 67 …This resource is the menu item ID for the <em>Home</em> (or <em>Up</em>) button. To ensure that a … 74 // This is called when the Home (Up) button is pressed 120 …button in the action bar is interactive. Since it does not make much sense to navigate home—…
|
/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/guide/topics/ui/ |
D | controls.jd | 16 layout with a text field and button:</p> 38 the user enters text or touches a button.</p> 57 <td><a href="controls/button.html">Button</a></td> 58 <td>A push-button that can be pressed, or clicked, by the user to perform an action.</td> 72 <td><a href="controls/radiobutton.html">Radio button</a></td> 78 <td><a href="controls/togglebutton.html" style="white-space:nowrap">Toggle button</a></td> 79 <td>An on/off button with a light indicator.</td>
|