Home
last modified time | relevance | path

Searched refs:DAY_IN_MILLIS (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/text/src/android/text/format/cts/
DDateUtilsTest.java177 … DateUtils.MINUTE_IN_MILLIS, DateUtils.DAY_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); in test_getRelativeDateTimeString()
291 long tomorrow = now + DateUtils.DAY_IN_MILLIS; in test_bug_7548161()
292 long yesterday = now - DateUtils.DAY_IN_MILLIS; in test_bug_7548161()
294 DateUtils.DAY_IN_MILLIS, 0)); in test_bug_7548161()
296 DateUtils.DAY_IN_MILLIS, 0)); in test_bug_7548161()
298 DateUtils.DAY_IN_MILLIS, 0)); in test_bug_7548161()
/cts/tests/tests/keystore/src/android/keystore/cts/
DMacTest.java183 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; field in MacTest
405 .setKeyValidityStart(new Date(System.currentTimeMillis() - DAY_IN_MILLIS)) in testInitFailsWhenKeyNotYetValid()
409 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitFailsWhenKeyNotYetValid()
423 new Date(System.currentTimeMillis() + DAY_IN_MILLIS)) in testInitFailsWhenKeyNoLongerValidForOrigination()
427 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitFailsWhenKeyNoLongerValidForOrigination()
443 new Date(System.currentTimeMillis() + DAY_IN_MILLIS)) in testInitIgnoresThatKeyNoLongerValidForConsumption()
447 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitIgnoresThatKeyNoLongerValidForConsumption()
DSecretKeyFactoryTest.java89 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
91 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
93 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
DSignatureTest.java334 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; field in SignatureTest
980 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitSignFailsWhenKeyNotYetValid()
994 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitVerifyIgnoresThatKeyNotYetValid()
1008 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitSignFailsWhenKeyNoLongerValidForOrigination()
1024 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitVerifyIgnoresThatKeyNoLongerValidForOrigination()
1040 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitSignIgnoresThatKeyNoLongerValidForConsumption()
1056 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitVerifyIgnoresThatKeyNoLongerValidForConsumption()
DCipherTest.java263 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS; field in CipherTest
1502 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitDecryptFailsWhenKeyNotYetValid()
1519 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitEncryptSymmetricFailsWhenKeyNotYetValid()
1539 Date badStartDate = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testInitEncryptAsymmetricIgnoresThatKeyNotYetValid()
1559 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitDecryptFailsWhenKeyNoLongerValidForConsumption()
1578 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitDecryptIgnoresThatKeyNoLongerValidForOrigination()
1597 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitEncryptSymmetricFailsWhenKeyNoLongerValidForOrigination()
1620 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitEncryptSymmetricIgnoresThatKeyNoLongerValidForConsumption()
1642 Date badEndDate = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testInitEncryptAsymmetricIgnoresThatKeyNoLongerValid()
DKeyFactoryTest.java93 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
95 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
97 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystorePrivateKeyAndKeyInfoReflectsAllAuthorizations()
DKeyGeneratorTest.java675 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
677 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
679 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
DKeyPairGeneratorTest.java109 private static final long DAY_IN_MILLIS = 1000 * 60 * 60 * 24; field in KeyPairGeneratorTest
314 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
316 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
318 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
1252 Date validityStart = new Date(System.currentTimeMillis() + DAY_IN_MILLIS); in testGenerate_EC_ModernSpec_KeyNotYetValidHelper()
1277 Date originationEnd = new Date(System.currentTimeMillis() - DAY_IN_MILLIS); in testGenerate_RSA_ModernSpec_KeyExpiredForOrigination()
DTestUtils.java82 static final long DAY_IN_MILLIS = 1000 * 60 * 60 * 24; field in TestUtils
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStoreUtils.java101 (System.currentTimeMillis() + DateUtils.DAY_IN_MILLIS) / 1000); in PendingParams()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreUtils.java110 (System.currentTimeMillis() + DateUtils.DAY_IN_MILLIS) / 1000); in PendingParams()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java429 long startTime = endTime - DateUtils.DAY_IN_MILLIS; in testAppLaunchCount()