Searched refs:mCal (Results 1 – 2 of 2) sorted by relevance
116 private final UnixCalendar mCal; field in UsageStatsDatabase154 mCal = new UnixCalendar(0); in UsageStatsDatabase()906 mCal.setTimeInMillis(currentTimeMillis); in prune()907 mCal.addYears(-3); in prune()909 mCal.getTimeInMillis()); in prune()911 mCal.setTimeInMillis(currentTimeMillis); in prune()912 mCal.addMonths(-6); in prune()914 mCal.getTimeInMillis()); in prune()916 mCal.setTimeInMillis(currentTimeMillis); in prune()917 mCal.addWeeks(-4); in prune()[all …]
464 private final Calendar mCal; field in SyncStorageEngine523 mCal = Calendar.getInstance(TimeZone.getTimeZone("GMT+0")); in SyncStorageEngine()1475 mCal.setTimeInMillis(System.currentTimeMillis()); in getCurrentDayLocked()1476 final int dayOfYear = mCal.get(Calendar.DAY_OF_YEAR); in getCurrentDayLocked()1477 if (mYear != mCal.get(Calendar.YEAR)) { in getCurrentDayLocked()1478 mYear = mCal.get(Calendar.YEAR); in getCurrentDayLocked()1479 mCal.clear(); in getCurrentDayLocked()1480 mCal.set(Calendar.YEAR, mYear); in getCurrentDayLocked()1481 mYearInDays = (int)(mCal.getTimeInMillis()/86400000); in getCurrentDayLocked()