Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearch.java24 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 …]
DHorizontalFocusSearch.java23 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 …]
DRequestFocusTest.java28 import android.widget.Button;
44 private Button mTopLeftButton;
45 private Button mBottomLeftButton;
46 private Button mTopRightButton;
47 private Button mBottomRightButton;
60 mTopLeftButton = (Button) a.findViewById(R.id.topLeftButton); in setUp()
61 mBottomLeftButton = (Button) a.findViewById(R.id.bottomLeftButton); in setUp()
62 mTopRightButton = (Button) a.findViewById(R.id.topRightButton); in setUp()
63 mBottomRightButton = (Button) a.findViewById(R.id.bottomRightButton); in setUp()
119 Button clearingFocusButton = mTopLeftButton; in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
[all …]
DDescendantFocusability.java22 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.java22 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.java22 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DButtonFooterMixin.java29 import android.widget.Button;
68 public Button addButton(CharSequence text, @StyleRes int theme) { in addButton()
69 Button button = createThemedButton(context, theme); in addButton()
84 public Button addButton(@StringRes int text, @StyleRes int theme) { in addButton()
85 Button button = createThemedButton(context, theme); in addButton()
96 public Button addButton(Button button) { in addButton()
123 public void removeButton(Button button) { in removeButton()
163 private Button createThemedButton(Context context, @StyleRes int theme) { in createThemedButton()
167 return (Button) inflater.inflate(R.layout.suw_button, null, false); in createThemedButton()
/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.java21 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.java21 import android.widget.Button;
42 Button header = new Button(this); in onCreate()
48 Button footer = new Button(this); in onCreate()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DNavigationBar.java28 import android.widget.Button;
82 private Button nextButton;
83 private Button backButton;
84 private Button moreButton;
107 nextButton = (Button) findViewById(R.id.suw_navbar_next); in init()
108 backButton = (Button) findViewById(R.id.suw_navbar_back); in init()
109 moreButton = (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.java23 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/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/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/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/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java33 import android.widget.Button;
83 final Button button = item.createButton(parent); in testCreateButton()
103 final Button button = item.createButton(parent); in testCreateButtonTwice()
108 final Button button2 = item.createButton(parent); in testCreateButtonTwice()
120 final Button button = item.createButton(parent); in testSetEnabledTrue()
130 final Button button = item.createButton(parent); in testSetEnabledFalse()
140 final Button button = item.createButton(parent); in testSetText()
154 final Button button = item.createButton(parent); in testSetTheme()
169 final Button button = item.createButton(parent); in testOnClickListener()
178 public Button createButton(ViewGroup parent) { in createButton()
/frameworks/base/core/tests/coretests/src/android/view/
DMutateDrawable.java21 import android.widget.Button;
33 Button ok = new Button(this); in onCreate()
38 Button cancel = new Button(this); in onCreate()
DVisibilityCallbackTest.java20 import android.widget.Button;
37 private Button mVisible;
38 private Button mInvisible;
39 private Button mGone;
54 mVisible = (Button) a.findViewById(R.id.vis); in setUp()
55 mInvisible = (Button) a.findViewById(R.id.invis); in setUp()
56 mGone = (Button) a.findViewById(R.id.gone); in setUp()
/frameworks/base/core/tests/coretests/src/android/widget/scroll/
DRequestRectangleVisibleTest.java23 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.java20 import android.widget.Button;
30 public Button getTopButton() { in getTopButton()
38 public Button getBottomButton() { in getBottomButton()
40 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