Home
last modified time | relevance | path

Searched refs:runWithScissors (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DUiThreadContext.kt38 fun <T> runWithScissors(block: () -> T): T { in runWithScissors() method in com.android.systemui.util.concurrency.UiThreadContext
39 return handler.runWithScissors(block) in runWithScissors()
42 fun runWithScissors(block: Runnable) { in runWithScissors() method in com.android.systemui.util.concurrency.UiThreadContext
43 handler.runWithScissors(block, DEFAULT_TIMEOUT) in runWithScissors()
47 fun <T> Handler.runWithScissors(block: () -> T): T { in runWithScissors() method
49 runWithScissors({ returnedValue.set(block()) }, DEFAULT_TIMEOUT) in runWithScissors()
DSysUIConcurrencyModule.kt137 thread.threadHandler.runWithScissors { Choreographer.getInstance() } in provideBackPanelUiThreadContext()
144 mainHandler.runWithScissors { Choreographer.getInstance() } in provideBackPanelUiThreadContext()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServiceTestsBase.java68 return runWithScissors(handler, () -> { }, timeout); in waitHandlerIdle()
71 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() method in SystemServiceTestsBase
72 return mLockRule.runWithScissors(handler, r, timeout); in runWithScissors()
DWindowManagerGlobalLockRule.java65 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() method in WindowManagerGlobalLockRule
66 return waitForLocked(() -> handler.runWithScissors(r, timeout)); in runWithScissors()
DPendingRemoteAnimationRegistryTest.java57 AnimationThread.getHandler().runWithScissors(() -> { in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/
DSingleKeyGestureTests.java315 newHandler.runWithScissors( in testShortPress_Pressure()
339 newHandler.runWithScissors( in testMultiPress_Pressure()
347 newHandler.runWithScissors( in testMultiPress_Pressure()
365 newHandler.runWithScissors( in testOnKeyUp_Pressure()
371 newHandler.runWithScissors( in testOnKeyUp_Pressure()
/frameworks/base/core/java/com/android/internal/jank/
DInteractionMonitorDebugOverlay.java88 mHandler.runWithScissors(() -> mViewRoot.removeWindowCallbacks(this), in dispose()
107 mHandler.runWithScissors(() -> viewRoot.addWindowCallbacks(this), in attachViewRootIfNeeded()
146 mHandler.runWithScissors(() -> { in forceRedraw()
DInteractionJankMonitor.java263 config.getHandler().runWithScissors(() -> in createFrameTracker()
339 final boolean success = config.getHandler().runWithScissors( in begin()
404 final boolean success = tracker.mConfig.getHandler().runWithScissors( in end()
453 final boolean success = tracker.mConfig.getHandler().runWithScissors( in cancel()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceThreadRule.java46 mThread.getThreadHandler().runWithScissors(mThread::quit, 0 /* timeout */); in apply()
/frameworks/base/services/core/java/com/android/server/
DAnimationThread.java72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
DDisplayThread.java75 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
DUiThread.java85 getHandler().runWithScissors(sInstance::quit, 0 /* timeout */); in dispose()
/frameworks/base/services/core/java/com/android/server/wm/
DSurfaceAnimationThread.java72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
DWindowAnimator.java93 service.mAnimationHandler.runWithScissors( in WindowAnimator()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tracing/
DTraceUtilsTest.kt87 .runWithScissors( in testLongTraceSection_doesNotThrow_whenUsedAsTraceNameSupplier()
/frameworks/base/core/tests/coretests/src/android/view/
DWindowMetricsTest.java71 Handler.getMain().runWithScissors(() -> { in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
DViewRootSurfaceCallbackTest.java64 thread.getThreadHandler().runWithScissors(() -> { in testCallingTidOfSurfaceCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/
DMainThreadUnfoldTransitionProgressProviderTest.kt103 bgHandler.runWithScissors({ progressProvider.addCallback(listener) }, 5000L) in addCallback_fromBackgroundThread_succeeds()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java102 dpms.mHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks()
103 dpms.mBackgroundHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIInitializer.java155 boolean built = shellHandler.runWithScissors(() -> { in setupWmComponent()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowOnBackInvokedDispatcherTest.java442 main.runWithScissors(() -> mDispatcher.onMotionEvent(mMotionEvent), 100); in handlesMotionEvent()
450 main.runWithScissors(() -> mDispatcher.onMotionEvent(mMotionEvent), 100); in handlesMotionEvent()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayManagerServiceTest.java470 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
545 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
597 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
632 displayManager.getDisplayHandler().runWithScissors(() -> {}, /* now= */ 0);
670 displayManager.getDisplayHandler().runWithScissors(() -> {}, /* now= */ 0);
705 displayManager.getDisplayHandler().runWithScissors(() -> {}, /* now= */ 0);
757 displayManager.getDisplayHandler().runWithScissors(() -> {}, /* now= */ 0);
1049 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
1541 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
1795 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */);
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DDisplayManagerGlobalTest.java226 mHandler.runWithScissors(() -> { in waitForHandler()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodManagerServiceWindowGainedFocusTest.java202 mServiceThread.getThreadHandler().runWithScissors( in startInputOrWindowGainedFocus_userNotRunning()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DHandlerThreadingDomainTest.java211 mTestHandler.runWithScissors(runDelayedTestRunnable, TimeUnit.SECONDS.toMillis(60)); in singleRunnableQueue_runDelayed()

123