Searched refs:time (Results 51 - 75 of 350) sorted by relevance

1234567891011>>

/frameworks/av/media/libstagefright/
H A DSampleIterator.cpp302 uint32_t sampleIndex, uint32_t *time, uint32_t *duration) {
321 *time = mTTSSampleTime + mTTSDuration * (sampleIndex - mTTSSampleIndex);
324 if ((offset < 0 && *time < (offset == INT32_MIN ?
326 (offset > 0 && *time > UINT32_MAX - offset)) {
327 ALOGE("%u + %d would overflow", *time, offset);
331 *time += offset;
333 *time -= (offset == INT32_MIN ? INT32_MAX : (-offset));
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java316 public static void snapToCycleDay(Time time, int cycleDay) { argument
317 if (cycleDay > time.getActualMaximum(MONTH_DAY)) {
319 time.month += 1;
320 time.monthDay = 1;
321 time.second = -1;
323 time.monthDay = cycleDay;
325 time.normalize(true);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSignalController.java115 // Updates the current time.
116 mCurrentState.time = System.currentTimeMillis();
188 // Count up the states that actually contain time stamps, and only display those.
191 if (mHistory[i].time != 0) size++;
266 long time; field in class:SignalController.State
277 time = state.time;
282 if (time != 0) {
300 .append("lastModified=").append(DateFormat.format("MM-dd hh:mm:ss", time));
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DDumpUtils.java207 long time = durations[state];
210 time += now - curStartTime;
215 if (time != 0) {
224 TimeUtils.formatDuration(time, pw); pw.println(running);
226 totalTime += time;
244 long time = durations[state];
246 time += now - curStartTime;
248 if (time != 0) {
249 printAdjTagAndValue(pw, state, time);
/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);
357 int64_t time = end_ns - start_ns; local
359 looplimit * 4 / (time / 1e9));
373 time = end_ns - start_ns;
375 looplimit / (time / 1e9));
391 * and take the minimum time.
408 int64_t time = 0; local
420 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/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
H A DDocumentHolderTest.java74 long time = SystemClock.uptimeMillis();
91 time, // down time
92 time, // event time
/frameworks/base/test-runner/src/android/test/
H A DTestPrinter.java69 TestRunner.IntermediateTime time = intermediates.get(i);
70 Log.i(mTag, " intermediate: " + time.name + " = "
71 + 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/av/include/media/nbaio/
H A DMonoPipe.h20 #include <time.h>
72 // but it will not be an unbounded amount of time.
87 // 32-bit overflow is possible if the pipe is active for a long time, but if that happens it's
94 struct timespec mWriteTs; // time that the previous write() completed
/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java138 final long time = SystemClock.uptimeMillis();
140 if (time - mStartTimeMillis > mDuration) {
161 mDuration = (int) (mReverse ? time - mStartTimeMillis :
162 mOriginalDuration - (time - mStartTimeMillis));
/frameworks/base/include/androidfw/
H A DZipUtils.h26 #include <time.h>
66 * Utility function to convert ZIP's time format to a timespec struct.
/frameworks/base/core/java/android/accessibilityservice/
H A DGestureDescription.java99 * @param offset the minimum start time
100 * @return The next key time that is at least the offset or -1 if one can't be found
118 * Get the points that correspond to a particular moment in time.
119 * @param time The time of interest
124 private int getPointsForTime(long time, TouchPoint[] touchPoints) { argument
128 if (strokeDescription.hasPointForTime(time)) {
130 touchPoints[numPointsFound].mIsStartOfPath = (time == strokeDescription.mStartTime);
131 touchPoints[numPointsFound].mIsEndOfPath = (time == strokeDescription.mEndTime);
132 strokeDescription.getPosForTime(time, mTempPo
287 getPosForTime(long time, float[] pos) argument
301 hasPointForTime(long time) argument
[all...]
/frameworks/base/core/java/android/util/
H A DTimeUtils.java41 * A class containing utility methods related to time zones.
62 * Tries to return a time zone that would have had the specified offset
76 // If the current time zone is from the right country
89 // haven't encountered the current time zone yet.)
103 * Return list of unique time zones for the country. Do not modify
106 * @return list of unique time zones, maybe empty but never null. Do not modify.
151 * Returns the time zones for the country, which is the code
221 * Returns a String indicating the version of the time zone database currently
222 * in use. The format of the string is dependent on the underlying time zone
228 * when computing the UTC time fo
410 formatDuration(long time, long now, PrintWriter pw) argument
419 formatUptime(long time) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DCalendarTracker.java114 public CheckEventResult checkEvent(EventInfo filter, long time) { argument
116 ContentUris.appendId(uriBuilder, time);
117 ContentUris.appendId(uriBuilder, time + EVENT_CHECK_LOOKAHEAD);
122 result.recheckAt = time + EVENT_CHECK_LOOKAHEAD;
142 final boolean meetsTime = time >= begin && time < end;
156 if (begin > time && begin < result.recheckAt) {
158 } else if (end > time && end < result.recheckAt) {
H A DScheduleConditionProvider.java43 * Built-in zen condition provider for daily scheduled time-based conditions.
55 private static final String EXTRA_TIME = "time";
173 private void updateAlarm(long now, long time) { argument
179 .putExtra(EXTRA_TIME, time),
182 if (time > now) {
184 ts(time), formatDuration(time - now), ts(now)));
185 alarms.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);
197 private static boolean meetsSchedule(ScheduleCalendar cal, long time) { argument
198 return cal != null && cal.isInSchedule(time);
[all...]
/frameworks/base/tools/preload/
H A DRecord.java100 /** Record time (ns). */
101 final long time; field in class:Record
137 time = Long.parseLong(parts[6]);
/frameworks/native/opengl/tools/glgen2/registry/
H A Dgenheaders.py24 import sys, time, pdb, string, cProfile namespace
33 # timeit - time length of registry loading & header generation
68 elif (arg == '-time'):
69 write('Enabling timing (-time)', file=sys.stderr)
85 startTime = time.clock()
88 endTime = time.clock()
238 format("/* Generated on date %s */" % time.strftime("%Y%m%d")),
244 format("#define GL_GLEXT_VERSION %s" % time.strftime("%Y%m%d")),
249 format("#define WGL_WGLEXT_VERSION %s" % time.strftime("%Y%m%d")),
254 format("#define GLX_GLXEXT_VERSION %s" % time
[all...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/utils/
H A DObexTime.java30 public ObexTime(String time) { argument
32 * match OBEX time string: YYYYMMDDTHHMMSS with optional UTF offset
37 Matcher m = p.matcher(time);
61 /* time zone offset is specified in miliseconds */
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
H A DConvolve3x3.java69 public void animateBars(float time) { argument
70 float f[] = updateMatrix(time % 1.f);
H A DGrain.java43 public void animateBars(float time) { argument
44 mScript.set_gNoiseStrength(time % 1.f);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A DConvolve3x3.java76 public void animateBars(float time) { argument
77 float f[] = updateMatrix(time % 1.f);
H A DGrain.java48 public void animateBars(float time) { argument
49 mScript.set_gNoiseStrength(time % 1.f);
/frameworks/native/libs/input/
H A DKeyCharacterMap.cpp487 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) {
492 0, keyCode, 0, metaState, 0, time, time);
496 int32_t deviceId, int32_t metaState, bool down, nsecs_t time,
500 addLockedMetaKey(outEvents, deviceId, metaState, time,
502 addLockedMetaKey(outEvents, deviceId, metaState, time,
504 addLockedMetaKey(outEvents, deviceId, metaState, time,
507 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
511 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
515 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time,
486 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument
495 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument
560 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
572 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
590 addLockedMetaKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, nsecs_t time, int32_t keyCode, int32_t keyMetaState, int32_t* currentMetaState) argument
[all...]

Completed in 2028 milliseconds

1234567891011>>