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

1234567891011>>

/frameworks/base/core/java/android/app/usage/
H A DTimeSparseArray.java37 * the given time.
39 * @param time The timestamp for which to search the array.
42 public int closestIndexOnOrAfter(long time) { argument
54 if (time > key) {
56 } else if (time < key) {
63 if (time < key) {
65 } else if (time > key && lo < size) {
74 * the given time.
76 * @param time The timestamp for which to search the array.
79 public int closestIndexOnOrBefore(long time) { argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DSystemConditionProviderService.java40 protected static String ts(long time) { argument
41 return new Date(time) + " (" + time + ")";
50 protected static void dumpUpcomingTime(PrintWriter pw, String var, long time, long now) { argument
52 if (time > 0) {
53 pw.printf("%s, in %s, now=%s", ts(time), formatDuration(time - now), ts(now));
55 pw.print(time);
H A DScheduleCalendar.java43 public long nextScheduleStart(long time) { argument
45 final long start = getTime(time, mSchedule.startHour, mSchedule.startMinute);
48 if (t > time && isInSchedule(t)) {
67 final long time = getTime(now, hr, min);
68 return time <= now ? addDays(time, 1) : time;
80 public boolean isInSchedule(long time) { argument
82 final long start = getTime(time, mSchedule.startHour, mSchedule.startMinute);
83 long end = getTime(time, mSchedul
90 isInSchedule(int daysOffset, long time, long start, long end) argument
98 getDayOfWeek(long time) argument
112 addDays(long time, int days) argument
[all...]
H A DCountdownConditionProvider.java38 /** Built-in zen condition provider for simple time-based conditions */
153 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId);
155 if (time > 0) {
156 notifyCondition(newCondition(time, Condition.STATE_FALSE));
162 private static final Condition newCondition(long time, int state) { argument
163 return new Condition(ZenModeConfig.toCountdownConditionId(time),
168 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri);
169 if (time == 0) return null;
172 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS);
174 ts(time), tim
[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.java150 long time = Long.MAX_VALUE;
166 if (t < time) {
168 time = t;
178 long time = Long.MAX_VALUE;
192 time = t < time ? t : time;
195 return time;
200 long time = Long.MAX_VALUE;
213 time
[all...]
/frameworks/base/core/java/android/os/
H A DIPowerManager.aidl39 void userActivity(long time, int event, int flags);
40 void wakeUp(long time, String reason, String opPackageName);
41 void goToSleep(long time, int reason, int flags);
42 void nap(long time);
53 void boostScreenBrightness(long time);
/frameworks/base/core/java/com/android/internal/os/
H A DKernelCpuSpeedReader.java27 * Reads CPU time spent at various frequencies and provides a delta from the last call to
30 * freq time
32 * where time is measured in 1/100 seconds.
45 * @return The time (in milliseconds) spent at different cpu speeds since the last call to
57 // The proc file reports time in 1/100 sec, so convert to milliseconds.
58 long time = Long.parseLong(splitter.next()) * 10;
59 mDeltaSpeedTimes[speedIndex] = time - mLastSpeedTimes[speedIndex];
60 mLastSpeedTimes[speedIndex] = 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/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java32 public UnixCalendar(long time) { argument
33 mTime = time;
68 public void setTimeInMillis(long time) { argument
69 mTime = time;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DColorMatrix.java54 public void animateBars(float time) { argument
56 m.set(1, 0, (time + 0.2f) % 1.0f);
57 m.set(1, 1, (time + 0.9f) % 1.0f);
58 m.set(1, 2, (time + 0.4f) % 1.0f);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DColorMatrix.java61 public void animateBars(float time) { argument
63 m.set(1, 0, (time + 0.2f) % 1.0f);
64 m.set(1, 1, (time + 0.9f) % 1.0f);
65 m.set(1, 2, (time + 0.4f) % 1.0f);
/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/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java256 final long time = SystemClock.currentThreadTimeMillis();
258 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time);
273 final long time = SystemClock.currentThreadTimeMillis();
290 L(" %s: create=%dms", phoneCall.toString(), SystemClock.currentThreadTimeMillis() - time);
295 final long time = SystemClock.currentThreadTimeMillis();
303 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time);
308 final long time = SystemClock.currentThreadTimeMillis();
324 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time);
331 final long time = SystemClock.currentThreadTimeMillis();
348 L(" %s: create=%dms", summarize(n), SystemClock.currentThreadTimeMillis() - time);
[all...]
/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/multidex/library/test/src/android/support/multidex/
H A DZipEntryReader.java42 * Note: The only bit that we will enforce at this time
65 int time = in.getShort() & 0xffff;
87 entry.setTime(getTime(time, modDate));
111 private static long getTime(int time, int modDate) { argument
115 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f,
116 (time & 0x1f) << 1);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DAnimatedVectorDrawableDupPerf.java99 long time = android.os.SystemClock.elapsedRealtimeNanos();
103 time = android.os.SystemClock.elapsedRealtimeNanos()-time;
106 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
108 time = android.os.SystemClock.elapsedRealtimeNanos();
116 time = android.os.SystemClock.elapsedRealtimeNanos()-time;
118 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
H A DVectorDrawablePerformance.java109 long time = android.os.SystemClock.elapsedRealtimeNanos();
113 time = android.os.SystemClock.elapsedRealtimeNanos()-time;
116 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms");
118 time = android.os.SystemClock.elapsedRealtimeNanos();
126 time = android.os.SystemClock.elapsedRealtimeNanos()-time;
128 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
/frameworks/volley/src/main/java/com/android/volley/
H A DVolleyLog.java117 public final long time; field in class:VolleyLog.MarkerLog.Marker
119 public Marker(String name, long thread, long time) { argument
122 this.time = time;
139 * Closes the log, dumping it to logcat if the time difference between
151 long prevTime = mMarkers.get(0).time;
154 long thisTime = marker.time;
170 /** Returns the time difference between the first and last events in this log. */
176 long first = mMarkers.get(0).time;
177 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/core/java/com/android/server/
H A DTwilightCalculator.java45 // Java time on Jan 1, 2000 12:00 UTC.
64 * calculates the civil twilight bases on time and geo-coordinates.
66 * @param time time in milliseconds.
70 public void calculateTwilight(long time, double latiude, double longitude) { argument
71 final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS;
115 if (mSunrise < time && mSunset > time) {

Completed in 992 milliseconds

1234567891011>>