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

1234567891011>>

/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DTwilightCalculator.java58 // Java time on Jan 1, 2000 12:00 UTC.
79 * calculates the civil twilight bases on time and geo-coordinates.
81 * @param time time in milliseconds.
85 public void calculateTwilight(long time, double latiude, double longitude) { argument
86 final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS;
130 if (sunrise < time && sunset > time) {
/frameworks/base/services/core/java/com/android/server/display/
H A DAutomaticBrightnessController.java56 // Period of time in which to consider light samples in milliseconds.
69 // How long the current sensor reading is assumed to be valid beyond the current time.
74 // If true, enables the use of the current time as an auto-brightness adjustment.
82 // Specifies the maximum magnitude of the time of day adjustment.
85 // The amount of time after or before sunrise over which to start adjusting
135 // Amount of time to delay auto-brightness after screen on while waiting for
143 // The time when the light sensor was enabled.
159 // The time of the most light recent sample.
303 private void handleLightSensorEvent(long time, float lux) { argument
306 applyLightSensorMeasurement(time, lu
310 applyLightSensorMeasurement(long time, float lux) argument
373 nextAmbientLightBrighteningTransition(long time) argument
385 nextAmbientLightDarkeningTransition(long time) argument
403 updateAmbientLux(long time) argument
670 push(long time, float lux) 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/core/java/android/text/format/
H A DTime.java31 * 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
77 * all zero, and the date is displayed the same in all time zones.
122 * This time is in daylight savings time. One of:
168 * argument "timezone". The time is initialized to Jan 1, 1970.
180 * Construct a Time object in the default timezone. The time is initialized to
207 // A reusable object that performs the date/time calculation
951 isEpoch(Time time) argument
1253 copyFieldsToTime(Time time) argument
1271 copyFieldsFromTime(Time time) argument
[all...]
H A DDateUtils.java39 * elapsed time and date ranges, strings for days of the week and months, and AM/PM text etc.
96 // Date and time format strings that are constant and don't need to be
246 * Returns a string describing the elapsed time since startTime.
249 * @param startTime some time in the past.
250 * @return a String object containing the elapsed time.
258 * Returns a string describing 'time' as a time relative to 'now'.
263 * @param time the time to describe, in milliseconds
264 * @param now the current time i
269 getRelativeTimeSpanString(long time, long now, long minResolution) argument
294 getRelativeTimeSpanString(long time, long now, long minResolution, int flags) argument
323 getRelativeDateTimeString(Context c, long time, long minResolution, long transitionResolution, int flags) argument
[all...]
/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/libstagefright/
H A DVideoFrameScheduler.cpp23 #include <sys/time.h>
142 nsecs_t time = mTimes[ix]; local
144 x += divRound(time - lastTime, period);
150 int64_t y = divRound(time - phase, period >> kPrecision);
156 lastTime = time;
190 nsecs_t time = mTimes[index]; local
192 if (time - lastTime > kMinPeriod) {
193 //ALOGV("delta: %lld", (long long)(time - lastTime));
194 deltas.push(time - lastTime);
197 firstTime = time;
264 addSample(nsecs_t time) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DEvents.java108 final long time = System.currentTimeMillis();
175 sCallback.writeEvent(time, tag, list);
179 public static void writeState(long time, State state) { argument
181 sCallback.writeState(time, state);
214 void writeEvent(long time, int tag, Object[] list); argument
215 void writeState(long time, State state); argument
/frameworks/base/core/java/android/os/
H A DPowerManager.java535 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()}
536 * time base. This timestamp is used to correctly order the user activity request with
569 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()}
570 * time base. This timestamp is used to correctly order the user activity request with
598 * @param time The time when the request to go to sleep was issued, in the
599 * {@link SystemClock#uptimeMillis()} time base. This timestamp is used to correctly
608 public void goToSleep(long time) { argument
609 goToSleep(time, GO_TO_SLEEP_REASON_APPLICATION, 0);
621 * @param time Th
633 goToSleep(long time, int reason, int flags) argument
659 wakeUp(long time) argument
669 wakeUp(long time, String reason) argument
697 nap(long time) argument
719 boostScreenBrightness(long time) argument
[all...]
/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, String reason, String opPackageName) throws RemoteException { argument
145 public void boostScreenBrightness(long time) throws RemoteException { argument
/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/ImageProcessing2/src/com/android/rs/image/
H A DGroupTest.java75 public void animateBars(float time) { argument
77 m.set(1, 0, (time + 0.2f) % 1.0f);
78 m.set(1, 1, (time + 0.9f) % 1.0f);
79 m.set(1, 2, (time + 0.4f) % 1.0f);
/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/rs/java/tests/RsCameraDemo/src/com/android/example/rscamera/
H A DViewfinderProcessor.java117 long time = System.currentTimeMillis() - mLastTime;
118 if (time > 1000) {
119 mLastTime += time;
120 mFps = mCount * 1000 / (float) (time);
/frameworks/support/graphics/drawable/testanimated/src/android/support/test/vectordrawable/
H A DTestAVDActivity.java54 long time = android.os.SystemClock.currentThreadTimeMillis();
58 time = android.os.SystemClock.currentThreadTimeMillis()-time;
61 t.setText("avgL=" + df.format(time / (icon.length)) + " ms");
/frameworks/av/services/mediaresourcemanager/
H A DServiceLog.cpp22 #include <time.h>
35 time_t now = time(0);
/frameworks/base/services/core/java/com/android/server/notification/
H A DScheduleConditionProvider.java41 * Built-in zen condition provider for daily scheduled time-based conditions.
53 private static final String EXTRA_TIME = "time";
166 private void updateAlarm(long now, long time) { argument
172 .putExtra(EXTRA_TIME, time),
175 if (time > now) {
177 ts(time), formatDuration(time - now), ts(now)));
178 alarms.setExact(AlarmManager.RTC_WAKEUP, time, pendingIntent);
184 private static boolean meetsSchedule(Uri conditionId, long time) { argument
186 return cal != null && cal.isInSchedule(time);
[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.java280 public static void snapToCycleDay(Time time, int cycleDay) { argument
281 if (cycleDay > time.getActualMaximum(MONTH_DAY)) {
283 time.month += 1;
284 time.monthDay = 1;
285 time.second = -1;
287 time.monthDay = cycleDay;
289 time.normalize(true);
/frameworks/base/core/java/android/widget/
H A DDateTimeView.java37 // - listen for the next threshold time to update the view.
43 * Displays a given time in a convenient human-readable foramt.
95 public void setTime(long time) { argument
97 t.set(time);
112 Date time = mTime;
170 // Currently showing the time, update at the later of twelve hours after or midnight.
175 // If the time is in the past, don't schedule an update
178 // If hte time is in the future, schedule one at the earlier of twelve hours
185 Log.d(TAG, "update needed for '" + time + "' at '" + new Date(mUpdateTimeMillis)
210 // all of the time conversion
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DSignalController.java114 // Updates the current time.
115 mCurrentState.time = System.currentTimeMillis();
187 // Count up the states that actually contain time stamps, and only display those.
190 if (mHistory[i].time != 0) size++;
261 long time; field in class:SignalController.State
272 time = state.time;
277 if (time != 0) {
295 .append("lastModified=").append(DateFormat.format("MM-dd hh:mm:ss", time));

Completed in 2331 milliseconds

1234567891011>>