/frameworks/base/keystore/tests/src/android/security/ |
H A D | KeyPairGeneratorSpecTest.java | 36 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in class:KeyPairGeneratorSpecTest 39 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); 44 SERIAL_1, NOW, NOW_PLUS_10_YEARS, 0); 56 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); 68 .setStartDate(NOW) 83 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); 92 new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, 101 new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, 110 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, 119 new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, [all...] |
/frameworks/base/keystore/tests/src/android/security/keystore/ |
H A D | AndroidKeyPairGeneratorTest.java | 68 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in class:AndroidKeyPairGeneratorTest 71 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); 100 .setStartDate(NOW) 138 .setStartDate(NOW) 152 .setStartDate(NOW) 160 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, 171 .setCertificateNotBefore(NOW) 179 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, 190 .setStartDate(NOW) 197 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, [all...] |
H A D | AndroidKeyStoreTest.java | 82 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in class:AndroidKeyStoreTest 85 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); 1954 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); 1977 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); 2004 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); 2017 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); 2028 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); 2051 NOW, NOW_PLUS_10_YEARS); 2170 TEST_DN_1, NOW, NOW_PLUS_10_YEARS);
|