Home
last modified time | relevance | path

Searched refs:SECONDS (Results 1 – 25 of 115) sorted by relevance

12345

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java88 mLatch.await(1, TimeUnit.SECONDS); in testAddHistory()
114 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory()
125 mLatch.await(1, TimeUnit.SECONDS); in testDeleteHistory()
146 mLatch.await(1, TimeUnit.SECONDS); in testGetHistoryList()
150 mLatch.await(1, TimeUnit.SECONDS); in testGetHistoryList()
154 mLatch.await(1, TimeUnit.SECONDS); in testGetHistoryList()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarHvacManagerTest.java171 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
172 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
173 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
174 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
185 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
198 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
211 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
DCarProjectionManagerTest.java88 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testShortPressListener()
100 assertTrue(mLongAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testLongPressListener()
113 assertTrue(mLongAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testMixedPressListener()
119 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testMixedPressListener()
DVmsPublisherClientPermissionTest.java107 sPublisherExpectedPermission.await(PUBLISHER_BIND_TIMEOUT_SECS, TimeUnit.SECONDS)); in testExpectedPermission()
114 sPublisherWrongPermission.await(PUBLISHER_BIND_TIMEOUT_SECS, TimeUnit.SECONDS)); in testWrongPermission()
121 sPublisherMissingPermission.await(PUBLISHER_BIND_TIMEOUT_SECS, TimeUnit.SECONDS)); in testMissingPermission()
DCarCabinManagerTest.java147 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
148 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
159 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
172 assertTrue(mAvailable.tryAcquire(2L, TimeUnit.SECONDS)); in testEvent()
DMockedVmsTestBase.java132 sPublisherIsReady.await(PUBLISHER_BIND_TIMEOUT_SECS, TimeUnit.SECONDS)); in getMockPublisherClient()
227 return queue.poll(2L, TimeUnit.SECONDS); in receiveWithTimeout()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DInputTaskSchedulerTest.java64 private static final long LISTENER_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(1);
149 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
156 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoStop()
171 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoFail()
180 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveNoFail()
201 long endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveUseLessSession()
208 endTimeMs = startTimeMs + TimeUnit.SECONDS.toMillis(1); in testAddSchedule_consecutiveUseLessSession()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/theme/
DThemeOverlayManagerTest.java106 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldSetEnabled()
118 mLatch.await(5, TimeUnit.SECONDS); in testApplyOverlays_shouldGetOverlayInfo()
148 mLatch.await(5, TimeUnit.SECONDS); in testDefaultDisabled_applyOverlays_shouldEnabled()
165 mLatch.await(5, TimeUnit.SECONDS); in testDefaultEnabled_applyOverlays_shouldDisabled()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java155 private static final int SECONDS = 1000; field in DhcpClient
156 private static final int FIRST_TIMEOUT_MS = 1 * SECONDS;
157 private static final int MAX_TIMEOUT_MS = 512 * SECONDS;
158 private static final int IPMEMORYSTORE_TIMEOUT_MS = 1 * SECONDS;
159 private static final int DHCP_INITREBOOT_TIMEOUT_MS = 5 * SECONDS;
166 private static final int DEFAULT_DHCP_RESTART_CONFIG_DELAY_MS = 1 * SECONDS;
167 private static final int MAX_DHCP_CLIENT_RESTART_CONFIG_DELAY_MS = 10 * SECONDS;
173 private static final int MAX_ARP_FIRST_PROBE_DELAY_MS = 1 * SECONDS;
180 private static final int MAX_ARP_PROBE_MIN_MS = 1 * SECONDS;
186 private static final int MAX_ARP_PROBE_MAX_MS = 2 * SECONDS;
[all …]
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java164 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_loadsAllAliases()
188 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_copesWithNoAliases()
211 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_filtersNonUserSelectableAliases()
248 KeyChainActivity.CertificateAdapter result = loader.get(5, TimeUnit.SECONDS); in testAliasLoader_filtersAliasesWithNonConformingParameters()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java82 latch.await(5, TimeUnit.SECONDS); in testCursorIsNotNull()
109 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectCookies()
136 latch.await(5, TimeUnit.SECONDS); in testCursorContainsCorrectColumns()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DArchivesProviderTest.java75 assertTrue(mExecutor.awaitTermination(3 /* timeout */, TimeUnit.SECONDS)); in tearDown()
127 latch.await(3, TimeUnit.SECONDS); in testOpen_Success()
180 latch.await(3, TimeUnit.SECONDS); in testOpen_Failure()
270 assertFalse(latch.await(1, TimeUnit.SECONDS)); in testNoNotificationAfterAllReleased()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/concurrent/
DExecutors.java74 return new UniqueExecutor(0, Integer.MAX_VALUE, 60, TimeUnit.SECONDS, in newCachedUniqueThreadPool()
80 return new UniqueExecutor(0, Integer.MAX_VALUE, 60, TimeUnit.SECONDS, in newCachedUniqueThreadPool()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsTaskSchedulerTest.java55 assertTrue(scheduler.latch.await(10, TimeUnit.SECONDS)); in testSimple()
96 assertTrue(scheduler.latch.await(10, TimeUnit.SECONDS)); in testAutoShutdown()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporter.java23 import static java.util.concurrent.TimeUnit.SECONDS;
167 SECONDS.toMillis(event.getStartDate().getSeconds())); in insertEvent()
169 SECONDS.toMillis(event.getEndDate().getSeconds())); in insertEvent()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DChannelRecordTest.java125 mLatestWatchEndTimeMs += TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog()
127 long durationMs = TimeUnit.SECONDS.toMillis(mRandom.nextInt(60) + 1); in addWatchLog()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DChildSessionParams.java172 return TimeUnit.SECONDS.toMillis((long) mHardLifetimeSec); in getHardLifetimeMsInternal()
177 return TimeUnit.SECONDS.toMillis((long) mSoftLifetimeSec); in getSoftLifetimeMsInternal()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Subscriber.java266 return future.get(REQUEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in getSelfProvisionResponse()
282 future.get(REQUEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in clickSubscribeLink()
315 String response = future.get(REQUEST_TIMEOUT_SECONDS, TimeUnit.SECONDS); in vvm3XmlRequest()
/packages/apps/Car/CompanionDeviceSupport/tests/unit/src/com/android/car/companiondevicesupport/feature/calendarsync/
DCalendarImporterTest.java29 import static java.util.concurrent.TimeUnit.SECONDS;
229 SECONDS.toMillis(event.getStartDate().getSeconds())) && in eventMatcher()
231 SECONDS.toMillis(event.getEndDate().getSeconds())) && in eventMatcher()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DAbstractSessionStateMachine.java79 static final long REKEY_DELETE_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(180L);
82 static final long RETRY_INTERVAL_MS = TimeUnit.SECONDS.toMillis(15L);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryService.java108 public static final long NO_CANCEL_DOWNLOAD_PERIOD_MILLIS = TimeUnit.SECONDS.toMillis(30);
129 TimeUnit.SECONDS /* unit for keepAliveTime */, in onCreate()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DStartManagedProfileTaskTest.java108 assertTrue(mStartInBackgroundLatch.await(1, TimeUnit.SECONDS)); in testSuccess()
124 assertTrue(mSuccessLatch.await(1, TimeUnit.SECONDS)); in testSuccess()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java112 private static final long REQUEST_CURRENT_POSITION_INTERVAL = TimeUnit.SECONDS.toMillis(1);
122 @VisibleForTesting static final long REQUEST_TIMEOUT_MS = TimeUnit.SECONDS.toMillis(3);
130 private static final long PROGRAM_START_TIME_THRESHOLD = TimeUnit.SECONDS.toMillis(3);
1181 delay = TimeUnit.SECONDS.toMillis(5); in schedulePrefetchPrograms()
1184 delay = TimeUnit.SECONDS.toMillis(30); in schedulePrefetchPrograms()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java88 public static final long DEFAULT_ACTIVITY_TIMEOUT = TimeUnit.SECONDS.toMillis(10);
142 assertTrue(pkg + " didn't restart", count.await(10, TimeUnit.SECONDS)); in clearPackageData()
336 latch.await(DEFAULT_BROADCAST_TIMEOUT_SECS, TimeUnit.SECONDS); in blockingGetIntent()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DConflictChecker.java63 private static final long CHECK_RETRY_PERIOD_MS = TimeUnit.SECONDS.toMillis(30);
74 private static final long MIN_WATCH_CONFLICT_CHECK_TIME_MS = TimeUnit.SECONDS.toMillis(30);

12345