/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
H A D | DateUtilTests.java | 34 Time time = new Time(); 37 assertEquals(0, DateUtils.getDayDifference(time, date1, date2)); 38 assertEquals(0, DateUtils.getDayDifference(time, date2, date1)); 45 Time time = new Time(); 48 assertEquals(1, DateUtils.getDayDifference(time, date1, date2)); 49 assertEquals(1, DateUtils.getDayDifference(time, date2, date1)); 56 Time time = new Time(); 59 assertEquals(2, DateUtils.getDayDifference(time, date1, date2)); 60 assertEquals(2, DateUtils.getDayDifference(time, date2, date1));
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/ |
H A D | MockClock.java | 20 /** Current time. Only updated with advance(). */ 38 public void setCurrentTimeMillis(long time) { argument 39 mCurrentTimeMillis = time;
|
/packages/apps/Mms/src/com/android/mms/dom/smil/ |
H A D | TimeListImpl.java | 44 Time time = null; 46 time = mTimes.get(index); 50 return time;
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
H A D | time_keeper.cpp | 28 sCurrentTime = time(0);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | ControllerOverlay.java | 26 void onSeekMove(int time); argument 27 void onSeekEnd(int time, int trimStartTime, int trimEndTime); argument
|
H A D | MovieControllerOverlay.java | 175 public void onScrubbingMove(int time) { argument 177 super.onScrubbingMove(time); 181 public void onScrubbingEnd(int time, int trimStartTime, int trimEndTime) { argument 183 super.onScrubbingEnd(time, trimStartTime, trimEndTime);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureStrokeRecognitionPoints.java | 180 public void duplicateLastPointWith(final int time) { argument 187 x, y, time)); 190 appendPoint(x, y, time); 191 updateIncrementalRecognitionSize(x, y, time); 206 private void appendPoint(final int x, final int y, final int time) { argument 209 // time than the next {@link MotionEvent}. To maintain the monotonicity of the event time, 211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) { 213 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), 217 mEventTimes.add(time); 222 updateMajorEvent(final int x, final int y, final int time) argument 232 detectFastMove(final int x, final int y, final int time) argument 272 addEventPoint(final int x, final int y, final int time, final boolean isMajorEvent) argument 292 updateIncrementalRecognitionSize(final int x, final int y, final int time) argument [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
H A D | Stopwatches.java | 71 * @param time total elapsed time 75 public static String buildShareResults(Context context, String time, long[] laps) { argument 76 StringBuilder b = new StringBuilder (context.getString(R.string.sw_share_main, time)); 96 * @param time total elapsed time 100 public static String buildShareResults(Context context, long time, long[] laps) { argument 101 return buildShareResults(context, getTimeText(context, time, NO_LAP_NUMBER), laps); 105 * Format the string of the time running on the stopwatch up to hundred of a second accuracy 107 * @param time 111 getTimeText(Context context, long time, int lap) argument 150 formatTimeText(long time, final String format) argument [all...] |
/packages/apps/OMA-DM/engine/dmlib/dmt-tools/lib/ |
H A D | joda-time-1.1.jar | ... joda.time.Chronology getISO (org.joda.time.DateTimeZone) org.joda.time.DateTimeZone zone ... |
/packages/apps/Nfc/nci/jni/ |
H A D | IntervalTimer.h | 21 #include <time.h>
|
/packages/apps/Calendar/src/com/android/calendar/month/ |
H A D | SimpleWeekView.java | 77 * How many days to display at a time. Days will be displayed starting with 118 // Cache the number strings so we don't have to recompute them each time 210 * @param tz The time zone this view should reference times in 247 Time time = new Time(tz); 248 time.setJulianDay(julianMonday); 253 mDayNumbers[0] = Integer.toString(time.getWeekNumber()); 264 if (time.weekDay != mWeekStart) { 265 int diff = time.weekDay - mWeekStart; 269 time.monthDay -= diff; 270 time [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetServiceTest.java | 80 // Set the "current time" to 2am tomorrow. 81 Time time = new Time(); 82 time.setToNow(); 83 time.monthDay += 1; 84 time.hour = 2; 85 time.minute = 0; 86 time.second = 0; 87 now = time.normalize(false); 148 // Set the start time to 5 days from now at midnight UTC. 149 Time time [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputPointersTests.java | 61 final int time = i * 4; 62 src.addPointer(x, y, pointerId, time); 69 final int time = i * 4; 73 assertEquals("times at " + i, time, src.getTimes()[i]); 84 final int time = i * 4; 85 src.addPointerAt(i, x, y, pointerId, time); 92 final int time = i * 4; 96 assertEquals("times at " + i, time, src.getTimes()[i]); 107 final int time = i * 4; 108 src.addPointer(x, y, pointerId, time); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
H A D | Animation.java | 23 // Animation calculates a value according to the current input time. 27 // 2. Then we should call start(). The actual start time is the first value 29 // 3. Each time we want to get an animation value, we call 68 public void setStartTime(long time) { argument 69 mStartTime = time;
|
/packages/apps/OMA-DM/engine/dmlib/portlib/lj/hdr/ |
H A D | dmAllocatedPointersPool.h | 32 #include <time.h> 33 #include <sys/time.h>
|
/packages/apps/OMA-DM/engine/xpl/hdr/ |
H A D | dmAllocatedPointersPool.h | 24 #include <time.h> 25 #include <sys/time.h>
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | InputPointers.java | 47 // Fill the gap with the latest time. 60 public void addPointerAt(int index, int x, int y, int pointerId, int time) { argument 67 mTimes.addAt(index, time); 71 void addPointer(int x, int y, int pointerId, int time) { argument 75 mTimes.add(time); 159 return "size=" + getPointerSize() + " id=" + mPointerIds + " time=" + mTimes 170 final int time = times[i]; 171 final int lastTime = lastTimeOfPointers.get(pointerId, time); 172 if (time < lastTime) { 179 lastTimeOfPointers.put(pointerId, time); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/analytics/ |
H A D | AnalyticsTimer.java | 25 * Generic static singleton timer that keeps track of start time of various events. It logs the 52 * Record the current time as the start time of the provided id. If the id has a previously 53 * recorded start time, that time is overwritten. 67 * start time. 84 * Same as logDuration except with the logged time returned (or exception thrown) 85 * @return logged time in millis 94 final long time = SystemClock.uptimeMillis() - value; 95 Analytics.getInstance().sendTiming(category, time, nam [all...] |
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | SyncCalendarTest.java | 60 Time time = new Time(); 61 time.setToNow(); 62 long dtStart = time.toMillis(false); 63 long dtEnd = time.toMillis(false) + ONE_HOUR_IN_MILLIS; 79 Time time = new Time(); 80 time.setToNow(); 81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString(); 107 Time time = new Time(); 110 time.set(dtStart + 2 * ONE_HOUR_IN_MILLIS); 111 long newDtStart = time [all...] |
H A D | CalendarSyncTestingBase.java | 270 Time time = new Time(); 272 time.timezone = Time.TIMEZONE_UTC; 274 time.timezone = timezone; 276 mTimezone = time.timezone; 277 time.parse3339(startDate); 278 mDtstart = time.toMillis(false /* use isDst */); 279 time.parse3339(endDate); 280 mDtend = time.toMillis(false /* use isDst */); 302 Time time = new Time(); 304 time [all...] |
/packages/apps/Calendar/src/com/android/calendar/widget/ |
H A D | CalendarAppWidgetService.java | 103 * Update interval used when no next-update calculated, or bad trigger time in past. 117 // Suppress unnecessary logging about update time. Need to be static as this object is 365 * until some time in the future. Widen the time range that we query by 368 * in the list of events starting at midnight local time. This may fetch 377 // Search for events from now until some time in the future 421 * Calculates and returns the next time we should push widget updates. 432 // We want to update widget when we enter/exit time range of an event. 443 Time time = new Time(); 444 time [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
H A D | CountingTimerView.java | 37 * Class to measure and draw the time in the {@link com.android.deskclock.CircleTimerView}. 40 * drawing digits (and optional label) of the time set in {@link #setTime(long, boolean, boolean)} 64 // Hours and minutes are signed for when a timer goes past the set time and thus negative 138 protected void updateWidth(final String time) { argument 141 mWidth = time.length() * mEm; 148 public float calcTotalWidth(final String time) { argument 149 if (time != null) { 150 updateWidth(time); 163 * Draws each character with a fixed spacing from time starting at ii. 164 * @param canvas the canvas on which the time segmen 171 drawTime(Canvas canvas, final String time, int ii, float x, float y) argument 190 draw(Canvas canvas, final String time, float x, float y) argument 208 draw(Canvas canvas, final String time, float x, float y) argument 224 updateWidth(final String time) argument 246 draw(Canvas canvas, final String time, float x, float y) argument 325 setTime(long time, boolean showHundredths, boolean update) argument [all...] |
/packages/apps/Email/src/com/android/email/activity/ |
H A D | EventViewer.java | 67 long time; 69 time = Utility.parseEmailDateTimeToMillis(info.get(MeetingInfo.MEETING_DTSTART)); 74 uri = Uri.parse("content://com.android.calendar/time/" + time);
|
/packages/apps/OMA-DM/engine/dmlib/portlib/lj/src/ |
H A D | xpl_Time.cc | 2 #include <time.h> 3 #include <sys/time.h> 12 return (XPL_CLK_CLOCK_T)time(NULL);
|
/packages/apps/OMA-DM/engine/xpl/src/ |
H A D | xpl_Time.cc | 2 #include <time.h> 3 #include <sys/time.h> 12 return (XPL_CLK_CLOCK_T)time(NULL);
|