/external/v8/src/base/platform/ |
time.cc | 5 #include "src/base/platform/time.h" 9 #include <sys/time.h> 30 return TimeDelta(days * Time::kMicrosecondsPerDay); 35 return TimeDelta(hours * Time::kMicrosecondsPerHour); 40 return TimeDelta(minutes * Time::kMicrosecondsPerMinute); 45 return TimeDelta(seconds * Time::kMicrosecondsPerSecond); 50 return TimeDelta(milliseconds * Time::kMicrosecondsPerMillisecond); 55 return TimeDelta(nanoseconds / Time::kNanosecondsPerMicrosecond); 60 return static_cast<int>(delta_ / Time::kMicrosecondsPerDay); 65 return static_cast<int>(delta_ / Time::kMicrosecondsPerHour) 161 Time time = GetSystemTime(); local [all...] |
/external/v8/src/ |
date.js | 39 function UTC(time) { 40 if (NUMBER_IS_NAN(time)) return time; 43 return %DateToUTC(time); 91 function MakeDate(day, time) { 92 var time = day * msPerDay + time; 93 // Some of our runtime funtions for computing UTC(time) rely on 95 // is no way that the time can be within range even after UTC 98 if ($abs(time) > MAX_TIME_BEFORE_UTC) return NAN [all...] |
/external/v8/tools/push-to-trunk/ |
common_includes.py | 41 import time namespace 243 time.sleep(seconds) 249 return time.mktime(datetime.datetime.utcnow().timetuple())
|
/external/wpa_supplicant_8/src/utils/ |
eloop_win.c | 34 struct os_reltime time; member in struct:eloop_timeout 247 if (os_get_reltime(&timeout->time) < 0) { 251 now_sec = timeout->time.sec; 252 timeout->time.sec += secs; 253 if (timeout->time.sec < now_sec) { 263 timeout->time.usec += usecs; 264 while (timeout->time.usec >= 1000000) { 265 timeout->time.sec++; 266 timeout->time.usec -= 1000000; 272 /* Maintain timeouts in order of increasing time */ [all...] |
/frameworks/av/media/libstagefright/ |
VideoFrameScheduler.cpp | 23 #include <sys/time.h> 142 nsecs_t time = mTimes[ix]; local 144 x += divRound(time - lastTime, period); 150 int64_t y = divRound(time - phase, period >> kPrecision); 156 lastTime = time; 190 nsecs_t time = mTimes[index]; local 192 if (time - lastTime > kMinPeriod) { 193 //ALOGV("delta: %lld", (long long)(time - lastTime)); 194 deltas.push(time - lastTime); 197 firstTime = time; [all...] |
/frameworks/av/media/libstagefright/foundation/ |
AMessage.cpp | 133 int32_t time = (ALooper::GetNowUs() / 1000); local 134 if (time / 1000 != gLastChecked / 1000) { 135 gLastChecked = time; 145 gLastChecked = time;
|
/frameworks/av/services/audioflinger/ |
test-resample.cpp | 26 #include <time.h> 228 double time = (input_freq / 2) / k; local 229 size_t input_frames = size_t(input_freq * time); 359 int64_t time = end_ns - start_ns; local 361 looplimit * 4 / (time / 1e9)); 375 time = end_ns - start_ns; 377 looplimit / (time / 1e9)); 393 * and take the minimum time. 410 int64_t time = 0; local 422 if (n == 0 || diff_ns < time) { [all...] |
/frameworks/base/core/java/android/app/ |
ApplicationErrorReport.java | 112 * Time at which the error occurred. 114 public long time; field in class:ApplicationErrorReport 236 dest.writeLong(time); 263 time = in.readLong(); 613 pw.println(prefix + "time: " + time);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
Events.java | 108 final long time = System.currentTimeMillis(); local 175 sCallback.writeEvent(time, tag, list); 179 public static void writeState(long time, State state) { 181 sCallback.writeState(time, state); 214 void writeEvent(long time, int tag, Object[] list); 215 void writeState(long time, State state);
|
/frameworks/base/services/core/java/com/android/server/location/ |
GeofenceManager.java | 187 long time = SystemClock.elapsedRealtime(); local 191 if (state.mExpireAt < time) {
|
/frameworks/compile/libbcc/gdb_plugin/ |
android-commands.py | 33 import time namespace 392 time.sleep(retry_delay)
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
RadialTextsView.java | 17 package com.android.datetimepicker.time;
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneFilterTypeAdapter.java | 46 void onSetFilter(int filterType, String str, int time); 52 int time; field in class:TimeZoneFilterTypeAdapter.ViewHolder 65 public int time; field in class:TimeZoneFilterTypeAdapter.FilterTypeResult 67 public FilterTypeResult(int type, String constraint, int time) { 70 this.time = time; 131 vh.time = filter.time; 152 mListener.onSetFilter(vh.filterType, vh.str, vh.time); 190 // Search by local time and GMT offse [all...] |
TimeZoneInfo.java | 23 import android.text.format.Time; 42 public static long time = System.currentTimeMillis() / 1000; field in class:TimeZoneInfo 53 private Time recycledTime = new Time(); 64 mTransitions = getTransitions(tz, time); 134 // TODO Note: The local time is shown in current time (current GMT 135 // offset) which may be different from the time specified by 197 private static int[] getTransitions(TimeZone tz, long time) 208 if (objTransitions[i] < time) { [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
TimeZoneTest.java | 42 SimpleTimeZone stz = new SimpleTimeZone(21600000, "Central Standard Time"); 70 // Any time before we have transition data is considered non-daylight, even in summer. 83 // "Africa/Bissau" has just a few transitions and hasn't changed in a long time. 125 long time = 2147483648000L;// Tue, 19 Jan 2038 03:14:08 GMT local 127 long offset = timeZone.getOffset(time); 186 @Override public void setStartRule(int m, int d, int dow, int time) { 189 @Override public void setStartRule(int m, int d, int dow, int time, boolean after) { 192 @Override public void setEndRule(int m, int d, int dow, int time) { 195 @Override public void setEndRule(int m, int d, int dow, int time, boolean after) { 203 // Check that there are no time zones that use DST but have the same display name fo [all...] |
/libcore/luni/src/test/java/tests/java/sql/ |
SelectFunctionalityTest.java | 29 import java.sql.Time; 50 private static Time time; field in class:SelectFunctionalityTest 103 time = new Time(currentTime); 161 time.toString(), result.getTime("ftime").toString()); 194 prepStatement.setTime(10, time); 222 time.toString(), result.getTime("ftime").toString());
|
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarViewAdapter.java | 24 import android.text.format.Time; 66 // The current selected event's time, used to calculate the date and day of the week 75 private Handler mMidnightHandler = null; // Used to run a time update every midnight 78 // Updates time specific variables (time-zone, today's Julian day). 100 // Sets time specific variables and starts a thread for midnight updates 107 // Sets the time zone and today's Julian day to be used by the adapter. 111 Time time = new Time(mTimeZone) local 125 Time time = new Time(mTimeZone); local [all...] |
OtherPreferences.java | 34 import android.text.format.Time; 43 // time the file was created. 205 Log.d(TAG, "Set time for unknown listener: "+mListenerId); 218 Time time = new Time(); local 219 time.hour = hourOfDay; 220 time.minute = minute; 223 return time.format(format); 246 // Value was not known ahead of time, so the default value will be set [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlarmScheduler.java | 32 import android.text.format.Time; 75 // the CalendarAlerts table until the alert time, so for the unbundled app's 87 // we cannot do the join with the Events table to calculate the actual alert time 90 // reminders which are configured for more than 1 week out won't fire on time. We 91 // can minimize this to being only 1 day late by putting a 1 day max on the alarm time. 102 * a 2 week notification will not fire on time. 132 Time time = new Time(); local 133 time.normalize(false) 304 Time time = new Time(); local [all...] |
/packages/apps/Camera/src/com/android/camera/ |
CameraHolder.java | 53 private long mKeepBeforeTime; // Keep the Camera before this time. 67 long time; field in class:CameraHolder.OpenReleaseState 79 s.time = System.currentTimeMillis(); 103 String date = sDateFormat.format(new Date(s.time)); 284 public synchronized void keep(int time) { 288 mKeepBeforeTime = System.currentTimeMillis() + time;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
DialogDetailsView.java | 171 double time = Double.valueOf(value); local 172 if (time < 1.0f) { 174 (int) (0.5f + 1 / time)); 176 int integer = (int) time; 177 time -= integer; 179 if (time > 0.0001) { 181 (int) (0.5f + 1 / time));
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
LauncherEdgeEffect.java | 33 // Time it will take the effect to fully recede in ms 36 // Time it will take before a pulled glow begins receding in ms 39 // Time it will take in ms for a pulled glow to decay to partial strength before release 321 final long time = AnimationUtils.currentAnimationTimeMillis(); local 322 final float t = Math.min((time - mStartTime) / mDuration, 1.f);
|
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
SourceLatency.java | 74 public synchronized void addTime(long time) { 75 mTotal += time; 91 final ElapsedTime time = new ElapsedTime(); local 100 time.addTime(t); 111 while (time.getCount() < count) { 118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage()) 119 + " (average), " + formatTime(time.getTotal()) + " (total)"); 123 ElapsedTime time = new ElapsedTime(); local 127 time.addTime(t); 129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time.getAverage() [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
ZenModeAutomationSettings.java | 204 final String time = getString(R.string.summary_range_verbal_combination, start, end); local 205 return getString(R.string.zen_mode_rule_summary_combination, days, time);
|
ZenModeScheduleRuleSettings.java | 258 String time = DateFormat.getTimeFormat(mContext).format(c.getTime()); local 260 time = mContext.getResources().getString(mSummaryFormat, time); 262 setSummary(time);
|