Home
last modified time | relevance | path

Searched refs:NOW (Results 1 – 7 of 7) 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 …]
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyPairGeneratorTest.java68 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in AndroidKeyPairGeneratorTest
71 private static final Date NOW_PLUS_10_YEARS = new Date(NOW.getYear() + 10, 0, 1);
100 .setStartDate(NOW) in testKeyPairGenerator_Initialize_Params_Encrypted_Success()
138 .setStartDate(NOW) in testKeyPairGenerator_Initialize_ParamsAndSecureRandom_Encrypted_Failure()
152 .setStartDate(NOW) in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
160 assertKeyPairCorrect(pair, TEST_ALIAS_1, "RSA", 2048, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_Encrypted_Success()
171 .setCertificateNotBefore(NOW) in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success()
179 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_GenerateKeyPair_EC_Unencrypted_Success()
190 .setStartDate(NOW) in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success()
197 assertKeyPairCorrect(pair, TEST_ALIAS_1, "EC", 256, null, TEST_DN_1, TEST_SERIAL_1, NOW, in testKeyPairGenerator_Legacy_GenerateKeyPair_EC_Unencrypted_Success()
[all …]
DAndroidKeyStoreTest.java82 private static final Date NOW = new Date(NOW_MILLIS - (NOW_MILLIS % 1000L)); field in 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); 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()
/frameworks/base/docs/html/training/articles/
Dmemory.jd625 <!-- THE FOLLOWING IS OVERWHELMING AND NOT NECESSARY FOR MOST APPS, LEAVING OUT FOR NOW
/frameworks/base/api/
Dcurrent.txt17278 enum_constant public static final android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit NOW;
Dtest-current.txt17291 enum_constant public static final android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit NOW;
Dsystem-current.txt18479 enum_constant public static final android.icu.text.RelativeDateTimeFormatter.AbsoluteUnit NOW;