Home
last modified time | relevance | path

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

/system/core/bootstat/
Dboot_event_record_store.cpp40 bool ParseRecordEventTime(const std::string& path, int32_t* uptime) { in ParseRecordEventTime() argument
41 DCHECK_NE(static_cast<int32_t*>(nullptr), uptime); in ParseRecordEventTime()
49 *uptime = file_stat.st_mtime; in ParseRecordEventTime()
61 auto uptime = std::chrono::duration_cast<std::chrono::seconds>( in AddBootEvent() local
63 AddBootEventWithValue(event, uptime.count()); in AddBootEvent()
105 int32_t uptime; in GetBootEvent() local
106 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent()
111 *record = std::make_pair(event, uptime); in GetBootEvent()
Dboot_event_record_store_test.cpp139 time_t uptime = GetUptimeSeconds(); in TEST_F() local
140 ASSERT_NE(-1, uptime); in TEST_F()
147 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F()
154 time_t uptime = GetUptimeSeconds(); in TEST_F() local
155 ASSERT_NE(-1, uptime); in TEST_F()
180 EXPECT_TRUE(FuzzUptimeEquals(uptime, *i)); in TEST_F()
Dbootstat.cpp283 std::chrono::milliseconds uptime) { in RecordAbsoluteBootTime() argument
294 std::chrono::duration_cast<std::chrono::seconds>(bootloader_duration + uptime); in RecordAbsoluteBootTime()
305 auto uptime = std::chrono::duration_cast<std::chrono::seconds>(time_since_epoch); in RecordBootComplete() local
332 boot_event_store.AddBootEventWithValue("boot_decryption_complete", uptime.count()); in RecordBootComplete()
335 std::chrono::seconds boot_complete = std::chrono::seconds(uptime.count() - record.second); in RecordBootComplete()
340 uptime.count()); in RecordBootComplete()
345 boot_event_store.AddBootEventWithValue(boot_complete_prefix, uptime.count()); in RecordBootComplete()
DREADME.md19 The timestamp recorded by bootstat is the uptime of the system, i.e., the
Dbootstat.rc49 # restart (e.g., adb shell stop && adb shell start). /proc/uptime is not reset
/system/core/libutils/include/utils/
DLooper.h369 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
437 MessageEnvelope() : uptime(0) { } in MessageEnvelope()
440 const Message& m) : uptime(u), handler(h), message(m) { in MessageEnvelope()
443 nsecs_t uptime; member
/system/core/init/
Dbootchart.cpp53 std::string uptime; in get_uptime_jiffies() local
54 if (!android::base::ReadFileToString("/proc/uptime", &uptime)) return 0; in get_uptime_jiffies()
55 return 100LL * strtod(uptime.c_str(), NULL); in get_uptime_jiffies()
/system/core/shell_and_utilities/
DREADME.md38 umount uptime vmstat watchprops wipe
50 touch umount uptime vmstat watchprops wipe
63 sync top touch umount uptime vmstat watchprops wipe
76 stop swapoff swapon sync top touch umount uptime vmstat watchprops wipe
89 top touch umount uptime vmstat watchprops wipe
98 newfs\_msdos ps prlimit renice sendevent start stop top uptime watchprops
132 uptime usleep vmstat wc which whoami xargs xxd yes
156 unix2dos uptime usleep uudecode uuencode vmstat wc which whoami xargs
/system/core/libutils/
DLooper.cpp312 if (messageEnvelope.uptime <= now) { in pollInner()
336 mNextMessageUptime = messageEnvelope.uptime; in pollInner()
589 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument
593 this, uptime, handler.get(), message.what); in sendMessageAtTime()
601 while (i < messageCount && uptime >= mMessageEnvelopes.itemAt(i).uptime) { in sendMessageAtTime()
605 MessageEnvelope messageEnvelope(uptime, handler, message); in sendMessageAtTime()
/system/sepolicy/public/
Dbootstat.te11 # Read access to pseudo filesystems (for /proc/uptime).
/system/sepolicy/prebuilts/api/26.0/public/
Dbootstat.te11 # Read access to pseudo filesystems (for /proc/uptime).
/system/extras/app-launcher/
Dapp-launcher340 uptime=`$adb shell 'cat /proc/uptime'`
341 uptime_before_hz=`echo $uptime | awk '{ print ($1 * 100) }'`
344 device_util_before_hz=`echo $uptime | awk '{ print ($13 / 10) }'`
364 uptime=`$adb shell 'cat /proc/uptime'`
365 uptime_after_hz=`echo $uptime | awk '{ print ($1 * 100) }'`
/system/extras/ioshark/
Dioshark_bench_subr.c345 unsigned long long uptime; member
441 state->uptime = (unsigned long long) up_sec * hz + in read_disk_util_state()
551 (after.uptime - before.uptime); in report_cpu_disk_util()
/system/core/adb/
Dtest_device.py334 uptime, idle = elements
335 self.assertGreater(float(uptime), 0.0)