Searched refs:timeout (Results 151 - 175 of 260) sorted by relevance

1234567891011

/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java248 public static void awaitCountDown(CountDownLatch latch, long timeout, TimeUnit unit) argument
250 Assert.assertTrue("Waited too long for method call", latch.await(timeout, unit));
/frameworks/base/tests/net/java/com/android/server/connectivity/
H A DIpConnectivityMetricsTest.java21 import static org.mockito.Mockito.timeout;
416 verify(mMockService, timeout(timeoutMs).times(n)).logEvent(captor.capture());
/frameworks/native/include/gui/
H A DSurface.h124 status_t setDequeueTimeout(nsecs_t timeout);
131 bool waitForNextFrame(uint64_t lastFrame, nsecs_t timeout);
/frameworks/native/libs/gui/tests/
H A DMalicious.cpp84 status_t setDequeueTimeout(nsecs_t timeout) override {
85 return mProducer->setDequeueTimeout(timeout);
/frameworks/native/libs/vr/libdvr/include/dvr/
H A Ddvr_api.h138 int timeout,
148 int timeout,
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp314 // use a 16ms timeout instead. It doesn't need to be
318 // use a (long) timeout when waiting for h/w vsync, and
321 nsecs_t timeout = softwareSync ? ms2ns(16) : ms2ns(1000); local
322 if (mCondition.waitRelative(mLock, timeout) == TIMED_OUT) {
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
H A DBrowseFragmentTest.java22 import static org.mockito.Mockito.timeout;
162 verify(itemTask, timeout(5000).times(1)).run(any(Presenter.ViewHolder.class));
H A DBrowseSupportFragmentTest.java25 import static org.mockito.Mockito.timeout;
165 verify(itemTask, timeout(5000).times(1)).run(any(Presenter.ViewHolder.class));
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java2260 private Bundle internalGetResult(Long timeout, TimeUnit unit) argument
2266 if (timeout == null) {
2269 return get(timeout, unit);
2305 public Bundle getResult(long timeout, TimeUnit unit) argument
2307 return internalGetResult(timeout, unit);
2442 private T internalGetResult(Long timeout, TimeUnit unit) argument
2448 if (timeout == null) {
2451 return get(timeout, unit);
2487 public T getResult(long timeout, TimeUnit unit) argument
2489 return internalGetResult(timeout, uni
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp1620 struct timespec timeout; local
1627 timeout.tv_sec = ms / 1000;
1628 timeout.tv_nsec = (int) (ms % 1000) * 1000000;
1629 requested = &timeout;
1699 // FIXME starts the requested timeout and elapsed over from scratch
1946 struct timespec timeout; local
1947 timeout.tv_sec = WAIT_STREAM_END_TIMEOUT_SEC;
1948 timeout.tv_nsec = 0;
1950 status_t status = proxy->waitStreamEndDone(&timeout);
2059 struct timespec timeout; local
[all...]
/frameworks/av/services/camera/libcameraservice/utils/
H A DClientManager.h327 * Block until the given client is no longer in the active clients list, or the timeout
330 * Returns NO_ERROR if this succeeded, -ETIMEDOUT on a timeout, or a negative error code on
334 nsecs_t timeout) const;
622 nsecs_t timeout) const {
628 // Figure out what time in the future we should hit the timeout
629 nsecs_t failTime = systemTime(SYSTEM_TIME_MONOTONIC) + timeout;
640 ret = mRemovedCondition.waitRelative(mLock, timeout);
644 timeout = failTime - systemTime(SYSTEM_TIME_MONOTONIC);
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpClient.java76 * the server NAKs or a timeout if it doesn't.
102 // a blocking operation with a 30-second timeout. We pick 36 seconds so we can send packets at
669 * Retransmits packets using jittered exponential backoff with an optional timeout. Packet
671 * sets mTimeout to a positive value, then timeout() is called by an AlarmManager alarm mTimeout
677 * sent by the receive thread. They may also set mTimeout and implement timeout.
704 timeout();
720 protected void timeout() {} method in class:DhcpClient.PacketRetransmittingState
734 long timeout = jitterTimer(mTimer);
735 long alarmTime = now + timeout;
813 protected void timeout() { method in class:DhcpClient.DhcpRequestingState
[all...]
/frameworks/av/services/camera/libcameraservice/api1/client2/
H A DCaptureSequencer.cpp83 status_t CaptureSequencer::waitUntilIdle(nsecs_t timeout) { argument
91 res = mStateChanged.waitRelative(mStateMutex, timeout);
94 timeout -= (systemTime() - startTime);
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothGattServer.java77 // registration timeout
341 int timeout, int status) {
344 " timeout=" + timeout + " status=" + status);
350 timeout, status);
/frameworks/base/core/java/android/provider/
H A DFontsContract.java349 final AtomicBoolean timeout = new AtomicBoolean(false);
366 if (!timeout.get()) {
393 timeout.set(true);
/frameworks/base/core/java/android/widget/
H A DMediaController.java352 * automatically after 'timeout' milliseconds of inactivity.
353 * @param timeout The timeout in milliseconds. Use 0 to show
356 public void show(int timeout) { argument
374 if (timeout != 0 && !mAccessibilityManager.isTouchExplorationEnabled()) {
376 postDelayed(mFadeOut, timeout);
465 show(sDefaultTimeout); // start timeout
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDevice.java523 long timeout = MAX_UUID_DELAY_FOR_AUTO_CONNECT;
525 timeout = MAX_HOGP_DELAY_FOR_AUTO_CONNECT;
538 && ((mConnectAttempted + timeout) > SystemClock.elapsedRealtime())) {
/frameworks/base/services/core/java/com/android/server/wm/
H A DInputMonitor.java214 * Returns a new timeout to continue waiting in nanoseconds, or 0 to abort dispatch.
261 // Notify the activity manager about the timeout and let it decide whether
269 // Wait a bit longer and timeout again later.
274 // Notify the activity manager about the timeout and let it decide whether
276 long timeout = ActivityManager.getService().inputDispatchingTimedOut(
278 if (timeout >= 0) {
280 // Wait a bit longer and timeout again later.
281 return timeout * 1000000L; // nanoseconds
/frameworks/support/compat/java/android/support/v4/provider/
H A DFontsContractCompat.java202 final TextView targetView, @FetchStrategy int strategy, int timeout, final int style) {
212 if (isBlockingFetch && timeout == FontResourcesParserCompat.INFINITE_TIMEOUT_VALUE) {
230 return sBackgroundThread.postAndWait(fetcher, timeout);
201 getFontSync(final Context context, final FontRequest request, final TextView targetView, @FetchStrategy int strategy, int timeout, final int style) argument
/frameworks/support/compat/tests/java/android/support/v4/app/
H A DNotificationCompatTest.java87 long timeout = 23552;
89 .setTimeout(timeout)
92 assertEquals(timeout, NotificationCompat.getTimeout(n));
/frameworks/native/libs/gui/
H A DIGraphicBufferProducer.cpp408 virtual status_t setDequeueTimeout(nsecs_t timeout) { argument
411 data.writeInt64(timeout);
596 status_t setDequeueTimeout(nsecs_t timeout) override {
597 return mBase->setDequeueTimeout(timeout);
819 nsecs_t timeout = data.readInt64(); local
820 status_t result = setDequeueTimeout(timeout);
/frameworks/base/core/java/android/os/
H A DPowerManager.java320 * User activity flag: If already dimmed, extend the dim timeout
331 * reset the user activity timeout. This flag is useful for applying
353 * Go to sleep reason code: Going to sleep due to a screen timeout.
1315 * Acquires the wake lock with a timeout.
1318 * the wake lock was created. The lock will be released after the given timeout
1322 * @param timeout The timeout after which to release the wake lock, in milliseconds.
1324 public void acquire(long timeout) { argument
1327 mHandler.postDelayed(mReleaser, timeout);
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_producer.cpp578 status_t BufferHubQueueProducer::setDequeueTimeout(nsecs_t timeout) { argument
582 dequeue_timeout_ms_ = static_cast<int>(timeout / (1000 * 1000));
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestBuffer.cpp280 if (mCv.wait_for(lock, std::chrono::seconds(2)) == std::cv_status::timeout)
295 if (mCv.wait_for(lock, std::chrono::seconds(2)) == std::cv_status::timeout)
/frameworks/native/vulkan/libvulkan/
H A Ddriver_gen.cpp60 VKAPI_ATTR VkResult checkedAcquireNextImageKHR(VkDevice device, VkSwapchainKHR swapchain, uint64_t timeout, VkSemaphore semaphore, VkFence fence, uint32_t* pImageIndex) { argument
62 return AcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex);

Completed in 1835 milliseconds

1234567891011