Home
last modified time | relevance | path

Searched refs:timeoutMillis (Results 1 – 22 of 22) sorted by relevance

/frameworks/native/libs/utils/
DLooper.cpp157 int Looper::pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in pollOnce() argument
189 result = pollInner(timeoutMillis); in pollOnce()
193 int Looper::pollInner(int timeoutMillis) { in pollInner() argument
195 ALOGD("%p ~ pollOnce - waiting: timeoutMillis=%d", this, timeoutMillis); in pollInner()
199 if (timeoutMillis != 0 && mNextMessageUptime != LLONG_MAX) { in pollInner()
203 && (timeoutMillis < 0 || messageTimeoutMillis < timeoutMillis)) { in pollInner()
204 timeoutMillis = messageTimeoutMillis; in pollInner()
208 this, mNextMessageUptime - now, timeoutMillis); in pollInner()
218 int eventCount = epoll_wait(mEpollFd, eventItems, EPOLL_MAX_EVENTS, timeoutMillis); in pollInner()
334 int Looper::pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in pollAll() argument
[all …]
/frameworks/native/include/utils/
DLooper.h174 int pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData);
175 inline int pollOnce(int timeoutMillis) { in pollOnce() argument
176 return pollOnce(timeoutMillis, NULL, NULL, NULL); in pollOnce()
184 int pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData);
185 inline int pollAll(int timeoutMillis) { in pollAll() argument
186 return pollAll(timeoutMillis, NULL, NULL, NULL); in pollAll()
367 int pollInner(int timeoutMillis);
/frameworks/base/native/android/
Dlooper.cpp44 int ALooper_pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in ALooper_pollOnce() argument
52 return looper->pollOnce(timeoutMillis, outFd, outEvents, outData); in ALooper_pollOnce()
55 int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData) { in ALooper_pollAll() argument
63 return looper->pollAll(timeoutMillis, outFd, outEvents, outData); in ALooper_pollAll()
/frameworks/base/core/jni/
Dandroid_os_MessageQueue.cpp40 void pollOnce(JNIEnv* env, int timeoutMillis);
95 void NativeMessageQueue::pollOnce(JNIEnv* env, int timeoutMillis) { in pollOnce() argument
97 mLooper->pollOnce(timeoutMillis); in pollOnce()
155 jint ptr, jint timeoutMillis) { in android_os_MessageQueue_nativePollOnce() argument
157 nativeMessageQueue->pollOnce(env, timeoutMillis); in android_os_MessageQueue_nativePollOnce()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java319 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis) in waitForDownloadOrTimeout() argument
321 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeout()
333 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, in waitForDownloadsOrTimeout() argument
335 doWaitForDownloadsOrTimeout(new Query(), poll, timeoutMillis); in waitForDownloadsOrTimeout()
348 private boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) { in waitForDownloadOrTimeoutNoThrow() argument
350 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeoutNoThrow()
398 private void doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) in doWaitForDownloadsOrTimeout() argument
411 currentWaitTime = timeoutWait(currentWaitTime, poll, timeoutMillis, in doWaitForDownloadsOrTimeout()
/frameworks/native/include/android/
Dlooper.h187 int ALooper_pollOnce(int timeoutMillis, int* outFd, int* outEvents, void** outData);
194 int ALooper_pollAll(int timeoutMillis, int* outFd, int* outEvents, void** outData);
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
DUiAutomatorBridge.java166 Predicate<AccessibilityEvent> predicate, long timeoutMillis) in executeCommandAndWaitForAccessibilityEvent() argument
177 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in executeCommandAndWaitForAccessibilityEvent()
182 + timeoutMillis + " ms."); in executeCommandAndWaitForAccessibilityEvent()
/frameworks/support/volley/tests/src/com/android/volley/mock/
DWaitableQueue.java35 public void waitUntilEmpty(long timeoutMillis) in waitUntilEmpty() argument
38 if (!mStopEvent.tryAcquire(timeoutMillis, TimeUnit.MILLISECONDS)) { in waitUntilEmpty()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java674 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis) in waitForDownloadOrTimeout() argument
676 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeout()
688 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, in waitForDownloadsOrTimeout() argument
690 doWaitForDownloadsOrTimeout(new Query(), poll, timeoutMillis); in waitForDownloadsOrTimeout()
703 protected boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) { in waitForDownloadOrTimeoutNoThrow() argument
705 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeoutNoThrow()
753 protected void doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) in doWaitForDownloadsOrTimeout() argument
766 currentWaitTime = timeoutWait(currentWaitTime, poll, timeoutMillis, in doWaitForDownloadsOrTimeout()
/frameworks/base/core/java/android/net/arp/
DArpPeer.java76 public byte[] doArp(int timeoutMillis) { in doArp() argument
79 long timeout = SystemClock.elapsedRealtime() + timeoutMillis; in doArp()
/frameworks/base/core/java/android/accessibilityservice/
DUiTestAutomationBridge.java260 Predicate<AccessibilityEvent> predicate, long timeoutMillis) in executeCommandAndWaitForAccessibilityEvent() argument
289 final long remainingTimeMillis = timeoutMillis - elapsedTimeMillis; in executeCommandAndWaitForAccessibilityEvent()
295 + timeoutMillis + " ms."); in executeCommandAndWaitForAccessibilityEvent()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DFaceUnlock.java117 public void show(long timeoutMillis) { in show() argument
127 if (timeoutMillis > 0) { in show()
128 mHandler.sendEmptyMessageDelayed(MSG_HIDE_FACE_UNLOCK_VIEW, timeoutMillis); in show()
/frameworks/base/services/input/
DEventHub.h199 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) = 0;
277 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize);
DInputDispatcher.h298 int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis,
382 int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis,
DInputDispatcher.cpp232 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce() local
233 mLooper->pollOnce(timeoutMillis); in dispatchOnce()
2485 int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, in injectInputEvent() argument
2490 event->getType(), injectorPid, injectorUid, syncMode, timeoutMillis, policyFlags); in injectInputEvent()
2493 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis); in injectInputEvent()
DEventHub.cpp639 size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { in getEvents() argument
853 int pollResult = epoll_wait(mEpollFd, mPendingEventItems, EPOLL_MAX_EVENTS, timeoutMillis); in getEvents()
DInputReader.cpp264 int32_t timeoutMillis; in loopOnce() local
271 timeoutMillis = -1; in loopOnce()
276 timeoutMillis = 0; in loopOnce()
280 timeoutMillis = toMillisecondTimeoutDelay(now, mNextTimeout); in loopOnce()
284 size_t count = mEventHub->getEvents(timeoutMillis, mEventBuffer, EVENT_BUFFER_SIZE); in loopOnce()
/frameworks/base/services/java/com/android/server/wm/
DInputMonitor.java269 public boolean waitForInputDevicesReady(long timeoutMillis) { in waitForInputDevicesReady() argument
273 mInputDevicesReadyMonitor.wait(timeoutMillis); in waitForInputDevicesReady()
/frameworks/base/core/java/android/os/
DMessageQueue.java53 private native void nativePollOnce(int ptr, int timeoutMillis); in nativePollOnce() argument
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp1175 jint syncMode, jint timeoutMillis, jint policyFlags) { in nativeInjectInputEvent() argument
1187 & keyEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
1197 motionEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
/frameworks/base/services/java/com/android/server/input/
DInputManagerService.java164 int injectorPid, int injectorUid, int syncMode, int timeoutMillis, in nativeInjectInputEvent() argument
/frameworks/base/services/input/tests/
DInputReader_test.cpp535 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { in getEvents() argument