Home
last modified time | relevance | path

Searched refs:timeoutSeconds (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java181 private int setDiscoverable(int timeoutSeconds) { in setDiscoverable() argument
183 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() argument
267 ? 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() argument
297 timeoutSeconds) in createRequestEnableBluetoothDialogWithTimeout()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DProvisioningResultListener.java82 public boolean await(long timeoutSeconds) throws InterruptedException { in await() argument
83 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await()
/packages/apps/Car/libs/connected-device-lib/tests/unit/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManagerTest.java202 int timeoutSeconds = 2; in connectToDevice_stopsAdvertisingAfterTimeout() local
203 mCarBlePeripheralManager.connectToDevice(UUID.randomUUID(), timeoutSeconds); in connectToDevice_stopsAdvertisingAfterTimeout() local
208 verify(mMockPeripheralManager, timeout(TimeUnit.SECONDS.toMillis(timeoutSeconds + 1))) in connectToDevice_stopsAdvertisingAfterTimeout()
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DCarBlePeripheralManager.java177 public void connectToDevice(@NonNull UUID deviceId, int timeoutSeconds) { in connectToDevice() argument
194 TimeUnit.SECONDS.toMillis(timeoutSeconds)); in connectToDevice()
196 + " for " + timeoutSeconds + " seconds."); in connectToDevice()