/frameworks/base/core/jni/ |
H A D | TimeUtils.h | 20 #include <time.h> 24 #include <sys/time.h>
|
H A D | android_os_SystemClock.cpp | 29 #include <sys/time.h> 39 #include <sys/time.h> 40 #include <time.h> 47 * Set the current time. This only works when running as root. 64 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec); 85 * Set the current time. This only works when running as root.
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgePowerManager.java | 125 public void userActivity(long time, int event, int flags) throws RemoteException { argument 130 public void wakeUp(long time) throws RemoteException { argument
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | TimeStatsAggregator.java | 136 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 D | KeyCharacterMap.cpp | 444 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) { 449 0, keyCode, 0, metaState, 0, time, time); 453 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 457 addLockedMetaKey(outEvents, deviceId, metaState, time, 459 addLockedMetaKey(outEvents, deviceId, metaState, time, 461 addLockedMetaKey(outEvents, deviceId, metaState, time, 464 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 468 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 472 addDoubleEphemeralMetaKey(outEvents, deviceId, metaState, true, time, 443 addKey(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time) argument 452 addMetaKeys(Vector<KeyEvent>& outEvents, int32_t deviceId, int32_t metaState, bool down, nsecs_t time, int32_t* currentMetaState) argument 517 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 529 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 547 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 D | NetworkPolicyManager.java | 221 public static void snapToCycleDay(Time time, int cycleDay) { argument 222 if (cycleDay > time.getActualMaximum(MONTH_DAY)) { 224 time.month += 1; 225 time.monthDay = 1; 226 time.second = -1; 228 time.monthDay = cycleDay; 230 time.normalize(true);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneFilterTypeAdapter.java | 46 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/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 91 // If true, enables the use of the current time as an auto-brightness adjustment. 99 // Specifies the maximum magnitude of the time of day adjustment. 102 // The amount of time after or before sunrise over which to start adjusting 139 // IIR filter time constants in milliseconds for computing two moving averages of 215 // Amount of time to delay auto-brightness after screen on while waiting for 286 // The elapsed real time when the screen on was blocked. 292 // The time when the light sensor was enabled. 308 // The time of the most light recent sample. 324 // The time when the average lux last changed direction. 599 // Initialize things the first time th 841 handleProximitySensorEvent(long time, boolean positive) argument 926 handleLightSensorEvent(long time, float lux) argument 933 applyLightSensorMeasurement(long time, float lux) argument 958 updateAmbientLux(long time) argument [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | TestPrinter.java | 68 TestRunner.IntermediateTime time = intermediates.get(i); 69 Log.i(mTag, " intermediate: " + time.name + " = " 70 + time.timeInNS + "ns");
|
/frameworks/native/opengl/tests/swapinterval/ |
H A D | swapinterval.cpp | 102 int time = 10; local 103 printf("screen should flash red/green quickly for %d s...\n", time); 117 } while (int(ns2s(t))<=time);
|
/frameworks/av/libvideoeditor/osal/inc/ |
H A D | M4OSA_FileCommon.h | 40 * both to read and write at the same time. 76 /** Date expressed in the time scale*/ 77 M4OSA_Time time; member in struct:__anon86 78 /** Year of the absolute time (1900, 1970 or 2000)*/
|
/frameworks/av/services/audioflinger/ |
H A D | AudioWatchdog.h | 18 // (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
|
H A D | test-resample.cpp | 27 #include <time.h> 171 double time = (input_freq / 2) / k; local 172 size_t input_frames = size_t(input_freq * time); 230 int64_t time = (end_ns - start_ns)/4; local 231 printf("%f Mspl/s\n", out_frames/(time/1e9)/1e6);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | TransitionDrawable.java | 137 final long time = SystemClock.uptimeMillis(); 139 if (time - mStartTimeMillis > mDuration) { 160 mDuration = (int) (mReverse ? time - mStartTimeMillis : 161 mOriginalDuration - (time - mStartTimeMillis));
|
/frameworks/base/core/java/android/util/ |
H A D | TimeUtils.java | 40 * A class containing utility methods related to time zones. 59 * 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 387 formatDuration(long time, long now, PrintWriter pw) argument 396 formatUptime(long time) argument [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | PkgUsageStats.java | 53 public PkgUsageStats(String pkgName, int count, long time, Map<String, Long> lastResumeTimes) { argument 56 usageTime = time;
|
/frameworks/base/tools/preload/ |
H A D | Record.java | 100 /** Record time (ns). */ 101 final long time; field in class:Record 137 time = Long.parseLong(parts[6]);
|
/frameworks/rs/cpu_ref/linkloader/android/ |
H A D | test-librsloader.c | 23 #include <time.h> 46 DEF("time", time)
|
/frameworks/base/core/java/android/os/ |
H A D | PowerManager.java | 441 * @param when The time of the user activity, in the {@link SystemClock#uptimeMillis()} 442 * time base. This timestamp is used to correctly order the user activity request with 471 * @param time The time when the request to go to sleep was issued, in the 472 * {@link SystemClock#uptimeMillis()} time base. This timestamp is used to correctly 479 public void goToSleep(long time) { argument 481 mService.goToSleep(time, GO_TO_SLEEP_REASON_USER); 495 * @param time The time when the request to wake up was issued, in the 496 * {@link SystemClock#uptimeMillis()} time bas 503 wakeUp(long time) argument 531 nap(long time) argument [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | ActivityChooserModel.java | 182 * Attribute for the choice time. 184 private static final String ATTRIBUTE_TIME = "time"; 790 * The choice time. 792 public final long time; field in class:ActivityChooserModel.HistoricalRecord 803 * @param time The time the activity was chosen. 806 public HistoricalRecord(String activityName, long time, float weight) { argument 807 this(ComponentName.unflattenFromString(activityName), time, weight); 814 * @param time The time th 817 HistoricalRecord(ComponentName activityName, long time, float weight) argument [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | ActivityChooserModel.java | 178 * Attribute for the choice time. 180 private static final String ATTRIBUTE_TIME = "time"; 782 * The choice time. 784 public final long time; field in class:ActivityChooserModel.HistoricalRecord 795 * @param time The time the activity was chosen. 798 public HistoricalRecord(String activityName, long time, float weight) { argument 799 this(ComponentName.unflattenFromString(activityName), time, weight); 806 * @param time The time th 809 HistoricalRecord(ComponentName activityName, long time, float weight) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | GestureRecorder.java | 42 long time; field in class:GestureRecorder.Gesture.Record 48 this.time = when; 67 ("{\"type\":\"motion\", \"time\":%d, \"action\":\"%s\", " 69 this.time, 81 this.time = when; 86 return String.format("{\"type\":\"tag\", \"time\":%d, \"tag\":\"%s\", \"info\":\"%s\"}", 87 this.time,
|
/frameworks/native/include/input/ |
H A D | KeyCharacterMap.h | 235 int32_t deviceId, int32_t keyCode, int32_t metaState, bool down, nsecs_t time); 237 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 240 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 244 int32_t deviceId, int32_t metaState, bool down, nsecs_t time, 250 int32_t deviceId, int32_t metaState, nsecs_t time,
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
H A D | SimpleMonthAdapter.java | 53 private Time time; field in class:SimpleMonthAdapter.CalendarDay 89 if (time == null) { 90 time = new Time(); 92 time.setJulianDay(julianDay); 93 setTime(time.toMillis(false)); 130 * Set up the gesture detector and selected time
|
/frameworks/base/services/java/com/android/server/ |
H A D | AppOpsService.java | 108 public long time; field in class:AppOpsService.Op 275 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time, 285 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time, 340 if (op.time == 0 && op.rejectTime == 0) { 446 if (curOp.time == 0 && curOp.rejectTime == 0) { 580 + " code " + code + " time=" + op.time + " duration=" + op.duration); 593 op.time = System.currentTimeMillis(); 623 op.time = System.currentTimeMillis(); 658 op.duration = (int)(System.currentTimeMillis() - op.time); [all...] |