Home
last modified time | relevance | path

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

/cts/libs/vogar-expect/src/vogar/
DOutcome.java36 private final Date date; field in Outcome
42 this.date = new Date(); in Outcome()
45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { in Outcome() argument
49 this.date = date; in Outcome()
56 this.date = new Date(); in Outcome()
63 this.date = new Date(); in Outcome()
79 return date; in getDate()
/cts/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java184 Date date = new Date(YEAR_FROM_1900, MONTH, DAY, HOUR, MINUTE); in testFormatMethods() local
185 String source = dateFormat.format(date); in testFormatMethods()
187 assertEquals(date.getYear(), parseDate.getYear()); in testFormatMethods()
188 assertEquals(date.getMonth(), parseDate.getMonth()); in testFormatMethods()
189 assertEquals(date.getDay(), date.getDay()); in testFormatMethods()
193 source = dateFormat.format(date); in testFormatMethods()
197 source = dateFormat.format(date); in testFormatMethods()
201 source = dateFormat.format(date); in testFormatMethods()
323 Date date = new Date(YEAR_FROM_1900, MONTH, DAY); in test_ContextLocaleIsUsed() local
326 java.text.DateFormat.LONG).format(date); in test_ContextLocaleIsUsed()
[all …]
DDateUtilsTest.java198 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange() local
199 final long fixedTime = date.getTime(); in testFormatDateRange()
211 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange_withFormatter() local
212 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatter()
227 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange_withFormatterAndTimezone() local
228 final long fixedTime = date.getTime(); in testFormatDateRange_withFormatterAndTimezone()
243 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateTime() local
244 final long fixedTime = date.getTime(); in testFormatDateTime()
DTimeTest.java115 final int date = 10; in testSet() local
117 time.set(date, month, year); in testSet()
120 assertEquals(date, time.monthDay); in testSet()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java308 private MonthDay parseMonthDay(String date) { in parseMonthDay() argument
309 return MonthDay.of(Integer.parseInt(date.substring(0, 2)), in parseMonthDay()
310 Integer.parseInt(date.substring(3, 5))); in parseMonthDay()
317 private void setSystemDate(LocalDate date) throws Exception { in setSystemDate() argument
320 c.set(Calendar.YEAR, date.getYear()); in setSystemDate()
321 c.set(Calendar.MONTH, date.getMonthValue() - 1); in setSystemDate()
322 c.set(Calendar.DAY_OF_MONTH, date.getDayOfMonth()); in setSystemDate()
/cts/tests/tests/net/src/android/net/http/cts/
DSslCertificateTest.java44 String date = DateFormat.getInstance().format(new Date()); in testConstructor() local
45 new SslCertificate("c=129", "e=weji", date, date); in testConstructor()
60 public void checkValidity(Date date) throws CertificateExpiredException, in checkValidity() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DReportExporter.java93 String date = dateFormat.format(new Date()); in getReportBaseName() local
95 + "-" + date in getReportBaseName()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAbstractDatePickerActivity.java77 final String date = year + "/" + month + "/" + day; in updateOutputWithDate() local
78 mOutput.setText(date); in updateOutputWithDate()
DCannedFillResponse.java649 public Builder setField(String id, long date) { in setField() argument
650 return setField(id, AutofillValue.forDate(date)); in setField()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyProtectionTest.java102 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates() local
105 .setKeyValidityEnd(date) in testSetKeyValidityEndDateAppliesToBothEndDates()
107 assertEquals(date, spec.getKeyValidityForOriginationEnd()); in testSetKeyValidityEndDateAppliesToBothEndDates()
108 assertEquals(date, spec.getKeyValidityForConsumptionEnd()); in testSetKeyValidityEndDateAppliesToBothEndDates()
DKeyGenParameterSpecTest.java147 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates() local
150 .setKeyValidityEnd(date) in testSetKeyValidityEndDateAppliesToBothEndDates()
152 assertEquals(date, spec.getKeyValidityForOriginationEnd()); in testSetKeyValidityEndDateAppliesToBothEndDates()
153 assertEquals(date, spec.getKeyValidityForConsumptionEnd()); in testSetKeyValidityEndDateAppliesToBothEndDates()
DKeyStoreTest.java770 Date date = keyStore.getCreationDate(ALIAS_CERTIFICATE); in test_KeyStore_getCreationDate() local
771 assertNotNull(date); in test_KeyStore_getCreationDate()
772 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()
785 Date date = keyStore.getCreationDate(ALIAS_ALT_CASE_CERTIFICATE); in test_KeyStore_getCreationDate() local
786 assertTrue(before <= date.getTime()); in test_KeyStore_getCreationDate()
787 assertTrue(date.getTime() <= after); in test_KeyStore_getCreationDate()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DXmlReport.java43 String date = format.format(new Date(System.currentTimeMillis())); in printXmlReport() local
44 out.println("<api-coverage generatedTime=\"" + date + "\" title=\"" + reportTitle +"\">"); in printXmlReport()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java109 protected boolean didIncidentdFireSince(String date) throws Exception { in didIncidentdFireSince() argument
114 String log = getLogcatSince(date, String.format( in didIncidentdFireSince()
122 protected boolean didPerfettoStartSince(String date) throws Exception { in didPerfettoStartSince() argument
128 String log = getLogcatSince(date, String.format( in didPerfettoStartSince()
600 protected String getLogcatSince(String date, String logcatParams) throws Exception { in getLogcatSince() argument
602 "logcat -v threadtime -t '%s' -d %s", date, logcatParams)); in getLogcatSince()
/cts/tests/tests/webkit/src/android/webkit/cts/
DCookieManagerTest.java409 Date date = new Date(); in makeExpiringCookieMs() local
410 date.setTime(date.getTime() + millisecondsTillExpiry); in makeExpiringCookieMs()
411 return cookie + "; expires=" + date.toGMTString(); in makeExpiringCookieMs()
/cts/hostsidetests/security/securityPatch/CVE-2017-6262/
Dpoc.c39 ver.date = (char*)malloc(ver.date_len); in drm_version()
Dlocal_poc.h70 char* date; member
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DReportExporter.java155 String date = dateFormat.format(new Date()); in getReportName() local
157 date, suiteName, Build.MANUFACTURER, Build.PRODUCT, Build.DEVICE, Build.ID); in getReportName()
/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java293 private static Date parseDate(String date) { in parseDate() argument
297 patchDate = template.parse(date); in parseDate()
/cts/tools/vm-tests-tf/etc/
Dstarthosttests63 curdate=`date`
Dstarttests65 curdate=`date`
/cts/tests/tests/net/src/org/apache/http/conn/ssl/cts/
DAbstractVerifierTest.java224 public void checkValidity(Date date) in createStubCertificate() argument
/cts/tests/security/src/android/keystore/cts/
DAuthorizationList.java373 private static String formatDate(Date date) { in formatDate() argument
374 return DateFormat.getDateTimeInstance().format(date); in formatDate()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2243 Date date = new Date(currentTimeInMs); in verifyJpegExifExtraTags() local
2244 String localDatetime = new SimpleDateFormat("yyyy:MM:dd HH:").format(date); in verifyJpegExifExtraTags()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java1167 String date = exif.getAttribute(ExifInterface.TAG_GPS_DATESTAMP); in getGpsDateTimeFromJpeg() local
1169 if (date == null || time == null) return -1; in getGpsDateTimeFromJpeg()
1171 String dateTimeString = date + ' ' + time; in getGpsDateTimeFromJpeg()