Home
last modified time | relevance | path

Searched refs:uptime (Results 1 – 9 of 9) sorted by relevance

/system/core/bootstat/
Dboot_event_record_store.cpp37 bool ParseRecordEventTime(const std::string& path, int32_t* uptime) { in ParseRecordEventTime() argument
38 DCHECK_NE(static_cast<int32_t*>(nullptr), uptime); in ParseRecordEventTime()
46 *uptime = file_stat.st_mtime; in ParseRecordEventTime()
61 bootstat::LogHistogram("bootstat_mtime_matches_content", value == *uptime); in ParseRecordEventTime()
126 int32_t uptime; in GetBootEvent() local
127 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent()
132 *record = std::make_pair(event, uptime); in GetBootEvent()
Dboot_event_record_store_test.cpp137 time_t uptime = bootstat::ParseUptime(); in TEST_F() local
138 ASSERT_NE(-1, uptime); in TEST_F()
145 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F()
152 time_t uptime = bootstat::ParseUptime(); in TEST_F() local
153 ASSERT_NE(-1, uptime); in TEST_F()
178 EXPECT_TRUE(FuzzUptimeEquals(uptime, *i)); in TEST_F()
Dbootstat.cpp168 time_t uptime = bootstat::ParseUptime(); in RecordBootComplete() local
180 boot_event_store.AddBootEventWithValue("boot_decryption_complete", uptime); in RecordBootComplete()
183 time_t boot_complete = uptime - record.second; in RecordBootComplete()
190 uptime); in RecordBootComplete()
195 boot_event_store.AddBootEventWithValue(boot_complete_prefix, uptime); in RecordBootComplete()
DREADME.md19 The timestamp recorded by bootstat is the uptime of the system, i.e., the
/system/core/include/utils/
DLooper.h369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
437 MessageEnvelope() : uptime(0) { } in MessageEnvelope()
439 MessageEnvelope(nsecs_t uptime, const sp<MessageHandler> handler, in MessageEnvelope()
440 const Message& message) : uptime(uptime), handler(handler), message(message) { in MessageEnvelope()
443 nsecs_t uptime; member
/system/core/libutils/
DLooper.cpp321 if (messageEnvelope.uptime <= now) { in pollInner()
345 mNextMessageUptime = messageEnvelope.uptime; in pollInner()
597 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument
601 this, uptime, handler.get(), message.what); in sendMessageAtTime()
609 while (i < messageCount && uptime >= mMessageEnvelopes.itemAt(i).uptime) { in sendMessageAtTime()
613 MessageEnvelope messageEnvelope(uptime, handler, message); in sendMessageAtTime()
/system/core/init/
Dbootchart.cpp62 std::string uptime; in get_uptime_jiffies() local
63 if (!android::base::ReadFileToString("/proc/uptime", &uptime)) { in get_uptime_jiffies()
66 return 100LL * strtod(uptime.c_str(), NULL); in get_uptime_jiffies()
/system/sepolicy/
Dbootstat.te11 # Read access to pseudo filesystems (for /proc/uptime).
/system/core/adb/
Dtest_device.py301 uptime, idle = elements
302 self.assertGreater(float(uptime), 0.0)