Searched defs:timeoutMillis (Results 1 - 25 of 25) sorted by relevance

/frameworks/volley/tests/src/com/android/volley/mock/
H A DWaitableQueue.java35 public void waitUntilEmpty(long timeoutMillis) argument
38 if (!mStopEvent.tryAcquire(timeoutMillis, TimeUnit.MILLISECONDS)) {
/frameworks/base/core/java/android/os/
H A DPowerManagerInternal.java106 * @param timeoutMillis The overridden timeout, or -1 to disable the override.
108 public abstract void setUserActivityTimeoutOverrideFromWindowManager(long timeoutMillis); argument
H A DSystemService.java105 public static void waitForState(String service, State state, long timeoutMillis) argument
107 final long endMillis = SystemClock.elapsedRealtime() + timeoutMillis;
117 + "; waited " + timeoutMillis + "ms for " + state);
121 sPropertyLock.wait(timeoutMillis);
H A DMessageQueue.java53 private native static void nativePollOnce(long ptr, int timeoutMillis); argument
/frameworks/base/native/android/
H A Dlooper.cpp52 int ALooper_pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) { argument
60 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData);
63 int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) { argument
71 return looper->pollAll(timeoutMillis, outFd, outEvents, outData);
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiAutomatorBridge.java103 AccessibilityEventFilter filter, long timeoutMillis) throws TimeoutException {
105 filter, timeoutMillis);
102 executeCommandAndWaitForAccessibilityEvent(Runnable command, AccessibilityEventFilter filter, long timeoutMillis) argument
/frameworks/base/core/jni/
H A Dandroid_os_MessageQueue.cpp40 void pollOnce(JNIEnv* env, int timeoutMillis);
95 void NativeMessageQueue::pollOnce(JNIEnv* env, int timeoutMillis) { argument
97 mLooper->pollOnce(timeoutMillis);
134 jlong ptr, jint timeoutMillis) {
136 nativeMessageQueue->pollOnce(env, timeoutMillis);
133 android_os_MessageQueue_nativePollOnce(JNIEnv* env, jclass clazz, jlong ptr, jint timeoutMillis) argument
/frameworks/base/core/java/android/bluetooth/le/
H A DAdvertiseSettings.java214 * @param timeoutMillis Advertising time limit. May not exceed 180000 milliseconds.
218 public Builder setTimeout(int timeoutMillis) { argument
219 if (timeoutMillis < 0 || timeoutMillis > LIMITED_ADVERTISING_MAX_MILLIS) {
220 throw new IllegalArgumentException("timeoutMillis invalid (must be 0-"
223 mTimeoutMillis = timeoutMillis;
/frameworks/base/core/java/android/content/
H A DContentProviderClient.java82 public void setDetectNotResponding(long timeoutMillis) { argument
84 mAnrTimeout = timeoutMillis;
86 if (timeoutMillis > 0) {
/frameworks/base/core/tests/coretests/src/android/hardware/display/
H A DVirtualDisplayTest.java386 public boolean waitForColor(int color, long timeoutMillis) { argument
387 long timeoutTime = SystemClock.uptimeMillis() + timeoutMillis;
/frameworks/base/libs/hwui/renderthread/
H A DRenderThread.cpp258 int timeoutMillis = -1; local
260 int result = mLooper->pollOnce(timeoutMillis);
271 timeoutMillis = -1;
274 timeoutMillis = nanoseconds_to_milliseconds(timeoutNanos);
275 if (timeoutMillis < 0) {
276 timeoutMillis = 0;
/frameworks/base/services/core/java/com/android/server/wm/
H A DInputMonitor.java342 public boolean waitForInputDevicesReady(long timeoutMillis) { argument
346 mInputDevicesReadyMonitor.wait(timeoutMillis);
/frameworks/base/core/java/android/app/
H A DUiAutomation.java497 * @param timeoutMillis The wait timeout in milliseconds.
502 AccessibilityEventFilter filter, long timeoutMillis) throws TimeoutException {
540 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis;
543 + timeoutMillis + " ms.");
501 executeAndWaitForEvent(Runnable command, AccessibilityEventFilter filter, long timeoutMillis) argument
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
H A DDownloadManagerBaseTest.java356 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete
358 protected boolean waitForDownload(long id, long timeoutMillis) argument
360 return mListener.waitForDownloadToFinish(id, timeoutMillis);
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
H A DTestDocumentsProvider.java371 final CancellationSignal signal, long timeoutMillis) {
384 Thread.sleep(timeoutMillis);
370 waitForCancelOrTimeout( final CancellationSignal signal, long timeoutMillis) argument
/frameworks/base/services/core/java/com/android/server/
H A DWatchdog.java275 public void addThread(Handler thread, long timeoutMillis) { argument
281 mHandlerCheckers.add(new HandlerChecker(thread, name, timeoutMillis));
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java673 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete
675 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis) argument
677 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis);
687 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete
689 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, argument
691 doWaitForDownloadsOrTimeout(new Query(), poll, timeoutMillis);
701 * @param timeoutMillis The max time (in ms) to wait for the download(s) to complete
704 protected boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) { argument
706 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis);
752 * @param timeoutMillis Th
754 doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputManagerService.cpp1176 jint syncMode, jint timeoutMillis, jint policyFlags) {
1188 & keyEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
1198 motionEvent, displayId, injectorPid, injectorUid, syncMode, timeoutMillis,
1174 nativeInjectInputEvent(JNIEnv* env, jclass clazz, jlong ptr, jobject inputEventObj, jint displayId, jint injectorPid, jint injectorUid, jint syncMode, jint timeoutMillis, jint policyFlags) argument
/frameworks/native/services/inputflinger/
H A DEventHub.cpp700 size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { argument
975 int pollResult = epoll_wait(mEpollFd, mPendingEventItems, EPOLL_MAX_EVENTS, timeoutMillis);
H A DInputDispatcher.cpp247 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); local
248 mLooper->pollOnce(timeoutMillis);
2543 int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis,
2547 "syncMode=%d, timeoutMillis=%d, policyFlags=0x%08x",
2548 event->getType(), injectorPid, injectorUid, syncMode, timeoutMillis, policyFlags);
2551 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis);
2542 injectInputEvent(const InputEvent* event, int32_t displayId, int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, uint32_t policyFlags) argument
H A DInputReader.cpp259 int32_t timeoutMillis; local
266 timeoutMillis = -1;
271 timeoutMillis = 0;
275 timeoutMillis = toMillisecondTimeoutDelay(now, mNextTimeout);
279 size_t count = mEventHub->getEvents(timeoutMillis, mEventBuffer, EVENT_BUFFER_SIZE);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java942 public void waitForCompletion(long timeoutMillis) { argument
943 final long deadline = SystemClock.uptimeMillis() + timeoutMillis;
945 long waitTime = timeoutMillis;
/frameworks/base/services/core/java/com/android/server/input/
H A DInputManagerService.java178 int injectorPid, int injectorUid, int syncMode, int timeoutMillis,
177 nativeInjectInputEvent(long ptr, InputEvent event, int displayId, int injectorPid, int injectorUid, int syncMode, int timeoutMillis, int policyFlags) argument
/frameworks/base/services/core/java/com/android/server/power/
H A DPowerManagerService.java2300 private void setUserActivityTimeoutOverrideFromWindowManagerInternal(long timeoutMillis) { argument
2302 if (mUserActivityTimeoutOverrideFromWindowManager != timeoutMillis) {
2303 mUserActivityTimeoutOverrideFromWindowManager = timeoutMillis;
3260 public void setUserActivityTimeoutOverrideFromWindowManager(long timeoutMillis) { argument
3261 setUserActivityTimeoutOverrideFromWindowManagerInternal(timeoutMillis);
/frameworks/native/services/inputflinger/tests/
H A DInputReader_test.cpp565 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { argument

Completed in 827 milliseconds