Home
last modified time | relevance | path

Searched refs:runOnUiThread (Results 1 – 25 of 193) sorted by relevance

12345678

/cts/tests/tests/widget/src/android/widget/cts/
DTextClockTest.java84 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
100 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
110 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
118 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
127 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
139 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
148 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
162 mActivityRule.runOnUiThread(() -> mTextClock.disableClockTick());
166 mActivityRule.runOnUiThread(() -> mTextClock.setText("Nothing"));
168 mActivityRule.runOnUiThread(() -> assertEquals("Nothing", mTextClock.getText().toString()));
[all …]
DRemoteViewsTest.java175 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetContentDescription()
185 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
189 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
193 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
204 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
208 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
221 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewTextSize()
237 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetIcon()
251 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetImageViewIcon()
265 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetImageViewResource()
[all …]
DPopupMenuTest.java103 mActivityRule.runOnUiThread(() -> { in teardown()
141 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater()
153 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate()
164 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity()
174 mActivityRule.runOnUiThread(mBuilder::show); in testConstructorWithGravity()
183 mActivityRule.runOnUiThread(mBuilder::show); in testDismissalViaAPI()
188 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
193 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
209 mActivityRule.runOnUiThread(mBuilder::show); in testNestedDismissalViaAPI()
214 mActivityRule.runOnUiThread( in testNestedDismissalViaAPI()
[all …]
DToolbarTest.java166 mActivityRule.runOnUiThread(() -> mMainToolbar.inflateMenu(R.menu.toolbar_menu)); in testMenuOverflowShowHide()
170 mActivityRule.runOnUiThread(() -> mMainToolbar.showOverflowMenu()); in testMenuOverflowShowHide()
174 mActivityRule.runOnUiThread(() -> mMainToolbar.hideOverflowMenu()); in testMenuOverflowShowHide()
186 mActivityRule.runOnUiThread(mMainToolbar::showOverflowMenu); in testMenuOverflowSubmenu()
198 mActivityRule.runOnUiThread(() -> menu.performIdentifierAction(R.id.action_share, 0)); in testMenuOverflowSubmenu()
203 mActivityRule.runOnUiThread(mMainToolbar::dismissPopupMenus); in testMenuOverflowSubmenu()
233 mActivityRule.runOnUiThread(searchMenuItem::expandActionView); in testActionView()
239 mActivityRule.runOnUiThread(searchMenuItem::collapseActionView); in testActionView()
244 mActivityRule.runOnUiThread(searchMenuItem::expandActionView); in testActionView()
250 mActivityRule.runOnUiThread(mMainToolbar::collapseActionView); in testActionView()
[all …]
DSpinnerTest.java151 mActivityRule.runOnUiThread(() -> { in verifyGetBaseline()
184 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); in verifyPerformClick()
232 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); in verifyAccessPrompt()
246 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); in verifySetPromptId()
290 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity()
298 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); in verifyGravity()
301 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)); in verifyGravity()
304 mActivityRule.runOnUiThread((() -> spinner.setGravity(Gravity.RIGHT))); in verifyGravity()
307 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.START)); in verifyGravity()
310 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.END)); in verifyGravity()
[all …]
DTextViewTest.java234 mActivityRule.runOnUiThread(this::initTextViewForTyping); in initTextViewForTypingOnUiThread()
284 mActivityRule.runOnUiThread(() -> { in testGetLayout()
298 mActivityRule.runOnUiThread(runnable); in testGetLayout()
306 mActivityRule.runOnUiThread(() -> mTextView = findTextView(R.id.textview_text)); in testAccessKeyListener()
313 mActivityRule.runOnUiThread(() -> mTextView.setKeyListener(digitsKeyListener)); in testAccessKeyListener()
319 mActivityRule.runOnUiThread(() -> mTextView.setKeyListener(qwertyKeyListener)); in testAccessKeyListener()
333 mActivityRule.runOnUiThread(() -> { in testAccessMovementMethod()
352 mActivityRule.runOnUiThread(() -> { in testAccessMovementMethod()
537 mActivityRule.runOnUiThread(() -> { in testAccessAutoLinkMask()
553 mActivityRule.runOnUiThread(() -> { in testAccessAutoLinkMask()
[all …]
DVideoViewTest.java119 mActivityRule.runOnUiThread(() -> { in makeVideoView()
152 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testPlayVideo()
157 mActivityRule.runOnUiThread(mVideoView::start); in testPlayVideo()
197 mActivityRule.runOnUiThread(() -> am.registerAudioPlaybackCallback(myCb, null)); in testAudioAttributes()
198 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testAudioAttributes()
199 mActivityRule.runOnUiThread(mVideoView::start); in testAudioAttributes()
217 mActivityRule.runOnUiThread(() -> { in testSetOnErrorListener()
241 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testGetBufferPercentage()
274 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testGetDuration()
DAbsListViewTest.java298 mActivityRule.runOnUiThread(() -> mListView.fling(velocityY)); in fling()
457 mActivityRule.runOnUiThread(() -> mListView.scrollListBy(-(selViewHeight * 4) / 3)); in testSelectorOnScreen()
774 mActivityRule.runOnUiThread(() -> { in testSetItemChecked_multipleModeDifferentValue()
791 mActivityRule.runOnUiThread(() -> { in testSetItemChecked_singleModeDifferentValue()
810 mActivityRule.runOnUiThread(() -> mListView.setTextFilterEnabled(true)); in testTextFilter()
819 mActivityRule.runOnUiThread(() -> mListView.setFilterText("A")); in testTextFilter()
826 mActivityRule.runOnUiThread(() -> mListView.setFilterText("Ar")); in testTextFilter()
833 mActivityRule.runOnUiThread(() -> mListView.clearTextFilter()); in testTextFilter()
840 mActivityRule.runOnUiThread(() -> mListView.setFilterText("Be")); in testTextFilter()
847 mActivityRule.runOnUiThread(() -> mListView.setFilterText("Q")); in testTextFilter()
[all …]
DTimePickerTest.java372 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(false)); in testKeyboardTabTraversalModeClock()
381 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(true)); in testKeyboardTabTraversalModeClock()
397 mActivityRule.runOnUiThread(() -> in testKeyboardTabTraversalModeSpinner()
401 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(false)); in testKeyboardTabTraversalModeSpinner()
413 mActivityRule.runOnUiThread(() -> mTimePicker.setIs24HourView(true)); in testKeyboardTabTraversalModeSpinner()
566 mActivityRule.runOnUiThread(() -> clock.setVisibility(View.GONE)); in testKeyboardInputModeSpinnerAmPm()
569 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
585 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
594 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
607 mActivityRule.runOnUiThread(() -> { in testKeyboardInputModeSpinnerAmPm()
[all …]
DPopupWindowTest.java254 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testAccessContentView()
567 mActivityRule.runOnUiThread(() -> popup.showAsDropDown( in verifyPosition()
583 mActivityRule.runOnUiThread(popup::dismiss); in verifyPosition()
662 mActivityRule.runOnUiThread( in testShowAtLocation()
693 mActivityRule.runOnUiThread(() -> mPopupWindow.showAsDropDown(upperAnchor, xOff, yOff)); in testShowAsDropDownWithOffsets()
718 mActivityRule.runOnUiThread(() -> mPopupWindow.showAsDropDown(upperAnchor, 0, 0)); in testOverlapAnchor()
1060 mActivityRule.runOnUiThread(() -> mTextView = new TextView(mActivity)); in testSetOnDismissListener()
1105 mActivityRule.runOnUiThread(mPopupWindow::update); in testUpdate()
1169 mActivityRule.runOnUiThread(showRunnable); in verifyTransitionEpicenterChange()
1175 mActivityRule.runOnUiThread(mPopupWindow::dismiss); in verifyTransitionEpicenterChange()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionManagerTest.java52 mActivityRule.runOnUiThread(() -> { in testBeginDelayedTransition()
69 mActivityRule.runOnUiThread(() -> { in testBeginDelayedTransition()
82 mActivityRule.runOnUiThread(() -> { in testDefaultBeginDelayedTransition()
103 mActivityRule.runOnUiThread(() -> { in watchForRedSquareMoving()
162 mActivityRule.runOnUiThread(() -> { in testGo()
174 mActivityRule.runOnUiThread(() -> { in testDefaultGo()
195 mActivityRule.runOnUiThread(() -> { in testSetTransition1()
211 mActivityRule.runOnUiThread(() -> { in testSetTransition1()
228 mActivityRule.runOnUiThread(() -> { in testSetTransition2()
238 mActivityRule.runOnUiThread(() -> transitionManager.transitionTo(scenes[1])); in testSetTransition2()
[all …]
DActivityTransitionTest.java99 mActivityRule.runOnUiThread(() -> { in cleanup()
111 mActivityRule.runOnUiThread(() -> { in testMakeBasic()
122 mActivityRule.runOnUiThread(() -> { in testMakeBasic()
135 mActivityRule.runOnUiThread(() -> { in viewsNotStripped()
169 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsNotStripped()
209 mActivityRule.runOnUiThread(() -> { in viewsStripped()
242 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsStripped()
283 mActivityRule.runOnUiThread(() -> { in earlyExitStop()
299 mActivityRule.runOnUiThread(() -> { in earlyExitStop()
316 mActivityRule.runOnUiThread(() -> { in testAnimationQuery()
[all …]
DBaseTransitionTest.java101 mActivityRule.runOnUiThread( in loadLayout()
109 mActivityRule.runOnUiThread(() -> scene[0] = new Scene(mSceneRoot, layout)); in loadScene()
116 mActivityRule.runOnUiThread( in loadScene()
126 mActivityRule.runOnUiThread(() -> TransitionManager.go(scene, mTransition)); in startTransition()
131 mActivityRule.runOnUiThread(() -> TransitionManager.endTransitions(mSceneRoot)); in endTransition()
143 mActivityRule.runOnUiThread(scene::exit); in exitScene()
159 mActivityRule.runOnUiThread(() -> { in captureTranslations()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderTest.java19 import static androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread;
129 runOnUiThread(new Runnable() { in testSetIconWithParamInt()
143 runOnUiThread(new Runnable() { in testSetIconWithParamDrawable()
157 runOnUiThread(new Runnable() { in testSetIconAttribute()
171 runOnUiThread(new Runnable() { in testSetPositiveButtonWithParamInt()
194 runOnUiThread(new Runnable() { in testSetPositiveButtonWithParamCharSequence()
216 runOnUiThread(new Runnable() { in testSetNegativeButtonWithParamCharSequence()
238 runOnUiThread(new Runnable() { in testSetNegativeButtonWithParamInt()
260 runOnUiThread(new Runnable() { in testSetNeutralButtonWithParamInt()
282 runOnUiThread(new Runnable() { in testSetNeutralButtonWithParamCharSequence()
[all …]
DDialogTest.java231 mActivityRule.runOnUiThread(new Runnable() { in testAccessOwnerActivity()
246 mActivityRule.runOnUiThread(new Runnable() { in testShow()
256 mActivityRule.runOnUiThread(new Runnable() { in testShow()
295 mActivityRule.runOnUiThread(new Runnable() { in testGetCurrentFocus()
315 mActivityRule.runOnUiThread(new Runnable() { in testSetContentView()
331 mActivityRule.runOnUiThread(new Runnable() { in testSetContentView()
348 mActivityRule.runOnUiThread(new Runnable() { in testSetContentView()
367 mActivityRule.runOnUiThread(new Runnable() { in testSetContentView()
389 mActivityRule.runOnUiThread(new Runnable() { in testRequireViewById()
572 mActivityRule.runOnUiThread(new Runnable() { in testOnWindowAttributesChanged()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java82 mActivityRule.runOnUiThread(new Runnable() { in setup()
112 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testSetVisible()
118 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(false, false))); in testSetVisible()
124 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(true, true))); in testSetVisible()
135 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testStart()
142 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testStart()
145 mActivityRule.runOnUiThread(mAnimationDrawable::stop); in testStart()
150 mActivityRule.runOnUiThread(mAnimationDrawable::stop); in testStart()
158 mActivityRule.runOnUiThread(mAnimationDrawable::run); in testRun()
163 mActivityRule.runOnUiThread(() -> mAnimationDrawable.unscheduleSelf(mAnimationDrawable)); in testRun()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java153 mActivityRule.runOnUiThread(() -> { in testListenerCallbackWithStartDelay()
175 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime()
211 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime()
226 mActivityRule.runOnUiThread(delayedAnim::cancel); in testSetCurrentPlayTime()
237 mActivityRule.runOnUiThread(() -> { in testPauseListener()
264 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTimeAfterStart()
294 mActivityRule.runOnUiThread(() -> { in testSetCurrentFraction()
329 mActivityRule.runOnUiThread(() -> mValueAnimator.setFrameDelay(frameDelay)); in testGetFrameDelay()
332 mActivityRule.runOnUiThread(() -> { in testGetFrameDelay()
361 mActivityRule.runOnUiThread(() -> { in testUpdateListeners()
[all …]
DObjectAnimatorTest.java123 mActivityRule.runOnUiThread(objAnimator::start); in testOfFloat()
127 mActivityRule.runOnUiThread(objAnimator::cancel); in testOfFloat()
162 mActivityRule.runOnUiThread(intAnimator::start); in testOfInt()
196 mActivityRule.runOnUiThread(colorAnimator::start); in testOfObject()
224 mActivityRule.runOnUiThread(intAnimator::start); in testOfPropertyValuesHolder()
262 mActivityRule.runOnUiThread(animator::start); in testOfArgb()
277 mActivityRule.runOnUiThread(anim::start); in testNullObject()
323 mActivityRule.runOnUiThread(objAnimator::start); in testSetFloatValues()
326 mActivityRule.runOnUiThread(objAnimator::cancel); in testSetFloatValues()
420 mActivityRule.runOnUiThread(anim::start); in testOfFloat_Path()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java77 mActivityRule.runOnUiThread(() -> { in testScrollTo()
90 mActivityRule.runOnUiThread(() -> mTextView.setText(LONG_TEXT)); in testScrollTo()
96 mActivityRule.runOnUiThread( in testScrollTo()
103 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width + 100, 5)); in testScrollTo()
108 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width - 10, 5)); in testScrollTo()
132 mActivityRule.runOnUiThread(() -> { in testOnTouchEvent()
150 mActivityRule.runOnUiThread( in testOnTouchEvent()
161 mActivityRule.runOnUiThread( in testOnTouchEvent()
172 mActivityRule.runOnUiThread( in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java65 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
83 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData()
90 mActivityRule.runOnUiThread(() -> { in testReceiveData()
126 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
135 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testMultipleListeners()
140 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
162 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
168 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testDropCount()
173 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
DViewTreeObserverTest.java81 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
90 mActivityRule.runOnUiThread(view1::requestFocus); in testAddOnGlobalFocusChangeListener()
97 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener()
177 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testAddOnTouchModeChangeListener()
235 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
241 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener()
247 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
286 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
293 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
314 mActivityRule.runOnUiThread(() -> scrollView.fullScroll(View.FOCUS_DOWN)); in testAccessOnScrollChangedListener()
[all …]
DSystemGestureExclusionRectsTest.java70 mActivityRule.runOnUiThread(() -> { in staticView()
109 mActivityRule.runOnUiThread(() -> { in animatingView()
143 mActivityRule.runOnUiThread(() -> { in animatingView()
165 mActivityRule.runOnUiThread(() -> { in removingRects()
173 mActivityRule.runOnUiThread(() -> { in removingRects()
189 mActivityRule.runOnUiThread(() -> { in rootExclusionRects()
211 mActivityRule.runOnUiThread(() -> { in ignoreHiddenViewRects()
224 mActivityRule.runOnUiThread(() -> { in ignoreHiddenViewRects()
235 mActivityRule.runOnUiThread(() -> { in ignoreHiddenViewRects()
246 mActivityRule.runOnUiThread(() -> { in ignoreHiddenViewRects()
DContentPaneFocusTest.java62 mActivityRule.runOnUiThread(v1::requestFocus); in testAccessActionBar()
77 mActivityRule.runOnUiThread(() -> { in testAccessActionBar()
89 mActivityRule.runOnUiThread(() -> assertTrue(actionBar.hasFocus())); in testAccessActionBar()
96 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
103 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
111 mActivityRule.runOnUiThread(top::clearFocus); in testNoFocusablesInContent()
DView_AnimationTest.java79 mActivityRule.runOnUiThread(view::invalidate); in testAnimation()
95 mActivityRule.runOnUiThread(() -> view.startAnimation(mAnimation)); in testStartAnimation()
110 mActivityRule.runOnUiThread(() -> { in testClearBeforeAnimation()
123 mActivityRule.runOnUiThread(() -> { in testClearDuringAnimation()
130 mActivityRule.runOnUiThread(view::clearAnimation); in testClearDuringAnimation()
/cts/tests/fragment/src/android/fragment/cts/
DFragmentReorderingTest.java57 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
71 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
94 mActivityRule.runOnUiThread(new Runnable() { in startWithPop()
118 mActivityRule.runOnUiThread(new Runnable() { in middlePop()
148 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantRemove()
188 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantAdd()
226 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantAttach()
276 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantDetach()
320 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantHide()
355 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantHide()
[all …]

12345678