/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/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); 86 isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); 89 && time > 96 isInSchedule(int daysOffset, long time, long start, long end) argument 104 getDayOfWeek(long time) argument 118 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/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/base/opengl/java/android/opengl/ |
H A D | EGLExt.java | 37 // C function EGLBoolean eglPresentationTimeANDROID ( EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time ) 42 long time
|
/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...] |
/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/base/core/java/android/service/notification/ |
H A D | INotificationListener.aidl | 38 void onNotificationVisibilityChanged(String key, long time, boolean visible); 39 void onNotificationClick(String key, long time); 40 void onNotificationActionClick(String key, long time, int actionIndex); 41 void onNotificationRemovedReason(String key, long time, int reason);
|
H A D | NotificationRankerService.java | 146 * @param time milliseconds since midnight, January 1, 1970 UTC. 149 public void onNotificationVisibilityChanged(String key, long time, boolean visible) argument 158 * @param time milliseconds since midnight, January 1, 1970 UTC. 160 public void onNotificationClick(String key, long time) argument 169 * @param time milliseconds since midnight, January 1, 1970 UTC. 172 public void onNotificationActionClick(String key, long time, int actionIndex) argument 181 * @param time milliseconds since midnight, January 1, 1970 UTC. 184 public void onNotificationRemoved(String key, long time, int reason) { argument 241 public void onNotificationVisibilityChanged(String key, long time, boolean visible) { argument 244 args.arg2 = time; 251 onNotificationClick(String key, long time) argument 260 onNotificationActionClick(String key, long time, int actionIndex) argument 270 onNotificationRemovedReason(String key, long time, int reason) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | IPowerManager.aidl | 42 void userActivity(long time, int event, int flags); 43 void wakeUp(long time, String reason, String opPackageName); 44 void goToSleep(long time, int reason, int flags); 45 void nap(long time); 58 void boostScreenBrightness(long time);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | KernelCpuSpeedReader.java | 30 * Reads CPU time of a specific core spent at various frequencies and provides a delta from the 33 * freq time 35 * where time is measured in jiffies. 61 * @return The time (in milliseconds) spent at different cpu speeds since the last call to 73 long time = Long.parseLong(splitter.next()) * mJiffyMillis; 74 if (time < mLastSpeedTimes[speedIndex]) { 75 // The stats reset when the cpu hotplugged. That means that the time 76 // we read is offset from 0, so the time is the delta. 77 mDeltaSpeedTimes[speedIndex] = time; 79 mDeltaSpeedTimes[speedIndex] = time [all...] |
/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/opt/telephony/src/java/android/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/rs/java/tests/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/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
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/av/media/mtp/ |
H A D | MtpObjectInfo.cpp | 60 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/native/services/surfaceflinger/ |
H A D | FenceTracker.cpp | 79 static inline bool isValidTimestamp(nsecs_t time) { argument 80 return time > 0 && time < INT64_MAX; 87 nsecs_t time = frame.retireFence->getSignalTime(); local 88 if (isValidTimestamp(time)) { 89 frame.retireTime = time; 94 nsecs_t time = frame.glesCompositionDoneFence->getSignalTime(); local 95 if (isValidTimestamp(time)) { 96 frame.glesCompositionDoneTime = time; 103 nsecs_t time local 110 nsecs_t time = layer.releaseFence->getSignalTime(); local [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...] |
/frameworks/base/core/java/android/view/ |
H A D | VelocityTracker.java | 222 * 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 D | ZipEntryReader.java | 42 * 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/services/core/java/com/android/server/display/ |
H A D | AutomaticBrightnessController.java | 58 // How long the current sensor reading is assumed to be valid beyond the current time. 63 // Specifies the maximum magnitude of the time of day adjustment. 110 // Period of time in which to consider light samples in milliseconds. 117 // Amount of time to delay auto-brightness after screen on while waiting for 125 // The time when the light sensor was enabled. 141 // The time of the most light recent sample. 314 private void handleLightSensorEvent(long time, float lux) { argument 317 applyLightSensorMeasurement(time, lux); 318 updateAmbientLux(time); 321 private void applyLightSensorMeasurement(long time, floa argument 389 nextAmbientLightBrighteningTransition(long time) argument 401 nextAmbientLightDarkeningTransition(long time) argument 419 updateAmbientLux(long time) argument 662 push(long time, float lux) argument [all...] |
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
H A D | AnimatedVectorDrawableDupPerf.java | 99 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");
|
/frameworks/volley/src/main/java/com/android/volley/ |
H A D | VolleyLog.java | 117 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...] |