Home
last modified time | relevance | path

Searched refs:uptime (Results 1 – 22 of 22) 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()
103 int32_t uptime; in GetBootEvent() local
104 if (!ParseRecordEventTime(record_path, &uptime)) { in GetBootEvent()
109 *record = std::make_pair(event, uptime); in GetBootEvent()
Dboot_event_record_store_test.cpp134 time_t uptime = GetUptimeSeconds(); in TEST_F() local
135 ASSERT_NE(-1, uptime); in TEST_F()
142 EXPECT_TRUE(FuzzUptimeEquals(uptime, events[0].second)); in TEST_F()
149 time_t uptime = GetUptimeSeconds(); in TEST_F() local
150 ASSERT_NE(-1, uptime); in TEST_F()
173 EXPECT_TRUE(FuzzUptimeEquals(uptime, *i)); in TEST_F()
DREADME.md19 The timestamp recorded by bootstat is the uptime of the system, i.e., the
Dbootstat.cpp1202 std::chrono::milliseconds uptime) { in GetAbsoluteBootTime() argument
1212 return bootloader_duration + uptime; in GetAbsoluteBootTime()
/system/core/libutils/include/utils/
DLooper.h373 void sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler,
441 MessageEnvelope() : uptime(0) { } in MessageEnvelope()
444 : uptime(u), handler(std::move(h)), message(m) {} in MessageEnvelope()
446 nsecs_t uptime; member
/system/extras/boottime_tools/bootio/
Dprotos.proto26 required int64 uptime = 2; field
45 required int64 uptime = 2; field
Dbootio_collector.cpp220 int uptime; member
273 stats.uptime = newerSample->uptime(); in PrintPids()
281 olderSample->uptime(), in PrintPids()
282 newerSample->uptime(), in PrintPids()
312 it->second.uptime, in PrintPids()
/system/core/libutils/
DLooper.cpp309 if (messageEnvelope.uptime <= now) { in pollInner()
333 mNextMessageUptime = messageEnvelope.uptime; in pollInner()
586 void Looper::sendMessageAtTime(nsecs_t uptime, const sp<MessageHandler>& handler, in sendMessageAtTime() argument
590 this, uptime, handler.get(), message.what); in sendMessageAtTime()
598 while (i < messageCount && uptime >= mMessageEnvelopes.itemAt(i).uptime) { in sendMessageAtTime()
602 MessageEnvelope messageEnvelope(uptime, handler, message); in sendMessageAtTime()
/system/sepolicy/prebuilts/api/27.0/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/core/shell_and_utilities/
DREADME.md45 umount uptime vmstat watchprops wipe
56 touch umount uptime vmstat watchprops wipe
68 sync top touch umount uptime vmstat watchprops wipe
80 stop swapoff swapon sync top touch umount uptime vmstat watchprops wipe
92 top touch umount uptime vmstat watchprops wipe
100 newfs\_msdos ps prlimit renice sendevent start stop top uptime watchprops
133 **uptime** usleep vmstat wc which whoami xargs **xxd** yes
156 tty ulimit umount uname uniq unix2dos uptime usleep **uudecode** **uuencode**
182 umount uname uniq unix2dos uptime usleep uudecode uuencode vmstat wc
213 **unshare** uptime usleep uudecode uuencode **uuidgen** **vconfig** vmstat **watch**
[all …]
/system/libprocinfo/
Dprocess_test.cpp124 std::string uptime; in read_uptime_secs() local
125 if (!android::base::ReadFileToString("/proc/uptime", &uptime)) { in read_uptime_secs()
128 return strtoll(uptime.c_str(), nullptr, 10); in read_uptime_secs()
/system/core/init/
Dbootchart.cpp56 boot_clock::time_point uptime = boot_clock::now(); in get_uptime_jiffies() local
57 return uptime.time_since_epoch().count() / kNanosecondsPerJiffy; in get_uptime_jiffies()
/system/extras/app-launcher/
Dapp-launcher338 uptime=$($adb shell 'cat /proc/uptime')
339 uptime_before_ms=$(echo "$uptime" | awk '{ print ($1 * 1000) }')
358 uptime=$($adb shell 'cat /proc/uptime')
359 uptime_after_ms=$(echo "$uptime" | awk '{ print ($1 * 1000) }')
/system/extras/ioshark/
Dioshark_bench_subr.c344 unsigned long long uptime; member
445 state->uptime = (unsigned long long) up_sec * hz + in read_disk_util_state()
555 (after.uptime - before.uptime); in report_cpu_disk_util()
/system/core/debuggerd/proto/
Dtombstone.proto22 // Process uptime in seconds.
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto.cpp593 std::string uptime; in read_uptime_secs() local
594 if (!android::base::ReadFileToString("/proc/uptime", &uptime)) { in read_uptime_secs()
597 return strtoll(uptime.c_str(), nullptr, 10); in read_uptime_secs()
/system/sepolicy/prebuilts/api/28.0/private/
Dgenfs_contexts83 genfscon proc /uptime u:object_r:proc_uptime:s0
/system/sepolicy/prebuilts/api/29.0/private/
Dgenfs_contexts93 genfscon proc /uptime u:object_r:proc_uptime:s0
/system/sepolicy/prebuilts/api/30.0/private/
Dgenfs_contexts95 genfscon proc /uptime u:object_r:proc_uptime:s0
/system/sepolicy/prebuilts/api/31.0/private/
Dgenfs_contexts101 genfscon proc /uptime u:object_r:proc_uptime:s0
/system/sepolicy/private/
Dgenfs_contexts101 genfscon proc /uptime u:object_r:proc_uptime:s0