/frameworks/native/libs/utils/ |
D | Looper.cpp | 157 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/ |
D | Looper.h | 174 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/ |
D | looper.cpp | 44 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/ |
D | android_os_MessageQueue.cpp | 40 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/ |
D | DownloadManagerBaseTest.java | 319 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/ |
D | looper.h | 187 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/ |
D | UiAutomatorBridge.java | 166 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/ |
D | WaitableQueue.java | 35 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/ |
D | DownloadManagerBaseTest.java | 674 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/ |
D | ArpPeer.java | 76 public byte[] doArp(int timeoutMillis) { in doArp() argument 79 long timeout = SystemClock.elapsedRealtime() + timeoutMillis; in doArp()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | UiTestAutomationBridge.java | 260 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/ |
D | FaceUnlock.java | 117 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/ |
D | EventHub.h | 199 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) = 0; 277 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize);
|
D | InputDispatcher.h | 298 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,
|
D | InputDispatcher.cpp | 232 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()
|
D | EventHub.cpp | 639 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()
|
D | InputReader.cpp | 264 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/ |
D | InputMonitor.java | 269 public boolean waitForInputDevicesReady(long timeoutMillis) { in waitForInputDevicesReady() argument 273 mInputDevicesReadyMonitor.wait(timeoutMillis); in waitForInputDevicesReady()
|
/frameworks/base/core/java/android/os/ |
D | MessageQueue.java | 53 private native void nativePollOnce(int ptr, int timeoutMillis); in nativePollOnce() argument
|
/frameworks/base/services/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1175 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/ |
D | InputManagerService.java | 164 int injectorPid, int injectorUid, int syncMode, int timeoutMillis, in nativeInjectInputEvent() argument
|
/frameworks/base/services/input/tests/ |
D | InputReader_test.cpp | 535 virtual size_t getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { in getEvents() argument
|