Lines Matching defs:timeout
53 // Use the same preference key for discoverable timeout as the old ListPreference.
135 int timeout = getDiscoverableTimeout();
136 long endTimestamp = System.currentTimeMillis() + timeout * 1000L;
139 mLocalAdapter.setScanMode(BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE, timeout);
142 Log.d(TAG, "setEnabled(): enabled = " + enable + "timeout = " + timeout);
144 if (timeout > 0) {
153 private void updateTimerDisplay(int timeout) {
157 String textTimeout = formatTimeRemaining(timeout);
163 private static String formatTimeRemaining(int timeout) {
165 int min = timeout / 60;
167 int sec = timeout - (min * 60);
208 int timeout = SystemProperties.getInt(SYSTEM_PROPERTY_DISCOVERABLE_TIMEOUT, -1);
209 if (timeout < 0) {
214 timeout = DISCOVERABLE_TIMEOUT_NEVER;
216 timeout = DISCOVERABLE_TIMEOUT_ONE_HOUR;
218 timeout = DISCOVERABLE_TIMEOUT_FIVE_MINUTES;
220 timeout = DISCOVERABLE_TIMEOUT_TWO_MINUTES;
223 mTimeoutSecs = timeout;
224 return timeout;
228 int timeout = getDiscoverableTimeout();
229 switch (timeout) {
279 // We're still in discoverable mode, but maybe there isn't a timeout.