Searched refs:timeout (Results 1 - 22 of 22) sorted by relevance

/packages/apps/Stk/src/com/android/stk/
H A DStkApp.java35 // UI timeout, 30 seconds - used for display dialog and activities.
38 // Tone default timeout - 2 seconds
48 int timeout = 0;
52 timeout = 1000 * 60;
55 timeout = 1000 / 10;
59 timeout = 1000;
62 timeout *= duration.timeInterval;
64 return timeout;
H A DToneDialog.java59 // Message id to signal tone duration timeout.
88 int timeout = StkApp.calculateDurationInMilis(settings.duration);
89 if (timeout == 0) {
90 timeout = StkApp.TONE_DFEAULT_TIMEOUT;
92 mToneStopper.sendEmptyMessageDelayed(MSG_ID_STOP_TONE, timeout);
94 mVibrator.vibrate(timeout);
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDiscoverableEnabler.java48 // Use the same preference key for discoverable timeout as the old ListPreference.
130 int timeout = getDiscoverableTimeout();
131 mLocalAdapter.setDiscoverableTimeout(timeout);
133 long endTimestamp = System.currentTimeMillis() + timeout * 1000L;
136 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout);
143 private void updateTimerDisplay(int timeout) { argument
147 String textTimeout = formatTimeRemaining(timeout);
153 private static String formatTimeRemaining(int timeout) { argument
155 int min = timeout / 60;
157 int sec = timeout
[all...]
H A DLocalBluetoothAdapter.java125 void setDiscoverableTimeout(int timeout) { argument
126 mAdapter.setDiscoverableTimeout(timeout);
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DProcessorBase.java72 public final Object get(long timeout, TimeUnit unit) { argument
/packages/apps/Email/tests/src/com/android/email/
H A DTestUtils.java118 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000;
119 while (System.currentTimeMillis() < timeout) {
/packages/experimental/UiAutomation/library/src/com/android/testing/uiautomation/
H A DUiTestHelper.java39 public boolean waitForWindow(String title, long timeout) { argument
42 while (SystemClock.uptimeMillis() - startMills < timeout) {
/packages/apps/Settings/src/com/android/settings/
H A DSecuritySettings.java250 // This setting is a slave to display timeout when a device policy is enforced.
265 long timeout = Long.valueOf(values[i].toString());
266 if (currentTimeout >= timeout) {
279 long timeout = Long.valueOf(values[i].toString());
280 if (timeout <= maxTimeout) {
384 int timeout = Integer.parseInt((String) value);
387 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, timeout);
389 Log.e("SecuritySettings", "could not persist lockAfter timeout setting", e);
H A DDisplaySettings.java118 long timeout = Long.parseLong(values[i].toString());
119 if (currentTimeout >= timeout) {
142 long timeout = Long.parseLong(values[i].toString());
143 if (timeout <= maxTimeout) {
264 Log.e(TAG, "could not persist screen timeout setting", e);
/packages/apps/Nfc/jni/
H A Dcom_android_nfc_NativeNfcManager.cpp1546 static void setFelicaTimeout(jint timeout) { argument
1547 // The Felica timeout is configurable in the PN544 upto a maximum of 255 ms.
1548 // It can be set to 0 to disable the timeout altogether, in which case we
1550 if (timeout <= 255) {
1551 phLibNfc_SetFelicaTimeout(timeout);
1553 // Disable hw timeout, use sw watchdog for timeout
1555 phLibNfc_SetHciTimeout(timeout);
1568 // The Iso/Mifare Xchg timeout in PN544 is a non-linear function over X
1569 // spanning 0 - 4.9s: timeout i
1582 setIsoDepTimeout(jint timeout) argument
1604 setNfcATimeout(jint timeout) argument
1616 com_android_nfc_NfcManager_doSetTimeout( JNIEnv *e, jobject o, jint tech, jint timeout) argument
1652 int timeout = -1; local
[all...]
/packages/apps/Nfc/src/com/android/nfc/
H A DDeviceHost.java190 public boolean setTimeout(int technology, int timeout); argument
H A DNfcService.java1108 public int setTimeout(int tech, int timeout) throws RemoteException { argument
1110 boolean success = mDeviceHost.setTimeout(tech, timeout);
/packages/apps/Nfc/src/com/android/nfc/nxp/
H A DNativeNfcManager.java203 private native boolean doSetTimeout(int tech, int timeout); argument
205 public boolean setTimeout(int tech, int timeout) { argument
206 return doSetTimeout(tech, timeout);
H A DNativeNfcTag.java98 public synchronized void setTimeout(int timeout) { argument
99 watchdogTimeout = timeout;
100 doCheck = false; // Do it only after we have waited "timeout" ms again
119 // 3) We just set the timeout, wait for this timeout
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DSkbContainer.java172 * Used to timeout a press if user holds the key for a long time.
559 * When user presses a key for a long time, the timeout interval to
566 * {@link #LONG_PRESS_KEYNUM1} key events, this timeout interval will be
573 * {@link #LONG_PRESS_KEYNUM2} key events, this timeout interval will be
580 * {@link #LONG_PRESS_KEYNUM1} key events, timeout interval
587 * {@link #LONG_PRESS_KEYNUM2} key events, timeout interval
624 long timeout;
626 timeout = LONG_PRESS_TIMEOUT1;
628 timeout = LONG_PRESS_TIMEOUT2;
630 timeout
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
H A DFlickGestureDetector.java129 final long timeout = event.getEventTime() - mCachedHoverEnter.getEventTime();
133 // Consume all valid move events before timeout.
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmReceiver.java187 private void updateNotification(Context context, Alarm alarm, int timeout) { argument
210 context.getString(R.string.alarm_alert_alert_silenced, timeout),
/packages/apps/Exchange/src/com/android/exchange/
H A DEasSyncService.java128 // Command timeout is the the time allowed for reading data from an open connection before an
132 // Connection timeout is the time given to connect to the server before reporting an IOException
157 * We start with an 8 minute timeout, and increase/decrease by 3 minutes at a time. There's
158 * no point having a timeout shorter than 5 minutes, I think; at that point, we can just let
163 * If we ever have to drop the ping timeout, we'll never increase it again. There's no point
164 * going into hysteresis; the NAT timeout isn't going to change without a change in connection,
268 * socket timeout without having thrown an Exception
934 * TODO: shorter timeout for interactive lookup
1250 private HttpClient getHttpClient(int timeout) { argument
1253 HttpConnectionParams.setSoTimeout(params, timeout);
1278 executePostWithTimeout(HttpClient client, HttpPost method, int timeout) argument
1292 executePostWithTimeout(HttpClient client, HttpPost method, int timeout, boolean isPingCommand) argument
1317 sendHttpClientPost(String cmd, HttpEntity entity, int timeout) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DGalleryUtils.java163 // For debugging, it will block the caller for timeout millis.
164 public static void fakeBusy(JobContext jc, int timeout) { argument
171 cv.block(timeout);
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
H A DLocalDataTest.java174 public boolean isOnContentDirtyBeCalled(long timeout) argument
176 return mLatch.await(timeout, TimeUnit.MILLISECONDS);
/packages/apps/Phone/src/com/android/phone/
H A DInCallScreen.java4174 /* package */ void requestCloseOtaFailureNotice(long timeout) { argument
4175 if (DBG) log("requestCloseOtaFailureNotice() with timeout: " + timeout);
4176 mHandler.sendEmptyMessageDelayed(REQUEST_CLOSE_OTA_FAILURE_NOTICE, timeout);
4191 /* package */ void requestCloseSpcErrorNotice(long timeout) { argument
4192 if (DBG) log("requestCloseSpcErrorNotice() with timeout: " + timeout);
4193 mHandler.sendEmptyMessageDelayed(REQUEST_CLOSE_SPC_ERROR_NOTICE, timeout);
/packages/apps/Email/emailcommon/src/org/apache/commons/io/
H A DFileUtils.java1057 * Waits for NFS to propagate a file creation, imposing a timeout.
1068 int timeout = 0;
1073 if (timeout++ > seconds) {

Completed in 504 milliseconds