Searched refs:timeout (Results 176 - 200 of 307) sorted by relevance

1234567891011>>

/frameworks/rs/tests/lldb/
H A Drun_tests.py208 self.timeout = int(_choice(args.timeout, config.timeout))
519 state.timeout,
532 (util_constants.RC_TEST_TIMEOUT, ('timeout', log.error)),
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestUtils.java328 * @param timeout Timeout value for the wait.
331 public Image getImage(long timeout) throws InterruptedException { argument
332 Image image = mQueue.poll(timeout, TimeUnit.MILLISECONDS);
333 assertNotNull("Wait for an image timed out in " + timeout + "ms", image);
433 public CaptureResult getCaptureResult(long timeout) { argument
434 return getTotalCaptureResult(timeout);
437 public TotalCaptureResult getCaptureResult(long timeout, long timestamp) { argument
442 result = mQueue.poll(timeout, TimeUnit.MILLISECONDS);
445 "Wait for a capture result timed out in " + timeout + "ms");
458 public TotalCaptureResult getTotalCaptureResult(long timeout) { argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerFunctionalTest.java84 // it is expected to timeout as download never finishes
368 long timeout = 60 * 1000; // wait only 60 seconds before giving up
384 WAIT_FOR_DOWNLOAD_POLL_TIME, timeout);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
H A DCamera2CaptureRequestTest.java285 // make sure timeout is long enough for long exposure time
286 long timeout = WAIT_FOR_RESULT_TIMEOUT_MS + expTimes[i];
287 CaptureResult result = listener.getCaptureResult(timeout);
/frameworks/base/services/core/java/com/android/server/job/
H A DJobSchedulerShellCommand.java49 case "timeout":
50 return timeout(pw);
179 private int timeout(PrintWriter pw) throws Exception { method in class:JobSchedulerShellCommand
180 checkPermission("force timeout jobs");
304 checkPermission("force timeout jobs");
391 pw.println(" timeout [-u | --user USER_ID] [PACKAGE] [JOB_ID]");
392 pw.println(" Trigger immediate timeout of currently executing jobs, as if their.");
393 pw.println(" execution timeout had expired.");
/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/native/include/gui/
H A DSurface.h126 status_t setDequeueTimeout(nsecs_t timeout);
133 bool waitForNextFrame(uint64_t lastFrame, nsecs_t timeout);
/frameworks/native/libs/gui/include/gui/
H A DSurface.h126 status_t setDequeueTimeout(nsecs_t timeout);
133 bool waitForNextFrame(uint64_t lastFrame, nsecs_t timeout);
/frameworks/native/libs/gui/tests/
H A DMalicious.cpp86 status_t setDequeueTimeout(nsecs_t timeout) override {
87 return mProducer->setDequeueTimeout(timeout);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/p2p/
H A DWifiP2pNative.java388 * Initiate a P2P service discovery with a (optional) timeout.
390 * @param timeout Max time to be spent is peforming discovery.
395 public boolean p2pFind(int timeout) { argument
396 return mSupplicantP2pIfaceHal.find(timeout);
415 * timeout occurs, the Listen State operation must be skipped.
/frameworks/base/core/java/android/accounts/
H A DAccountManager.java2268 private Bundle internalGetResult(Long timeout, TimeUnit unit) argument
2274 if (timeout == null) {
2277 return get(timeout, unit);
2313 public Bundle getResult(long timeout, TimeUnit unit) argument
2315 return internalGetResult(timeout, unit);
2454 private T internalGetResult(Long timeout, TimeUnit unit) argument
2460 if (timeout == null) {
2463 return get(timeout, unit);
2499 public T getResult(long timeout, TimeUnit unit) argument
2501 return internalGetResult(timeout, uni
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp1631 struct timespec timeout; local
1638 timeout.tv_sec = ms / 1000;
1639 timeout.tv_nsec = (int) (ms % 1000) * 1000000;
1640 requested = &timeout;
1710 // FIXME starts the requested timeout and elapsed over from scratch
1957 struct timespec timeout; local
1958 timeout.tv_sec = WAIT_STREAM_END_TIMEOUT_SEC;
1959 timeout.tv_nsec = 0;
1961 status_t status = proxy->waitStreamEndDone(&timeout);
2077 struct timespec timeout; local
[all...]
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp245 if (ds.AddZipEntryFromFd(ZIP_ROOT_DIR + name, fd, /* timeout = */ 0ms) != OK) {
360 MYLOGE("Failed to stat %s or trace creation timeout\n", trace_path);
667 /* bugreport timeout factor adjustment */
677 /* timeout in ms to read a list of buffers */
733 std::chrono::milliseconds timeout = 0ms) {
762 auto end = start + timeout;
767 if (timeout.count() > 0) {
768 // lambda to recalculate the timeout.
782 entry_name.c_str(), strerror(errno), timeout.count());
890 // calculate timeout
1108 RunDumpsysTextByPriority(const std::string& title, int priority, std::chrono::milliseconds timeout, std::chrono::milliseconds service_timeout) argument
1145 RunDumpsysText(const std::string& title, int priority, std::chrono::milliseconds timeout, std::chrono::milliseconds service_timeout) argument
1155 RunDumpsysTextNormalPriority(const std::string& title, std::chrono::milliseconds timeout, std::chrono::milliseconds service_timeout) argument
1167 RunDumpsysProto(const std::string& title, int priority, std::chrono::milliseconds timeout, std::chrono::milliseconds service_timeout) argument
[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
671 * Retransmits packets using jittered exponential backoff with an optional timeout. Packet
673 * sets mTimeout to a positive value, then timeout() is called by an AlarmManager alarm mTimeout
679 * sent by the receive thread. They may also set mTimeout and implement timeout.
706 timeout();
722 protected void timeout() {} method in class:DhcpClient.PacketRetransmittingState
736 long timeout = jitterTimer(mTimer);
737 long alarmTime = now + timeout;
815 protected void timeout() { method in class:DhcpClient.DhcpRequestingState
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DAppIdleHistory.java130 // When should the bucket active state timeout, in elapsed timebase, if greater than
136 // under any active state timeout, so that it becomes applicable after the active state
137 // timeout expires.
217 * Mark the app as used and update the bucket if necessary. If there is a timeout specified
219 * bucket at least until the timeout is reached. This can be used to keep the app in an
226 * @param timeout set the timeout of the specified bucket, if non-zero. Can only be used
231 int newBucket, int usageReason, long elapsedRealtime, long timeout) {
232 // Set the timeout if applicable
233 if (timeout > elapsedRealtim
230 reportUsage(AppUsageHistory appUsageHistory, String packageName, int newBucket, int usageReason, long elapsedRealtime, long timeout) argument
281 reportUsage(String packageName, int userId, int newBucket, int usageReason, long nowElapsed, long timeout) argument
[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.java75 // registration timeout
357 int timeout, int status) {
361 + " timeout=" + timeout + " status=" + status);
368 timeout, status);
/frameworks/base/core/java/android/provider/
H A DFontsContract.java353 final AtomicBoolean timeout = new AtomicBoolean(false);
370 if (!timeout.get()) {
397 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/SystemUI/src/com/android/systemui/volume/
H A DCarVolumeDialogImpl.java224 final int timeout = computeTimeoutH();
226 .obtainMessage(H.DISMISS, Events.DISMISS_REASON_TIMEOUT, 0), timeout);
229 Log.d(TAG, "rescheduleTimeout " + timeout + " " + Debug.getCaller());
/frameworks/base/services/core/java/com/android/server/wm/
H A DInputMonitor.java223 * Returns a new timeout to continue waiting in nanoseconds, or 0 to abort dispatch.
270 // Notify the activity manager about the timeout and let it decide whether
278 // Wait a bit longer and timeout again later.
283 // Notify the activity manager about the timeout and let it decide whether
285 long timeout = ActivityManager.getService().inputDispatchingTimedOut(
287 if (timeout >= 0) {
289 // Wait a bit longer and timeout again later.
290 return timeout * 1000000L; // nanoseconds
/frameworks/support/compat/src/main/java/androidx/core/provider/
H A DFontsContractCompat.java232 final @Nullable Handler handler, boolean isBlockingFetch, int timeout,
243 if (isBlockingFetch && timeout == FontResourcesParserCompat.INFINITE_TIMEOUT_VALUE) {
269 return sBackgroundThread.postAndWait(fetcher, timeout).mTypeface;
230 getFontSync(final Context context, final FontRequest request, final @Nullable ResourcesCompat.FontCallback fontCallback, final @Nullable Handler handler, boolean isBlockingFetch, int timeout, final int style) argument
/frameworks/native/libs/gui/
H A DIGraphicBufferProducer.cpp423 virtual status_t setDequeueTimeout(nsecs_t timeout) { argument
426 data.writeInt64(timeout);
629 status_t setDequeueTimeout(nsecs_t timeout) override {
630 return mBase->setDequeueTimeout(timeout);
931 nsecs_t timeout = data.readInt64(); local
932 status_t result = setDequeueTimeout(timeout);
/frameworks/base/core/java/android/app/
H A DIApplicationThread.aidl120 void scheduleTranslucentConversionComplete(IBinder token, boolean timeout);

Completed in 585 milliseconds

1234567891011>>