Searched refs:time (Results 1 - 25 of 255) sorted by relevance

1234567891011

/frameworks/av/libvideoeditor/osal/inc/
H A DM4OSA_Time.h21 * @note This file defines time type and associated macros which must
22 * be used to manipulate time.
38 /** This macro sets the unknown time value */
42 /** This macro converts a time with a time scale to millisecond.
44 #define M4OSA_TIME_TO_MS(result, time, timescale)\
45 { result = (1000*(M4OSA_Double)time)/((M4OSA_Double)timescale); }
/frameworks/base/tools/layoutlib/bridge/src/android/text/format/
H A DTime_Delegate.java80 * Return the current time in YYYYMMDDTHHMMSS<tz> format
129 private static Calendar timeToCalendar(Time time) { argument
130 Calendar calendar = getCalendarInstance(time);
131 calendar.set(time.year, time.month, time.monthDay, time.hour, time.minute, time.second);
135 private static void calendarToTime(Calendar c, Time time) { argument
151 getCalendarInstance(Time time) argument
[all...]
/frameworks/av/include/media/
H A DAudioTimestamp.h20 #include <time.h>
/frameworks/base/opengl/java/android/opengl/
H A DEGLExt.java37 // C function EGLBoolean eglPresentationTimeANDROID ( EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time )
42 long time
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DCall.java124 long time = Long.MAX_VALUE;
140 if (t < time) {
142 time = t;
152 long time = Long.MAX_VALUE;
166 time = t < time ? t : time;
169 return time;
174 long time = Long.MAX_VALUE;
187 time
[all...]
/frameworks/av/libvideoeditor/osal/src/
H A DM4OSA_Random.c29 #include <time.h>
40 * need the stdlib and time libraries
51 srand(time(NULL));
H A DM4PSW_MemoryInterface.c27 #include <time.h>
H A DM4OSA_Clock.c26 #include <sys/time.h>
27 #include <time.h>
39 * @brief This function gets an absolute time to an unknown reference with
41 * @note It means it can only be used to get a relative time by computing
43 * It is to the caller to allocate time. Time is expressed in
47 * @param time: (IN/OUT) time
48 * @param timescale: (IN) The timescale (time unit per second)
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl36 void userActivity(long time, int event, int flags);
37 void wakeUp(long time);
38 void goToSleep(long time, int reason);
39 void nap(long time);
/frameworks/ex/common/java/com/android/common/
H A DOperationScheduler.java142 * Compute the time of the next operation. Does not modify any state
146 * @return the wall clock time ({@link System#currentTimeMillis()}) when the
148 * before the current time.
159 // clipped to the current time so we don't languish forever.
170 long time = triggerTimeMillis;
172 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis);
175 time = Math.max(time, moratoriumTimeMillis);
176 time
[all...]
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbEtwsInfo.java155 Time time = new Time(Time.TIMEZONE_UTC);
158 time.year = year + 2000;
159 time.month = month - 1;
160 time.monthDay = day;
161 time.hour = hour;
162 time.minute = minute;
163 time.second = second;
166 return time.toMillis(true) - timezoneOffset * 15 * 60 * 1000;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DTelephonyUtilsTest.java27 * isRetryNeeded should be false and the time 0
76 int time = rm.getRetryTimer();
77 assertTrue((time >= 500) && (time < 600));
78 if (time == 500) {
154 int time;
159 time = rm.getRetryTimer();
160 assertTrue((time >= 1000) && (time < 1100));
164 time
[all...]
/frameworks/av/media/libstagefright/
H A DTimeSource.cpp18 #include <sys/time.h>
/frameworks/av/media/mtp/
H A DMtpObjectInfo.cpp60 time_t time; local
82 if (parseDateTime((const char*)string, time))
83 mDateCreated = time;
86 if (parseDateTime((const char*)string, time))
87 mDateModified = time;
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java222 * The last recorded position of the pointer is at time zero seconds.
256 * Gets an estimate of the X position of the pointer at the specified time point.
257 * @param time The time point in seconds, 0 is the last recorded time.
260 public float estimateX(float time) { argument
261 return estimate(time, xCoeff);
265 * Gets an estimate of the Y position of the pointer at the specified time point.
266 * @param time The time poin
269 estimateY(float time) argument
291 estimate(float time, float[] c) argument
[all...]
/frameworks/volley/src/com/android/volley/
H A DVolleyLog.java112 public final long time; field in class:VolleyLog.MarkerLog.Marker
114 public Marker(String name, long thread, long time) { argument
117 this.time = time;
134 * Closes the log, dumping it to logcat if the time difference between
146 long prevTime = mMarkers.get(0).time;
149 long thisTime = marker.time;
165 /** Returns the time difference between the first and last events in this log. */
171 long first = mMarkers.get(0).time;
172 long last = mMarkers.get(mMarkers.size() - 1).time;
[all...]
/frameworks/base/libs/hwui/utils/
H A DTiming.h20 #include <sys/time.h>
/frameworks/base/services/java/com/android/server/
H A DTwilightCalculator.java46 // Java time on Jan 1, 2000 12:00 UTC.
65 * calculates the civil twilight bases on time and geo-coordinates.
67 * @param time time in milliseconds.
71 public void calculateTwilight(long time, double latiude, double longitude) { argument
72 final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS;
116 if (mSunrise < time && mSunset > time) {
/frameworks/ex/variablespeed/jni/
H A Dprofile_timer.h21 #include <time.h>
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java401 // The time should be normalized to UTC
409 // The time should be normalized to UTC
525 Time time = new Time();
528 // day for 12am and then check that if we change the time we get the
535 time.set(0, 0, 0, monthDay, 0, 2008);
536 time.timezone = mTimeZones[zoneIndex];
537 long millis = time.normalize(true);
539 Log.i("TimeTest", time.format("%B %d, %Y"));
543 int julianDay = Time.getJulianDay(millis, time.gmtoff);
545 // Change the time durin
[all...]
/frameworks/base/core/java/android/net/http/
H A DIdleCache.java76 long time = SystemClock.uptimeMillis();
82 entry.mTimeout = time + TIMEOUT;
131 long time = SystemClock.uptimeMillis();
134 if (entry.mHost != null && time > entry.mTimeout) {
/frameworks/base/tools/preload/
H A DProc.java88 * @param time the operation started
90 void startOperation(int threadId, LoadedClass loadedClass, long time, argument
93 this, loadedClass, time, operationCount++, type);
114 * @param time the operation ended
117 LoadedClass loadedClass, long time) {
133 o.endTimeNanos = time;
116 endOperation(int threadId, String className, LoadedClass loadedClass, long time) argument
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.h20 #include <time.h>
/frameworks/native/opengl/tests/gl_perf/
H A Dfilltest.cpp19 #include <time.h>
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java38 * elapsed time and date ranges, strings for days of the week and months, and AM/PM text etc.
95 // Date and time format strings that are constant and don't need to be
245 * Returns a string describing the elapsed time since startTime.
246 * @param startTime some time in the past.
247 * @return a String object containing the elapsed time.
255 * Returns a string describing 'time' as a time relative to 'now'.
260 * @param time the time to describe, in milliseconds
261 * @param now the current time i
266 getRelativeTimeSpanString(long time, long now, long minResolution) argument
291 getRelativeTimeSpanString(long time, long now, long minResolution, int flags) argument
381 getRelativeDateTimeString(Context c, long time, long minResolution, long transitionResolution, int flags) argument
[all...]

Completed in 767 milliseconds

1234567891011