Home
last modified time | relevance | path

Searched refs:secure_time_ns (Results 1 – 5 of 5) sorted by relevance

/trusty/user/app/confirmationui/src/
Dtrusty_time_stamper.cpp33 int64_t secure_time_ns = 0; in now() local
34 rv = trusty_gettime(0, &secure_time_ns); in now()
35 if (rv || secure_time_ns < 0) { in now()
37 secure_time_ns); in now()
40 return static_cast<uint64_t>(secure_time_ns) / 1000000; in now()
/trusty/user/app/keymint/
Dmonotonic_clock.rs26 let mut secure_time_ns = 0; in now() localVariable
28 let rc = unsafe { trusty_sys::gettime(0, 0, &mut secure_time_ns) }; in now()
29 let secure_time_ns = if rc < 0 { in now() localVariable
35 (secure_time_ns / 1000) / 1000 in now()
38 MillisecondsSinceEpoch(secure_time_ns) in now()
/trusty/user/app/keymaster/
Dtrusty_keymaster_enforcement.cpp82 int64_t secure_time_ns = 0; in milliseconds_since_boot() local
83 rv = trusty_gettime(0, &secure_time_ns); in milliseconds_since_boot()
84 if (rv || secure_time_ns < 0) { in milliseconds_since_boot()
86 secure_time_ns); in milliseconds_since_boot()
87 secure_time_ns = in milliseconds_since_boot()
90 return static_cast<uint64_t>(secure_time_ns) / 1000 / 1000; in milliseconds_since_boot()
/trusty/user/base/lib/keymaster/test/
Dkeymaster_test.c99 int64_t secure_time_ns = 0; in TEST_F() local
101 int ret = trusty_gettime(0, &secure_time_ns); in TEST_F()
109 htobe64(secure_time_ns), in TEST_F()
129 ret = trusty_gettime(0, &secure_time_ns); in TEST_F()
137 htobe64(secure_time_ns), in TEST_F()
/trusty/user/app/gatekeeper/
Dtrusty_gatekeeper.cpp202 int64_t secure_time_ns = 0; in GetMillisecondsSinceBoot() local
203 rc = trusty_gettime(0, &secure_time_ns); in GetMillisecondsSinceBoot()
205 secure_time_ns = 0; in GetMillisecondsSinceBoot()
208 return secure_time_ns / 1000 / 1000; in GetMillisecondsSinceBoot()