/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/core/java/com/android/server/notification/ |
H A D | DowntimeCalendar.java | 45 public long nextDowntimeStart(long time) { argument 47 final long start = getTime(time, mInfo.startHour, mInfo.startMinute); 50 if (t > time && isInDowntime(t)) { 62 final long time = getTime(now, hr, min); 63 return time <= now ? addDays(time, 1) : time; 75 public boolean isInDowntime(long time) { argument 77 final long start = getTime(time, mInfo.startHour, mInfo.startMinute); 78 long end = getTime(time, mInf 85 isInDowntime(int daysOffset, long time, long start, long end) argument 93 getDayOfWeek(long time) argument 108 addDays(long time, int days) argument [all...] |
H A D | CountdownConditionProvider.java | 40 /** Built-in zen condition provider for simple time-based conditions */ 129 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionId); 131 if (time > 0) { 132 notifyCondition(newCondition(time, Condition.STATE_FALSE)); 138 private static final Condition newCondition(long time, int state) { argument 139 return new Condition(ZenModeConfig.toCountdownConditionId(time), 144 final long time = ZenModeConfig.tryParseCountdownConditionId(conditionUri); 145 if (time == 0) return null; 148 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); 150 ts(time), tim 153 ts(long time) argument [all...] |
H A D | NextAlarmTracker.java | 173 private boolean isDoneWaitingAfterBoot(long time) { argument 174 if (mBootCompleted > 0) return (time - mBootCompleted) > WAIT_AFTER_BOOT; 175 if (mInit > 0) return (time - mInit) > WAIT_AFTER_INIT; 189 private String formatAlarm(long time) { argument 190 return formatAlarm(time, "Hm", "hma"); 193 private String formatAlarm(long time, String skeleton24, String skeleton12) { argument 196 return DateFormat.format(pattern, time).toString(); 203 public String formatAlarmDebug(long time) { argument 204 if (time <= 0) return Long.toString(time); 208 rescheduleAlarm(long time) argument [all...] |
/frameworks/av/include/media/ |
H A D | AudioTimestamp.h | 20 #include <time.h>
|
/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 | 140 long time = Long.MAX_VALUE; 156 if (t < time) { 158 time = t; 168 long time = Long.MAX_VALUE; 182 time = t < time ? t : time; 185 return time; 190 long time = Long.MAX_VALUE; 203 time [all...] |
/frameworks/base/core/java/android/os/ |
H A D | IPowerManager.aidl | 39 void userActivity(long time, int event, int flags); 40 void wakeUp(long time); 41 void goToSleep(long time, int reason, int flags); 42 void nap(long time); 52 void boostScreenBrightness(long time);
|
/frameworks/ex/common/java/com/android/common/ |
H A D | OperationScheduler.java | 143 * Compute the time of the next operation. Does not modify any state 147 * @return the wall clock time ({@link System#currentTimeMillis()}) when the 149 * before the current time. 160 // clipped to the current time so we don't languish forever. 171 long time = triggerTimeMillis; 173 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis); 176 time = Math.max(time, moratoriumTimeMillis); 177 time [all...] |
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | SmsCbEtwsInfo.java | 155 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 D | TelephonyUtilsTest.java | 27 * 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 D | TimeSource.cpp | 18 #include <sys/time.h>
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UnixCalendar.java | 32 public UnixCalendar(long time) { argument 33 mTime = time; 68 public void setTimeInMillis(long time) { argument 69 mTime = time;
|
/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/base/services/core/java/com/android/server/display/ |
H A D | AutomaticBrightnessController.java | 58 // Period of time in which to consider light samples in milliseconds. 79 // How long the current sensor reading is assumed to be valid beyond the current time. 84 // If true, enables the use of the current time as an auto-brightness adjustment. 92 // Specifies the maximum magnitude of the time of day adjustment. 95 // The amount of time after or before sunrise over which to start adjusting 124 // Amount of time to delay auto-brightness after screen on while waiting for 132 // The time when the light sensor was enabled. 148 // The time of the most light recent sample. 271 private void handleLightSensorEvent(long time, float lux) { argument 274 applyLightSensorMeasurement(time, lu 278 applyLightSensorMeasurement(long time, float lux) argument 341 nextAmbientLightBrighteningTransition(long time) argument 353 nextAmbientLightDarkeningTransition(long time) argument 371 updateAmbientLux(long time) argument 592 push(long time, float lux) argument [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/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");
|
H A D | VectorDrawablePerformance.java | 105 long time = android.os.SystemClock.elapsedRealtimeNanos(); 109 time = android.os.SystemClock.elapsedRealtimeNanos()-time; 112 t.setText("avgL=" + df.format(time / (icon.length * 1000000.)) + " ms"); 114 time = android.os.SystemClock.elapsedRealtimeNanos(); 122 time = android.os.SystemClock.elapsedRealtimeNanos()-time; 124 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
|
/frameworks/volley/src/com/android/volley/ |
H A D | VolleyLog.java | 112 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 D | Timing.h | 20 #include <sys/time.h>
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | TwilightCalculator.java | 46 // 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 D | profile_timer.h | 21 #include <time.h>
|
/frameworks/base/core/java/android/text/format/ |
H A D | Time.java | 31 * a moment in time, specified with second precision. It is modelled after 39 * <li>For historical reasons when performing time calculations all arithmetic currently takes 40 * place using 32-bit integers. This limits the reliable time range representable from 1902 45 * <li>Calling {@link #switchTimezone(String)} on a date that cannot exist, such as a wall time 76 * all zero, and the date is displayed the same in all time zones. 121 * This time is in daylight savings time. One of: 167 * argument "timezone". The time is initialized to Jan 1, 1970. 179 * Construct a Time object in the default timezone. The time is initialized to 206 // A reusable object that performs the date/time calculation 923 isEpoch(Time time) argument 1225 copyFieldsToTime(Time time) argument 1243 copyFieldsFromTime(Time time) argument [all...] |