Home
last modified time | relevance | path

Searched refs:getTime (Results 1 – 25 of 26) 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.java198 final long minDate = minCalendar.getTime().getTime(); in verifyMinMaxDate()
199 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.java130 private String getTime() throws Exception { in getTime() method in CtsRootlessGpuDebugHostTest
330 String appStartTime = getTime(); in testDebugLayerLoadVulkan()
366 String appStartTime = getTime(); in testReleaseLayerLoadVulkan()
396 String appStartTime = getTime(); in testDebugNotEnabledVulkan()
426 String appStartTime = getTime(); in testDebugWrongAppVulkan()
456 String appStartTime = getTime(); in testDebugNoLayersEnabledVulkan()
480 String appStartTime = getTime(); in testSystemPropertyEnableVulkan()
520 String appStartTime = getTime(); in testSystemPropertyIgnoreVulkan()
548 String appStartTime = getTime(); in testDebugLayerLoadExternalVulkan()
583 String appStartTime = getTime(); in testDebugLayerLoadGLES()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java213 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_NoChallenge()
214 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_NoChallenge()
246 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
247 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
382 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
383 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
415 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation_DeviceLocked()
416 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation_DeviceLocked()
527 Date originationEnd = new Date(startTime.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation()
528 Date consumptionEnd = new Date(startTime.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation()
[all …]
DKeyGenParameterSpecTest.java191 Date originalCertNotBeforeDate = new Date(certNotBeforeDate.getTime()); in testImmutabilityViaSetterParams()
193 Date originalCertNotAfterDate = new Date(certNotAfterDate.getTime()); in testImmutabilityViaSetterParams()
195 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
198 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
201 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
DKeyProtectionTest.java146 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
149 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
152 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
DAndroidKeyStoreTest.java1034 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success()
1035 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success()
1051 Date expectedAfter = new Date(now.getTime() - SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_CAEntry_Unencrypted_Success()
1052 Date expectedBefore = new Date(now.getTime() + SLOP_TIME_MILLIS); in testKeyStore_GetCreationDate_CAEntry_Unencrypted_Success()
1896 Date now = cal.getTime(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
1900 Date end = cal.getTime(); in testKeyStore_Encrypting_RSA_NONE_NOPADDING()
DKeyStoreTest.java772 assertTrue("date should be after start time: " + date.getTime() + " >= " + before, in test_KeyStore_getCreationDate()
773 before <= date.getTime()); in test_KeyStore_getCreationDate()
774 assertTrue("date should be before expiry time: " + date.getTime() + " <= " + after, in test_KeyStore_getCreationDate()
775 date.getTime() <= after); in test_KeyStore_getCreationDate()
786 assertTrue(before <= date.getTime()); in test_KeyStore_getCreationDate()
787 assertTrue(date.getTime() <= after); in test_KeyStore_getCreationDate()
/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java200 final long fixedTime = date.getTime(); in testFormatDateRange()
213 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatter()
229 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatterAndTimezone()
245 final long fixedTime = date.getTime(); in testFormatDateTime()
DDateFormatTest.java214 actual = DateFormat.format(format, formatDate.getTime()); in testFormatMethods()
259 assertEquals(expected, sdf.format(c.getTime())); in checkFormat()
/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java403 assertEquals(0, location.getTime()); in testAccessTime()
406 assertEquals(Long.MAX_VALUE, location.getTime()); in testAccessTime()
409 assertEquals(12000, location.getTime()); in testAccessTime()
449 assertEquals(0, location.getTime()); in testSet()
554 assertEquals(TEST_TIME, l.getTime()); in assertTestLocation()
DGnssLocationUpdateIntervalTest.java124 minFirstFixTimestamp = activeLocations.get(0).getTime(); in validateLocationUpdateInterval()
146 final long fixTimestamp = location.getTime(); in getTimeBetweenFixes()
DGnssLocationValuesTest.java190 assertTrue(location.getTime() > 0); in checkLocationRegularFields()
/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/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java315 long captureTimeMs = dateTime.getTime(); in testSingleImageThumbnail()
318 Log.i(TAG, "Before capture time: " + beforeCaptureDate.getTime()); in testSingleImageThumbnail()
320 Log.i(TAG, "After capture time: " + afterCaptureDate.getTime()); in testSingleImageThumbnail()
324 long beforeCaptureTimeMs = beforeCaptureDate.getTime() - 1000; in testSingleImageThumbnail()
325 long afterCaptureTimeMs = afterCaptureDate.getTime(); in testSingleImageThumbnail()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java77 final long seed = new Date().getTime(); in testSplit()
/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/provider/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.java411 date.setTime(date.getTime() + millisecondsTillExpiry); in makeExpiringCookieMs()
/cts/hostsidetests/incident/src/com/android/server/cts/
DJobSchedulerIncidentTest.java321 StateControllerProto.TimeController tc = sc.getTime(); in testStateControllerProto()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2422 return a.getTime() == b.getTime() && a.getLatitude() == b.getLatitude() && in areGpsFieldsEqual()
2503 new SimpleDateFormat("yyyy:MM:dd HH:mm:ss").parse(dateTime).getTime() / 1000; in verifyJpegExifExtraTags()
2658 Date expected = new Date(expectedExifData.gpsLocation.getTime()); in verifyJpegExifExtraTags()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java975 long captureFinishTime = exifDateTime.getTime(); in testJpegExifByCamera()
1217 return datetime.getTime(); in getGpsDateTimeFromJpeg()

12