Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 159) sorted by relevance

1234567

/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleWeekView.java247 Time time = new Time(tz); in setWeekParams() local
248 time.setJulianDay(julianMonday); in setWeekParams()
253 mDayNumbers[0] = Integer.toString(time.getWeekNumber()); in setWeekParams()
264 if (time.weekDay != mWeekStart) { in setWeekParams()
265 int diff = time.weekDay - mWeekStart; in setWeekParams()
269 time.monthDay -= diff; in setWeekParams()
270 time.normalize(true); in setWeekParams()
273 mFirstJulianDay = Time.getJulianDay(time.toMillis(true), time.gmtoff); in setWeekParams()
274 mFirstMonth = time.month; in setWeekParams()
287 if (time.monthDay == 1) { in setWeekParams()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java180 public void duplicateLastPointWith(final int time) { in duplicateLastPointWith() argument
187 x, y, time)); in duplicateLastPointWith()
190 appendPoint(x, y, time); in duplicateLastPointWith()
191 updateIncrementalRecognitionSize(x, y, time); in duplicateLastPointWith()
206 private void appendPoint(final int x, final int y, final int time) { in appendPoint() argument
211 if (lastIndex >= 0 && mEventTimes.get(lastIndex) > time) { in appendPoint()
213 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), in appendPoint()
217 mEventTimes.add(time); in appendPoint()
222 private void updateMajorEvent(final int x, final int y, final int time) { in updateMajorEvent() argument
223 mLastMajorEventTime = time; in updateMajorEvent()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DInputPointersTests.java61 final int time = i * 4; in testAdd() local
62 src.addPointer(x, y, pointerId, time); in testAdd()
69 final int time = i * 4; in testAdd() local
73 assertEquals("times at " + i, time, src.getTimes()[i]); in testAdd()
84 final int time = i * 4; in testAddAt() local
85 src.addPointerAt(i, x, y, pointerId, time); in testAddAt()
92 final int time = i * 4; in testAddAt() local
96 assertEquals("times at " + i, time, src.getTimes()[i]); in testAddAt()
107 final int time = i * 4; in testSet() local
108 src.addPointer(x, y, pointerId, time); in testSet()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DCountingTimerView.java138 protected void updateWidth(final String time) { in updateWidth() argument
141 mWidth = time.length() * mEm; in updateWidth()
148 public float calcTotalWidth(final String time) { in calcTotalWidth() argument
149 if (time != null) { in calcTotalWidth()
150 updateWidth(time); in calcTotalWidth()
171 protected float drawTime(Canvas canvas, final String time, int ii, float x, float y) { in drawTime() argument
173 while (ii < time.length()) { in drawTime()
175 canvas.drawText(time.substring(ii, ii + 1), x, y, mPaint); in drawTime()
190 public float draw(Canvas canvas, final String time, float x, float y) { in draw() argument
191 return drawTime(canvas, time, 0, x, y) + getLabelWidth(); in draw()
[all …]
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java443 Time time = new Time();
444 time.setToNow();
445 time.monthDay++;
446 time.hour = 0;
447 time.minute = 0;
448 time.second = 0;
449 long midnightDeviceTz = time.normalize(true);
451 time.timezone = timezone;
452 time.setToNow();
453 time.monthDay++;
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaWindowAdapter.java325 Time time = new Time(); in toString() local
327 time.setJulianDay(start); in toString()
328 time.normalize(false); in toString()
329 sb.append("Start:").append(time.toString()); in toString()
330 time.setJulianDay(end); in toString()
331 time.normalize(false); in toString()
332 sb.append(" End:").append(time.toString()); in toString()
534 private int findEventPositionNearestTime(Time time, long id) { in findEventPositionNearestTime() argument
535 DayAdapterInfo info = getAdapterInfoByTime(time); in findEventPositionNearestTime()
538 pos = info.offset + info.dayAdapter.findEventPositionNearestTime(time, id); in findEventPositionNearestTime()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java299 Time time = new Time(DEFAULT_TIMEZONE); in DumpInstances() local
300 time.parse3339(startDate); in DumpInstances()
301 begin = time.toMillis(false /* use isDst */); in DumpInstances()
302 time.parse3339(endDate); in DumpInstances()
303 end = time.toMillis(false /* use isDst */); in DumpInstances()
323 Time time = new Time(DEFAULT_TIMEZONE); in QueryNumInstances() local
324 time.parse3339(startDate); in QueryNumInstances()
325 begin = time.toMillis(false /* use isDst */); in QueryNumInstances()
326 time.parse3339(endDate); in QueryNumInstances()
327 end = time.toMillis(false /* use isDst */); in QueryNumInstances()
[all …]
DCalendarSyncTestingBase.java270 Time time = new Time(); in init() local
272 time.timezone = Time.TIMEZONE_UTC; in init()
274 time.timezone = timezone; in init()
276 mTimezone = time.timezone; in init()
277 time.parse3339(startDate); in init()
278 mDtstart = time.toMillis(false /* use isDst */); in init()
279 time.parse3339(endDate); in init()
280 mDtend = time.toMillis(false /* use isDst */); in init()
302 Time time = new Time(); in init() local
304 time.timezone = Time.TIMEZONE_UTC; in init()
[all …]
DSyncCalendarTest.java60 Time time = new Time(); in testCreateAllDayEvent() local
61 time.setToNow(); in testCreateAllDayEvent()
62 long dtStart = time.toMillis(false); in testCreateAllDayEvent()
63 long dtEnd = time.toMillis(false) + ONE_HOUR_IN_MILLIS; in testCreateAllDayEvent()
79 Time time = new Time(); in testEditEventTitle() local
80 time.setToNow(); in testEditEventTitle()
81 String newTitle = cursor.getString(cursor.getColumnIndex("title")) + time.toString(); in testEditEventTitle()
107 Time time = new Time(); in testEditEventDate() local
110 time.set(dtStart + 2 * ONE_HOUR_IN_MILLIS); in testEditEventDate()
111 long newDtStart = time.toMillis(false); in testEditEventDate()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveImage.java318 private void updateExifData(ExifInterface exif, long time) { in updateExifData() argument
320 exif.addDateTimeStampTag(ExifInterface.TAG_DATE_TIME, time, in updateExifData()
358 long time = System.currentTimeMillis(); in processAndSaveImage() local
359 updateExifData(exif, time); in processAndSaveImage()
362 … ContentValues values = getContentValues(mContext, mSelectedImageUri, mDestinationFile, time); in processAndSaveImage()
370 long time = System.currentTimeMillis(); in processAndSaveImage() local
371 updateExifData(exif, time); in processAndSaveImage()
383 mDestinationFile, time, !flatten); in processAndSaveImage()
420 long time = System.currentTimeMillis(); in processAndSaveImage() local
423 updateExifData(exif, time); in processAndSaveImage()
[all …]
/packages/apps/Calendar/tests/src/com/android/calendar/widget/
DCalendarAppWidgetServiceTest.java81 Time time = new Time(); in setUp() local
82 time.setToNow(); in setUp()
83 time.monthDay += 1; in setUp()
84 time.hour = 2; in setUp()
85 time.minute = 0; in setUp()
86 time.second = 0; in setUp()
87 now = time.normalize(false); in setUp()
149 Time time = new Time(); in testGetAppWidgetModel_AllDayEventLater() local
150 time.set(now); in testGetAppWidgetModel_AllDayEventLater()
151 time.monthDay += 5; in testGetAppWidgetModel_AllDayEventLater()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatches.java75 public static String buildShareResults(Context context, String time, long[] laps) { in buildShareResults() argument
76 StringBuilder b = new StringBuilder (context.getString(R.string.sw_share_main, time)); in buildShareResults()
100 public static String buildShareResults(Context context, long time, long[] laps) { in buildShareResults() argument
101 return buildShareResults(context, getTimeText(context, time, NO_LAP_NUMBER), laps); in buildShareResults()
111 public static String getTimeText(Context context, long time, int lap) { in getTimeText() argument
112 if (time < 0) { in getTimeText()
113 time = 0; in getTimeText()
125 seconds = time / 1000; in getTimeText()
126 hundreds = (time - seconds * 1000) / 10; in getTimeText()
150 public static String formatTimeText(long time, final String format) { in formatTimeText() argument
[all …]
DStopwatchFragment.java67 Lap (long time, long total) { in Lap() argument
68 mLapTime = time; in Lap()
239 long time = Utils.getTimeNow(); in rightButtonAction() local
242 intent.putExtra(Stopwatches.MESSAGE_TIME, time); in rightButtonAction()
257 doStart(time); in rightButtonAction()
464 private void doStart(long time) { in doStart() argument
466 mStartTime = time; in doStart()
548 private void addLapTime(long time) { in addLapTime() argument
550 final long curTime = time - mStartTime + mAccumulatedTime; in addLapTime()
768 final long time = Utils.getTimeNow(); in onLeftButtonClick() local
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAlarmManager.java240 Time time = new Time(); in scheduleNextAlarmCheck() local
241 time.set(triggerTime); in scheduleNextAlarmCheck()
242 String timeStr = time.format(" %a, %b %d, %Y %I:%M%P"); in scheduleNextAlarmCheck()
274 Time time = new Time(); in scheduleNextAlarmLocked() local
280 time.set(start); in scheduleNextAlarmLocked()
281 String startTimeStr = time.format(" %a, %b %d, %Y %I:%M%P"); in scheduleNextAlarmLocked()
326 time.setToNow(); in scheduleNextAlarmLocked()
327 time.normalize(false); in scheduleNextAlarmLocked()
328 long localOffset = time.gmtoff * 1000; in scheduleNextAlarmLocked()
392 time.set(nextAlarmTime); in scheduleNextAlarmLocked()
[all …]
DCalendarDatabaseHelper.java1472 private static boolean fixAllDayTime(Time time, String timezone, Long timeInMillis) { in fixAllDayTime() argument
1473 time.set(timeInMillis); in fixAllDayTime()
1474 if(time.hour != 0 || time.minute != 0 || time.second != 0) { in fixAllDayTime()
1475 time.hour = 0; in fixAllDayTime()
1476 time.minute = 0; in fixAllDayTime()
1477 time.second = 0; in fixAllDayTime()
2541 Time time = new Time(); in upgradeToVersion69() local
2572 time.clear(timezone); in upgradeToVersion69()
2573 update |= fixAllDayTime(time, timezone, dtstart); in upgradeToVersion69()
2574 dtstart = time.normalize(false); in upgradeToVersion69()
[all …]
DCalendarProvider2.java714 Time time = (timezone != null) ? new Time(timezone) : new Time(); in get2445ToMillis() local
716 time.parse(dt2445); in get2445ToMillis()
723 return time.toMillis(true /* ignore DST */); in get2445ToMillis()
786 Time time = new Time(instancesTimezone); in regenerateInstancesTable() local
787 time.set(now); in regenerateInstancesTable()
788 time.monthDay = 1; in regenerateInstancesTable()
789 time.hour = 0; in regenerateInstancesTable()
790 time.minute = 0; in regenerateInstancesTable()
791 time.second = 0; in regenerateInstancesTable()
793 long begin = time.normalize(true); in regenerateInstancesTable()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
DDateUtilTests.java34 Time time = new Time(); in testDayDiffNone() local
37 assertEquals(0, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffNone()
38 assertEquals(0, DateUtils.getDayDifference(time, date2, date1)); in testDayDiffNone()
45 Time time = new Time(); in testDayDiffOne() local
48 assertEquals(1, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffOne()
49 assertEquals(1, DateUtils.getDayDifference(time, date2, date1)); in testDayDiffOne()
56 Time time = new Time(); in testDayDiffTwo() local
59 assertEquals(2, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffTwo()
60 assertEquals(2, DateUtils.getDayDifference(time, date2, date1)); in testDayDiffTwo()
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/
DSourceLatency.java74 public synchronized void addTime(long time) { in addTime() argument
75 mTotal += time; in addTime()
91 final ElapsedTime time = new ElapsedTime(); in checkSourceConcurrent() local
100 time.addTime(t); in checkSourceConcurrent()
111 while (time.getCount() < count) { in checkSourceConcurrent()
118 Log.d(TAG, src + "[DONE]: " + length + " queries in " + formatTime(time.getAverage()) in checkSourceConcurrent()
119 + " (average), " + formatTime(time.getTotal()) + " (total)"); in checkSourceConcurrent()
123 ElapsedTime time = new ElapsedTime(); in checkSource() local
127 time.addTime(t); in checkSource()
129 Log.d(TAG, src + "[DONE]: " + count + " queries in " + formatTime(time.getAverage()) in checkSource()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DChartDataUsageView.java447 final Time time = new Time(); in getTickPoints() local
448 time.set(mMax); in getTickPoints()
449 time.monthDay -= time.weekDay - FIRST_DAY_OF_WEEK; in getTickPoints()
450 time.hour = time.minute = time.second = 0; in getTickPoints()
452 time.normalize(true); in getTickPoints()
453 long timeMillis = time.toMillis(true); in getTickPoints()
458 time.monthDay -= 7; in getTickPoints()
459 time.normalize(true); in getTickPoints()
460 timeMillis = time.toMillis(true); in getTickPoints()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.java111 Time time = new Time(mTimeZone); in refresh() local
113 time.set(now); in refresh()
114 mTodayJulianDay = Time.getJulianDay(now, time.gmtoff); in refresh()
125 Time time = new Time(mTimeZone); in setMidnightHandler() local
126 time.set(now); in setMidnightHandler()
127 long runInMillis = (24 * 3600 - time.hour * 3600 - time.minute * 60 - in setMidnightHandler()
128 time.second + 1) * 1000; in setMidnightHandler()
305 public void setTime(long time) { in setTime() argument
306 mMilliTime = time; in setTime()
DDayView.java955 Time time = new Time(mBaseDate); in getSelectedTimeInMillis() local
956 time.setJulianDay(mSelectionDay); in getSelectedTimeInMillis()
957 time.hour = mSelectionHour; in getSelectedTimeInMillis()
962 return time.normalize(true /* ignore isDst */); in getSelectedTimeInMillis()
966 Time time = new Time(mBaseDate); in getSelectedTime() local
967 time.setJulianDay(mSelectionDay); in getSelectedTime()
968 time.hour = mSelectionHour; in getSelectedTime()
973 time.normalize(true /* ignore isDst */); in getSelectedTime()
974 return time; in getSelectedTime()
978 Time time = new Time(mBaseDate); in getSelectedTimeForAccessibility() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DInputPointers.java60 public void addPointerAt(int index, int x, int y, int pointerId, int time) { in addPointerAt() argument
67 mTimes.addAt(index, time); in addPointerAt()
71 void addPointer(int x, int y, int pointerId, int time) { in addPointer() argument
75 mTimes.add(time); in addPointer()
170 final int time = times[i]; in isValidTimeStamps() local
171 final int lastTime = lastTimeOfPointers.get(pointerId, time); in isValidTimeStamps()
172 if (time < lastTime) { in isValidTimeStamps()
179 lastTimeOfPointers.put(pointerId, time); in isValidTimeStamps()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlertUtils.java157 Time time = new Time(tz);
158 time.setToNow();
159 int today = Time.getJulianDay(time.toMillis(false), time.gmtoff);
160 time.set(startMillis);
161 int eventDay = Time.getJulianDay(time.toMillis(false), allDay ? 0 : time.gmtoff);
182 time.set(startMillis);
183 boolean isDST = time.isDst != 0;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp107 const int time = times ? times[i] : -1; in updateTouchPoints() local
118 if (pushTouchPoint(proximityInfo, maxPointToKeyLength, i, c, x, y, time, in updateTouchPoints()
355 const int x, const int y, const int time, const bool lastPoint, const float nearest, in getPointScore() argument
403 const int time, const bool isGeometric, const bool doSampling, in pushTouchPoint() argument
418 const float score = getPointScore(mostCommonKeyWidth, x, y, time, isLastPoint, nearest, in pushTouchPoint()
466 sampledInputTimes->push_back(time); in pushTouchPoint()
470 x, y, time, inputIndex, popped); in pushTouchPoint()
542 const int time = adjustedEndTime - adjustedStartTime; in calculateBeelineSpeedRate() local
543 if (time <= 0) { in calculateBeelineSpeedRate()
547 if (time >= ProximityInfoParams::STRONG_DOUBLE_LETTER_TIME_MILLIS){ in calculateBeelineSpeedRate()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DDetailsDialog.java121 double time = Double.valueOf(value);
122 if (time < 1.0f) {
124 (int) (0.5f + 1 / time));
126 int integer = (int) time;
127 time -= integer;
129 if (time > 0.0001) {
131 (int) (0.5f + 1 / time));
298 return context.getString(R.string.time);

1234567