Home
last modified time | relevance | path

Searched refs:getTime (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java75 final long currentDate = new GregorianCalendar().getTime().getTime(); in setup()
105 final long yearAgoDate = newCalendar.getTime().getTime(); in testAccessDate()
112 final long yearHenceDate = newCalendar.getTime().getTime(); in testAccessDate()
127 final long minDate = minCalendar.getTime().getTime(); in testAccessMinMaxDate()
128 final long maxDate = maxCalendar.getTime().getTime(); in testAccessMinMaxDate()
145 final long minDate = minCalendar.getTime().getTime(); in testMinMaxRangeRestrictionsHolo()
146 final long maxDate = maxCalendar.getTime().getTime(); in testMinMaxRangeRestrictionsHolo()
172 final long minDate = minCalendar.getTime().getTime(); in testMinMaxRangeClampingMaterial()
173 final long maxDate = maxCalendar.getTime().getTime(); in testMinMaxRangeClampingMaterial()
222 () -> calendarView.setDate(calendar.getTime().getTime(), false, true)); in verifyOnDateChangeListener()
[all …]
DDatePickerTest.java205 final long minDate = minCalendar.getTime().getTime(); in verifyMinMaxDate()
206 final long maxDate = maxCalendar.getTime().getTime(); in verifyMinMaxDate()
/cts/tests/tests/os/src/android/os/health/cts/
DTimerStatTest.java38 Assert.assertEquals(0, timer.getTime()); in testEmptyConstructor()
53 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testSetCount()
68 Assert.assertEquals(5000, timer.getTime()); in testSetTime()
79 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testParceling()
90 Assert.assertEquals(Long.MAX_VALUE, readback.getTime()); in testParceling()
DHealthStatsTest.java89 Assert.assertEquals(Long.MAX_VALUE, readback.getTimer(TIMER_1).getTime()); in checkHealthStats()
128 Assert.assertEquals(400, timers.get("b").getTime()); in checkHealthStats()
/cts/hostsidetests/gputools/src/android/gputools/cts/
DCtsRootlessGpuDebugHostTest.java139 private String getTime() throws Exception { in getTime() method in CtsRootlessGpuDebugHostTest
353 String appStartTime = getTime(); in testDebugLayerLoadVulkan()
384 String appStartTime = getTime(); in testLayerNotLoadedVulkan()
430 String appStartTime = getTime(); in testDebugNotEnabledVulkan()
458 String appStartTime = getTime(); in testDebugWrongAppVulkan()
486 String appStartTime = getTime(); in testDebugNoLayersEnabledVulkan()
508 String appStartTime = getTime(); in testSystemPropertyEnableVulkan()
543 String appStartTime = getTime(); in testSystemPropertyIgnoreVulkan()
566 String appStartTime = getTime(); in testLayerLoadExternalVulkan()
637 String appStartTime = getTime(); in testDebugLayerLoadGLES()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java244 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_NoChallenge()
245 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_NoChallenge()
286 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
287 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
325 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion()
326 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion()
378 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersionStrongBox()
379 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersionStrongBox()
534 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
535 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
[all …]
DKeyGenParameterSpecTest.java204 Date originalCertNotBeforeDate = new Date(certNotBeforeDate.getTime()); in testImmutabilityViaSetterParams()
206 Date originalCertNotAfterDate = new Date(certNotAfterDate.getTime()); in testImmutabilityViaSetterParams()
208 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
211 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
214 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
DKeyProtectionTest.java158 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
161 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
164 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
DAndroidKeyStoreTest.java1038 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success()
1039 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success()
1055 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_CAEntry_Unencrypted_Success()
1056 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_CAEntry_Unencrypted_Success()
1937 Date now = cal.getTime(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1941 Date end = cal.getTime(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
DKeyStoreTest.java773 assertTrue("date should be after start time: " + date.getTime() + " >= " + before, in test_KeyStore_getCreationDate()
774 before <= date.getTime()); in test_KeyStore_getCreationDate()
775 assertTrue("date should be before expiry time: " + date.getTime() + " <= " + after, in test_KeyStore_getCreationDate()
776 date.getTime() <= after); in test_KeyStore_getCreationDate()
787 assertTrue(before <= date.getTime()); in test_KeyStore_getCreationDate()
788 assertTrue(date.getTime() <= after); in test_KeyStore_getCreationDate()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationUpdateIntervalTest.java201 / MILLIS_PER_NANO) - activeLocations.get(0).getTime(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
204 - activeLocations.get(i).getTime(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
224 minFirstFixTimestamp = activeLocations.get(0).getTime(); in validateLocationUpdateInterval()
246 final long fixTimestamp = location.getTime(); in getTimeBetweenFixes()
DGnssLocationValuesTest.java192 assertTrue(location.getTime() > 0); in checkLocationRegularFields()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java407 assertEquals(0, location.getTime()); in testAccessTime()
410 assertEquals(Long.MAX_VALUE, location.getTime()); in testAccessTime()
413 assertEquals(12000, location.getTime()); in testAccessTime()
464 assertEquals(0, location.getTime()); in testSet()
519 assertEquals(TEST_TIME, l.getTime()); in assertTestLocation()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DProtectedConfirmationTest.java130 Date validityStart = calendar.getTime(); in createKey()
132 Date validityEnd = calendar.getTime(); in createKey()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java77 final long seed = new Date().getTime(); in testSplit()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DRcsContactUceCapabilityTest.java155 assertEquals(unparceledTuple.getTime(), expectedTuple.getTime()); in verifyUnparceledTuple()
DEabControllerTest.java480 .format(date.getTime()); in getPidfXmlData()
559 assertNotNull("Timestamp should not be null!", presenceTuple.getTime()); in verifyCapabilityResult()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssLocationValuesTest.java157 assertTrue(location.getTime() > 0); in checkLocationRegularFields()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java214 actual = DateFormat.format(format, formatDate.getTime()); in testFormatMethods()
259 assertEquals(expected, sdf.format(c.getTime())); in checkFormat()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java126 location.getTime()); in testNorm()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java439 long captureTimeMs = dateTime.getTime(); in testSingleImageThumbnail()
442 Log.i(TAG, "Before capture time: " + beforeCaptureDate.getTime()); in testSingleImageThumbnail()
444 Log.i(TAG, "After capture time: " + afterCaptureDate.getTime()); in testSingleImageThumbnail()
448 long beforeCaptureTimeMs = beforeCaptureDate.getTime() - 1000; in testSingleImageThumbnail()
449 long afterCaptureTimeMs = afterCaptureDate.getTime(); in testSingleImageThumbnail()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java227 notification.condition.awaitUntil(deadline.getTime()); in testHwBinder()
DSeccompTest.java346 long time = (new Date()).getTime();
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsTest.java117 long now = new Date().getTime(); in testPeopleTable()
460 int insertDate = (int) new Date().getTime(); in testCallsTable()
491 int now = (int) new Date().getTime(); in testCallsTable()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieManagerTest.java471 date.setTime(date.getTime() + millisecondsTillExpiry); in makeExpiringCookieMs()

12