Home
last modified time | relevance | path

Searched refs:NOW (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/keystore/tests/src/android/security/
DKeyPairGeneratorSpecTest.java36 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in 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); in testConstructor_Success()
56 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); in testConstructor_Success()
68 .setStartDate(NOW) in testBuilder_Success()
83 assertEquals("startDate should be the one specified", NOW, spec.getStartDate()); in testBuilder_Success()
92 … new KeyPairGeneratorSpec(null, TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullContext_Failure()
101 … new KeyPairGeneratorSpec(getContext(), null, "RSA", 1024, null, TEST_DN_1, SERIAL_1, NOW, in testConstructor_NullKeystoreAlias_Failure() local
110 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, null, SERIAL_1, NOW, in testConstructor_NullSubjectDN_Failure() local
119 … new KeyPairGeneratorSpec(getContext(), TEST_ALIAS_1, "RSA", 1024, null, TEST_DN_1, null, NOW, in testConstructor_NullSerial_Failure() local
[all …]
DAndroidKeyPairGeneratorTest.java62 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in AndroidKeyPairGeneratorTest
65 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1);
94 .setStartDate(NOW) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
132 .setStartDate(NOW) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
146 .setStartDate(NOW) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
154 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
164 .setStartDate(NOW) in testKeyPairGenerator_GenerateKeyPair_DSA_Unencrypted_Success()
171 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 1024, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_DSA_Unencrypted_Success()
183 .setStartDate(NOW) in testKeyPairGenerator_GenerateKeyPair_DSA_2048_Unencrypted_Success()
190 assertKeyPairCorrect(pair, TEST_ALIAS_1, "DSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_DSA_2048_Unencrypted_Success()
[all …]
DAndroidKeyStoreTest.java87 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in AndroidKeyStoreTest
90 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1);
2391 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_Encrypted_Success()
2414 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_Encrypted_Success()
2441 TEST_SERIAL_1, TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure()
2454 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure()
2465 TEST_SERIAL_2, TEST_DN_2, NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_DifferentPrivateKey_Encrypted_Failure()
2488 NOW, NOW_PLUS_10_YEARS); in testKeyStore_SetKeyEntry_ReplacedChain_UnencryptedToEncrypted_Failure()
2607 TEST_DN_1, NOW, NOW_PLUS_10_YEARS); in setupKey()
/frameworks/base/docs/html/training/articles/
Dmemory.jd625 <!-- THE FOLLOWING IS OVERWHELMING AND NOT NECESSARY FOR MOST APPS, LEAVING OUT FOR NOW