/frameworks/base/core/java/android/net/ |
H A D | SntpClient.java | 30 * Simple SNTP client class for retrieving network time. 34 * if (client.requestTime("time.foo.com")) { 57 // system time computed from NTP server response 63 // round trip time in milliseconds 87 // get current time and write it to the request packet 118 // (response rather than request time) 123 if (false) Log.d(TAG, "request time failed: " + e); 135 * Returns the time computed from the NTP transaction. 137 * @return time value computed from NTP server response. 145 * corresponding to the NTP time 194 writeTimeStamp(byte[] buffer, int offset, long time) argument [all...] |
/frameworks/base/core/java/com/android/internal/http/ |
H A D | HttpDateTime.java | 118 Time time = new Time(Time.TIMEZONE_UTC); 119 time.set(timeOfDay.second, timeOfDay.minute, timeOfDay.hour, date, 121 return time.toMillis(false /* use isDst */);
|
/frameworks/base/tools/preload/ |
H A D | Root.java | 85 loadedClass, record.time); 93 process.startOperation(record.tid, loadedClass, record.time, 98 process.startOperation(record.tid, loadedClass, record.time,
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZonePickerUtils.java | 50 // labels every time getGmtDisplayName is called), we'll cache the lists of override IDs 61 * @param millis The time (daylight savings or not) 83 Time time = new Time(tz.getID()); 84 time.set(timeMillis); 88 String displayName = getDisplayName(tz, time.isDst != 0); 156 * @param daylightTime True for daylight time, false for standard time
|
H A D | TimeZoneResultAdapter.java | 45 /** SharedPref name and key for recent time zones */ 120 public void onSetFilter(int filterType, String str, int time) { argument 122 Log.d(TAG, "onSetFilter: " + filterType + " [" + str + "] " + time); 127 mLastFilterTime = time; 162 ArrayList<Integer> indices = mTimeZoneData.getTimeZonesByOffset(time);
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | TimeUtils.java | 28 /** @hide Field length that can hold 999 days of time */ 168 public static void formatDuration(long time, long now, PrintWriter pw) { argument 169 if (time == 0) { 173 formatDuration(time-now, pw, 0);
|
/frameworks/base/core/java/android/webkit/ |
H A D | DateSorter.java | 86 * @param time time since the Epoch in milliseconds, such as that 91 public int getIndex(long time) { argument 94 if (time > mBins[i]) return i;
|
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/ |
H A D | TriangleRenderer.java | 46 * Some one-time OpenGL initialization can be made here 83 long time = SystemClock.uptimeMillis() % 4000L; 84 float angle = 0.090f * ((int) time); 96 * each time we draw, but usually a new projection needs to
|
/frameworks/base/core/java/android/os/ |
H A D | BatteryStats.java | 129 * Include only the run since the last time the device was unplugged in the stats. 207 * Returns the total time in microseconds associated with this Timer for the 212 * @return a time in microseconds 353 * Returns the total time (in 1/100 sec) spent executing in user code. 360 * Returns the total time (in 1/100 sec) spent executing in system code. 374 * Returns the cpu time spent in microseconds while the process was in the foreground. 376 * @return foreground cpu time in microseconds 381 * Returns the approximate cpu time spent in microseconds, at a certain CPU speed. 418 * Returns the amount of time spent started. 449 public long time; field in class:BatteryStats.HistoryItem 509 HistoryItem(long time, Parcel src) argument 712 setTo(long time, byte cmd, HistoryItem o) argument 1099 formatTime(StringBuilder sb, long time) argument 1106 formatTimeMs(StringBuilder sb, long time) argument 1522 TimerEntry(String name, int id, BatteryStats.Timer timer, long time) argument [all...] |
/frameworks/av/include/media/nbaio/ |
H A D | MonoPipe.h | 20 #include <time.h> 64 // with MonoPipeReader. Every time a MonoPipeReader reads from the pipe, it 65 // receives a "readPTS" indicating the point in time for which the reader 68 // updated read pointer. This cached value is the local time for which the 69 // reader is going to request data next time it reads data (assuming we are 87 // but it will not be an unbounded amount of time. 119 // 32-bit overflow is possible if the pipe is active for a long time, but if that happens it's 128 struct timespec mWriteTs; // time that the previous write() completed
|
/frameworks/av/libvideoeditor/vss/common/inc/ |
H A D | M4AMRR_CoreReader.h | 166 * M4OSA_ERR M4AMRR_seek(M4OSA_Context Context, M4SYS_StreamID* pStreamID, M4OSA_Time time, 168 * @brief The function seeks the targeted time in the give stream by streamId. 173 * @param time(IN) : targeted time 175 * @param pObtainCTS(OUT) : Returned time nearest to target. 183 * @returns M4WAR_INVALID_TIME : time cannot be reached. 186 M4OSA_ERR M4AMRR_seek(M4OSA_Context Context, M4SYS_StreamID* pStreamID, M4OSA_Time time,
|
/frameworks/av/media/libstagefright/include/ |
H A D | SampleIterator.h | 68 status_t findSampleTime(uint32_t sampleIndex, uint32_t *time);
|
/frameworks/av/media/mtp/ |
H A D | MtpUtils.cpp | 20 #include <time.h> 31 DD replaced by the day (01-31), T is a constant character 'T' delimiting time from date,
|
/frameworks/base/core/java/android/widget/ |
H A D | DateTimeView.java | 42 // - listen for the next threshold time to update the view. 48 * Displays a given time in a convenient human-readable foramt. 94 public void setTime(long time) { argument 96 t.set(time); 111 Date time = mTime; 169 // Currently showing the time, update at the later of twelve hours after or midnight. 174 // If the time is in the past, don't schedule an update 177 // If hte time is in the future, schedule one at the earlier of twelve hours 184 Log.d(TAG, "update needed for '" + time + "' at '" + new Date(mUpdateTimeMillis) 237 // all of the time conversion [all...] |
H A D | OverScroller.java | 235 * @param extend Additional time to scroll in milliseconds. 298 long time = AnimationUtils.currentAnimationTimeMillis(); 299 // Any scroller can be used for time, since they were started 301 final long elapsedTime = time - mScrollerX.mStartTime; 518 * Returns the time elapsed since the beginning of the scrolling. 520 * @return The elapsed time in milliseconds. 525 final long time = AnimationUtils.currentAnimationTimeMillis(); 527 return (int) (time - startTime); 559 // Animation starting time, in system milliseconds 708 final long time [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | time_util.cpp | 24 #include <sys/time.h>
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | time_util.cpp | 21 #include <sys/time.h>
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | SystemGesturesPointerEventListener.java | 150 final long time = move.getHistoricalEventTime(h); 153 final int swipe = detectSwipe(i, time, x, y); 167 private int detectSwipe(int i, long time, float x, float y) { argument 170 final long elapsed = time - mDownTime[i];
|
/frameworks/base/tools/aapt/ |
H A D | Main.h | 22 #include <time.h>
|
/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | VelocityTest.java | 148 * Velocity is independent of the time when the events occurs, 253 long time = startime + (int) (i * dt); 254 addMotionEvent(vt, x, y, time, MotionEvent.ACTION_MOVE); 259 private void addMotionEvent(VelocityTracker vt, int x, int y, long time, int action) { argument 260 MotionEvent me = MotionEvent.obtain(time, time, action, x, y, 0);
|
/frameworks/base/services/java/com/android/server/dreams/ |
H A D | DreamManagerService.java | 178 long time = SystemClock.uptimeMillis(); 179 mPowerManager.userActivity(time, true /*noChangeLights*/); 180 mPowerManager.nap(time); 222 long time = SystemClock.uptimeMillis(); 223 mPowerManager.userActivity(time, false /*noChangeLights*/);
|
/frameworks/base/core/jni/ |
H A D | android_opengl_EGLExt.cpp | 59 /* Cache method IDs each time the class is loaded. */ 134 /* EGLBoolean eglPresentationTimeANDROID ( EGLDisplay dpy, EGLSurface sur, EGLnsecsANDROID time ) */ 137 (JNIEnv *_env, jobject _this, jobject dpy, jobject sur, jlong time) { 145 (EGLnsecsANDROID)time 136 android_eglPresentationTimeANDROID(JNIEnv *_env, jobject _this, jobject dpy, jobject sur, jlong time) argument
|
/frameworks/base/data/keyboards/ |
H A D | Android.mk | 15 # This makefile performs build time validation of framework keymap files.
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | AlignmentTest.java | 108 float time = (float) (System.currentTimeMillis() - start) / N * 1000; 109 System.out.println("Time: " + time + "mics");
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | LocationCluster.java | 56 // use time field to store duation of this location 94 // centers. Note that if the cluster is consolidated for the first time, 136 private void updateTemporalHistogram(long time, long duration) { argument 137 HashMap<String, String> timeFeatures = TimeStatsAggregator.getAllTimeFeatures(time);
|