Searched refs:timeoutSeconds (Results 1 – 4 of 4) sorted by relevance
181 private int setDiscoverable(int timeoutSeconds) { in setDiscoverable() argument183 timeoutSeconds)) { in setDiscoverable()188 long endTime = System.currentTimeMillis() + (long) timeoutSeconds * 1000; in setDiscoverable()190 if (timeoutSeconds > 0) { in setDiscoverable()194 int returnCode = timeoutSeconds; in setDiscoverable()265 private AlertDialog createDiscoverableConfirmDialog(int timeoutSeconds) { in createDiscoverableConfirmDialog() argument267 ? getString(R.string.bluetooth_ask_discovery, mAppLabel, timeoutSeconds) in createDiscoverableConfirmDialog()268 : getString(R.string.bluetooth_ask_discovery_no_name, timeoutSeconds); in createDiscoverableConfirmDialog()294 private AlertDialog createRequestEnableBluetoothDialogWithTimeout(int timeoutSeconds) { in createRequestEnableBluetoothDialogWithTimeout() argument297 timeoutSeconds) in createRequestEnableBluetoothDialogWithTimeout()[all …]
82 public boolean await(long timeoutSeconds) throws InterruptedException { in await() argument83 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await()
202 int timeoutSeconds = 2; in connectToDevice_stopsAdvertisingAfterTimeout() local203 mCarBlePeripheralManager.connectToDevice(UUID.randomUUID(), timeoutSeconds); in connectToDevice_stopsAdvertisingAfterTimeout() local208 verify(mMockPeripheralManager, timeout(TimeUnit.SECONDS.toMillis(timeoutSeconds + 1))) in connectToDevice_stopsAdvertisingAfterTimeout()
177 public void connectToDevice(@NonNull UUID deviceId, int timeoutSeconds) { in connectToDevice() argument194 TimeUnit.SECONDS.toMillis(timeoutSeconds)); in connectToDevice()196 + " for " + timeoutSeconds + " seconds."); in connectToDevice()