Searched refs:NOW_PLUS_10_YEARS (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/keystore/tests/src/android/security/ |
D | KeyPairGeneratorSpecTest.java | 39 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); field in KeyPairGeneratorSpecTest 44 SERIAL_1, NOW, NOW_PLUS_10_YEARS, 0); in testConstructor_Success() 58 assertEquals("endDate should be the one specified", NOW_PLUS_10_YEARS, spec.getEndDate()); in testConstructor_Success() 69 .setEndDate(NOW_PLUS_10_YEARS) in testBuilder_Success() 85 assertEquals("endDate should be the one specified", NOW_PLUS_10_YEARS, spec.getEndDate()); in testBuilder_Success() 93 NOW_PLUS_10_YEARS, 0); in testConstructor_NullContext_Failure() 102 NOW_PLUS_10_YEARS, 0); in testConstructor_NullKeystoreAlias_Failure() local 111 NOW_PLUS_10_YEARS, 0); in testConstructor_NullSubjectDN_Failure() local 120 NOW_PLUS_10_YEARS, 0); in testConstructor_NullSerial_Failure() local 129 null, NOW_PLUS_10_YEARS, 0); in testConstructor_NullStartDate_Failure() local [all …]
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyPairGeneratorTest.java | 71 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); field in AndroidKeyPairGeneratorTest 101 .setEndDate(NOW_PLUS_10_YEARS) in testKeyPairGenerator_Initialize_Params_Encrypted_Success() 139 .setEndDate(NOW_PLUS_10_YEARS) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure() 153 .setEndDate(NOW_PLUS_10_YEARS) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success() 161 NOW_PLUS_10_YEARS); in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success() 172 .setCertificateNotAfter(NOW_PLUS_10_YEARS) in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() 180 NOW_PLUS_10_YEARS); in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success() 191 .setEndDate(NOW_PLUS_10_YEARS) in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success() 198 NOW_PLUS_10_YEARS); in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success() 209 .setEndDate(NOW_PLUS_10_YEARS) in testKeyPairGenerator_GenerateKeyPair_EC_P521_Unencrypted_Success() [all …]
|
D | AndroidKeyStoreTest.java | 85 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1); field in AndroidKeyStoreTest 1954 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_Encrypted_Success() 1977 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_Encrypted_Success() 2004 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure() 2017 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure() 2028 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure() 2051 NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_UnencryptedToEncrypted_Failure() 2170 TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in setupKey()
|