Home
last modified time | relevance | path

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

12

/cts/tests/tests/widget/src/android/widget/cts/
DCalendarViewTest.java86 final long currentDate = new GregorianCalendar().getTime().getTime(); in setup()
116 final long yearAgoDate = newCalendar.getTime().getTime(); in testAccessDate()
123 final long yearHenceDate = newCalendar.getTime().getTime(); in testAccessDate()
138 final long minDate = minCalendar.getTime().getTime(); in testAccessMinMaxDate()
139 final long maxDate = maxCalendar.getTime().getTime(); in testAccessMinMaxDate()
156 final long minDate = minCalendar.getTime().getTime(); in testMinMaxRangeRestrictionsHolo()
157 final long maxDate = maxCalendar.getTime().getTime(); in testMinMaxRangeRestrictionsHolo()
183 final long minDate = minCalendar.getTime().getTime(); in testMinMaxRangeClampingMaterial()
184 final long maxDate = maxCalendar.getTime().getTime(); in testMinMaxRangeClampingMaterial()
233 () -> calendarView.setDate(calendar.getTime().getTime(), false, true)); in verifyOnDateChangeListener()
[all …]
DDatePickerTest.java215 final long minDate = minCalendar.getTime().getTime(); in verifyMinMaxDate()
216 final long maxDate = maxCalendar.getTime().getTime(); in verifyMinMaxDate()
/cts/tests/tests/os/src/android/os/health/cts/
DTimerStatTest.java41 Assert.assertEquals(0, timer.getTime()); in testEmptyConstructor()
56 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testSetCount()
71 Assert.assertEquals(5000, timer.getTime()); in testSetTime()
82 Assert.assertEquals(Long.MAX_VALUE, timer.getTime()); in testParceling()
93 Assert.assertEquals(Long.MAX_VALUE, readback.getTime()); in testParceling()
DHealthStatsTest.java92 Assert.assertEquals(Long.MAX_VALUE, readback.getTimer(TIMER_1).getTime()); in checkHealthStats()
131 Assert.assertEquals(400, timers.get("b").getTime()); in checkHealthStats()
/cts/hostsidetests/gputools/src/android/gputools/cts/
DCtsRootlessGpuDebugHostTest.java141 private String getTime() throws Exception { in getTime() method in CtsRootlessGpuDebugHostTest
356 String appStartTime = getTime(); in testDebugLayerLoadVulkan()
387 String appStartTime = getTime(); in testLayerNotLoadedVulkan()
436 String appStartTime = getTime(); in testDebugNotEnabledVulkan()
465 String appStartTime = getTime(); in testDebugWrongAppVulkan()
494 String appStartTime = getTime(); in testDebugNoLayersEnabledVulkan()
517 String appStartTime = getTime(); in testSystemPropertyEnableVulkan()
553 String appStartTime = getTime(); in testSystemPropertyIgnoreVulkan()
576 String appStartTime = getTime(); in testLayerLoadExternalVulkan()
651 String appStartTime = getTime(); in testDebugLayerLoadGLES()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java375 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_NoChallenge()
376 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_NoChallenge()
416 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
417 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testEcAttestation_DeviceLocked()
495 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion()
496 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion()
803 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
804 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation_NoChallenge()
842 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testRsaAttestation_DeviceLocked()
843 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testRsaAttestation_DeviceLocked()
[all …]
DKeyGenParameterSpecTest.java252 Date originalCertNotBeforeDate = new Date(certNotBeforeDate.getTime()); in testImmutabilityViaSetterParams()
254 Date originalCertNotAfterDate = new Date(certNotAfterDate.getTime()); in testImmutabilityViaSetterParams()
256 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
259 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
262 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
DKeyProtectionTest.java188 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams()
191 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams()
194 new Date(keyValidityEndDateForConsumption.getTime()); in testImmutabilityViaSetterParams()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationUpdateIntervalTest.java220 / MILLIS_PER_NANO) - activeLocations.get(0).getTime(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
223 - activeLocations.get(i).getTime(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
243 minFirstFixTimestamp = activeLocations.get(0).getTime(); in validateLocationUpdateInterval()
265 final long fixTimestamp = location.getTime(); in getTimeBetweenFixes()
DGnssLocationValuesTest.java194 assertTrue(location.getTime() > 0); in checkLocationRegularFields()
/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java210 final long fixedTime = date.getTime(); in testFormatDateRange()
223 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatter()
239 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatterAndTimezone()
255 final long fixedTime = date.getTime(); in testFormatDateTime()
DDateFormatTest.java215 actual = DateFormat.format(format, formatDate.getTime()); in testFormatMethods()
260 assertEquals(expected, sdf.format(c.getTime())); in checkFormat()
/cts/hostsidetests/appcloning/test-apps/AppCloningTestApp/src/com/android/cts/appcloningtestapp/
DMediaStoreWriteOperation.java42 displayName + "_" + Calendar.getInstance().getTime() + ".jpg"); in createImageFileToMediaStoreReturnUri()
/cts/tests/location/location_none/src/android/location/cts/none/
DLocationTest.java47 assertThat(l.getTime()).isEqualTo(0); in testConstructor_Defaults()
99 assertThat(l.getTime()).isEqualTo(1); in testValues()
101 assertThat(l.getTime()).isEqualTo(Long.MAX_VALUE); in testValues()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DProtectedConfirmationTest.java174 Date validityStart = calendar.getTime(); in createKey()
176 Date validityEnd = calendar.getTime(); in createKey()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DRcsContactUceCapabilityTest.java157 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/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java77 final long seed = new Date().getTime(); in testSplit()
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssLocationValuesTest.java159 assertTrue(location.getTime() > 0); in checkLocationRegularFields()
/cts/hostsidetests/packagemanager/packagesetting/src/com/android/tests/packagesetting/host/
DPackageSettingTest.java105 final long firstInstallTs = sdf.parse(firstInstallTime).getTime(); in testFirstInstallTimeMatchesDumpsys()
/cts/hostsidetests/packagemanager/installedloadingprogess/hostside/src/com/android/tests/loadingprogress/host/
DIncrementalLoadingProgressTest.java188 return Math.floorDiv(date.getTime(), 1000); in getLoadingCompletedTimeSecondsFromDumpsys()
/cts/tests/camera/src/android/hardware/camera2/cts/
DDngCreatorTest.java430 long captureTimeMs = dateTime.getTime(); in testSingleImageThumbnail()
433 Log.i(TAG, "Before capture time: " + beforeCaptureDate.getTime()); in testSingleImageThumbnail()
435 Log.i(TAG, "After capture time: " + afterCaptureDate.getTime()); in testSingleImageThumbnail()
439 long beforeCaptureTimeMs = beforeCaptureDate.getTime() - 1000; in testSingleImageThumbnail()
440 long afterCaptureTimeMs = afterCaptureDate.getTime(); in testSingleImageThumbnail()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMagneticFieldMeasurementTestActivity.java146 (float) location.get().getAltitude(), location.get().getTime()); in testNorm()
/cts/tests/tests/os/src/android/os/cts/
DHwBinderTest.java237 notification.condition.awaitUntil(deadline.getTime()); in testHwBinder()
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DApiMap.java207 newEntry.setTime(entry.getTime()); in scanJarFile()

12