Home
last modified time | relevance | path

Searched refs:wait (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/frameworks/base/test-runner/src/junit/textui/
DTestRunner.java112 public TestResult doRun(Test suite, boolean wait) { in doRun() argument
121 pause(wait); in doRun()
125 protected void pause(boolean wait) { in pause() argument
126 if (!wait) return; in pause()
155 boolean wait= false; in start()
159 wait= true; in start()
178 return runSingleMethod(testCase, method, wait); in start()
180 return doRun(suite, wait); in start()
186 …protected TestResult runSingleMethod(String testCase, String method, boolean wait) throws Exceptio… in runSingleMethod() argument
189 return doRun(test, wait); in runSingleMethod()
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DActivityEmbeddingAppHelper.kt69 uiDevice.wait( in launchThirdActivity()
89 uiDevice.wait( in launchTrampolineActivity()
108 uiDevice.wait( in finishSecondaryActivity()
125 uiDevice.wait( in changeSecondaryActivityRatio()
144 uiDevice.wait( in secondaryActivityEnterPip()
163 uiDevice.wait( in launchAlwaysExpandActivity()
181 uiDevice.wait(Until.findObject(By.res(getPackage(), buttonName)), FIND_TIMEOUT) in launchSecondaryActivityFromButton()
199 uiDevice.wait( in launchPlaceholderSplit()
218 uiDevice.wait( in launchPlaceholderSplitRTL()
DMailAppHelper.kt43 row = uiDevice.wait(Until.findObject(rowSel), SHORT_WAIT_TIME_MS) in openMail()
49 uiDevice.wait(Until.gone(By.res(getPackage(), MAIL_LIST_RES_ID)), FIND_TIMEOUT) in openMail()
59 val ret = uiDevice.wait(Until.findObject(sel), FIND_TIMEOUT) in waitForMailList()
DImeShownOnAppStartHelper.kt81 uiDevice.wait( in startDialogThemedActivity()
98 val dialog = uiDevice.wait(Until.findObject(By.text("Dialog for test")), FIND_TIMEOUT) in dismissDialog()
109 uiDevice.wait(Until.findObject(By.res("android:id/text1")), FIND_TIMEOUT) in getInsetsVisibleFromDialog()
134 uiDevice.wait( in toggleFixPortraitOrientation()
/frameworks/native/services/surfaceflinger/tests/unittests/
DWindowInfosListenerInvokerTest.cpp65 cv.wait(lock, [&]() { return callCount == 1; }); in TEST_F()
101 cv.wait(lock, [&]() { return callCount == expectedCallCount; }); in TEST_F()
131 cv.wait(lock, [&]() { return callCount == 1; }); in TEST_F()
140 cv.wait(lock, [&]() { return callCount == 2; }); in TEST_F()
173 cv.wait(lock, [&]() { return callCount == expectedCallCount; }); in TEST_F()
203 cv.wait(lock, [&]() { return lastUpdateId == 1; }); in TEST_F()
212 cv.wait(lock, [&]() { return lastUpdateId == 3; }); in TEST_F()
243 cv.wait(lock, [&]() { return callCount == 1; }); in TEST_F()
DBackgroundExecutorTest.cpp25 condition_variable.wait(lock, [&backgroundTaskComplete]() { return backgroundTaskComplete; }); in TEST_F()
49 condition_variable.wait(lock, [&backgroundTaskCompleteCount]() { in TEST_F()
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
DWorkflowTest.java287 waitWithTimeout(() -> session[0] == null, session::wait); in addAndSelectPrinter() field in WorkflowTest.session
294 waitWithTimeout(() -> !trackedPrinters.contains("1st printer"), trackedPrinters::wait); in addAndSelectPrinter() field in WorkflowTest.trackedPrinters
303 mFirst), printAttributes::wait); in addAndSelectPrinter() field in WorkflowTest.printAttributes
307 assertNotNull(getUiDevice().wait(Until.findObject( in addAndSelectPrinter()
342 mSecond), printAttributes::wait); in addAndSelectPrinter() field in WorkflowTest.printAttributes
346 assertNotNull(getUiDevice().wait(Until.findObject( in addAndSelectPrinter()
354 trackedPrinters::wait); in addAndSelectPrinter() field in WorkflowTest.trackedPrinters
360 trackedPrinters::wait); in addAndSelectPrinter() field in WorkflowTest.trackedPrinters
371 mFirst), printAttributes::wait); in addAndSelectPrinter() field in WorkflowTest.printAttributes
375 assertNotNull(getUiDevice().wait(Until.findObject( in addAndSelectPrinter()
[all …]
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp37 virtual c2_status_t wait(c2_nsecs_t timeoutNs) = 0;
69 c2_status_t C2Fence::wait(c2_nsecs_t timeoutNs) { in wait() function in C2Fence
71 return mImpl->wait(timeoutNs); in wait()
114 virtual c2_status_t wait(c2_nsecs_t timeoutNs) { in wait() function in _C2FenceFactory::SurfaceFenceImpl
188 virtual c2_status_t wait(c2_nsecs_t timeoutNs) { in wait() function in _C2FenceFactory::SyncFenceImpl
194 switch (mFence->wait((int)timeoutMs)) { in wait()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DScreenLockRule.kt67 wait("keyguard dismissed") { count -> in <lambda>()
91 wait("screen lock set") { lockPatternUtils.isSecure(context.userId) } in <lambda>()
111 wait("screen lock un-set") { in <lambda>()
114 wait("screen lock insecure") { !lockPatternUtils.isSecure(context.userId) } in <lambda>()
DLockStateTrackingRule.kt54 wait("un-locked per TrustListener") { lockState.locked == true } in assertLocked()
55 wait("keyguard lock") { windowManager.isKeyguardLocked } in assertLocked()
59 wait("locked per TrustListener") { lockState.locked == false } in assertUnlocked()
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/
DTranscoderTestUtils.h117 mTranscodingFinishedCondition.wait(lock); in waitUntilFinished()
125 mTrackFormatAvailableCondition.wait(lock); in waitUntilTrackFormatAvailable()
184 mCondition.wait(lock); in waitForTranscodingFinished()
191 mCondition.wait(lock); in waitForProgressMade()
206 void wait() { in wait() function
209 mCondition.wait(lock); in wait()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
DTvUtils.kt45 wait(Until.findObject(TV_PIP_MENU_SELECTOR), WAIT_TIME_MS) in <lambda>()
48 wait(Until.gone(TV_PIP_MENU_SELECTOR), WAIT_TIME_MS) in <lambda>()
74 return wait(Until.findObject(menuContainingElementSelector), WAIT_TIME_MS) in <lambda>()
82 return wait(Until.gone(menuContainingElementSelector), WAIT_TIME_MS) in waitUntilTvPipMenuElementWithDescriptionIsGone()
/frameworks/native/cmds/lshal/
DTimeout.h43 bool wait(std::chrono::time_point<C, D> end) { in wait() function
74 bool success = state.wait(now + delay); in timeout()
84 timeoutIPC(std::chrono::duration<R, P> wait, const sp<I> &interfaceObject, Function &&func, in timeoutIPC() argument
90 bool success = timeout(wait, [&ret, &boundFunc] { in timeoutIPC()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/utils/
DSplitScreenUtils.kt133 val snapshots = device.wait(Until.findObjects(overviewSnapshotSelector), TIMEOUT_MS) in <lambda>()
180 device.wait(Until.findObject(notificationScrollerSelector), TIMEOUT_MS) in <lambda>()
304 val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS) in <lambda>()
322 val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS) in <lambda>()
340 val dividerBar = device.wait(Until.findObject(dividerBarSelector), TIMEOUT_MS) in <lambda>()
356 device.wait( in <lambda>()
363 val copyBtn = device.wait(Until.findObject(By.text("Copy")), TIMEOUT_MS) in <lambda>()
369 device.wait( in <lambda>()
376 val pasteBtn = device.wait(Until.findObject(By.text("Paste")), TIMEOUT_MS) in <lambda>()
DNotificationListener.kt65 return wait { instance != null } in startNotificationListener()
74 return wait { instance == null } in stopNotificationListener()
97 return instance?.let { wait { it.notifications.values.none(predicate) } } in waitForNotificationToDisappear()
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DUiBot.java68 boolean gotIt = mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE)), mTimeout); in getNotification()
83 final UiObject2 notificationScroller = mDevice.wait(Until.findObject( in getNotification2()
134 boolean gotIt = mDevice.wait(Until.hasObject(By.text(text)), mTimeout); in getObject()
145 boolean gotIt = mDevice.wait(Until.hasObject(By.res(id)), mTimeout); in getObjectById()
213 boolean gotIt = mDevice.wait(Until.hasObject(By.text(share)), mTimeout); in chooseActivity()
/frameworks/base/core/java/android/os/
DConditionVariable.java97 this.wait(); in block()
128 this.wait(end-now); in block()
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DDispatchThread.java80 waitLock.wait(timeoutMs); in runJobSync()
113 mJobQueue.wait(); in run()
144 DispatchThread.this.wait(); in run()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DNotificationTest.java114 mUiDevice.wait(Until.findObject(By.text(actionLabelPattern)), TIMEOUT).click(); in testDirectReply()
116 assertThat(mUiDevice.wait(Until.findObject(By.pkg(getImePackage(mContext))), TIMEOUT)) in testDirectReply()
122 UiObject2 sendButton = mUiDevice.wait( in testDirectReply()
128 sendButton = mUiDevice.wait(Until.findObject(REPLY_SEND_BUTTON_SELECTOR), TIMEOUT); in testDirectReply()
132 assertThat(mUiDevice.wait(Until.gone(By.pkg(getImePackage(mContext))), TIMEOUT)).isTrue(); in testDirectReply()
/frameworks/native/libs/gui/tests/
DDisconnectWaiter.h42 mFrameCondition.wait(mMutex); in waitForFrame()
56 mDisconnectCondition.wait(mMutex); in onBuffersReleased()
/frameworks/native/libs/binder/trusty/
DRpcTransportTipcTrusty.cpp96 rc = ::wait(mSocket.fd.get(), &uevt, INFINITE_TIME); in interruptableWriteFully()
223 status_t ensureMessage(bool wait) { in ensureMessage() argument
232 rc = ::wait(mSocket.fd.get(), &uevt, wait ? INFINITE_TIME : 0); in ensureMessage()
234 if (rc == ERR_TIMED_OUT && !wait) { in ensureMessage()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/bubble/
DBaseBubbleScreen.kt75 device.wait( in <lambda>()
87 device.wait(Until.findObject(By.text("Add Bubble")), FIND_OBJECT_TIMEOUT) in FlickerTestData()
89 device.wait(Until.findObject(By.text("Cancel All Bubble")), FIND_OBJECT_TIMEOUT) in FlickerTestData()
/frameworks/base/libs/hostgraphics/ui/
DFence.h48 status_t wait(int timeout) { return OK; } in wait() function
59 switch (wait(0)) { in getStatus()
/frameworks/av/media/libstagefright/renderfright/threaded/
DRenderEngineThreaded.cpp80 mCondition.wait(lock, [this]() REQUIRES(mThreadMutex) { in threadMain()
98 resultFuture.wait(); in primeCache()
160 resultFuture.wait(); in genTextures()
175 resultFuture.wait(); in deleteTextures()
191 resultFuture.wait(); in bindExternalTextureImage()
224 resultFuture.wait(); in cacheExternalTextureBuffer()
239 resultFuture.wait(); in unbindExternalTextureBuffer()
269 resultFuture.wait(); in unbindFrameBuffer()
/frameworks/base/core/tests/coretests/src/android/os/
DHandlerThreadTest.java58 wait(); in testHandlerThread()
90 h1.wait(); in testHandlerThread()

12345678910>>...18