/system/extras/timeinfo/ |
timeinfo.cpp | 17 /* Report realtime, uptime, awake percentage, and sleep percentage to stdout. 30 int64_t realtime, uptime; local 33 uptime = android::uptimeMillis(); 40 awaketime = ((1000 * uptime / realtime) + 5) / 10; 41 sleeptime = ((1000 * (realtime - uptime) / realtime) + 5) / 10; 43 printf("%jd %jd %jd %jd\n", (intmax_t) realtime, (intmax_t) uptime,
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/tests/ |
armtime | 6 my_awk=/tmp/.uptime.$$.awk 7 my_log=/tmp/.uptime.$$.log 48 uptime_total = 0; # total system uptime (before/after) 49 uptime_idle = 0; # total idle uptime (before/after) 70 /^[0-9]+\./ { # /proc/uptime lines 71 # the first time an uptime line is encountered factor should be -1, the 73 # that to decide if it is the 1st uptime line 75 # get uptime stats (for beginning or end) 80 print "got(/proc/uptime):", $0, "=>", factor, uptime_total, uptime_idle 151 print " Test duration:", uptime_total, "(uptime)" dur_time dur_cp [all...] |
/frameworks/base/core/java/android/webkit/ |
PerfChecker.java | 40 long upTime = SystemClock.uptimeMillis(); 41 long time = upTime - mTime; 46 mTime = upTime;
|
/bionic/libc/kernel/common/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-3/arch-arm/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-4/arch-arm/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-5/arch-arm/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-5/arch-x86/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-8/arch-arm/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/ndk/build/platforms/android-8/arch-x86/usr/include/linux/ |
kernel.h | 17 long uptime; member in struct:sysinfo
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/src/ |
perf_rt.c | 105 /* allocate uptime tracking structures */ 107 /* :NOTE: for now we restrict creations of uptime to steady state 236 static void get_uptime(double *uptime, double *idletime) 238 FILE *fUptime = fopen("/proc/uptime", "r"); 241 fscanf(fUptime, "%lg %lg", uptime, idletime); 246 *uptime = *idletime = 0.; 252 double uptime, idletime; local 256 /* add uptime since last time */ 257 get_uptime(&uptime, &idletime); 260 if (dUptime->success && uptime && idletime 727 double uptime, idletime, load = 0; local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/timer/macos/ |
FastTimes.c | 34 some NuBus PowerMacs. If it is, we use UpTime() : Overhead = 2.1 ?sec. 43 uses UpTime() if available and falls back to Microseconds() otherwise. 45 UpTime() if available and falls back to Microseconds() otherwise. 61 Time Manager implementation: UpTime(), Microseconds(), and TickCount() are 63 UpTime() against TickCount(). We now check for this feature using Gestalt(), 122 /* If we loaded UpTime(), then we need to know if the system has 272 /* The Time Manager and UpTime() are entirely native on this machine */ 273 method = "\pNative UpTime()";
|
/packages/apps/Settings/res/layout/ |
battery_info.xml | 71 <!-- Uptime --> 74 <TextView android:id="@+id/uptime" style="@style/info_value" />
|
/external/webkit/WebCore/platform/win/ |
SystemTimeWin.cpp | 44 return (GetTickCount() - lastInputInfo.dwTime) * 0.001; // ::GetTickCount returns ms of uptime valid for up to 49.7 days.
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/inc/ |
perf_rt.h | 30 /* data needed for uptime calculations */ 116 /* uptime data */ 117 struct PERF_RTdata_uptime *dUptime; /* uptime data */
|
/packages/apps/Settings/src/com/android/settings/ |
BatteryInfo.java | 177 mUptime = (TextView) findViewById(R.id.uptime); 197 long uptime = SystemClock.elapsedRealtime(); local 198 mUptime.setText(DateUtils.formatElapsedTime(uptime / 1000));
|
/external/iproute2/misc/ |
nstat.c | 563 long uptime; 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) {
|
rtacct.c | 580 long uptime; local 581 if ((tfp = fopen("/proc/uptime", "r")) != NULL) { 582 if (fscanf(tfp, "%ld", &uptime) != 1) 583 uptime = -1; 587 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
|
ifstat.c | 713 long uptime; local 714 if ((tfp = fopen("/proc/uptime", "r")) != NULL) { 715 if (fscanf(tfp, "%ld", &uptime) != 1) 716 uptime = -1; 719 if (uptime >= 0 && time(NULL) >= stb.st_mtime+uptime) {
|
/external/dhcpcd/ |
common.h | 80 time_t uptime(void);
|
/external/tcpdump/ |
print-chdlc.c | 181 if (length >= SLARP_MAX_LEN) { /* uptime-stamp is optional */ 189 printf(", link uptime=%ud%uh%um%us",days,hrs,min,sec);
|
/frameworks/base/core/java/android/os/ |
SystemClock.java | 105 * @param ms to sleep before returning, in milliseconds of uptime. 143 * @return milliseconds of non-sleep uptime since boot.
|
BatteryStats.java | 371 * @param batteryUptime elapsed uptime on battery in microseconds. 539 * Returns the current battery uptime in microseconds. 554 * @return the uptime in microseconds while unplugged 578 * Returns the total, last, or current battery uptime in microseconds. 594 * Returns the total, last, or current uptime in microseconds. [all...] |
/development/cmds/monkey/src/com/android/commands/monkey/ |
MonkeySourceNetworkVars.java | 152 VAR_MAP.put("clock.uptime", new VarGetter() {
|
/frameworks/base/core/java/com/android/internal/os/ |
BatteryStatsImpl.java | 2783 long uptime = SystemClock.uptimeMillis() * 1000; local [all...] |