/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyGenParameterSpecTest.java | 42 import java.util.Date; 51 private static final Date DEFAULT_CERT_NOT_BEFORE = new Date(0L); // Jan 1 1970 52 private static final Date DEFAULT_CERT_NOT_AFTER = new Date(2461449600000L); // Jan 1 2048 104 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testSettersReflectedInGetters() 105 Date certNotAfterDate = new Date(System.currentTimeMillis() + 12345678); in testSettersReflectedInGetters() 106 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters() 107 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters() 108 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters() 206 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates() 251 Date certNotBeforeDate = new Date(System.currentTimeMillis()); in testImmutabilityViaSetterParams() [all …]
|
D | KeyInfoTest.java | 44 import java.util.Date; 62 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaGetterReturnValues() 63 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaGetterReturnValues() 64 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testImmutabilityViaGetterReturnValues() 87 Date originalKeyValidityStartDate = (Date) info.getKeyValidityStart().clone(); in testImmutabilityViaGetterReturnValues() 91 Date originalKeyValidityEndDateForOrigination = in testImmutabilityViaGetterReturnValues() 92 (Date) info.getKeyValidityForOriginationEnd().clone(); in testImmutabilityViaGetterReturnValues() 97 Date originalKeyValidityEndDateForConsumption = in testImmutabilityViaGetterReturnValues() 98 (Date) info.getKeyValidityForConsumptionEnd().clone(); in testImmutabilityViaGetterReturnValues() 129 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testLimitedUseKey() [all …]
|
D | KeyProtectionTest.java | 38 import java.util.Date; 79 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testSettersReflectedInGetters() 80 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testSettersReflectedInGetters() 81 Date keyValidityEndDateForConsumption = new Date(System.currentTimeMillis() + 33333333); in testSettersReflectedInGetters() 142 Date date = new Date(System.currentTimeMillis() + 555555); in testSetKeyValidityEndDateAppliesToBothEndDates() 187 Date keyValidityStartDate = new Date(System.currentTimeMillis() - 2222222); in testImmutabilityViaSetterParams() 188 Date originalKeyValidityStartDate = new Date(keyValidityStartDate.getTime()); in testImmutabilityViaSetterParams() 189 Date keyValidityEndDateForOrigination = new Date(System.currentTimeMillis() + 11111111); in testImmutabilityViaSetterParams() 190 Date originalKeyValidityEndDateForOrigination = in testImmutabilityViaSetterParams() 191 new Date(keyValidityEndDateForOrigination.getTime()); in testImmutabilityViaSetterParams() [all …]
|
D | KeyPairGeneratorTest.java | 81 import java.util.Date; 128 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); 131 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); 137 private static final Date DEFAULT_CERT_NOT_BEFORE = new Date(0L); // Jan 1 1970 138 private static final Date DEFAULT_CERT_NOT_AFTER = new Date(2461449600000L); // Jan 1 2048 364 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper() 365 Date keyValidityForOriginationEnd = in testGenerateHonorsRequestedAuthorizationsHelper() 366 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper() 367 Date keyValidityForConsumptionEnd = in testGenerateHonorsRequestedAuthorizationsHelper() 368 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper() [all …]
|
D | KeyPairGeneratorSpecTest.java | 30 import java.util.Date; 48 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); 51 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1);
|
D | KeyAttestationTest.java | 116 import java.util.Date; 374 Date now = new Date(); in testEcAttestation_NoChallenge() 375 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() 415 Date now = new Date(); in testEcAttestation_DeviceLocked() 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() 494 Date now = new Date(); in testAttestationKmVersionMatchesFeatureVersion() 495 Date originationEnd = new Date(now.getTime() + ORIGINATION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion() 496 Date consumptionEnd = new Date(now.getTime() + CONSUMPTION_TIME_OFFSET); in testAttestationKmVersionMatchesFeatureVersion() [all …]
|
D | SecretKeyFactoryTest.java | 42 import java.util.Date; 99 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 100 Date keyValidityForOriginationEnd = in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 101 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 102 Date keyValidityForConsumptionEnd = in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations() 103 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
|
D | MacTest.java | 37 import java.util.Date; 469 .setKeyValidityStart(new Date(System.currentTimeMillis() - DAY_IN_MILLIS)) in testInitFailsWhenKeyNotYetValid() 473 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitFailsWhenKeyNotYetValid() 488 new Date(System.currentTimeMillis() + DAY_IN_MILLIS)) in testInitFailsWhenKeyNoLongerValidForOrigination() 492 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitFailsWhenKeyNoLongerValidForOrigination() 509 new Date(System.currentTimeMillis() + DAY_IN_MILLIS)) in testInitIgnoresThatKeyNoLongerValidForConsumption() 514 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitIgnoresThatKeyNoLongerValidForConsumption()
|
D | KeyFactoryTest.java | 62 import java.util.Date; 118 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 119 Date keyValidityForOriginationEnd = in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 120 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 121 Date keyValidityForConsumptionEnd = in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations() 122 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
|
/cts/tests/tests/apache-http/src/android/net/http/cts/ |
D | SslCertificateTest.java | 32 import java.util.Date; 44 String date = DateFormat.getInstance().format(new Date()); in testConstructor() 60 public void checkValidity(Date date) throws CertificateExpiredException, in checkValidity() 85 public Date getNotAfter() { in getNotAfter() 86 return new Date(System.currentTimeMillis()); in getNotAfter() 90 public Date getNotBefore() { in getNotBefore() 91 return new Date(System.currentTimeMillis() - 1000); in getNotBefore() 190 Date date1 = new Date(System.currentTimeMillis() - 1000); in testState() 191 Date date2 = new Date(System.currentTimeMillis()); in testState() 212 Date date1 = new Date(System.currentTimeMillis() - 1000); in testSslCertificate() [all …]
|
D | SslCertificate_DNameTest.java | 20 import java.util.Date; 32 Date date1 = new Date(System.currentTimeMillis() - 1000); in testDName() 33 Date date2 = new Date(System.currentTimeMillis()); in testDName()
|
D | SslErrorTest.java | 23 import java.util.Date; 33 mCertificate = new SslCertificate("foo", "bar", new Date(42), new Date(43)); in setUp()
|
/cts/tests/security/src/android/keystore/cts/ |
D | CertificateUtils.java | 30 import java.util.Date; 40 Date start = new Date(now - millisPerDay); in createCertificate() 41 Date end = new Date(now + millisPerDay); in createCertificate()
|
D | CborUtils.java | 32 import java.util.Date; 91 public static Date getDate(Map map, DataItem index) { in getDate() 94 return new Date(epochMillis); in getDate()
|
D | Asn1Utils.java | 37 import java.util.Date; 134 public static Date getDateFromAsn1(ASN1Primitive value) throws CertificateParsingException { in getDateFromAsn1() 135 return new Date(getLongFromAsn1(value)); in getDateFromAsn1()
|
D | AuthorizationList.java | 41 import java.util.Date; 183 private Date activeDateTime; 184 private Date originationExpireDateTime; 185 private Date usageExpireDateTime; 192 private Date creationDateTime; 542 private static String formatDate(Date date) { in formatDate() 651 public Date getActiveDateTime() { in getActiveDateTime() 655 public Date getOriginationExpireDateTime() { in getOriginationExpireDateTime() 659 public Date getUsageExpireDateTime() { in getUsageExpireDateTime() 687 public Date getCreationDateTime() { in getCreationDateTime()
|
/cts/libs/vogar-expect/src/vogar/expect/ |
D | Outcome.java | 23 import java.util.Date; 36 private final Date date; 42 this.date = new Date(); in Outcome() 45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { in Outcome() 56 this.date = new Date(); in Outcome() 63 this.date = new Date(); in Outcome() 78 public Date getDate() { in getDate()
|
/cts/tests/tests/telephony/current/src/android/telephony/embms/cts/ |
D | ServiceInfoTest.java | 32 import java.util.Date; 50 private static final Date BEGIN_DATE = new Date(2017, 8, 21, 18, 20, 29); 51 private static final Date END_DATE = new Date(2017, 8, 21, 18, 23, 9);
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | DateUtilsTest.java | 38 import java.util.Date; 209 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange() 222 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange_withFormatter() 238 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateRange_withFormatterAndTimezone() 254 final Date date = new Date(109, 0, 19, 3, 30, 15); in testFormatDateTime()
|
D | DateFormatTest.java | 54 import java.util.Date; 186 Date date = new Date(YEAR_FROM_1900, MONTH, DAY, HOUR, MINUTE); in testFormatMethods() 188 Date parseDate = dateFormat.parse(source); in testFormatMethods() 212 Date formatDate = new Date(YEAR_FROM_1900, MONTH, DAY); in testFormatMethods() 325 Date date = new Date(YEAR_FROM_1900, MONTH, DAY); in test_ContextLocaleIsUsed()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | DateValueSanitizerTest.java | 35 import java.util.Date; 70 Log.v(TAG, "Input date: " + inputDate + " >> " + new Date(inputDate)); in testSanitize_ok() 78 Log.v(TAG, "Exected date: " + expectedDate + " >> " + new Date(expectedDate)); in testSanitize_ok() 84 Log.v(TAG, "Sanitized date: " + sanitizedDate + " >> " + new Date(sanitizedDate)); in testSanitize_ok()
|
/cts/tests/tests/apache-http/src/org/apache/http/conn/ssl/cts/ |
D | AbstractVerifierTest.java | 38 import java.util.Date; 224 public void checkValidity(Date date) in createStubCertificate() 250 public Date getNotBefore() { in createStubCertificate() 255 public Date getNotAfter() { in createStubCertificate()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | LineSpliteratorTestBase.java | 24 import java.util.Date; 77 final long seed = new Date().getTime(); in testSplit()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | StoragedDumpsysTest.java | 23 import java.util.Date; 53 .format(new Date(timestampMs)); in getCurrentLogcatDate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/ |
D | ReportExporter.java | 31 import java.util.Date; 93 String date = dateFormat.format(new Date()); in getReportBaseName()
|