/frameworks/support/v4/java/android/support/v4/content/ |
H A D | ModernAsyncTask.java | 328 * @param timeout Time to wait before cancelling the operation. 329 * @param unit The time unit for the timeout. 339 public final Result get(long timeout, TimeUnit unit) throws InterruptedException, argument 341 return mFuture.get(timeout, unit);
|
/frameworks/support/volley/tests/src/com/android/volley/ |
H A D | RequestQueueTest.java | 146 public void waitUntilExpectedDone(long timeout) argument 148 if (mSemaphore.tryAcquire(timeout, TimeUnit.MILLISECONDS) == false) {
|
/frameworks/base/tests/CoreTests/android/core/ |
H A D | SSLSocketTest.java | 80 int delay, int timeout) throws IOException { 87 if (timeout >= 0) { 89 socket.setSoTimeout(timeout * 1000); 182 int delay, int timeout) throws IOException { 184 delay, timeout); 230 * stays within a reasonable timeout. Expectation is that the connection 250 // Seems to have a veeeery long timeout. 253 // Google has a 60s timeout, so 90s of waiting should trigger it. 256 fail("Oops - timeout expected."); 275 fail("Oops - timeout expecte 78 fetch(SSLSocketFactory socketFactory, String host, int port, boolean secure, String path, int outerLoop, int innerLoop, int delay, int timeout) argument 180 fetch(String host, int port, boolean secure, String path, int outerLoop, int innerLoop, int delay, int timeout) argument [all...] |
H A D | TestWebServer.java | 47 /* timeout on client connections */ 48 int timeout = 0; field in class:TestWebServer 56 /* Default socket timeout value */ 70 /* timeout on client connections */ 103 * Initialize a new server with default port and timeout. 111 * Initialize a new server with default timeout. 120 * Initialize a new server with default port and timeout. 122 * @param timeout Indicates the period of time to wait until a socket is 126 public void initServer(int port, int timeout, boolean log) throws Exception { argument 128 mTimeout = timeout; [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | DevicePolicyManagerService.java | 313 out.startTag(null, "password-expiration-timeout"); 315 out.endTag(null, "password-expiration-timeout"); 393 } else if ("password-expiration-timeout".equals(tag)) { 1247 public void setPasswordExpirationTimeout(ComponentName who, long timeout, int userHandle) { argument 1253 if (timeout < 0) { 1259 final long expiration = timeout > 0L ? (timeout + System.currentTimeMillis()) : 0L; 1261 ap.passwordExpirationTimeout = timeout; 1262 if (timeout > 0L) { 1285 long timeout [all...] |
H A D | NetworkManagementService.java | 166 public final int timeout; field in class:NetworkManagementService.IdleTimerParams 170 IdleTimerParams(int timeout, String label) { argument 171 this.timeout = timeout; 1076 public void addIdleTimer(String iface, int timeout, String label) { argument 1090 mConnector.execute("idletimer", "add", iface, Integer.toString(timeout), label); 1094 mActiveIdleTimers.put(iface, new IdleTimerParams(timeout, label)); 1112 Integer.toString(params.timeout), params.label);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | Camera2Device.cpp | 232 status_t Camera2Device::waitUntilRequestReceived(int32_t requestId, nsecs_t timeout) { argument 234 return mRequestQueue.waitForDequeue(requestId, timeout); 479 status_t Camera2Device::waitForNextFrame(nsecs_t timeout) { argument 480 return mFrameQueue.waitForBuffer(timeout); 704 status_t Camera2Device::MetadataQueue::waitForBuffer(nsecs_t timeout) argument 709 res = notEmpty.waitRelative(mMutex,timeout); 716 nsecs_t timeout) { 722 res = mNewRequestId.waitRelative(mMutex, timeout); 725 timeout -= (systemTime() - startTime); 715 waitForDequeue(int32_t id, nsecs_t timeout) argument
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
H A D | KeyguardViewManager.java | 259 // Use the user activity timeout requested by the keyguard view, if any. 261 long timeout = mKeyguardView.getUserActivityTimeout(); 262 if (timeout >= 0) { 263 mWindowLayoutParams.userActivityTimeout = timeout; 268 // Otherwise, use the default timeout.
|
H A D | KeyguardViewMediator.java | 127 * How long to wait after the screen turns off due to timeout before 208 * it turned off due to timeout. see {@link #onScreenTurnedOff(int)} 295 * Tell view mediator that the keyguard view's desired user activity timeout 463 // Instead, the keyguard window has an explicit user activity timeout set on it. 600 // if the screen turned off because of timeout or the user hit the power button 620 long timeout; 624 timeout = Math.min(policyTimeout - displayTimeout, lockAfterTimeout); 626 timeout = lockAfterTimeout; 629 if (timeout <= 0) { 635 long when = SystemClock.elapsedRealtime() + timeout; [all...] |
/frameworks/base/services/java/com/android/server/power/ |
H A D | ShutdownThread.java | 373 private void shutdownRadios(int timeout) { argument 376 final long endTime = SystemClock.elapsedRealtime() + timeout; 475 t.join(timeout);
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | InputMonitor.java | 86 * Returns a new timeout to continue waiting in nanoseconds, or 0 to abort dispatch. 127 // Notify the activity manager about the timeout and let it decide whether 132 // Wait a bit longer and timeout again later. 139 // Notify the activity manager about the timeout and let it decide whether 141 long timeout = ActivityManagerNative.getDefault().inputDispatchingTimedOut( 143 if (timeout >= 0) { 145 // Wait a bit longer and timeout again later. 146 return timeout;
|
/frameworks/av/services/camera/libcameraservice/camera2/ |
H A D | CaptureSequencer.h | 59 status_t waitUntilIdle(nsecs_t timeout);
|
H A D | CaptureSequencer.cpp | 76 status_t CaptureSequencer::waitUntilIdle(nsecs_t timeout) { argument 84 res = mStateChanged.waitRelative(mStateMutex, timeout); 87 timeout -= (systemTime() - startTime);
|
/frameworks/base/core/java/android/net/dhcp/ |
H A D | DhcpPacket.java | 835 byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, 842 pkt.mLeaseTime = timeout; 855 byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, 862 pkt.mLeaseTime = timeout; 833 buildOfferPacket(int encap, int transactionId, boolean broadcast, InetAddress serverIpAddr, InetAddress clientIpAddr, byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, InetAddress gateway, List<InetAddress> dnsServers, InetAddress dhcpServerIdentifier, String domainName) argument 853 buildAckPacket(int encap, int transactionId, boolean broadcast, InetAddress serverIpAddr, InetAddress clientIpAddr, byte[] mac, Integer timeout, InetAddress netMask, InetAddress bcAddr, InetAddress gateway, List<InetAddress> dnsServers, InetAddress dhcpServerIdentifier, String domainName) argument
|
/frameworks/base/test-runner/src/android/test/ |
H A D | IsolatedContext.java | 182 public T getResult(long timeout, TimeUnit unit) argument
|
/frameworks/rs/ |
H A D | rsThreadIO.cpp | 100 void ThreadIO::setTimeoutCallback(void (*cb)(void *), void *dat, uint64_t timeout) { argument 101 //mToCore.setTimeoutCallback(cb, dat, timeout); 141 // exception or timeout occurred.
|
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsThreadIO.cpp | 100 void ThreadIO::setTimeoutCallback(void (*cb)(void *), void *dat, uint64_t timeout) { argument 101 //mToCore.setTimeoutCallback(cb, dat, timeout); 141 // exception or timeout occurred.
|
/frameworks/base/core/java/android/net/http/ |
H A D | AndroidHttpClientConnection.java | 194 public void setSocketTimeout(int timeout) { argument 198 this.socket.setSoTimeout(timeout); 439 * that by attempting a read with a very small timeout. Thus this
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerFunctionalTest.java | 356 long timeout = 60 * 1000; // wait only 60 seconds before giving up 372 WAIT_FOR_DOWNLOAD_POLL_TIME, timeout);
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
H A D | LoadTestsAutoTest.java | 218 private void runTestAndWaitUntilDone(TestShellActivity activity, String url, int timeout) { argument 258 intent.putExtra(TestShellActivity.TIMEOUT_IN_MILLIS, timeout);
|
H A D | TestShellActivity.java | 95 throw new RuntimeException("WebView dump timeout, is it pegged?"); 125 private void setDumpTimeout(long timeout) { argument 126 Log.v(LOGTAG, "setting dump timeout at " + timeout); 128 mHandler.sendMessageDelayed(msg, timeout); 215 // Create a timeout timer 304 public void dump(boolean timeout, String webkitData) { argument 322 if (timeout) { 710 Log.v(LOGTAG, "JavaScript timeout"); 768 // "notifyDone" will never come out so it's just wasting time till timeout kick [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 273 // use a 16ms timeout instead. It doesn't need to be 277 // use a (long) timeout when waiting for h/w vsync, and 280 nsecs_t timeout = softwareSync ? ms2ns(16) : ms2ns(1000); local 281 if (mCondition.waitRelative(mLock, timeout) == TIMED_OUT) {
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard_obsolete/ |
H A D | KeyguardViewMediator.java | 125 * How long to wait after the screen turns off due to timeout before 209 * it turned off due to timeout. see {@link #onScreenTurnedOff(int)} 455 // if the screen turned off because of timeout or the user hit the power button 475 long timeout; 479 timeout = Math.min(policyTimeout - displayTimeout, lockAfterTimeout); 481 timeout = lockAfterTimeout; 484 if (timeout <= 0) { 490 long when = SystemClock.elapsedRealtime() + timeout; 561 // to unblock us after a timeout so we don't risk blocking too long 644 * Used by PhoneWindowManager to enable the keyguard due to a user activity timeout [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | MediaController.java | 326 * automatically after 'timeout' milliseconds of inactivity. 327 * @param timeout The timeout in milliseconds. Use 0 to show 330 public void show(int timeout) { argument 349 if (timeout != 0) { 351 mHandler.sendMessageDelayed(msg, timeout);
|
/frameworks/native/libs/utils/ |
H A D | Threads.cpp | 510 DWORD timeout = INFINITE; 515 timeout = reltime/1000000; 520 SignalObjectAndWait(hMutex, condState->sema, timeout, FALSE);
|