/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | UiThreadContext.kt | 38 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()
|
D | SysUIConcurrencyModule.kt | 137 thread.threadHandler.runWithScissors { Choreographer.getInstance() } in provideBackPanelUiThreadContext() 144 mainHandler.runWithScissors { Choreographer.getInstance() } in provideBackPanelUiThreadContext()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SystemServiceTestsBase.java | 68 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()
|
D | WindowManagerGlobalLockRule.java | 65 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() method in WindowManagerGlobalLockRule 66 return waitForLocked(() -> handler.runWithScissors(r, timeout)); in runWithScissors()
|
D | PendingRemoteAnimationRegistryTest.java | 57 AnimationThread.getHandler().runWithScissors(() -> { in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | SingleKeyGestureTests.java | 315 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/ |
D | InteractionMonitorDebugOverlay.java | 88 mHandler.runWithScissors(() -> mViewRoot.removeWindowCallbacks(this), in dispose() 107 mHandler.runWithScissors(() -> viewRoot.addWindowCallbacks(this), in attachViewRootIfNeeded() 146 mHandler.runWithScissors(() -> { in forceRedraw()
|
D | InteractionJankMonitor.java | 263 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/ |
D | ServiceThreadRule.java | 46 mThread.getThreadHandler().runWithScissors(mThread::quit, 0 /* timeout */); in apply()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AnimationThread.java | 72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
|
D | DisplayThread.java | 75 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
|
D | UiThread.java | 85 getHandler().runWithScissors(sInstance::quit, 0 /* timeout */); in dispose()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceAnimationThread.java | 72 getHandler().runWithScissors(() -> sInstance.quit(), 0 /* timeout */); in dispose()
|
D | WindowAnimator.java | 93 service.mAnimationHandler.runWithScissors( in WindowAnimator()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tracing/ |
D | TraceUtilsTest.kt | 87 .runWithScissors( in testLongTraceSection_doesNotThrow_whenUsedAsTraceNameSupplier()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowMetricsTest.java | 71 Handler.getMain().runWithScissors(() -> { in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
|
D | ViewRootSurfaceCallbackTest.java | 64 thread.getThreadHandler().runWithScissors(() -> { in testCallingTidOfSurfaceCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/progress/ |
D | MainThreadUnfoldTransitionProgressProviderTest.kt | 103 bgHandler.runWithScissors({ progressProvider.addCallback(listener) }, 5000L) in addCallback_fromBackgroundThread_succeeds()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 102 dpms.mHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks() 103 dpms.mBackgroundHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIInitializer.java | 155 boolean built = shellHandler.runWithScissors(() -> { in setupWmComponent()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | WindowOnBackInvokedDispatcherTest.java | 442 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/ |
D | DisplayManagerServiceTest.java | 470 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/ |
D | DisplayManagerGlobalTest.java | 226 mHandler.runWithScissors(() -> { in waitForHandler()
|
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/ |
D | InputMethodManagerServiceWindowGainedFocusTest.java | 202 mServiceThread.getThreadHandler().runWithScissors( in startInputOrWindowGainedFocus_userNotRunning()
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/ |
D | HandlerThreadingDomainTest.java | 211 mTestHandler.runWithScissors(runDelayedTestRunnable, TimeUnit.SECONDS.toMillis(60)); in singleRunnableQueue_runDelayed()
|