Home
last modified time | relevance | path

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

12

/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 …]
DLog.cpp25 int timeoutMillis, const char* message) : in LogIfSlow() argument
26 mTag(tag), mPriority(priority), mTimeoutMillis(timeoutMillis), mMessage(message), in LogIfSlow()
/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);
DLog.h44 int timeoutMillis, const char* message);
64 #define ALOGD_IF_SLOW(timeoutMillis, message) \ argument
65 LogIfSlow _logIfSlow(LOG_TAG, ANDROID_LOG_DEBUG, timeoutMillis, message);
/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/java/android/os/
DSystemService.java107 public static void waitForState(String service, State state, long timeoutMillis) in waitForState() argument
109 final long endMillis = SystemClock.elapsedRealtime() + timeoutMillis; in waitForState()
119 + "; waited " + timeoutMillis + "ms for " + state); in waitForState()
123 sPropertyLock.wait(timeoutMillis); in waitForState()
DMessageQueue.java53 private native void nativePollOnce(int ptr, int timeoutMillis); in nativePollOnce() argument
/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/base/core/java/android/net/arp/
DArpPeer.java83 public byte[] doArp(int timeoutMillis) { in doArp() argument
86 long timeout = SystemClock.elapsedRealtime() + timeoutMillis; in doArp()
134 int timeoutMillis, int numArpPings, int minArpResponses) { in doArp() argument
154 if(peer.doArp(timeoutMillis) != null) responses++; in doArp()
/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.java675 protected void waitForDownloadOrTimeout(long id, long poll, long timeoutMillis) in waitForDownloadOrTimeout() argument
677 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeout()
689 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, in waitForDownloadsOrTimeout() argument
691 doWaitForDownloadsOrTimeout(new Query(), poll, timeoutMillis); in waitForDownloadsOrTimeout()
704 protected boolean waitForDownloadOrTimeoutNoThrow(long id, long poll, long timeoutMillis) { in waitForDownloadOrTimeoutNoThrow() argument
706 doWaitForDownloadsOrTimeout(new Query().setFilterById(id), poll, timeoutMillis); in waitForDownloadOrTimeoutNoThrow()
754 protected void doWaitForDownloadsOrTimeout(Query query, long poll, long timeoutMillis) in doWaitForDownloadsOrTimeout() argument
767 currentWaitTime = timeoutWait(currentWaitTime, poll, timeoutMillis, in doWaitForDownloadsOrTimeout()
/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/keyguard_obsolete/
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,
DEventHub.cpp639 size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { in getEvents() argument
887 int pollResult = epoll_wait(mEpollFd, mPendingEventItems, EPOLL_MAX_EVENTS, timeoutMillis); in getEvents()
DInputDispatcher.cpp242 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce() local
243 mLooper->pollOnce(timeoutMillis); in dispatchOnce()
2539 int32_t injectorPid, int32_t injectorUid, int32_t syncMode, int32_t timeoutMillis, in injectInputEvent() argument
2544 event->getType(), injectorPid, injectorUid, syncMode, timeoutMillis, policyFlags); in injectInputEvent()
2547 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis); in injectInputEvent()
DInputReader.cpp248 int32_t timeoutMillis; in loopOnce() local
255 timeoutMillis = -1; in loopOnce()
260 timeoutMillis = 0; in loopOnce()
264 timeoutMillis = toMillisecondTimeoutDelay(now, mNextTimeout); in loopOnce()
268 size_t count = mEventHub->getEvents(timeoutMillis, mEventBuffer, EVENT_BUFFER_SIZE); in loopOnce()
/frameworks/base/services/java/com/android/server/wm/
DInputMonitor.java316 public boolean waitForInputDevicesReady(long timeoutMillis) { in waitForInputDevicesReady() argument
320 mInputDevicesReadyMonitor.wait(timeoutMillis); in waitForInputDevicesReady()
/frameworks/base/services/java/com/android/server/power/
DPowerManagerService.java2045 public void setUserActivityTimeoutOverrideFromWindowManager(long timeoutMillis) { in setUserActivityTimeoutOverrideFromWindowManager() argument
2050 setUserActivityTimeoutOverrideFromWindowManagerInternal(timeoutMillis); in setUserActivityTimeoutOverrideFromWindowManager()
2056 private void setUserActivityTimeoutOverrideFromWindowManagerInternal(long timeoutMillis) { in setUserActivityTimeoutOverrideFromWindowManagerInternal() argument
2058 if (mUserActivityTimeoutOverrideFromWindowManager != timeoutMillis) { in setUserActivityTimeoutOverrideFromWindowManagerInternal()
2059 mUserActivityTimeoutOverrideFromWindowManager = timeoutMillis; in setUserActivityTimeoutOverrideFromWindowManagerInternal()
/frameworks/base/services/jni/
Dcom_android_server_input_InputManagerService.cpp1133 jint syncMode, jint timeoutMillis, jint policyFlags) { in nativeInjectInputEvent() argument
1145 & keyEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
1155 motionEvent, injectorPid, injectorUid, syncMode, timeoutMillis, in nativeInjectInputEvent()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java929 public void waitForCompletion(long timeoutMillis) { in waitForCompletion() argument
930 final long deadline = SystemClock.uptimeMillis() + timeoutMillis; in waitForCompletion()
932 long waitTime = timeoutMillis; in waitForCompletion()

12