Searched refs:uptime (Results 1 - 25 of 34) sorted by relevance

12

/external/libppp/src/
H A Dthroughput.c61 t->uptime = 0;
87 if (t->uptime && downat < t->uptime) {
94 t->uptime = downat;
96 return t->uptime ? downat - t->uptime : 0;
136 if (t->uptime) {
164 int uptime, divisor; local
169 uptime = throughput_uptime(t);
170 divisor = uptime <
[all...]
H A Dthroughput.h37 time_t uptime, downtime; member in struct:pppThroughput
/external/iptables/include/linux/
H A Dkernel.h14 long uptime; /* Seconds since boot */ member in struct:sysinfo
/external/chromium_org/chrome/browser/chromeos/app_mode/
H A Dkiosk_app_update_service_browsertest.cc50 const base::TimeDelta uptime = base::TimeDelta::FromHours(1); variable
52 base::DoubleToString(uptime.InSecondsF());
53 const base::FilePath uptime_file = temp_dir.Append("uptime");
/external/chromium_org/chrome/browser/chromeos/system/
H A Dautomatic_reboot_manager.cc107 const base::TimeDelta uptime = ReadTimeDeltaFromFile(uptime_file); local
108 if (uptime == kZeroTimeDelta)
119 base::DoubleToString(uptime.InSecondsF());
133 const base::TimeDelta& uptime,
138 if (uptime == kZeroTimeDelta)
140 boot_time = base::TimeTicks::Now() - uptime;
313 // unavailable because /proc/uptime could not be read, do nothing.
324 // If an uptime limit is set, calculate the time at which it should cause a
353 // Safeguard against reboot loops: Ensure that the uptime after which a reboot
132 SystemEventTimes( const base::TimeDelta& uptime, const base::TimeDelta& update_reboot_needed_uptime) argument
H A Dautomatic_reboot_manager.h40 // * If an uptime limit is set through policy, a reboot is scheduled when the
41 // device's uptime reaches the limit. Time spent sleeping counts as uptime as
68 // Reboots are scheduled in terms of device uptime. The current uptime is read
69 // from /proc/uptime. The time at which a reboot became necessary to finish
78 // The current uptime and the uptime at which an update was applied and a
83 SystemEventTimes(const base::TimeDelta& uptime,
H A Dautomatic_reboot_manager_unittest.cc57 // corresponding device uptime is written to |uptime_file_|, providing a mock
58 // for /proc/uptime.
74 void SetUptime(const base::TimeDelta& uptime);
132 void SetUpdateRebootNeededUptime(const base::TimeDelta& uptime);
144 bool ReadUpdateRebootNeededUptimeFromFile(base::TimeDelta* uptime);
152 // The uptime is read in the blocking thread pool and then processed on the
153 // UI thread. This causes the UI thread to start processing the uptime when it
156 // the uptime seen by the UI thread.
209 const base::TimeDelta& uptime) {
210 if (path.empty() || uptime
208 SaveUptimeToFile(const base::FilePath& path, const base::TimeDelta& uptime) argument
249 SetUptime(const base::TimeDelta& uptime) argument
387 SetUpdateRebootNeededUptime( const base::TimeDelta& uptime) argument
482 ReadUpdateRebootNeededUptimeFromFile( base::TimeDelta* uptime) argument
[all...]
/external/dhcpcd/
H A Dcommon.h77 time_t uptime(void);
H A Dipv4ll.c129 up = uptime();
H A Dcommon.c230 uptime(void) function
/external/chromium/chrome/browser/
H A Dcrash_handler_host_linux.cc133 uint64_t uptime; local
141 sizeof(uptime);
155 iov[6].iov_base = &uptime;
156 iov[6].iov_len = sizeof(uptime);
307 info->process_start_time = uptime;
/external/chromium_org/third_party/WebKit/Source/platform/mac/
H A DScrollElasticityController.mm50 struct timeval uptime;
51 timersub(&now, &boottime, &uptime);
52 NSTimeInterval result = uptime.tv_sec + (uptime.tv_usec / 1E+6);
/external/chromium/chrome/browser/chromeos/
H A Dboot_times_loader.cc34 // File uptime logs are located in.
37 static const FilePath::CharType kUptimePrefix[] = FPL("uptime-");
107 // Extracts the uptime value from files located in /tmp, returning the
236 const std::string& uptime,
244 AppendFile(uptime_output, uptime.data(), uptime.size());
313 RecordStatsDelayed, name, stats.uptime, stats.disk));
317 const FilePath kProcUptime(FPL("/proc/uptime"));
321 file_util::ReadFileToString(kProcUptime, &stats.uptime);
235 RecordStatsDelayed(const FilePath::StringType& name, const std::string& uptime, const std::string& disk) argument
H A Dboot_times_loader.h84 // Records current uptime and disk usage for metrics use.
148 std::string uptime; member in struct:chromeos::BootTimesLoader::Stats
/external/chromium_org/chrome/browser/chromeos/
H A Dboot_times_loader.cc78 // Dir uptime & disk logs are located in.
84 static const base::FilePath::CharType kUptimePrefix[] = FPL("uptime-");
142 const std::string& uptime,
151 AppendFile(uptime_output, uptime.data(), uptime.size());
254 base::Bind(&RecordStatsDelayed, name, stats.uptime, stats.disk));
258 const base::FilePath kProcUptime(FPL("/proc/uptime"));
262 base::ReadFileToString(kProcUptime, &stats.uptime);
141 RecordStatsDelayed(const base::FilePath::StringType& name, const std::string& uptime, const std::string& disk) argument
H A Dboot_times_loader.h51 // Records current uptime and disk usage for metrics use.
118 std::string uptime; member in struct:chromeos::BootTimesLoader::Stats
/external/chromium_org/components/breakpad/browser/
H A Dcrash_handler_host_linux.cc164 uint64_t uptime; local
171 sizeof(uptime) +
185 iov[4].iov_base = &uptime;
186 iov[4].iov_len = sizeof(uptime);
355 info->process_start_time = uptime;
/external/iproute2/misc/
H A Drtacct.c583 long uptime = -1; local
584 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
585 if (fscanf(tfp, "%ld", &uptime) != 1)
586 uptime = -1;
590 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Difstat.c711 long uptime = -1; local
712 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
713 if (fscanf(tfp, "%ld", &uptime) != 1)
714 uptime = -1;
717 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
H A Dnstat.c563 long uptime = -1; local
564 if ((tfp = fopen("/proc/uptime", "r")) != NULL) {
565 if (fscanf(tfp, "%ld", &uptime) != 1)
566 uptime = -1;
569 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
/external/chromium_org/chrome/browser/local_discovery/
H A Dprivet_notifications.cc46 const char kPrivetInfoKeyUptime[] = "uptime";
135 int uptime; local
138 !json_value->GetInteger(kPrivetInfoKeyUptime, &uptime) ||
139 uptime > kTenMinutesInSeconds) {
/external/chromium_org/cloud_print/gcp20/prototype/
H A Dprivet_http_server.h52 int uptime; member in struct:PrivetHttpServer::DeviceInfo
H A Dprivet_http_server.cc89 PrivetHttpServer::DeviceInfo::DeviceInfo() : uptime(0) {
255 response->SetInteger("uptime", info.uptime);
/external/kernel-headers/original/linux/
H A Dkernel.h323 long uptime; /* Seconds since boot */ member in struct:sysinfo
/external/strace/
H A Dresource.c401 tprintf("{uptime=%lu, loads=[%lu, %lu, %lu] ",
402 si.uptime, si.loads[0], si.loads[1],

Completed in 1679 milliseconds

12