Home
last modified time | relevance | path

Searched refs:toTimeString (Results 1 – 3 of 3) sorted by relevance

/system/security/keystore2/src/crypto/tests/
Dcertificate_utils_test.cpp321 ASSERT_EQ(std::string(toTimeString(1622758591000)->data()), std::string("210603221631Z")); in TEST()
322 ASSERT_EQ(std::string(toTimeString(0)->data()), std::string("700101000000Z")); in TEST()
324 ASSERT_EQ(std::string(toTimeString(16227585910000)->data()), std::string("24840325064510Z")); in TEST()
325 ASSERT_EQ(std::string(toTimeString(-1622758591000)->data()), std::string("19180731014329Z")); in TEST()
328 ASSERT_EQ(std::string(toTimeString(2524607999999)->data()), "491231235959Z"); in TEST()
330 ASSERT_EQ(std::string(toTimeString(2524608000000)->data()), "20500101000000Z"); in TEST()
333 ASSERT_EQ(std::string(toTimeString(-631152000000)->data()), "500101000000Z"); in TEST()
336 ASSERT_EQ(std::string(toTimeString(-631152000001)->data()), "19491231235959Z"); in TEST()
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h148 std::optional<std::array<char, 16>> toTimeString(int64_t timeMillis);
/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp175 std::optional<std::array<char, 16>> toTimeString(int64_t timeMillis) { in toTimeString() function
262 auto notBeforeTime = toTimeString(activeDateTimeMilliSeconds); in makeCertRump()
273 auto notAfterTime = toTimeString(usageExpireDateTimeMilliSeconds); in makeCertRump()