Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServiceTestsBase.java59 return runWithScissors(handler, () -> { }, timeout); in waitHandlerIdle()
62 boolean runWithScissors(Handler handler, Runnable r, long timeout) { in runWithScissors() method in SystemServiceTestsBase
63 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()
DScreenDecorWindowTests.java215 Handler.getMain().runWithScissors(() -> { in createWindow()
237 Handler.getMain().runWithScissors(() -> { in updateWindow()
251 Handler.getMain().runWithScissors(() -> mWm.removeView(v), 0); in removeWindow()
DPendingRemoteAnimationRegistryTest.java55 AnimationThread.getHandler().runWithScissors(() -> { in setUp()
DRemoteAnimationControllerTest.java91 runWithScissors(mWm.mH, () -> mHandler = new TestHandler(null, mClock), 0); in setUp()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiThreadRunner.java74 boolean runWithScissorsSuccess = runWithScissors(mHandler, in call()
95 runWithScissors(mHandler, runnable, RUN_WITH_SCISSORS_TIMEOUT_MILLIS); in run()
155 private static boolean runWithScissors(@NonNull Handler handler, @NonNull Runnable r, in runWithScissors() method in WifiThreadRunner
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DDisplayManagerServiceTest.java158 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */); in testCreateVirtualDisplay_sentToInputManager()
222 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */); in testPhysicalViewports()
266 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */); in testCreateVirtualDisplayRotatesWithContent()
292 handler.runWithScissors(() -> {}, 0 /* now */); in testStartVirtualDisplayWithDefDisplay_NoDefaultDisplay()
463 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */); in testCreateVirtualDisplay_displayIdToMirror()
502 displayManager.getDisplayHandler().runWithScissors(() -> {}, 0 /* now */); in testCreateVirtualDisplay_setSurface()
513 handler.runWithScissors(() -> {}, 0 /* now */); in registerDefaultDisplays()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiThreadRunnerTest.java78 }).when(mHandler).runWithScissors(any(), anyLong()); in callSuccess_returnExpectedValue()
103 }).when(mHandler).runWithScissors(any(), anyLong()); in runSuccess()
/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()
DSurfaceAnimationRunner.java95 mSurfaceAnimationHandler.runWithScissors(() -> mChoreographer = getSfInstance(), in SurfaceAnimationRunner()
DWindowAnimator.java101 service.mAnimationHandler.runWithScissors( in WindowAnimator()
/frameworks/base/core/tests/coretests/src/android/view/
DViewRootSurfaceCallbackTest.java64 thread.getThreadHandler().runWithScissors(() -> { in testCallingTidOfSurfaceCallback()
DWindowMetricsTest.java73 Handler.getMain().runWithScissors(() -> { in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmTestBase.java95 dpms.mHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks()
96 dpms.mBackgroundHandler.runWithScissors(() -> { }, 0 /*now*/); in flushTasks()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java65 if (handler.runWithScissors(new Runnable() { in dumpAsync()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTest.java239 assertTrue(mHandler.runWithScissors(()->{}, TEST_FAIL_TIMEOUT)); in testKillProcess()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DPinnerServiceTest.java140 pinnerServiceHandler.runWithScissors(() -> { in waitForPinnerService()
/frameworks/base/core/java/android/os/
DHandler.java592 public final boolean runWithScissors(@NonNull Runnable r, long timeout) { in runWithScissors() method in Handler
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java303 mService.mHandler.runWithScissors(() -> { }, 0 /*now*/); // Flush runnables on handler in flushHandlerTasks()
/frameworks/base/core/java/android/view/
DWindowManagerGlobal.java693 root.mHandler.runWithScissors(() -> root.setWindowStopped(stopped), 0); in setStoppedState()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssVisibilityControl.java126 if (mHandler.runWithScissors(() -> handleGpsEnabledChanged(isEnabled), in onGpsEnabledChanged()

12