Home
last modified time | relevance | path

Searched refs:seconds (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/companion/core/src/android/companion/cts/core/
DInactiveSelfManagedAssociationsRemovalTest.kt31 import kotlin.time.Duration.Companion.seconds
57 setSystemPropertyDuration(1.seconds, SYS_PROP_DEBUG_REMOVAL_TIME_WINDOW) in test_inactive_associations_removal()
59 sleepFor(1.seconds) in test_inactive_associations_removal()
71 sleepFor(1.seconds) in test_inactive_associations_removal()
87 setSystemPropertyDuration(1.seconds, SYS_PROP_DEBUG_REMOVAL_TIME_WINDOW) in <lambda>()
89 sleepFor(1.seconds) in <lambda>()
100 sleepFor(1.seconds) in <lambda>()
118 setSystemPropertyDuration(10.seconds, SYS_PROP_DEBUG_REMOVAL_TIME_WINDOW) in test_active_associations_do_not_get_removed()
120 sleepFor(1.seconds) in test_active_associations_do_not_get_removed()
131 sleepFor(1.seconds) in test_active_associations_do_not_get_removed()
DBackupAndRestoreTest.kt34 import kotlin.time.Duration.Companion.seconds in <lambda>()
232 waitFor(timeout = 1.seconds, interval = 100.milliseconds) { in <lambda>()
241 waitFor(timeout = 1.seconds, interval = 100.milliseconds) { in <lambda>()
/cts/tests/tests/companion/uicommon/src/android/companion/cts/uicommon/
DCompanionDeviceManagerUi.kt29 import kotlin.time.Duration.Companion.seconds
42 fun waitUntilVisible(timeout: Duration = 3.seconds) = ui.wait( in waitUntilVisible()
61 while (ui.hasObject(DEVICE_LIST) && elapsedTime < 5.seconds.inWholeMilliseconds) { in waitUntilVisible()
63 sleep(0.2.seconds.inWholeMilliseconds) in waitUntilVisible()
81 ui.wait(Until.findObject(CONFIRMATION_UI), 2.seconds.inWholeMilliseconds)?.let { in waitUntilPositiveButtonIsEnabledAndClick()
87 && elapsedTime < 10.seconds.inWholeMilliseconds) { in waitUntilPositiveButtonIsEnabledAndClick()
102 ui.wait(Until.findObject(SCROLLABLE_PERMISSION_LIST), 2.seconds.inWholeMilliseconds)?.let { in waitUntilAppAppeared()
108 while (!positiveButton.isEnabled && elapsedTime < 5.seconds.inWholeMilliseconds) { in waitUntilAppAppeared()
113 sleep(0.2.seconds.inWholeMilliseconds) in waitUntilAppAppeared()
159 timeout: Duration = 3.seconds in wait()
[all …]
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt50 import kotlin.time.Duration.Companion.seconds
223 private val UNBIND_DELAY_DURATION = 5.seconds
231 waitFor(timeout = 1.seconds, interval = 100.milliseconds) { in assertApplicationBinds()
239 waitFor(timeout = 1.seconds.plus(UNBIND_DELAY_DURATION), interval = 100.milliseconds) { in assertApplicationUnbinds()
247 waitFor(timeout = 3.seconds.plus(UNBIND_DELAY_DURATION), interval = 100.milliseconds) { in assertApplicationRemainsBound()
272 waitFor(timeout = 1.seconds, interval = 100.milliseconds) { in assertValidCompanionDeviceServicesBind()
283 waitFor(timeout = 3.seconds.plus(UNBIND_DELAY_DURATION), interval = 100.milliseconds) { in assertValidCompanionDeviceServicesRemainBound()
294 waitFor(timeout = 1.seconds.plus(UNBIND_DELAY_DURATION), interval = 100.milliseconds) { in assertValidCompanionDeviceServicesUnbind()
305 waitFor(timeout = 3.seconds, interval = 100.milliseconds) { in assertValidCompanionDeviceServicesRemainUnbound()
346 sleepFor(1.seconds) in assertOnlyPrimaryCompanionDeviceServiceNotified()
[all …]
DCompanionActivity.kt27 import kotlin.time.Duration.Companion.seconds
64 waitForResult(timeout = 3.seconds, interval = 100.milliseconds) { in launchAndWait()
73 val result = waitForResult(timeout = 1.seconds, interval = 100.milliseconds) { in startIntentSender()
DInvocationTracker.kt21 import kotlin.time.Duration.Companion.seconds
30 timeout: Duration = 1.seconds, in assertInvokedByActions()
DCompanionService.kt31 import kotlin.time.Duration.Companion.seconds
173 fun waitForBind(timeout: Duration = 1.seconds) { in waitForBind()
185 fun waitAssociationToAppear(associationId: Int, timeout: Duration = 1.seconds) {
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DAssociationRevokedTest.kt27 import kotlin.time.Duration.Companion.seconds
75 sleepFor(2.seconds) in <lambda>()
113 sleepFor(2.seconds) in <lambda>()
129 sleepFor(2.seconds) in <lambda>()
DUiAutomationTestBase.kt63 import kotlin.time.Duration.Companion.seconds in <lambda>()
154 setSystemPropertyDuration(2.seconds, SYS_PROP_DEBUG_DISCOVERY_TIMEOUT) in <lambda>()
162 sleep(3.seconds.inWholeMilliseconds) in <lambda>()
198 setSystemPropertyDuration(2.seconds, SYS_PROP_DEBUG_DISCOVERY_TIMEOUT) in <lambda>()
200 callback.assertInvokedByActions(2.seconds) { in <lambda>()
383 val result = waitFor(timeout = 5.seconds, interval = 100.milliseconds) { in <lambda>()
393 val result = waitFor(timeout = 5.seconds, interval = 100.milliseconds) { in <lambda>()
DAssociationRevokedTestBase.kt30 import kotlin.time.Duration.Companion.seconds
69 confirmationUi.waitUntilVisible(10.seconds) in launchAppAndConfirmationUi()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DPoll.java245 long seconds = Duration.between(startTime, Instant.now()).toMillis() / 1000; in await()
248 + seconds + " seconds)", e); in await()
256 long seconds = Duration.between(startTime, Instant.now()).toMillis() / 1000; in await() local
259 + seconds + " seconds)"); in await()
261 long seconds = Duration.between(startTime, Instant.now()).toMillis() / 1000; in await()
264 + seconds + " seconds)", e); in await()
/cts/tests/tests/companion/noservices/src/android/companion/cts/noservices/
DNoCompanionDeviceServiceTest.kt31 import kotlin.time.Duration.Companion.seconds
65 waitFor(timeout = 1.seconds, interval = 100.milliseconds) { in test_noService()
/cts/tests/location/common/src/android/location/cts/common/
DTestGnssMeasurementListener.java173 public boolean await(int seconds) throws InterruptedException { in await() argument
174 return TestUtils.waitFor(mCountDownLatch, seconds); in await()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWallpaperWindowInputTests.kt40 import kotlin.time.Duration.Companion.seconds
101 val event = waitForMotionEventFromTestJournal(2.seconds) in checkWallpaperEvent()
/cts/apps/CameraITS/utils/
Dui_interaction_utils.py52 UI_OBJECT_WAIT_TIME_SECONDS = datetime.timedelta(seconds=3)
55 WAIT_INTERVAL_FIVE_SECONDS = datetime.timedelta(seconds=5)
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java133 private void waitForDevice(int seconds) throws Exception { in waitForDevice() argument
134 RunUtil.getDefault().sleep(seconds * 1000); in waitForDevice()
/cts/tests/tests/security/src/android/security/cts/
DAudioSecurityTest.java381 final int seconds = 1; in testVisualizerCapture_CVE_2017_0396() local
383 final int bufferFrames = seconds * sampleRate; in testVisualizerCapture_CVE_2017_0396()
/cts/hostsidetests/gwp_asan/common/proto/
Dtombstone.proto30 // Process uptime in seconds.
/cts/common/device-side/bedstead/btest/
Dbtest980 seconds = ms / 1000
984 if seconds < 60:
985 timestr = "{:.2f}s".format(seconds)
987 minutes = seconds / 60
989 if seconds > 30:
/cts/hostsidetests/neuralnetworks/app/jni/
Dtrigger_libneuralnetworks_atoms.cpp256 std::this_thread::sleep_for(std::chrono::seconds(1)); in Java_com_android_nn_stats_app_NnapiDeviceActivity_trigger_1libneuralnetworks_1atoms()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioTrackLatencyTest.java227 public void writeSeconds(double seconds) throws InterruptedException { in writeSeconds() argument
228 long msecEnd = System.currentTimeMillis() + (long)(seconds * 1000); in writeSeconds()
/cts/tests/mediapc/requirements/
Drequirements.txtpb1025 …specification: "MUST NOT drop more than 1 frame in 10 seconds (i.e less than 0.333 percent frame d…
1032 …specification: "MUST NOT drop more than 2 frames in 10 seconds (i.e less than 0.333 percent frame …
1039 …specification: "MUST NOT drop more than 1 frame in 10 seconds (i.e less than 0.167 percent frame d…
1046 …specification: "MUST NOT drop more than 1 frame in 10 seconds (i.e less than 0.167 percent frame d…
1064 …specification: "MUST NOT drop more than 1 frame in 10 seconds during a video resolution change in …
1071 …specification: "MUST NOT drop more than 2 frames in 10 seconds during a video resolution change in…
1078 …specification: "MUST NOT drop more than 1 frame in 10 seconds during a video resolution change in …
1085 …specification: "MUST NOT drop more than 1 frame in 10 seconds during a video resolution change in …
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp145 std::this_thread::sleep_for(std::chrono::seconds(1)); in init()
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp570 std::chrono::seconds(timeoutSec); in getCaptureSequenceLastFrameNumber()
590 std::chrono::seconds(timeoutSec); in waitForFrameNumber()
610 std::chrono::seconds(timeoutSec); in waitForFrameNumberStarted()
854 auto timeout = std::chrono::system_clock::now() + std::chrono::seconds(timeoutSec); in waitForNextBuffer()