Searched refs:mCal (Results 1 – 2 of 2) sorted by relevance
123 private final UnixCalendar mCal; field in UsageStatsDatabase161 mCal = new UnixCalendar(0); in UsageStatsDatabase()926 mCal.setTimeInMillis(currentTimeMillis); in prune()927 mCal.addYears(-2); in prune()929 mCal.getTimeInMillis()); in prune()932 mCal.setTimeInMillis(currentTimeMillis); in prune()933 mCal.addMonths(-6); in prune()935 mCal.getTimeInMillis()); in prune()938 mCal.setTimeInMillis(currentTimeMillis); in prune()939 mCal.addWeeks(-4); in prune()[all …]
476 private final Calendar mCal; field in SyncStorageEngine535 mCal = Calendar.getInstance(TimeZone.getTimeZone("GMT+0")); in SyncStorageEngine()1537 mCal.setTimeInMillis(System.currentTimeMillis()); in getCurrentDayLocked()1538 final int dayOfYear = mCal.get(Calendar.DAY_OF_YEAR); in getCurrentDayLocked()1539 if (mYear != mCal.get(Calendar.YEAR)) { in getCurrentDayLocked()1540 mYear = mCal.get(Calendar.YEAR); in getCurrentDayLocked()1541 mCal.clear(); in getCurrentDayLocked()1542 mCal.set(Calendar.YEAR, mYear); in getCurrentDayLocked()1543 mYearInDays = (int)(mCal.getTimeInMillis()/86400000); in getCurrentDayLocked()