Home
last modified time | relevance | path

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

/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.java55 private Button mButton; field in LayoutAnimationTest
66 mButton = (Button)mActivity.findViewById(R.id.button1); in setup()
204 mActivityRule.runOnUiThread(mButton::callOnClick); in clickButton()
/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java61 private Button mButton; field in TransformationMethodTest
78 mButton = new Button(mActivity); in setup()
79 mButton.setFocusableInTouchMode(true); in setup()
84 layout.addView(mButton, new LayoutParams(LayoutParams.MATCH_PARENT, in setup()
108 mActivityRule.runOnUiThread(() -> mButton.requestFocus()); in testOnFocusChanged()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java57 private Button mButton; field in AlertDialog_BuilderTest
85 mButton = null; in setUp()
155 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamInt()
156 mButton.performClick(); in testSetPositiveButtonWithParamInt()
161 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamInt()
176 mButton = mDialog.getButton(DialogInterface.BUTTON_POSITIVE); in testSetPositiveButtonWithParamCharSequence()
177 mButton.performClick(); in testSetPositiveButtonWithParamCharSequence()
181 assertEquals(mContext.getText(android.R.string.yes), mButton.getText()); in testSetPositiveButtonWithParamCharSequence()
196 mButton = mDialog.getButton(DialogInterface.BUTTON_NEGATIVE); in testSetNegativeButtonWithParamCharSequence()
197 mButton.performClick(); in testSetNegativeButtonWithParamCharSequence()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewTreeObserverTest.java61 private Button mButton; field in ViewTreeObserverTest
75 mButton = (Button) mActivity.findViewById(R.id.button1); in setup()
152 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mButton); in testAddOnTouchModeChangeListener()
154 mViewTreeObserver = mButton.getViewTreeObserver(); in testAddOnTouchModeChangeListener()
160 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testAddOnTouchModeChangeListener()
262 CtsTouchUtils.emulateTapOnViewCenter(mInstrumentation, mButton); in testRemoveOnTouchModeChangeListener()
264 mViewTreeObserver = mButton.getViewTreeObserver(); in testRemoveOnTouchModeChangeListener()
269 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
276 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
DGestureDetectorCtsActivity.java41 private Button mButton; field in GestureDetectorCtsActivity
62 mButton = new Button(this); in onCreate()
73 mViewGroup.addView(mButton); in onCreate()