Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 25 of 55) sorted by relevance

123

/system/core/libutils/
DSystemClock.cpp71 static inline void checkTimeStamps(int64_t timestamp, in checkTimeStamps() argument
84 if (timestamp < prevTimestamp) { in checkTimeStamps()
93 timestamp, gettime_method_names[curMethod], in checkTimeStamps()
98 *prevTimestampPtr = timestamp; in checkTimeStamps()
102 #define checkTimeStamps(timestamp, prevTimestampPtr, prevMethodPtr, curMethod) argument
113 int64_t timestamp; in elapsedRealtimeNano() local
132 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
133 checkTimeStamps(timestamp, &prevTimestamp, &prevMethod, METHOD_IOCTL); in elapsedRealtimeNano()
134 return timestamp; in elapsedRealtimeNano()
140 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec; in elapsedRealtimeNano()
[all …]
/system/webservd/webservd/
Dlog_manager_unittest.cc34 void Log(const base::Time& timestamp, const std::string& entry) override { in Log()
49 void LogEntry(const base::Time& timestamp) { in LogEntry() argument
55 timestamp, reinterpret_cast<const sockaddr*>(&client_addr), "POST", in LogEntry()
81 base::Time timestamp = base::Time::Now(); in TEST_F() local
82 LogEntry(timestamp); in TEST_F()
86 time_t time = timestamp.ToTimeT(); in TEST_F()
100 base::Time timestamp = base::Time::FromTimeT(mktime(&date)); in TEST_F() local
102 LogEntry(timestamp); in TEST_F()
103 LogEntry(timestamp); in TEST_F()
104 LogEntry(timestamp); in TEST_F()
[all …]
Dlog_manager.cc100 void Log(const base::Time& timestamp, const std::string& entry) override { in Log() argument
105 time_t time = timestamp.ToTimeT(); in Log()
182 void LogManager::OnRequestCompleted(const base::Time& timestamp, in OnRequestCompleted() argument
193 time_t time = timestamp.ToTimeT(); in OnRequestCompleted()
206 GetInstance()->logger_->Log(timestamp, log_entry); in OnRequestCompleted()
Dlog_manager.h39 virtual void Log(const base::Time& timestamp, const std::string& entry) = 0;
48 static void OnRequestCompleted(const base::Time& timestamp,
/system/core/crash_reporter/
Dkernel_log_collector.sh36 timestamp="$(echo $1 | cut -d " " -f 1)"
37 timestamp="$(date -d "${timestamp}" +%s)" || exit $?
38 echo "${timestamp}"
49 if ! timestamp=$(get_timestamp "${line}"); then
52 if [ ${timestamp} -gt ${allowed_timestamp} ]; then
Dkernel_collector.cc431 float timestamp = 0; in FindCrashingFunction() local
437 while (eip_re.FindAndConsume(&kernel_dump, &timestamp, crashing_function)) { in FindCrashingFunction()
440 timestamp, in FindCrashingFunction()
444 if (timestamp == 0) { in FindCrashingFunction()
451 abs(static_cast<int>(stack_trace_timestamp - timestamp)) in FindCrashingFunction()
472 float timestamp = 0; in FindPanicMessage() local
474 &timestamp, in FindPanicMessage()
478 timestamp, in FindPanicMessage()
482 if (timestamp == 0) { in FindPanicMessage()
/system/gatekeeper/
Dgatekeeper.cpp50 uint64_t timestamp = GetMillisecondsSinceBoot(); in Enroll() local
62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
124 uint64_t timestamp = GetMillisecondsSinceBoot(); in Verify() local
136 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
138 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
152 MintAuthToken(&auth_token_buffer, &auth_token_len, timestamp, in Verify()
218 uint64_t timestamp, secure_id_t user_id, secure_id_t authenticator_id, in MintAuthToken() argument
230 token->timestamp = htobe64(timestamp); in MintAuthToken()
278 bool GateKeeper::ThrottleRequest(uint32_t uid, uint64_t timestamp, in ThrottleRequest() argument
[all …]
/system/core/init/
Dcompare-bootcharts.py93 timestamp = int(lines[0]);
98 jiffy_record['1st_timestamp'] = timestamp
101 jiffy_record['2nd_timestamp'] = timestamp
102 value = 200 / (timestamp -
130 process['last_tick'] = timestamp
/system/bt/hci/src/
Dbtsnoop.c146 uint64_t timestamp = tv.tv_sec * 1000 * 1000LL; in btsnoop_timestamp() local
147 timestamp += tv.tv_usec; in btsnoop_timestamp()
148 timestamp += BTSNOOP_EPOCH_DELTA; in btsnoop_timestamp()
149 return timestamp; in btsnoop_timestamp()
222 uint64_t timestamp = btsnoop_timestamp(); in btsnoop_write_packet() local
223 uint32_t time_hi = timestamp >> 32; in btsnoop_write_packet()
224 uint32_t time_lo = timestamp & 0xFFFFFFFF; in btsnoop_write_packet()
/system/security/keystore/tests/
Dauth_token_table_test.cpp70 uint64_t timestamp = 0) { in make_token() argument
76 token->timestamp = hton(timestamp); in make_token()
313 EXPECT_EQ(1U, ntoh(found->timestamp)); in TEST()
324 EXPECT_EQ(3U, ntoh(found->timestamp)); in TEST()
326 EXPECT_EQ(4U, ntoh(found->timestamp)); in TEST()
343 EXPECT_EQ(5U, ntoh(found->timestamp)); in TEST()
347 EXPECT_EQ(6U, ntoh(found->timestamp)); in TEST()
356 EXPECT_EQ(6U, ntoh(found->timestamp)); in TEST()
365 EXPECT_EQ(6U, ntoh(found->timestamp)); in TEST()
368 EXPECT_EQ(7U, ntoh(found->timestamp)); in TEST()
[all …]
/system/core/logcat/tests/
Dlogcat_benchmark.cpp32 class timestamp { in TEST() class
52 timestamp(const char *buffer) in TEST() function in TEST::timestamp
57 bool operator< (timestamp &T) in TEST()
94 timestamp next(buffer); in TEST()
/system/core/adb/
Dadb_trace.cpp58 char timestamp[PATH_MAX]; in get_log_file_name() local
59 strftime(timestamp, sizeof(timestamp), "%Y-%m-%d-%H-%M-%S", &now); in get_log_file_name()
61 return android::base::StringPrintf("/data/adb/adb-%s-%d", timestamp, in get_log_file_name()
Dfile_sync_client.cpp457 static bool sync_finish_stat(SyncConnection& sc, unsigned int* timestamp, in sync_finish_stat() argument
464 if (timestamp) *timestamp = msg.stat.time; in sync_finish_stat()
472 unsigned int* timestamp, unsigned int* mode, unsigned int* size) { in sync_stat() argument
473 return sc.SendRequest(ID_STAT, path) && sync_finish_stat(sc, timestamp, mode, size); in sync_stat()
684 unsigned int timestamp, mode, size; in copy_local_dir_remote() local
685 if (!sync_finish_stat(sc, &timestamp, &mode, &size)) { in copy_local_dir_remote()
690 if ((S_ISREG(ci.mode & mode) && timestamp == ci.time) || in copy_local_dir_remote()
691 (S_ISLNK(ci.mode & mode) && timestamp >= ci.time)) { in copy_local_dir_remote()
/system/netd/server/
DNetlinkHandler.cpp132 const char *timestamp = evt->findParam("TIME_NS"); in onEvent() local
136 timestamp, uid); in onEvent()
183 const char *timestamp, in notifyInterfaceClassActivity() argument
185 if (timestamp == NULL) in notifyInterfaceClassActivity()
190 "IfaceClass active %s %s %s", name, timestamp, uid); in notifyInterfaceClassActivity()
193 "IfaceClass %s %s %s", isActive ? "active" : "idle", name, timestamp); in notifyInterfaceClassActivity()
DNetlinkHandler.h44 const char *timestamp, const char *uid);
/system/gatekeeper/include/gatekeeper/
Dgatekeeper.h179 void MintAuthToken(UniquePtr<uint8_t> *auth_token, uint32_t *length, uint64_t timestamp,
196 bool IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp,
207 bool ThrottleRequest(uint32_t uid, uint64_t timestamp,
/system/update_engine/update_manager/
Devaluation_context.cc131 bool EvaluationContext::IsWallclockTimeGreaterThan(Time timestamp) { in IsWallclockTimeGreaterThan() argument
132 return IsTimeGreaterThanHelper(timestamp, evaluation_start_wallclock_, in IsWallclockTimeGreaterThan()
136 bool EvaluationContext::IsMonotonicTimeGreaterThan(Time timestamp) { in IsMonotonicTimeGreaterThan() argument
137 return IsTimeGreaterThanHelper(timestamp, evaluation_start_monotonic_, in IsMonotonicTimeGreaterThan()
Ddefault_policy.h47 void set_last_check_allowed_time(base::Time timestamp) { in set_last_check_allowed_time() argument
48 last_check_allowed_time_ = timestamp; in set_last_check_allowed_time()
Devaluation_context.h92 bool IsWallclockTimeGreaterThan(base::Time timestamp);
93 bool IsMonotonicTimeGreaterThan(base::Time timestamp);
/system/bt/stack/btm/
Dbtm_dev.c94 p_dev_rec->timestamp = btm_cb.dev_rec_count++; in BTM_SecAddDevice()
283 p_dev_rec->timestamp = btm_cb.dev_rec_count++; in btm_sec_alloc_dev()
549 if (p_dev_rec->timestamp < ot) { in btm_find_oldest_dev()
551 ot = p_dev_rec->timestamp; in btm_find_oldest_dev()
556 if (p_dev_rec->timestamp < ot_paired) { in btm_find_oldest_dev()
558 ot_paired = p_dev_rec->timestamp; in btm_find_oldest_dev()
/system/bt/btif/include/
Dbtif_media.h230 extern void btif_media_aa_writebuf(BT_HDR *pBuf, UINT32 timestamp, UINT16 seq_num);
242 UINT32 timestamp, UINT16 seq_num);
/system/keymaster/
Dkeymaster_enforcement_test.cpp55 return current_time_ > ntoh(token.timestamp) + timeout; in auth_token_timed_out()
527 token.timestamp = 0; in TEST_F()
550 token.timestamp = 0; in TEST_F()
579 token.timestamp = 0; in TEST_F()
603 token.timestamp = 0; in TEST_F()
630 token.timestamp = 0; in TEST_F()
659 token.timestamp = 0; in TEST_F()
688 token.timestamp = 0; in TEST_F()
711 token.timestamp = 0; in TEST_F()
763 token.timestamp = hton(kmen.current_time()); in TEST_F()
[all …]
/system/core/logd/
DREADME.property43 persist.logd.timestamp string ro The recording timestamp source.
46 ro.logd.timestamp string realtime default for persist.logd.timestamp
/system/core/bootstat/
DREADME.md13 -r, --record Record the timestamp of a named boot event
19 The timestamp recorded by bootstat is the uptime of the system, i.e., the
/system/media/alsa_utils/include/
Dalsa_device_proxy.h42 uint64_t *frames, struct timespec *timestamp);

123