Home
last modified time | relevance | path

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

12345678

/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java120 runOnUiThread(new Runnable() { in WebViewOnUiThread()
146 runOnUiThread(() -> { in WebViewOnUiThread() method
163 runOnUiThread(new Runnable() { in cleanUp()
208 runOnUiThread(new Runnable() { in setWebViewClient()
217 runOnUiThread(new Runnable() { in setWebChromeClient()
226 runOnUiThread(new Runnable() { in setPictureListener()
235 runOnUiThread(new Runnable() { in setNetworkAvailable()
244 runOnUiThread(new Runnable() { in setDownloadListener()
253 runOnUiThread(new Runnable() { in setBackgroundColor()
262 runOnUiThread(new Runnable() { in clearCache()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DTextClockTest.java81 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
97 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
105 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
114 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
125 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
134 mActivityRule.runOnUiThread(() -> { in testUpdate12_24()
148 mActivityRule.runOnUiThread(() -> {
154 mActivityRule.runOnUiThread(() -> { in mActivityRule.runOnUiThread()
158 mActivityRule.runOnUiThread(() -> { in mActivityRule.runOnUiThread()
163 mActivityRule.runOnUiThread(() -> { in mActivityRule.runOnUiThread()
[all …]
DRemoteViewsTest.java174 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetContentDescription()
184 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
188 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
192 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility()
203 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
207 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText()
220 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewTextSize()
236 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetIcon()
250 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetImageViewIcon()
264 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetImageViewResource()
[all …]
DPopupMenuTest.java87 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in teardown()
111 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater()
120 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate()
129 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity()
139 mActivityRule.runOnUiThread(mBuilder::show); in testConstructorWithGravity()
147 mActivityRule.runOnUiThread(mBuilder::show); in testDismissalViaAPI()
152 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
156 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI()
170 mActivityRule.runOnUiThread(mBuilder::show); in testNestedDismissalViaAPI()
174 mActivityRule.runOnUiThread( in testNestedDismissalViaAPI()
[all …]
DListPopupWindowTest.java112 mActivityRule.runOnUiThread(mPopupWindowBuilder::dismiss); in teardown()
146 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessBackground()
160 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessAnimationStyle()
175 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessHeight()
217 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAccessWidth()
279 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoring()
291 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithHorizontalOffset()
303 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithVerticalOffset()
315 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithRightGravity()
327 mActivityRule.runOnUiThread(mPopupWindowBuilder::show); in testAnchoringWithEndGravity()
[all …]
DAbsListViewTest.java200 mActivityRule.runOnUiThread(() -> mListView.setAdapter(adapter)); in setAdapter()
205 mActivityRule.runOnUiThread(() -> mListView.setSelection(index)); in setListSelection()
296 mActivityRule.runOnUiThread(() -> mListView.fling(velocityY)); in fling()
333 mActivityRule.runOnUiThread(() -> mListView.setStackFromBottom(false)); in testAccessStackFromBottom()
337 mActivityRule.runOnUiThread(() -> mListView.setStackFromBottom(true)); in testAccessStackFromBottom()
379 mActivityRule.runOnUiThread( in testAccessListPadding()
396 mActivityRule.runOnUiThread(mListView::requestLayout); in testAccessSelector()
404 mActivityRule.runOnUiThread(mListView::requestLayout); in testAccessSelector()
429 mActivityRule.runOnUiThread(() -> { in testSelectorOnScreen()
445 mActivityRule.runOnUiThread(() -> { in testSelectorOnScreen()
[all …]
DSpinnerTest.java149 mActivityRule.runOnUiThread(() -> { in verifyGetBaseline()
182 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); in verifyPerformClick()
230 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); in verifyAccessPrompt()
244 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); in verifySetPromptId()
288 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity()
296 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); in verifyGravity()
299 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)); in verifyGravity()
302 mActivityRule.runOnUiThread((() -> spinner.setGravity(Gravity.RIGHT))); in verifyGravity()
305 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.START)); in verifyGravity()
308 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.END)); in verifyGravity()
[all …]
DToolbarTest.java164 mActivityRule.runOnUiThread(() -> mMainToolbar.inflateMenu(R.menu.toolbar_menu)); in testMenuOverflowShowHide()
168 mActivityRule.runOnUiThread(() -> mMainToolbar.showOverflowMenu()); in testMenuOverflowShowHide()
173 mActivityRule.runOnUiThread(() -> mMainToolbar.hideOverflowMenu()); in testMenuOverflowShowHide()
186 mActivityRule.runOnUiThread(mMainToolbar::showOverflowMenu); in testMenuOverflowSubmenu()
199 mActivityRule.runOnUiThread(() -> menu.performIdentifierAction(R.id.action_share, 0)); in testMenuOverflowSubmenu()
204 mActivityRule.runOnUiThread(mMainToolbar::dismissPopupMenus); in testMenuOverflowSubmenu()
235 mActivityRule.runOnUiThread(searchMenuItem::expandActionView); in testActionView()
242 mActivityRule.runOnUiThread(searchMenuItem::collapseActionView); in testActionView()
248 mActivityRule.runOnUiThread(searchMenuItem::expandActionView); in testActionView()
255 mActivityRule.runOnUiThread(mMainToolbar::collapseActionView); in testActionView()
[all …]
DActionMenuViewTest.java103 mActivityRule.runOnUiThread( in testMenuOverflowShowHide()
109 mActivityRule.runOnUiThread(mActionMenuView::showOverflowMenu); in testMenuOverflowShowHide()
114 mActivityRule.runOnUiThread(mActionMenuView::hideOverflowMenu); in testMenuOverflowShowHide()
122 mActivityRule.runOnUiThread( in testMenuOverflowSubmenu()
128 mActivityRule.runOnUiThread(mActionMenuView::showOverflowMenu); in testMenuOverflowSubmenu()
141 mActivityRule.runOnUiThread(() -> menu.performIdentifierAction(R.id.action_share, 0)); in testMenuOverflowSubmenu()
146 mActivityRule.runOnUiThread(mActionMenuView::dismissPopupMenus); in testMenuOverflowSubmenu()
154 mActivityRule.runOnUiThread( in testMenuOverflowIcon()
DSearchViewTest.java120 mActivityRule.runOnUiThread(() -> { in testDenyIconifyingNonInconifiableView()
125 mActivityRule.runOnUiThread(() -> mSearchView.setIconified(true)); in testDenyIconifyingNonInconifiableView()
136 mActivityRule.runOnUiThread(() -> { in testDenyIconifyingInconifiableView()
146 mActivityRule.runOnUiThread(() -> mSearchView.setIconified(true)); in testDenyIconifyingInconifiableView()
158 mActivityRule.runOnUiThread(() -> { in testAllowIconifyingInconifiableView()
168 mActivityRule.runOnUiThread(() -> mSearchView.setIconified(true)); in testAllowIconifyingInconifiableView()
185 mActivityRule.runOnUiThread(() -> mSearchView.setIconified(false)); in testAccessMaxWidth()
187 mActivityRule.runOnUiThread(() -> mSearchView.setMaxWidth(maxWidth1)); in testAccessMaxWidth()
192 mActivityRule.runOnUiThread(() -> mSearchView.setMaxWidth(maxWidth2)); in testAccessMaxWidth()
DVideoViewTest.java122 mActivityRule.runOnUiThread(() -> { in makeVideoView()
156 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testPlayVideo()
161 mActivityRule.runOnUiThread(mVideoView::start); in testPlayVideo()
201 mActivityRule.runOnUiThread(() -> am.registerAudioPlaybackCallback(myCb, null)); in testAudioAttributes()
202 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testAudioAttributes()
203 mActivityRule.runOnUiThread(mVideoView::start); in testAudioAttributes()
221 mActivityRule.runOnUiThread(() -> { in testSetOnErrorListener()
246 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testGetBufferPercentage()
280 mActivityRule.runOnUiThread(() -> mVideoView.setVideoPath(mVideoPath)); in testGetDuration()
DGridViewTest.java171 mActivityRule.runOnUiThread(() -> { in testPressKey()
226 mActivityRule.runOnUiThread(() -> { in testSetGravity()
234 mActivityRule.runOnUiThread(() -> { in testSetGravity()
244 mActivityRule.runOnUiThread(() -> { in testSetGravity()
255 mActivityRule.runOnUiThread(() -> { in testSetGravity()
278 mActivityRule.runOnUiThread(() -> mGridView.setLayoutDirection(layoutDir)); in verifyAccessHorizontalSpacing()
284 mActivityRule.runOnUiThread(() -> { in verifyAccessHorizontalSpacing()
300 mActivityRule.runOnUiThread(() -> mGridView.setHorizontalSpacing(5)); in verifyAccessHorizontalSpacing()
316 mActivityRule.runOnUiThread(() -> { in testAccessVerticalSpacing()
327 mActivityRule.runOnUiThread(() -> mGridView.setVerticalSpacing(5)); in testAccessVerticalSpacing()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java81 mActivityRule.runOnUiThread(new Runnable() { in setup()
111 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testSetVisible()
117 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(false, false))); in testSetVisible()
123 mActivityRule.runOnUiThread(() -> assertTrue(mAnimationDrawable.setVisible(true, true))); in testSetVisible()
134 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testStart()
141 mActivityRule.runOnUiThread(mAnimationDrawable::start); in testStart()
144 mActivityRule.runOnUiThread(mAnimationDrawable::stop); in testStart()
149 mActivityRule.runOnUiThread(mAnimationDrawable::stop); in testStart()
157 mActivityRule.runOnUiThread(mAnimationDrawable::run); in testRun()
162 mActivityRule.runOnUiThread(() -> mAnimationDrawable.unscheduleSelf(mAnimationDrawable)); in testRun()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTouchTest.java76 mActivityRule.runOnUiThread(() -> { in testScrollTo()
89 mActivityRule.runOnUiThread(() -> mTextView.setText(LONG_TEXT)); in testScrollTo()
95 mActivityRule.runOnUiThread( in testScrollTo()
102 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width + 100, 5)); in testScrollTo()
107 mActivityRule.runOnUiThread(() -> Touch.scrollTo(mTextView, layout, width - 10, 5)); in testScrollTo()
131 mActivityRule.runOnUiThread(() -> { in testOnTouchEvent()
149 mActivityRule.runOnUiThread( in testOnTouchEvent()
160 mActivityRule.runOnUiThread( in testOnTouchEvent()
171 mActivityRule.runOnUiThread( in testOnTouchEvent()
/cts/tests/tests/view/src/android/view/cts/
DFrameMetricsListenerTest.java64 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
82 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData()
89 mActivityRule.runOnUiThread(() -> { in testReceiveData()
125 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
134 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testMultipleListeners()
139 mActivityRule.runOnUiThread(() -> { in testMultipleListeners()
161 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
167 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testDropCount()
172 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
DViewTreeObserverTest.java79 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout()
88 mActivityRule.runOnUiThread(view1::requestFocus); in testAddOnGlobalFocusChangeListener()
95 mActivityRule.runOnUiThread(view2::requestFocus); in testAddOnGlobalFocusChangeListener()
160 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testAddOnTouchModeChangeListener()
218 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
224 mActivityRule.runOnUiThread(view2::requestFocus); in testRemoveOnGlobalFocusChangeListener()
230 mActivityRule.runOnUiThread(view1::requestFocus); in testRemoveOnGlobalFocusChangeListener()
269 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
276 mActivityRule.runOnUiThread(mButton::requestFocusFromTouch); in testRemoveOnTouchModeChangeListener()
297 mActivityRule.runOnUiThread(() -> scrollView.fullScroll(View.FOCUS_DOWN)); in testAccessOnScrollChangedListener()
[all …]
DContentPaneFocusTest.java61 mActivityRule.runOnUiThread(v1::requestFocus); in testAccessActionBar()
76 mActivityRule.runOnUiThread(() -> { in testAccessActionBar()
88 mActivityRule.runOnUiThread(() -> assertTrue(actionBar.hasFocus())); in testAccessActionBar()
95 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
102 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
110 mActivityRule.runOnUiThread(top::clearFocus); in testNoFocusablesInContent()
DView_AnimationTest.java78 mActivityRule.runOnUiThread(view::invalidate); in testAnimation()
94 mActivityRule.runOnUiThread(() -> view.startAnimation(mAnimation)); in testStartAnimation()
109 mActivityRule.runOnUiThread(() -> { in testClearBeforeAnimation()
122 mActivityRule.runOnUiThread(() -> { in testClearDuringAnimation()
129 mActivityRule.runOnUiThread(view::clearAnimation); in testClearDuringAnimation()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionManagerTest.java50 mActivityRule.runOnUiThread(() -> { in testBeginDelayedTransition()
67 mActivityRule.runOnUiThread(() -> { in testBeginDelayedTransition()
78 mActivityRule.runOnUiThread(() -> { in testDefaultBeginDelayedTransition()
139 mActivityRule.runOnUiThread(() -> { in testGo()
150 mActivityRule.runOnUiThread(() -> { in testDefaultGo()
171 mActivityRule.runOnUiThread(() -> { in testSetTransition1()
187 mActivityRule.runOnUiThread(() -> { in testSetTransition1()
204 mActivityRule.runOnUiThread(() -> { in testSetTransition2()
214 mActivityRule.runOnUiThread(() -> transitionManager.transitionTo(scenes[1])); in testSetTransition2()
226 mActivityRule.runOnUiThread(() -> { in testSetTransition2()
[all …]
DBaseTransitionTest.java95 mActivityRule.runOnUiThread( in loadLayout()
103 mActivityRule.runOnUiThread(() -> scene[0] = new Scene(mSceneRoot, layout)); in loadScene()
110 mActivityRule.runOnUiThread( in loadScene()
120 mActivityRule.runOnUiThread(() -> TransitionManager.go(scene, mTransition)); in startTransition()
125 mActivityRule.runOnUiThread(() -> TransitionManager.endTransitions(mSceneRoot)); in endTransition()
137 mActivityRule.runOnUiThread(scene::exit); in exitScene()
DChangeClipBoundsTest.java57 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds()
66 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds()
73 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds()
81 mActivityRule.runOnUiThread(() -> assertNull(redSquare.getClipBounds())); in testChangeClipBounds()
DActivityTransitionTest.java99 mActivityRule.runOnUiThread(() -> TargetActivity.sLastCreated.finish()); in cleanup()
108 mActivityRule.runOnUiThread(() -> { in testMakeBasic()
119 mActivityRule.runOnUiThread(() -> { in testMakeBasic()
132 mActivityRule.runOnUiThread(() -> { in viewsNotStripped()
165 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsNotStripped()
204 mActivityRule.runOnUiThread(() -> { in viewsStripped()
236 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsStripped()
276 mActivityRule.runOnUiThread(() -> { in earlyExitStop()
291 mActivityRule.runOnUiThread(() -> { in earlyExitStop()
308 mActivityRule.runOnUiThread(() -> { in testAnimationQuery()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DValueAnimatorTest.java150 mActivityRule.runOnUiThread(() -> { in testListenerCallbackWithStartDelay()
172 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime()
208 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime()
223 mActivityRule.runOnUiThread(delayedAnim::cancel); in testSetCurrentPlayTime()
234 mActivityRule.runOnUiThread(() -> { in testPauseListener()
261 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTimeAfterStart()
291 mActivityRule.runOnUiThread(() -> { in testSetCurrentFraction()
326 mActivityRule.runOnUiThread(() -> mValueAnimator.setFrameDelay(frameDelay)); in testGetFrameDelay()
329 mActivityRule.runOnUiThread(() -> { in testGetFrameDelay()
358 mActivityRule.runOnUiThread(() -> { in testUpdateListeners()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentReorderingTest.java56 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
70 mActivityRule.runOnUiThread(new Runnable() { in addReplace()
93 mActivityRule.runOnUiThread(new Runnable() { in startWithPop()
117 mActivityRule.runOnUiThread(new Runnable() { in middlePop()
147 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantRemove()
187 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantAdd()
225 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantAttach()
275 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantDetach()
319 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantHide()
354 mActivityRule.runOnUiThread(new Runnable() { in removeRedundantHide()
[all …]
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceRecycleTest.java96 mActivityRule.runOnUiThread(() -> recyclePref.setChecked(!recyclePref.isChecked())); in recycleSetViaXmlTest()
118 mActivityRule.runOnUiThread(() -> { in recycleSetViaCodeTest()
132 mActivityRule.runOnUiThread(() -> { in recycleSetViaCodeTest()
148 mActivityRule.runOnUiThread(() -> recyclePref.setChecked(!recyclePref.isChecked())); in recycleSetViaCodeTest()

12345678