/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextClockTest.java | 84 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 …]
|
D | RemoteViewsTest.java | 159 mActivityRule.runOnUiThread(() -> { in setUp() 220 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetContentDescription() 230 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility() 234 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility() 238 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetViewVisibility() 249 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText() 253 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewText() 265 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetTextViewTextSize() 280 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetIcon() 315 mActivityRule.runOnUiThread(() -> mRemoteViews.reapply(mContext, mResult)); in testSetImageViewIcon() [all …]
|
D | PopupMenuTest.java | 106 mActivityRule.runOnUiThread(() -> { in teardown() 144 mActivityRule.runOnUiThread(mBuilder::show); in testPopulateViaInflater() 156 mActivityRule.runOnUiThread(mBuilder::show); in testDirectPopulate() 167 mActivityRule.runOnUiThread(mBuilder::show); in testAccessGravity() 177 mActivityRule.runOnUiThread(mBuilder::show); in testConstructorWithGravity() 186 mActivityRule.runOnUiThread(mBuilder::show); in testDismissalViaAPI() 191 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI() 196 mActivityRule.runOnUiThread(mPopupMenu::dismiss); in testDismissalViaAPI() 212 mActivityRule.runOnUiThread(mBuilder::show); in testNestedDismissalViaAPI() 217 mActivityRule.runOnUiThread( in testNestedDismissalViaAPI() [all …]
|
D | ToolbarTest.java | 166 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 …]
|
D | SpinnerTest.java | 152 mActivityRule.runOnUiThread(() -> { in verifyGetBaseline() 185 mActivityRule.runOnUiThread(() -> assertTrue(spinner.performClick())); in verifyPerformClick() 233 mActivityRule.runOnUiThread(() -> spinner.setPrompt(promptText)); in verifyAccessPrompt() 247 mActivityRule.runOnUiThread(() -> spinner.setPromptId(R.string.hello_world)); in verifySetPromptId() 291 mActivityRule.runOnUiThread(() -> spinner.setAdapter(adapter)); in verifyGravity() 299 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.LEFT)); in verifyGravity() 302 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.CENTER_HORIZONTAL)); in verifyGravity() 305 mActivityRule.runOnUiThread((() -> spinner.setGravity(Gravity.RIGHT))); in verifyGravity() 308 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.START)); in verifyGravity() 311 mActivityRule.runOnUiThread(() -> spinner.setGravity(Gravity.END)); in verifyGravity() [all …]
|
D | ToastTest.java | 218 mActivityRule.runOnUiThread( in makeTextToast() 226 mActivityRule.runOnUiThread( in makeCustomToast() 280 mActivityRule.runOnUiThread(mToast::show); in testShow_whenTextToast() 291 mActivityRule.runOnUiThread(mToast::show); in testHideTextToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 299 mActivityRule.runOnUiThread(mToast::show); in testHideTextToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 302 mActivityRule.runOnUiThread(mToast::show); in testHideTextToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 318 mActivityRule.runOnUiThread(mToast::show); in testHideCustomToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 326 mActivityRule.runOnUiThread(mToast::show); in testHideCustomToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 329 mActivityRule.runOnUiThread(mToast::show); in testHideCustomToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 356 mActivityRule.runOnUiThread(() -> { in testCancel_whenCustomToast() [all …]
|
D | VideoViewTest.java | 119 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()
|
/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderTest.java | 19 import static androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread; 125 runOnUiThread(new Runnable() { in testSetIconWithParamInt() 138 runOnUiThread(new Runnable() { in testSetIconWithParamDrawable() 151 runOnUiThread(new Runnable() { in testSetIconAttribute() 164 runOnUiThread(new Runnable() { in testSetPositiveButtonWithParamInt() 186 runOnUiThread(new Runnable() { in testSetPositiveButtonWithParamCharSequence() 207 runOnUiThread(new Runnable() { in testSetNegativeButtonWithParamCharSequence() 228 runOnUiThread(new Runnable() { in testSetNegativeButtonWithParamInt() 249 runOnUiThread(new Runnable() { in testSetNeutralButtonWithParamInt() 270 runOnUiThread(new Runnable() { in testSetNeutralButtonWithParamCharSequence() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 82 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/text/src/android/text/method/cts/ |
D | TouchTest.java | 77 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/transition/src/android/transition/cts/ |
D | ActivityTransitionTest.java | 100 mActivityRule.runOnUiThread(() -> { in cleanup() 113 mActivityRule.runOnUiThread(() -> { in testMakeBasic() 124 mActivityRule.runOnUiThread(() -> { in testMakeBasic() 137 mActivityRule.runOnUiThread(() -> { in viewsNotStripped() 171 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsNotStripped() 211 mActivityRule.runOnUiThread(() -> { in viewsStripped() 244 mActivityRule.runOnUiThread(() -> targetActivity.finishAfterTransition()); in viewsStripped() 285 mActivityRule.runOnUiThread(() -> { in earlyExitStop() 301 mActivityRule.runOnUiThread(() -> { in earlyExitStop() 318 mActivityRule.runOnUiThread(() -> { in testAnimationQuery() [all …]
|
D | ChangeClipBoundsTest.java | 58 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds() 67 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds() 74 mActivityRule.runOnUiThread(() -> { in testChangeClipBounds() 82 mActivityRule.runOnUiThread(() -> assertNull(redSquare.getClipBounds())); in testChangeClipBounds()
|
D | BaseTransitionTest.java | 101 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()
|
D | ChangeTransformTest.java | 60 mActivityRule.runOnUiThread(() -> { in testTranslation() 81 mActivityRule.runOnUiThread(() -> { in testRotation() 100 mActivityRule.runOnUiThread(() -> { in testScale() 136 mActivityRule.runOnUiThread(() -> { in testReparentWithOverlay() 153 mActivityRule.runOnUiThread(() -> { in testReparentWithOverlay()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTreeObserverTest.java | 81 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 …]
|
D | FrameMetricsListenerTest.java | 76 mActivityRule.runOnUiThread(() -> mActivity.setContentView(layoutId)); in layout() 94 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testReceiveData() 101 mActivityRule.runOnUiThread(() -> { in testReceiveData() 137 mActivityRule.runOnUiThread(() -> { in testMultipleListeners() 146 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testMultipleListeners() 151 mActivityRule.runOnUiThread(() -> { in testMultipleListeners() 173 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount() 179 mActivityRule.runOnUiThread(() -> scrollView.fling(-100)); in testDropCount() 184 mActivityRule.runOnUiThread(() -> mActivity.getWindow(). in testDropCount()
|
D | ContentPaneFocusTest.java | 62 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()
|
D | View_AnimationTest.java | 79 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()
|
D | SystemGestureExclusionRectsTest.java | 70 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()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsAnimationControllerTests.java | 28 import static androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread; 181 runOnUiThread(() -> {}); // Fence to make sure we dispatched everything. in tearDown() method 186 runOnUiThread(() -> { in tearDown() method 214 runOnUiThread(() -> mRootView.getWindowInsetsController() in awaitControl() 221 runOnUiThread(() -> mRootView.getWindowInsetsController() in awaitControl() 233 runOnUiThread(() -> { in retryIfCancelled() 250 runOnUiThread(() -> { in testControl_andCancel() method 258 runOnUiThread(() -> { in testControl_andCancel() method 270 runOnUiThread(() -> { in testControl_andImmediatelyCancel() method 289 runOnUiThread(() -> { in testControl_immediately_show() method [all …]
|
D | SurfaceControlViewHostTests.java | 110 mActivityRule.runOnUiThread(() -> { in addSurfaceView() 137 mActivityRule.runOnUiThread(() -> { in requestSurfaceViewFocus() 178 mActivityRule.runOnUiThread(() -> { in waitUntilEmbeddedViewDrawn() 276 mActivityRule.runOnUiThread(() -> { in testEmbeddedViewResizes() 300 mActivityRule.runOnUiThread(() -> { in testEmbeddedViewReleases() 324 mActivityRule.runOnUiThread(() -> { in testDisableInputTouch() 333 mActivityRule.runOnUiThread(() -> { in testDisableInputTouch() 357 mActivityRule.runOnUiThread(() -> mSurfaceView.setFocusable(false)); in testFocusable() 370 mActivityRule.runOnUiThread(() -> { in testNotFocusable() 406 mActivityRule.runOnUiThread(() -> { in testCanCopySurfacePackage() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ValueAnimatorTest.java | 154 mActivityRule.runOnUiThread(() -> { in testListenerCallbackWithStartDelay() 176 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime() 212 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTime() 227 mActivityRule.runOnUiThread(delayedAnim::cancel); in testSetCurrentPlayTime() 238 mActivityRule.runOnUiThread(() -> { in testPauseListener() 265 mActivityRule.runOnUiThread(() -> { in testSetCurrentPlayTimeAfterStart() 295 mActivityRule.runOnUiThread(() -> { in testSetCurrentFraction() 330 mActivityRule.runOnUiThread(() -> mValueAnimator.setFrameDelay(frameDelay)); in testGetFrameDelay() 333 mActivityRule.runOnUiThread(() -> { in testGetFrameDelay() 362 mActivityRule.runOnUiThread(() -> { in testUpdateListeners() [all …]
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentReorderingTest.java | 57 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 …]
|
/cts/tests/tests/preference/src/android/preference/cts/ |
D | PreferenceRecycleTest.java | 97 mActivityRule.runOnUiThread(() -> recyclePref.setChecked(!recyclePref.isChecked())); in recycleSetViaXmlTest() 119 mActivityRule.runOnUiThread(() -> { in recycleSetViaCodeTest() 133 mActivityRule.runOnUiThread(() -> { in recycleSetViaCodeTest() 149 mActivityRule.runOnUiThread(() -> recyclePref.setChecked(!recyclePref.isChecked())); in recycleSetViaCodeTest()
|
D | PreferenceActivityLegacyFlowTest.java | 90 runOnUiThread(() -> mActivity.recreate()); in recreate() 97 private void runOnUiThread(final Runnable runnable) { in runOnUiThread() method in PreferenceActivityLegacyFlowTest 99 mActivityRule.runOnUiThread(runnable); in runOnUiThread()
|