Searched refs:time (Results 26 - 50 of 292) sorted by relevance

1234567891011>>

/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/av/media/libmediaplayerservice/
H A DVideoFrameScheduler.cpp23 #include <sys/time.h>
143 nsecs_t time = mTimes[ix]; local
145 x += divRound(time - lastTime, period);
151 int64_t y = divRound(time - phase, period >> kPrecision);
157 lastTime = time;
191 nsecs_t time = mTimes[index]; local
193 if (time - lastTime > kMinPeriod) {
194 //ALOGV("delta: %lld", (long long)(time - lastTime));
195 deltas.push(time - lastTime);
198 firstTime = time;
264 addSample(nsecs_t time) argument
[all...]
/frameworks/base/core/java/android/os/
H A DPowerManager.java512 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()}
513 * time base. This timestamp is used to correctly order the user activity request with
546 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()}
547 * time base. This timestamp is used to correctly order the user activity request with
575 * @param time The time when the request to go to sleep was issued, in the
576 * {@link SystemClock#uptimeMillis()} time base. This timestamp is used to correctly
585 public void goToSleep(long time) { argument
586 goToSleep(time, GO_TO_SLEEP_REASON_APPLICATION, 0);
598 * @param time Th
610 goToSleep(long time, int reason, int flags) argument
636 wakeUp(long time) argument
664 nap(long time) argument
686 boostScreenBrightness(long time) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_SystemClock.cpp22 #include <sys/time.h>
32 #include <sys/time.h>
33 #include <time.h>
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgePowerManager.java135 public void userActivity(long time, int event, int flags) throws RemoteException { argument
140 public void wakeUp(long time) throws RemoteException { argument
145 public void boostScreenBrightness(long time) throws RemoteException { argument
/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/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DBitmapDrawableDupe.java64 long time = android.os.SystemClock.elapsedRealtimeNanos();
73 time = android.os.SystemClock.elapsedRealtimeNanos()-time;
75 t.setText("avgS=" + df.format(time / (icon.length * 1000000.)) + " ms");
/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/opengl/tests/gl_perf/
H A Dfilltest.cpp19 #include <time.h>
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DGroupTest.java82 public void animateBars(float time) { argument
84 m.set(1, 0, (time + 0.2f) % 1.0f);
85 m.set(1, 1, (time + 0.9f) % 1.0f);
86 m.set(1, 2, (time + 0.4f) % 1.0f);
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java37 * elapsed time and date ranges, strings for days of the week and months, and AM/PM text etc.
94 // Date and time format strings that are constant and don't need to be
244 * Returns a string describing the elapsed time since startTime.
245 * @param startTime some time in the past.
246 * @return a String object containing the elapsed time.
254 * Returns a string describing 'time' as a time relative to 'now'.
259 * @param time the time to describe, in milliseconds
260 * @param now the current time i
265 getRelativeTimeSpanString(long time, long now, long minResolution) argument
290 getRelativeTimeSpanString(long time, long now, long minResolution, int flags) argument
380 getRelativeDateTimeString(Context c, long time, long minResolution, long transitionResolution, int flags) argument
[all...]
/frameworks/base/telephony/java/android/telephony/
H A DDataConnectionRealTimeInfo.java23 * Data connection real time information
43 public DataConnectionRealTimeInfo(long time, int dcPowerState) { argument
44 mTime = time;
67 * @return time the information was collected or Long.MAX_VALUE if unknown
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DTimeStatsAggregator.java136 Time time = new Time();
137 time.set(utcTime);
149 features.put(PERIOD_OF_DAY, getPeriodOfDay(time.hour));
150 features.put(TIME_OF_DAY, getTimeOfDay(time.hour));
165 features.put(DAY_OF_WEEK, getDayOfWeek(time.weekDay));
166 if (time.weekDay == Time.SUNDAY || time.weekDay == Time.SATURDAY ||
167 (time.weekDay == Time.FRIDAY &&
188 // set the fake time of day
189 // set to "" to disable the fake time
[all...]
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp445 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) {
450 0, keyCode, 0, metaState, 0, time, time);
454 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
458 addLockedMetaKey(outEvents, deviceId, metaState, time,
460 addLockedMetaKey(outEvents, deviceId, metaState, time,
462 addLockedMetaKey(outEvents, deviceId, metaState, time,
465 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
469 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
473 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
444 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument
453 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument
518 addSingleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument
530 addDoubleEphemeralMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t leftKeyCode, int32_t leftKeyMetaState, int32_t rightKeyCode, int32_t rightKeyMetaState, int32_t eitherKeyMetaState, int32_t* currentMetaState) argument
548 addLockedMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument
[all...]
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java255 public static void snapToCycleDay(Time time, int cycleDay) { argument
256 if (cycleDay > time.getActualMaximum(MONTH_DAY)) {
258 time.month += 1;
259 time.monthDay = 1;
260 time.second = -1;
262 time.monthDay = cycleDay;
264 time.normalize(true);
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java40 // - listen for the next threshold time to update the view.
46 * Displays a given time in a convenient human-readable foramt.
98 public void setTime(long time) { argument
100 t.set(time);
115 Date time = mTime;
173 // Currently showing the time, update at the later of twelve hours after or midnight.
178 // If the time is in the past, don't schedule an update
181 // If hte time is in the future, schedule one at the earlier of twelve hours
188 Log.d(TAG, "update needed for '" + time + "' at '" + new Date(mUpdateTimeMillis)
228 // all of the time conversion
[all...]
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneFilterTypeAdapter.java46 void onSetFilter(int filterType, String str, int time); argument
52 int time; field in class:TimeZoneFilterTypeAdapter.ViewHolder
65 public int time; field in class:TimeZoneFilterTypeAdapter.FilterTypeResult
67 public FilterTypeResult(int type, String constraint, int time) { argument
70 this.time = time;
131 vh.time = filter.time;
152 mListener.onSetFilter(vh.filterType, vh.str, vh.time);
190 // Search by local time an
[all...]
/frameworks/av/services/audioflinger/
H A Dtest-resample.cpp26 #include <time.h>
228 double time = (input_freq / 2) / k; local
229 size_t input_frames = size_t(input_freq * time);
359 int64_t time = end_ns - start_ns; local
361 looplimit * 4 / (time / 1e9));
375 time = end_ns - start_ns;
377 looplimit / (time / 1e9));
393 * and take the minimum time.
410 int64_t time = 0; local
422 if (n == 0 || diff_ns < time) {
[all...]
H A DAudioWatchdog.h18 // (a) verify that adequate CPU time is available, and log
25 #include <time.h>
37 time_t mMostRecent; // time of most recent log
76 uint32_t mMaxCycleNs; // maximum allowed time of one cycle before declaring underrun
77 struct timespec mOldTs; // monotonic time when threadLoop last ran
78 struct timespec mLogTs; // time since last log
/frameworks/base/test-runner/src/android/test/
H A DTestPrinter.java68 TestRunner.IntermediateTime time = intermediates.get(i);
69 Log.i(mTag, " intermediate: " + time.name + " = "
70 + time.timeInNS + "ns");
/frameworks/native/opengl/tests/swapinterval/
H A Dswapinterval.cpp103 int time = 10; local
104 printf("screen should flash red/green quickly for %d s...\n", time);
118 } while (int(ns2s(t))<=time);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java137 final long time = SystemClock.uptimeMillis();
139 if (time - mStartTimeMillis > mDuration) {
160 mDuration = (int) (mReverse ? time - mStartTimeMillis :
161 mOriginalDuration - (time - mStartTimeMillis));
/frameworks/base/include/androidfw/
H A DZipUtils.h24 #include <time.h>
64 * Utility function to convert ZIP's time format to a timespec struct.
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.h20 #include <time.h>
/frameworks/base/core/java/android/util/
H A DTimeUtils.java40 * A class containing utility methods related to time zones.
59 * Tries to return a time zone that would have had the specified offset
73 // If the current time zone is from the right country
86 // haven't encountered the current time zone yet.)
100 * Return list of unique time zones for the country. Do not modify
103 * @return list of unique time zones, maybe empty but never null. Do not modify.
148 * Returns the time zones for the country, which is the code
218 * Returns a String indicating the version of the time zone database currently
219 * in use. The format of the string is dependent on the underlying time zone
225 * when computing the UTC time fo
387 formatDuration(long time, long now, PrintWriter pw) argument
396 formatUptime(long time) argument
[all...]

Completed in 909 milliseconds

1234567891011>>