/frameworks/av/media/libaaudio/src/utility/ |
H A D | AudioClock.h | 21 #include <time.h> 34 struct timespec time; local 35 int result = clock_gettime(clockId, &time); 39 return (time.tv_sec * AAUDIO_NANOS_PER_SECOND) + time.tv_nsec; 43 * Sleep until the specified absolute time. 47 * @param nanoTime time to wake up 54 struct timespec time; local 55 time.tv_sec = nanoTime / AAUDIO_NANOS_PER_SECOND; 57 time 83 struct timespec time; local [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | TimeSparseArray.java | 37 * 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/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Result.java | 29 // Add time 30 public void add(float time) { argument 31 timeList.add(time); 34 // Get total execution time 37 for (float time : timeList) { 38 total += time; 57 for (float time : timeList) { 58 float diff = time - avg;
|
H A D | ColorMatrix.java | 61 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/base/services/usage/java/com/android/server/usage/ |
H A D | UnixCalendar.java | 30 public UnixCalendar(long time) { argument 31 mTime = time; 50 public void setTimeInMillis(long time) { argument 51 mTime = time;
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | SystemConditionProviderService.java | 40 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 D | ScheduleCalendar.java | 65 final long time = getTime(now, hr, min); 66 return time <= now ? addDays(time, 1) : time; 78 public boolean isInSchedule(long time) { argument 80 final long start = getTime(time, mSchedule.startHour, mSchedule.startMinute); 81 long end = getTime(time, mSchedule.endHour, mSchedule.endMinute); 85 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); 88 public boolean shouldExitForAlarm(long time) { argument 94 isInSchedule(int daysOffset, long time, long start, long end) argument 102 getDayOfWeek(long time) argument 116 addDays(long time, int days) argument [all...] |
H A D | CountdownConditionProvider.java | 38 /** Built-in zen condition provider for simple time-based conditions */ 148 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); 150 if (time > 0) { 151 notifyCondition(newCondition(time, Condition.STATE_FALSE)); 157 private static final Condition newCondition(long time, int state) { argument 158 return new Condition(ZenModeConfig.toCountdownConditionId(time), 163 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); 164 if (time == 0) return null; 167 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); 169 ts(time), tim [all...] |
/frameworks/av/media/libaaudio/examples/utils/ |
H A D | AAudioExampleUtils.h | 44 struct timespec time; local 45 int result = clock_gettime(clockId, &time); 49 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;
|
/frameworks/base/core/java/android/os/health/ |
H A D | TimerStat.java | 23 * A TimerStat object stores a count and a time. 49 * Construct an empty TimerStat object with the count and time set to 0. 55 * Construct a TimerStat object with the supplied count and time fields. 58 * @param time The time 60 public TimerStat(int count, long time) { argument 62 mTime = time; 104 * Set the time for this timer in milliseconds. 106 public void setTime(long time) { argument 107 mTime = time; [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Call.java | 142 long time = Long.MAX_VALUE; 158 if (t < time) { 160 time = t; 170 long time = Long.MAX_VALUE; 184 time = t < time ? t : time; 187 return time; 192 long time = Long.MAX_VALUE; 205 time [all...] |
H A D | ClientWakelockAccountant.java | 40 int token, int concurrentRequests, long time) { 42 RilWakelockInfo wlInfo = new RilWakelockInfo(request, token, concurrentRequests, time); 49 public void stopAttributingWakelock(int request, int token, long time) { argument 52 completeRequest(wlInfo, time); 57 public void stopAllPendingRequests(long time) { argument 60 completeRequest(wlInfo, time); 67 public void changeConcurrentRequests(int concurrentRequests, long time) { argument 70 wlInfo.updateConcurrentRequests(concurrentRequests, time); 75 private void completeRequest(RilWakelockInfo wlInfo, long time) { argument 76 wlInfo.setResponseTime(time); 39 startAttributingWakelock(int request, int token, int concurrentRequests, long time) argument [all...] |
H A D | RilWakelockInfo.java | 33 /* If there are n requests waiting for a response for time t, the time attributed to 34 each request will be t/n. If the number of outstanding requests changes at time t1, 35 then we will compute the wakelock time till t1 and store it in mWakelockTimeAttributedSoFar 37 compute the time taken for this request using the new mConcurrentRequests 85 void updateConcurrentRequests(int concurrentRequests, long time) { argument 87 updateTime(time); 91 synchronized void updateTime(long time) { argument 92 mWakelockTimeAttributedSoFar += (time - mLastAggregatedTime) / mConcurrentRequests; 93 mLastAggregatedTime = time; [all...] |
/frameworks/av/include/media/ |
H A D | AudioTimestamp.h | 22 #include <time.h> 48 LOCATION_SERVER_LASTKERNELOK, // timestamp of server the prior time kernel timestamp OK. 49 LOCATION_KERNEL_LASTKERNELOK, // timestamp of kernel the prior time kernel timestamp OK. 71 // If this value is -1, then both time and position are invalid. 72 // If this value is 0, then the time is not valid but the position is valid. 76 // timestamp was taken. This may vary due to suspend time 91 memset(mPosition, 0, sizeof(mPosition)); // actually not necessary if time is -1 101 // it will be filled with the location where the time was obtained. 103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const { 104 if (position == nullptr || time 102 getBestTimestamp( int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const argument 128 int64_t position, time; local [all...] |
/frameworks/av/media/libaudioclient/include/media/ |
H A D | AudioTimestamp.h | 22 #include <time.h> 48 LOCATION_SERVER_LASTKERNELOK, // timestamp of server the prior time kernel timestamp OK. 49 LOCATION_KERNEL_LASTKERNELOK, // timestamp of kernel the prior time kernel timestamp OK. 71 // If this value is -1, then both time and position are invalid. 72 // If this value is 0, then the time is not valid but the position is valid. 76 // timestamp was taken. This may vary due to suspend time 91 memset(mPosition, 0, sizeof(mPosition)); // actually not necessary if time is -1 101 // it will be filled with the location where the time was obtained. 103 int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const { 104 if (position == nullptr || time 102 getBestTimestamp( int64_t *position, int64_t *time, int timebase, Location *location = nullptr) const argument 128 int64_t position, time; local [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | MovieImpl.cpp | 11 // We should never see this in normal operation since our time values are 52 bool Movie::setTime(SkMSec time) argument 55 if (time > dur) 56 time = dur; 59 if (time != fCurrTime) 61 fCurrTime = time; 62 changed = this->onSetTime(time);
|
/frameworks/base/core/java/android/os/ |
H A D | IPowerManager.aidl | 43 void userActivity(long time, int event, int flags); 44 void wakeUp(long time, String reason, String opPackageName); 45 void goToSleep(long time, int reason, int flags); 46 void nap(long time); 61 void boostScreenBrightness(long time);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | KernelCpuSpeedReader.java | 31 * Reads CPU time of a specific core spent at various frequencies and provides a delta from the 34 * freq time 36 * where time is measured in jiffies. 62 * @return The time (in milliseconds) spent at different cpu speeds since the last call to 75 long time = Long.parseLong(splitter.next()) * mJiffyMillis; 76 if (time < mLastSpeedTimes[speedIndex]) { 77 // The stats reset when the cpu hotplugged. That means that the time 78 // we read is offset from 0, so the time is the delta. 79 mDeltaSpeedTimes[speedIndex] = time; 81 mDeltaSpeedTimes[speedIndex] = time [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsCbEtwsInfo.java | 169 Time time = new Time(Time.TIMEZONE_UTC); 172 time.year = year + 2000; 173 time.month = month - 1; 174 time.monthDay = day; 175 time.hour = hour; 176 time.minute = minute; 177 time.second = second; 180 return time.toMillis(true) - timezoneOffset * 15 * 60 * 1000;
|
/frameworks/ex/common/java/com/android/common/ |
H A D | OperationScheduler.java | 142 * 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/base/opengl/java/android/opengl/ |
H A D | EGLExt.java | 38 // C function EGLBoolean eglPresentationTimeANDROID ( EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time ) 43 long time
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | ColorMatrix.java | 54 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/av/media/mtp/ |
H A D | MtpObjectInfo.cpp | 60 time_t time; local 83 if (parseDateTime((const char*)string, time)) 84 mDateCreated = time; 87 if (parseDateTime((const char*)string, time)) 88 mDateModified = time;
|
/frameworks/base/telephony/java/android/telephony/ |
H A D | TelephonyHistogram.java | 39 // Min time taken in ms 42 // Max time taken in ms 45 // Average time taken in ms 51 // Array storing time taken for first #RANGE_CALCULATION_COUNT samples of histogram. 54 // Total number of time ranges expected (must be greater than 1) 61 // Array storing counts for each time range starting from smallest value range 69 // Count of Histogram samples after which time buckets are created. 171 private void addToBucketCounter(int[] bucketEndPoints, int[] bucketCounters, int time) { argument 174 if (time <= bucketEndPoints[i]) { 189 // Add new value of time take 195 addTimeTaken(int time) argument [all...] |
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/ |
H A D | NotificationTests.java | 256 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...] |