Searched refs:mCal (Results 1 – 2 of 2) sorted by relevance
67 private final UnixCalendar mCal; field in UsageStatsDatabase81 mCal = new UnixCalendar(0); in UsageStatsDatabase()490 mCal.setTimeInMillis(currentTimeMillis); in prune()491 mCal.addYears(-3); in prune()493 mCal.getTimeInMillis()); in prune()495 mCal.setTimeInMillis(currentTimeMillis); in prune()496 mCal.addMonths(-6); in prune()498 mCal.getTimeInMillis()); in prune()500 mCal.setTimeInMillis(currentTimeMillis); in prune()501 mCal.addWeeks(-4); in prune()[all …]
426 private final Calendar mCal; field in SyncStorageEngine469 mCal = Calendar.getInstance(TimeZone.getTimeZone("GMT+0")); in SyncStorageEngine()1340 mCal.setTimeInMillis(System.currentTimeMillis()); in getCurrentDayLocked()1341 final int dayOfYear = mCal.get(Calendar.DAY_OF_YEAR); in getCurrentDayLocked()1342 if (mYear != mCal.get(Calendar.YEAR)) { in getCurrentDayLocked()1343 mYear = mCal.get(Calendar.YEAR); in getCurrentDayLocked()1344 mCal.clear(); in getCurrentDayLocked()1345 mCal.set(Calendar.YEAR, mYear); in getCurrentDayLocked()1346 mYearInDays = (int)(mCal.getTimeInMillis()/86400000); in getCurrentDayLocked()