Searched defs:uptime (Results 1 - 7 of 7) sorted by relevance

/system/core/bootstat/
H A Dboot_event_record_store.cpp39 // from the record into |uptime|.
40 bool ParseRecordEventTime(const std::string& path, int32_t* uptime) { argument
41 DCHECK_NE(static_cast<int32_t*>(nullptr), uptime); local
49 *uptime = file_stat.st_mtime;
61 auto uptime = std::chrono::duration_cast<std::chrono::seconds>( local
63 AddBootEventWithValue(event, uptime.count());
105 int32_t uptime; local
106 if (!ParseRecordEventTime(record_path, &uptime)) {
111 *record = std::make_pair(event, uptime);
H A Dboot_event_record_store_test.cpp139 time_t uptime = GetUptimeSeconds(); local
140 ASSERT_NE(-1, uptime);
147 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second));
154 time_t uptime = GetUptimeSeconds(); local
155 ASSERT_NE(-1, uptime);
180 EXPECT_TRUE(FuzzUptimeEquals(uptime, *i));
H A Dbootstat.cpp283 std::chrono::milliseconds uptime) {
294 std::chrono::duration_cast<std::chrono::seconds>(bootloader_duration + uptime);
305 auto uptime = std::chrono::duration_cast<std::chrono::seconds>(time_since_epoch); local
332 boot_event_store.AddBootEventWithValue("boot_decryption_complete", uptime.count());
335 std::chrono::seconds boot_complete = std::chrono::seconds(uptime.count() - record.second);
340 uptime.count());
345 boot_event_store.AddBootEventWithValue(boot_complete_prefix, uptime.count());
281 RecordAbsoluteBootTime(BootEventRecordStore* boot_event_store, const BootloaderTimingMap& bootloader_timings, std::chrono::milliseconds uptime) argument
/system/core/init/
H A Dbootchart.cpp53 std::string uptime; local
54 if (!android::base::ReadFileToString("/proc/uptime", &uptime)) return 0;
55 return 100LL * strtod(uptime.c_str(), NULL);
/system/core/include/utils/
H A DLooper.h354 * The time delay is specified in uptime nanoseconds.
365 * The time is specified in uptime nanoseconds.
369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
437 MessageEnvelope() : uptime(0) { }
440 const Message& m) : uptime(u), handler(h), message(m) {
443 nsecs_t uptime; member in struct:android::Looper::MessageEnvelope
/system/core/libutils/include/utils/
H A DLooper.h354 * The time delay is specified in uptime nanoseconds.
365 * The time is specified in uptime nanoseconds.
369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
437 MessageEnvelope() : uptime(0) { }
440 const Message& m) : uptime(u), handler(h), message(m) {
443 nsecs_t uptime; member in struct:android::Looper::MessageEnvelope
/system/extras/ioshark/
H A Dioshark_bench_subr.c345 unsigned long long uptime; member in struct:cpu_disk_util_stats
432 /* Read and parse /proc/uptime */
433 fp = fopen("/proc/uptime", "r");
435 fprintf(stderr, "%s: Cannot read /proc/uptime\n",
441 state->uptime = (unsigned long long) up_sec * hz +
551 (after.uptime - before.uptime);

Completed in 111 milliseconds