Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java130 int timeout = getDiscoverableTimeout(); in setEnabled() local
131 mLocalAdapter.setDiscoverableTimeout(timeout); in setEnabled()
133 long endTimestamp = System.currentTimeMillis() + timeout * 1000L; in setEnabled()
136 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout); in setEnabled()
143 private void updateTimerDisplay(int timeout) { in updateTimerDisplay() argument
147 String textTimeout = formatTimeRemaining(timeout); in updateTimerDisplay()
153 private static String formatTimeRemaining(int timeout) { in formatTimeRemaining() argument
155 int min = timeout / 60; in formatTimeRemaining()
157 int sec = timeout - (min * 60); in formatTimeRemaining()
198 int timeout = SystemProperties.getInt(SYSTEM_PROPERTY_DISCOVERABLE_TIMEOUT, -1); in getDiscoverableTimeout() local
[all …]
DLocalBluetoothAdapter.java125 void setDiscoverableTimeout(int timeout) { in setDiscoverableTimeout() argument
126 mAdapter.setDiscoverableTimeout(timeout); in setDiscoverableTimeout()
/packages/apps/Stk/src/com/android/stk/
DStkApp.java48 int timeout = 0; in calculateDurationInMilis() local
52 timeout = 1000 * 60; in calculateDurationInMilis()
55 timeout = 1000 / 10; in calculateDurationInMilis()
59 timeout = 1000; in calculateDurationInMilis()
62 timeout *= duration.timeInterval; in calculateDurationInMilis()
64 return timeout; in calculateDurationInMilis()
DToneDialog.java88 int timeout = StkApp.calculateDurationInMilis(settings.duration); in onCreate() local
89 if (timeout == 0) { in onCreate()
90 timeout = StkApp.TONE_DFEAULT_TIMEOUT; in onCreate()
92 mToneStopper.sendEmptyMessageDelayed(MSG_ID_STOP_TONE, timeout); in onCreate()
94 mVibrator.vibrate(timeout); in onCreate()
/packages/apps/Nfc/jni/
Dcom_android_nfc_NativeNfcManager.cpp1623 static void setFelicaTimeout(jint timeout) { in setFelicaTimeout() argument
1627 if (timeout <= 255) { in setFelicaTimeout()
1628 phLibNfc_SetFelicaTimeout(timeout); in setFelicaTimeout()
1632 phLibNfc_SetHciTimeout(timeout); in setFelicaTimeout()
1659 static void setIsoDepTimeout(jint timeout) { in setIsoDepTimeout() argument
1660 if (timeout <= 4900) { in setIsoDepTimeout()
1661 int value = calcTimeout(timeout); in setIsoDepTimeout()
1677 phLibNfc_SetHciTimeout(timeout); in setIsoDepTimeout()
1681 static void setNfcATimeout(jint timeout) { in setNfcATimeout() argument
1682 if (timeout <= 4900) { in setNfcATimeout()
[all …]
/packages/apps/Settings/src/com/android/settings/
DSecuritySettings.java261 long timeout = Long.valueOf(values[i].toString()); in updateLockAfterPreferenceSummary() local
262 if (currentTimeout >= timeout) { in updateLockAfterPreferenceSummary()
275 long timeout = Long.valueOf(values[i].toString()); in disableUnusableTimeouts() local
276 if (timeout <= maxTimeout) { in disableUnusableTimeouts()
368 int timeout = Integer.parseInt((String) value); in onPreferenceChange() local
371 Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, timeout); in onPreferenceChange() local
DDisplaySettings.java118 long timeout = Long.parseLong(values[i].toString()); in updateTimeoutPreferenceDescription() local
119 if (currentTimeout >= timeout) { in updateTimeoutPreferenceDescription()
142 long timeout = Long.parseLong(values[i].toString()); in disableUnusableTimeouts() local
143 if (timeout <= maxTimeout) { in disableUnusableTimeouts()
DDreamSettings.java89 long timeout = Long.valueOf(values[i].toString()); in updateTimeoutPreferenceDescription() local
90 if (currentTimeout >= timeout) { in updateTimeoutPreferenceDescription()
/packages/apps/Nfc/src/com/android/nfc/nxp/
DNativeNfcManager.java203 private native boolean doSetTimeout(int tech, int timeout); in doSetTimeout() argument
205 public boolean setTimeout(int tech, int timeout) { in setTimeout() argument
206 return doSetTimeout(tech, timeout); in setTimeout()
DNativeNfcTag.java98 public synchronized void setTimeout(int timeout) { in setTimeout() argument
99 watchdogTimeout = timeout; in setTimeout()
/packages/experimental/UiAutomation/library/src/com/android/testing/uiautomation/
DUiTestHelper.java39 public boolean waitForWindow(String title, long timeout) { in waitForWindow() argument
42 while (SystemClock.uptimeMillis() - startMills < timeout) { in waitForWindow()
/packages/apps/Email/tests/src/com/android/email/
DTestUtils.java118 final long timeout = System.currentTimeMillis() + timeoutSeconds * 1000; in waitUntil() local
119 while (System.currentTimeMillis() < timeout) { in waitUntil()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSkbContainer.java624 long timeout; in run() local
626 timeout = LONG_PRESS_TIMEOUT1; in run()
628 timeout = LONG_PRESS_TIMEOUT2; in run()
630 timeout = LONG_PRESS_TIMEOUT3; in run()
632 postAtTime(this, SystemClock.uptimeMillis() + timeout); in run()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DProcessorBase.java72 public final Object get(long timeout, TimeUnit unit) { in get() argument
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmReceiver.java187 private void updateNotification(Context context, Alarm alarm, int timeout) { in updateNotification() argument
210 context.getString(R.string.alarm_alert_alert_silenced, timeout), in updateNotification()
/packages/apps/Nfc/src/com/android/nfc/
DDeviceHost.java190 public boolean setTimeout(int technology, int timeout); in setTimeout() argument
DNfcService.java1038 public int setTimeout(int tech, int timeout) throws RemoteException { in setTimeout() argument
1040 boolean success = mDeviceHost.setTimeout(tech, timeout); in setTimeout()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DFlickGestureDetector.java129 final long timeout = event.getEventTime() - mCachedHoverEnter.getEventTime(); in onHoverEvent() local
/packages/apps/Exchange/src/com/android/exchange/
DEasSyncService.java1245 private HttpClient getHttpClient(int timeout) { in getHttpClient() argument
1248 HttpConnectionParams.setSoTimeout(params, timeout); in getHttpClient()
1273 protected EasResponse executePostWithTimeout(HttpClient client, HttpPost method, int timeout) in executePostWithTimeout() argument
1275 return executePostWithTimeout(client, method, timeout, false); in executePostWithTimeout()
1287 protected EasResponse executePostWithTimeout(HttpClient client, HttpPost method, int timeout, in executePostWithTimeout() argument
1291 long alarmTime = timeout + WATCHDOG_TIMEOUT_ALLOWANCE; in executePostWithTimeout()
1312 public EasResponse sendHttpClientPost(String cmd, HttpEntity entity, int timeout) in sendHttpClientPost() argument
1314 HttpClient client = getHttpClient(timeout); in sendHttpClientPost()
1348 return executePostWithTimeout(client, method, timeout, isPingCommand); in sendHttpClientPost()
2307 int timeout = COMMAND_TIMEOUT; in sync() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DGalleryUtils.java164 public static void fakeBusy(JobContext jc, int timeout) { in fakeBusy() argument
171 cv.block(timeout); in fakeBusy()
/packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
DLocalDataTest.java174 public boolean isOnContentDirtyBeCalled(long timeout) in isOnContentDirtyBeCalled() argument
176 return mLatch.await(timeout, TimeUnit.MILLISECONDS); in isOnContentDirtyBeCalled()
/packages/apps/Phone/src/com/android/phone/
DInCallScreen.java4174 /* package */ void requestCloseOtaFailureNotice(long timeout) { in requestCloseOtaFailureNotice() argument
4175 if (DBG) log("requestCloseOtaFailureNotice() with timeout: " + timeout); in requestCloseOtaFailureNotice()
4176 mHandler.sendEmptyMessageDelayed(REQUEST_CLOSE_OTA_FAILURE_NOTICE, timeout); in requestCloseOtaFailureNotice()
4191 /* package */ void requestCloseSpcErrorNotice(long timeout) { in requestCloseSpcErrorNotice() argument
4192 if (DBG) log("requestCloseSpcErrorNotice() with timeout: " + timeout); in requestCloseSpcErrorNotice()
4193 mHandler.sendEmptyMessageDelayed(REQUEST_CLOSE_SPC_ERROR_NOTICE, timeout); in requestCloseSpcErrorNotice()
/packages/apps/Email/emailcommon/src/org/apache/commons/io/
DFileUtils.java1068 int timeout = 0; in waitFor() local
1073 if (timeout++ > seconds) { in waitFor()