Home
last modified time | relevance | path

Searched refs:Button (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DHorizontalFocusSearch.java21 import android.widget.Button;
31 private Button mLeftTall;
32 private Button mMidShort1Top;
33 private Button mMidShort2Bottom;
34 private Button mRightTall;
41 public Button getLeftTall() { in getLeftTall()
45 public Button getMidShort1Top() { in getMidShort1Top()
49 public Button getMidShort2Bottom() { in getMidShort2Bottom()
53 public Button getRightTall() { in getRightTall()
80 private static class MyButton extends Button {
[all …]
DVerticalFocusSearch.java22 import android.widget.Button;
36 private Button mTopWide;
37 private Button mMidSkinny1Left;
38 private Button mBottomWide;
40 private Button mMidSkinny2Right;
47 public Button getTopWide() { in getTopWide()
51 public Button getMidSkinny1Left() { in getMidSkinny1Left()
55 public Button getMidSkinny2Right() { in getMidSkinny2Right()
59 public Button getBottomWide() { in getBottomWide()
88 private static class MyButton extends Button {
[all …]
DRequestFocusTest.java31 import android.widget.Button;
42 private Button mTopLeftButton;
43 private Button mBottomLeftButton;
44 private Button mTopRightButton;
45 private Button mBottomRightButton;
58 mTopLeftButton = (Button) a.findViewById(R.id.topLeftButton); in setUp()
59 mBottomLeftButton = (Button) a.findViewById(R.id.bottomLeftButton); in setUp()
60 mTopRightButton = (Button) a.findViewById(R.id.topRightButton); in setUp()
61 mBottomRightButton = (Button) a.findViewById(R.id.bottomRightButton); in setUp()
117 Button clearingFocusButton = mTopLeftButton; in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
[all …]
DDescendantFocusability.java24 import android.widget.Button;
29 public Button beforeDescendantsChild;
32 public Button afterDescendantsChild;
35 public Button blocksDescendantsChild;
44 beforeDescendantsChild = (Button) beforeDescendants.getChildAt(0); in onCreate()
47 afterDescendantsChild = (Button) afterDescendants.getChildAt(0); in onCreate()
50 blocksDescendantsChild = (Button) blocksDescendants.getChildAt(0); in onCreate()
DFocusAfterRemovalTest.java24 import android.widget.Button;
36 private Button mTopLeftButton;
37 private Button mBottomLeftButton;
38 private Button mTopRightButton;
39 private Button mBottomRightButton;
51 mTopLeftButton = (Button) a.findViewById(R.id.topLeftButton); in setUp()
52 mBottomLeftButton = (Button) a.findViewById(R.id.bottomLeftButton); in setUp()
53 mTopRightButton = (Button) a.findViewById(R.id.topRightButton); in setUp()
54 mBottomRightButton = (Button) a.findViewById(R.id.bottomRightButton); in setUp()
DListOfButtonsTest.java26 import android.widget.Button;
39 private Button mButtonAtTop;
54 mButtonAtTop = (Button) a.findViewById(R.id.button); in setUp()
113 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack()
130 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack()
154 final Button firstButton = (Button) mListView.getSelectedView(); in testGoInAndOutOfListWithItemsFocusable()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DControlBarTest.java28 import android.widget.Button;
46 final TextView v1 = new Button(context); in defaultFocus()
48 final TextView v2 = new Button(context); in defaultFocus()
50 final TextView v3 = new Button(context); in defaultFocus()
69 final Button barSibling = new Button(context); in persistFocus()
71 final TextView v1 = new Button(context); in persistFocus()
73 final TextView v2 = new Button(context); in persistFocus()
75 final TextView v3 = new Button(context); in persistFocus()
111 final Button barSibling = new Button(context); in getFocusables()
113 final TextView v1 = new Button(context); in getFocusables()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListButtonsDiagonalAcrossItems.java25 import android.widget.Button;
37 public Button getLeftButton() { in getLeftButton()
38 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0); in getLeftButton()
41 public Button getCenterButton() { in getCenterButton()
42 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1); in getCenterButton()
45 public Button getRightButton() { in getRightButton()
46 return (Button) ((ViewGroup) getListView().getChildAt(2)).getChildAt(2); in getRightButton()
DListHorizontalFocusWithinItemWins.java26 import android.widget.Button;
38 public Button getTopLeftButton() { in getTopLeftButton()
39 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0); in getTopLeftButton()
42 public Button getTopRightButton() { in getTopRightButton()
43 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(2); in getTopRightButton()
46 public Button getBottomMiddleButton() { in getBottomMiddleButton()
47 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1); in getBottomMiddleButton()
DListViewHeightTest.java22 import android.widget.Button;
51 final Button button1 = (Button) mActivity.findViewById(R.id.button1); in testButtons()
52 final Button button2 = (Button) mActivity.findViewById(R.id.button2); in testButtons()
53 final Button button3 = (Button) mActivity.findViewById(R.id.button3); in testButtons()
DListWithHeaders.java22 import android.widget.Button;
43 Button header = new Button(this); in onCreate()
49 Button footer = new Button(this); in onCreate()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DButtonFooterMixin.java29 import android.widget.Button;
71 public Button addButton(CharSequence text, @StyleRes int theme) { in addButton()
72 Button button = createThemedButton(mContext, theme); in addButton()
88 public Button addButton(@StringRes int text, @StyleRes int theme) { in addButton()
89 Button button = createThemedButton(mContext, theme); in addButton()
100 public Button addButton(Button button) { in addButton()
127 public void removeButton(Button button) { in removeButton()
167 private Button createThemedButton(Context context, @StyleRes int theme) { in createThemedButton()
171 return (Button) inflater.inflate(R.layout.suw_button, null, false); in createThemedButton()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DNavigationBar.java28 import android.widget.Button;
82 private Button mNextButton;
83 private Button mBackButton;
84 private Button mMoreButton;
107 mNextButton = (Button) findViewById(R.id.suw_navbar_next); in init()
108 mBackButton = (Button) findViewById(R.id.suw_navbar_back); in init()
109 mMoreButton = (Button) findViewById(R.id.suw_navbar_more); in init()
112 public Button getBackButton() { in getBackButton()
116 public Button getNextButton() { in getNextButton()
120 public Button getMoreButton() { in getMoreButton()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DTransformsAndAnimationsActivity.java29 import android.widget.Button;
35 Button button1;
36 Button button2;
37 Button button3;
38 Button button1a;
39 Button button2a;
40 Button button3a;
41 Button button1b;
42 Button button2b;
43 Button button3b;
[all …]
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DUniqueIds.java25 import android.widget.Button;
36 HashMap<Button, ToggleScene> mSceneMap = new HashMap<Button, ToggleScene>();
45 Button button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate()
49 button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate()
62 Button mButton;
64 ToggleScene(ViewGroup rootView, Button button) { in ToggleScene()
DHierarchicalMove.java26 import android.widget.Button;
32 Button[] buttons = new Button[6];
45 buttons[0] = (Button) findViewById(R.id.button0); in onCreate()
46 buttons[1] = (Button) findViewById(R.id.button1); in onCreate()
47 buttons[2] = (Button) findViewById(R.id.button2); in onCreate()
48 buttons[3] = (Button) findViewById(R.id.button3); in onCreate()
49 buttons[4] = (Button) findViewById(R.id.button4); in onCreate()
50 buttons[5] = (Button) findViewById(R.id.button5); in onCreate()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineAlignmentCenterGravityTest.java24 import android.widget.Button;
30 private Button mButton1;
31 private Button mButton2;
32 private Button mButton3;
43 mButton1 = (Button) activity.findViewById(R.id.button1); in setUp()
44 mButton2 = (Button) activity.findViewById(R.id.button2); in setUp()
45 mButton3 = (Button) activity.findViewById(R.id.button3); in setUp()
/frameworks/base/core/java/android/widget/
DButton.java85 public class Button extends TextView { class
95 public Button(Context context) { in Button() method in Button
116 public Button(Context context, AttributeSet attrs) { in Button() method in Button
140 public Button(Context context, AttributeSet attrs, int defStyleAttr) { in Button() method in Button
165 public Button(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in Button() method in Button
171 return Button.class.getName(); in getAccessibilityClassName()
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java24 import android.widget.Button;
56 final Button topButton = new Button(context); in twoButtonsSeparatedByFiller()
69 final Button bottomButton = new Button(context); in twoButtonsSeparatedByFiller()
119 final Button button = new Button(context); in horizontalButtonSlots()
127 final Button button = new Button(context); in horizontalButtonSlots()
135 final Button button = new Button(context); in horizontalButtonSlots()
156 TextView result = new Button(context); in button()
178 ((Button) convertView).setText(text); in convertButton()
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DTestInteractionActivity.java28 import android.widget.Button;
43 Button mAirplaneButton;
44 Button mAbortButton;
45 Button mCompleteButton;
46 Button mCommandButton;
47 Button mPickButton;
48 Button mJumpOutButton;
49 Button mCancelButton;
70 mAirplaneButton = (Button)findViewById(R.id.airplane); in onCreate()
72 mAbortButton = (Button)findViewById(R.id.abort); in onCreate()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawable.java22 import android.widget.Button;
32 Button ok = new Button(this); in onCreate()
37 Button cancel = new Button(this); in onCreate()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java38 import android.widget.Button;
94 final Button button = item.createButton(mParent); in testCreateButton()
112 final Button button = item.createButton(mParent); in testCreateButtonTwice()
117 final Button button2 = item.createButton(mParent); in testCreateButtonTwice()
127 final Button button = item.createButton(mParent); in testSetEnabledTrue()
137 final Button button = item.createButton(mParent); in testSetEnabledFalse()
147 final Button button = item.createButton(mParent); in testSetText()
157 final Button button = item.createButton(mParent); in testSetTheme()
171 final Button button = item.createButton(mParent); in testOnClickListener()
180 public Button createButton(ViewGroup parent) { in createButton()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisibleTest.java27 import android.widget.Button;
42 private Button mClickToScrollFromAbove;
43 private Button mClickToScrollToUpperBlob;
49 private Button mClickToScrollToBlobLowerBlob;
50 private Button mClickToScrollFromBelow;
63 mClickToScrollFromAbove = (Button) a.findViewById(R.id.scrollToRectFromTop); in setUp()
64 mClickToScrollToUpperBlob = (Button) a.findViewById(R.id.scrollToRectFromTop2); in setUp()
68 mClickToScrollToBlobLowerBlob = (Button) a.findViewById(R.id.scrollToRectFromBottom2); in setUp()
69 mClickToScrollFromBelow = (Button) a.findViewById(R.id.scrollToRectFromBottom); in setUp()
DButtonsWithTallTextViewInBetween.java21 import android.widget.Button;
31 public Button getTopButton() { in getTopButton()
39 public Button getBottomButton() { in getBottomButton()
41 return (Button) ll.getChildAt(0); in getBottomButton()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DMenuWith1Item.java20 import android.widget.Button;
24 private Button mButton;
33 public Button getButton() { in getButton()
41 mButton = new Button(this); in onCreate()

12345678910>>...12