Home
last modified time | relevance | path

Searched refs:mButton (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DTouchDelegateTest.java38 private Button mButton; field in TouchDelegateTest
56 mButton = new Button(mActivity); in setUp()
60 mActivity.addContentView(mButton, new LinearLayout.LayoutParams(WRAP_CONTENT, in setUp()
73 int right = mButton.getRight(); in setUp()
74 int bottom = mButton.getBottom(); in setUp()
75 mXInside = (mButton.getLeft() + right) / 3; in setUp()
76 mYInside = (mButton.getTop() + bottom) / 3; in setUp()
79 mButton.getHitRect(mRect); in setUp()
86 MockTouchDelegate touchDelegate = new MockTouchDelegate(mRect, mButton); in testOnTouchEvent()
DGestureDetectorCtsActivity.java49 private Button mButton; field in GestureDetectorCtsActivity
63 mButton = new Button(this); in onCreate()
74 mViewGroup.addView(mButton); in onCreate()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationActivity.java28 Button mButton; field in LayoutAnimationActivity
34 mButton = (Button) findViewById(R.id.button1); in onCreate()
36 mButton.setOnClickListener(new OnClickListener(){ in onCreate()
DLayoutAnimationTest.java43 private Button mButton; field in LayoutAnimationTest
53 mButton = (Button)mActivity.findViewById(R.id.button1); in setUp()
71 TouchUtils.clickView(this, mButton); in testIsRunning()
83 TouchUtils.clickView(this, mButton); in testIsChangingLayout()
141 TouchUtils.clickView(this, mButton); in testAnimationWithAnimator()
/cts/tests/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java57 private Button mButton; field in AlertDialog_BuilderTest
120 mButton = null; in setUp()
167 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
168 mButton.performClick(); in testSetPositiveButtonWithParamInt()
173 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamInt()
183 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
184 mButton.performClick(); in testSetPositiveButtonWithParamCharSequence()
188 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamCharSequence()
198 mButton = mDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
199 mButton.performClick(); in testSetNegativeButtonWithParamCharSequence()
[all …]