Searched defs:timestamp (Results 1 - 25 of 27) sorted by relevance

12

/system/update_engine/update_manager/
H A Ddefault_policy.h47 void set_last_check_allowed_time(base::Time timestamp) { argument
48 last_check_allowed_time_ = timestamp;
H A Devaluation_context.cc131 bool EvaluationContext::IsWallclockTimeGreaterThan(Time timestamp) { argument
132 return IsTimeGreaterThanHelper(timestamp, evaluation_start_wallclock_,
136 bool EvaluationContext::IsMonotonicTimeGreaterThan(Time timestamp) { argument
137 return IsTimeGreaterThanHelper(timestamp, evaluation_start_monotonic_,
/system/core/logcat/tests/
H A Dlogcat_benchmark.cpp32 class timestamp { class
52 timestamp(const char *buffer) function in class:timestamp
57 bool operator< (timestamp &T)
94 timestamp next(buffer);
/system/core/libutils/
H A DSystemClock.cpp65 * DEBUG_TIMESTAMP to 1 and call the timestamp routine from a single thread
71 static inline void checkTimeStamps(int64_t timestamp, argument
84 if (timestamp < prevTimestamp) {
93 timestamp, gettime_method_names[curMethod],
98 *prevTimestampPtr = timestamp;
102 #define checkTimeStamps(timestamp, prevTimestampPtr, prevMethodPtr, curMethod)
113 int64_t timestamp; local
132 timestamp = seconds_to_nanoseconds(ts.tv_sec) + ts.tv_nsec;
133 checkTimeStamps(timestamp, &prevTimestamp, &prevMethod, METHOD_IOCTL);
134 return timestamp;
[all...]
/system/media/alsa_utils/
H A Dalsa_device_proxy.c181 uint64_t *frames, struct timespec *timestamp)
186 && pcm_get_htimestamp(proxy->pcm, &avail, timestamp) == 0) {
180 proxy_get_presentation_position(const alsa_device_proxy * proxy, uint64_t *frames, struct timespec *timestamp) argument
/system/webservd/webservd/
H A Dlog_manager_unittest.cc34 void Log(const base::Time& timestamp, const std::string& entry) override {
48 // Adds a test log entry to the file corresponding to the give |timestamp|.
49 void LogEntry(const base::Time& timestamp) { argument
55 timestamp, reinterpret_cast<const sockaddr*>(&client_addr), "POST",
81 base::Time timestamp = base::Time::Now(); local
82 LogEntry(timestamp);
86 time_t time = timestamp.ToTimeT();
100 base::Time timestamp = base::Time::FromTimeT(mktime(&date)); local
102 LogEntry(timestamp);
103 LogEntry(timestamp);
126 base::Time timestamp = base::Time::FromTimeT(mktime(&date)); local
[all...]
H A Dlog_manager.cc100 void Log(const base::Time& timestamp, const std::string& entry) override {
105 time_t time = timestamp.ToTimeT();
182 void LogManager::OnRequestCompleted(const base::Time& timestamp, argument
193 time_t time = timestamp.ToTimeT();
206 GetInstance()->logger_->Log(timestamp, log_entry);
/system/core/adb/
H A Dadb_trace.cpp58 char timestamp[PATH_MAX]; local
59 strftime(timestamp, sizeof(timestamp), "%Y-%m-%d-%H-%M-%S", &now);
61 return android::base::StringPrintf("/data/adb/adb-%s-%d", timestamp,
H A Dfile_sync_service.cpp152 unsigned int timestamp = 0; local
190 timestamp = msg.data.size;
213 u.actime = timestamp;
214 u.modtime = timestamp;
H A Dfile_sync_client.cpp457 static bool sync_finish_stat(SyncConnection& sc, unsigned int* timestamp, argument
464 if (timestamp) *timestamp = msg.stat.time;
472 unsigned int* timestamp, unsigned int* mode, unsigned int* size) {
473 return sc.SendRequest(ID_STAT, path) && sync_finish_stat(sc, timestamp, mode, size);
684 unsigned int timestamp, mode, size;
685 if (!sync_finish_stat(sc, &timestamp, &mode, &size)) {
690 if ((S_ISREG(ci.mode & mode) && timestamp == ci.time) ||
691 (S_ISLNK(ci.mode & mode) && timestamp >= ci.time)) {
471 sync_stat(SyncConnection& sc, const char* path, unsigned int* timestamp, unsigned int* mode, unsigned int* size) argument
/system/bt/hci/src/
H A Dbtsnoop.c146 uint64_t timestamp = tv.tv_sec * 1000 * 1000LL; local
147 timestamp += tv.tv_usec;
148 timestamp += BTSNOOP_EPOCH_DELTA;
149 return timestamp;
222 uint64_t timestamp = btsnoop_timestamp(); local
223 uint32_t time_hi = timestamp >> 32;
224 uint32_t time_lo = timestamp & 0xFFFFFFFF;
/system/gatekeeper/
H A Dgatekeeper.cpp50 uint64_t timestamp = GetMillisecondsSinceBoot(); local
62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return;
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) {
124 uint64_t timestamp = GetMillisecondsSinceBoot(); local
136 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return;
138 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) {
152 MintAuthToken(&auth_token_buffer, &auth_token_len, timestamp,
218 uint64_t timestamp, secure_id_t user_id, secure_id_t authenticator_id,
230 token->timestamp = htobe64(timestamp);
217 MintAuthToken(UniquePtr<uint8_t> *auth_token, uint32_t *length, uint64_t timestamp, secure_id_t user_id, secure_id_t authenticator_id, uint64_t challenge) argument
278 ThrottleRequest(uint32_t uid, uint64_t timestamp, failure_record_t *record, bool secure, GateKeeperMessage *response) argument
306 IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp, failure_record_t *record, bool secure) argument
[all...]
/system/netd/server/
H A DNetlinkHandler.cpp132 const char *timestamp = evt->findParam("TIME_NS"); local
136 timestamp, uid);
183 const char *timestamp,
185 if (timestamp == NULL)
190 "IfaceClass active %s %s %s", name, timestamp, uid);
193 "IfaceClass %s %s %s", isActive ? "active" : "idle", name, timestamp);
181 notifyInterfaceClassActivity(const char *name, bool isActive, const char *timestamp, const char *uid) argument
/system/core/crash_reporter/
H A Dkernel_collector.cc47 // Kernel log timestamp regular expression.
99 // timestamp. Ignore the header.
431 float timestamp = 0; local
437 while (eip_re.FindAndConsume(&kernel_dump, &timestamp, crashing_function)) {
440 timestamp,
444 if (timestamp == 0) {
451 abs(static_cast<int>(stack_trace_timestamp - timestamp))
472 float timestamp = 0; local
474 &timestamp,
478 timestamp,
[all...]
H A Dcrash_collector.cc134 time_t timestamp,
137 localtime_r(&timestamp, &tm);
133 FormatDumpBasename(const std::string &exec_name, time_t timestamp, pid_t pid) argument
/system/bt/stack/l2cap/
H A Dl2c_fcr.c337 * end for a timestamp at the end of an I-frame.
1811 /* set timestamp at the end of tx I-frame to get acking delay */
2434 UINT32 timestamp, delay; local
2464 /* get timestamp from tx I-frame that receiver is acking */
2471 STREAM_TO_UINT32(timestamp, p);
2472 delay = time_get_os_boottime_ms() - timestamp;
2494 timestamp = time_get_os_boottime_ms();
2495 if (timestamp - p_ccb->fcrb.throughput_start > 0)
2496 p_ccb->fcrb.throughput[index] /= (timestamp - p_ccb->fcrb.throughput_start);
2498 p_ccb->fcrb.throughput_start = timestamp;
[all...]
/system/bt/bta/av/
H A Dbta_av_aact.c2227 UINT32 timestamp; local
2247 /* use q_info.a2d data, read the timestamp */
2248 timestamp = *(UINT32 *)(p_buf + 1);
2255 &timestamp);
2260 *(UINT32 *)(p_buf + 1) = timestamp;
2285 AVDT_WriteReqOpt(p_scb->avdt_handle, p_buf, timestamp, m_pt, opt);
H A Dbta_av_int.h448 UINT32 timestamp; member in struct:__anon61
/system/connectivity/shill/
H A Dservice_unittest.cc1716 Timestamp timestamp; local
1717 EXPECT_CALL(time_, GetNow()).Times(7).WillRepeatedly((Return(timestamp)));
1729 Timestamp timestamp; local
1730 EXPECT_CALL(time_, GetNow()).Times(5).WillRepeatedly((Return(timestamp)));
1738 Timestamp timestamp; local
1739 EXPECT_CALL(time_, GetNow()).Times(5).WillRepeatedly((Return(timestamp)));
/system/core/healthd/
H A Dhealthd_mode_charger.cpp83 int64_t timestamp; member in struct:key_state
472 /* only record the down even timestamp, as the amount
475 charger->keys[code].timestamp = now;
481 int64_t duration = now - charger->keys[code].timestamp;
503 int64_t then = key->timestamp + timeout;
515 int64_t reboot_timeout = key->timestamp + POWER_ON_KEY_TIME;
/system/core/include/system/
H A Dwindow.h385 * Special timestamp value to indicate that timestamps should be auto-generated
855 * native_window_set_buffers_timestamp(..., int64_t timestamp)
856 * All buffers queued after this call will be associated with the timestamp
857 * parameter specified. If the timestamp is set to NATIVE_WINDOW_TIMESTAMP_AUTO
859 * called. The timestamp is measured in nanoseconds, and is normally monotonically
860 * increasing. The timestamp should be unaffected by time-of-day adjustments,
866 int64_t timestamp)
869 timestamp);
864 native_window_set_buffers_timestamp( struct ANativeWindow* window, int64_t timestamp) argument
/system/update_engine/
H A Domaha_request_action_unittest.cc1721 int64_t timestamp = 0; local
1722 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateFirstSeenAt, &timestamp));
1723 ASSERT_GT(timestamp, 0);
1749 // Set the timestamp to a very old value such that it exceeds the
1769 // Make sure the timestamp t1 is unchanged showing that it was reused.
1770 int64_t timestamp = 0; local
1771 ASSERT_TRUE(fake_prefs_.GetInt64(kPrefsUpdateFirstSeenAt, &timestamp));
1772 ASSERT_TRUE(timestamp == t1.ToInternalValue());
H A Dpayload_state.cc1070 const Time& timestamp,
1074 update_duration_uptime_timestamp_ = timestamp;
1356 // Set timestamp, if it hasn't been set already
1069 SetUpdateDurationUptimeExtended(const TimeDelta& value, const Time& timestamp, bool use_logging) argument
/system/bt/audio_a2dp_hw/
H A Daudio_a2dp_hw.c165 /* logs timestamp with microsec precision
829 uint64_t *frames, struct timespec *timestamp)
834 if (stream == NULL || frames == NULL || timestamp == NULL)
842 clock_gettime(CLOCK_MONOTONIC, timestamp); // could also be associated with out_write().
828 out_get_presentation_position(const struct audio_stream_out *stream, uint64_t *frames, struct timespec *timestamp) argument
/system/bt/btif/src/
H A Dbtif_dm.c188 struct timespec timestamp; member in struct:__anon645
3469 clock_gettime(CLOCK_REALTIME, &event->timestamp);
3497 uint64_t ts = event->timestamp.tv_sec * 1000 +
3498 event->timestamp.tv_nsec / 1000000;
3517 struct tm *tstamp = localtime(&event->timestamp.tv_sec);
3520 event->timestamp.tv_nsec / 1000000);

Completed in 1890 milliseconds

12