Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothRequestPermissionActivity.java233 private int setDiscoverable(int timeoutSeconds) { in setDiscoverable() argument
235 timeoutSeconds)) { in setDiscoverable()
240 long endTime = System.currentTimeMillis() + (long) timeoutSeconds * 1000; in setDiscoverable()
242 if (timeoutSeconds > 0) { in setDiscoverable()
246 int returnCode = timeoutSeconds; in setDiscoverable()
327 private AlertDialog createDiscoverableConfirmDialog(int timeoutSeconds) { in createDiscoverableConfirmDialog() argument
329 ? getString(R.string.bluetooth_ask_discovery, mAppLabel, timeoutSeconds) in createDiscoverableConfirmDialog()
330 : getString(R.string.bluetooth_ask_discovery_no_name, timeoutSeconds); in createDiscoverableConfirmDialog()
356 private AlertDialog createRequestEnableBluetoothDialogWithTimeout(int timeoutSeconds) { in createRequestEnableBluetoothDialogWithTimeout() argument
359 timeoutSeconds) in createRequestEnableBluetoothDialogWithTimeout()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/testing/
DTestUtils.java49 static void waitForCondition(Predicate<Void> predicate, int timeoutSeconds) in waitForCondition() argument
53 if (ChronoUnit.SECONDS.between(startTime, Instant.now()) > timeoutSeconds) { in waitForCondition()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DProvisioningResultListener.java84 public boolean await(long timeoutSeconds) throws InterruptedException { in await() argument
85 return mLatch.await(timeoutSeconds, TimeUnit.SECONDS); in await()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/exportimport/
DTestOutcomeReceiver.java91 public void verifyNoExceptionOrThrow(int timeoutSeconds) throws InterruptedException { in verifyNoExceptionOrThrow() argument
92 assertThat(mLatch.await(timeoutSeconds, TimeUnit.SECONDS)).isTrue(); in verifyNoExceptionOrThrow()
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestOutcomeReceiver.java90 public void verifyNoExceptionOrThrow(int timeoutSeconds) throws InterruptedException { in verifyNoExceptionOrThrow() argument
91 assertThat(mLatch.await(timeoutSeconds, TimeUnit.SECONDS)).isTrue(); in verifyNoExceptionOrThrow()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/
DCSNetworkActivityTest.kt75 private fun setMobileDataActivityTimeout(timeoutSeconds: Int) { in <lambda>()
77 context, Duration.ofSeconds(timeoutSeconds.toLong()) in <lambda>()
81 private fun setWifiDataActivityTimeout(timeoutSeconds: Int) { in <lambda>()
83 context, Duration.ofSeconds(timeoutSeconds.toLong()) in <lambda>()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/signals/
DPeriodicEncodingJobWorker.java295 int timeoutSeconds = mPerBuyerEncodingTimeoutMs / 1000;
297 .runEncodingPerBuyer(metadata, timeoutSeconds, logHelper, encodingJobRunStatsLogger)
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthConnectManagerTest.java389 public void verifyNoExceptionOrThrow(int timeoutSeconds) throws InterruptedException { in verifyNoExceptionOrThrow() argument
390 assertThat(mLatch.await(timeoutSeconds, TimeUnit.SECONDS)).isTrue(); in verifyNoExceptionOrThrow()