Home
last modified time | relevance | path

Searched refs:mCalendar (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java33 private Calendar mCalendar; field in MonthDisplayHelper
53 mCalendar = Calendar.getInstance(); in MonthDisplayHelper()
54 mCalendar.set(Calendar.YEAR, year); in MonthDisplayHelper()
55 mCalendar.set(Calendar.MONTH, month); in MonthDisplayHelper()
56 mCalendar.set(Calendar.DAY_OF_MONTH, 1); in MonthDisplayHelper()
57 mCalendar.set(Calendar.HOUR_OF_DAY, 0); in MonthDisplayHelper()
58 mCalendar.set(Calendar.MINUTE, 0); in MonthDisplayHelper()
59 mCalendar.set(Calendar.SECOND, 0); in MonthDisplayHelper()
60 mCalendar.getTimeInMillis(); in MonthDisplayHelper()
72 return mCalendar.get(Calendar.YEAR); in getYear()
[all …]
/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java34 private final Calendar mCalendar = Calendar.getInstance(); field in ScheduleCalendar
93 mCalendar.setTimeZone(tz); in setTimeZone()
115 mCalendar.setTimeInMillis(millis); in getTime()
116 mCalendar.set(Calendar.HOUR_OF_DAY, hour); in getTime()
117 mCalendar.set(Calendar.MINUTE, min); in getTime()
118 mCalendar.set(Calendar.SECOND, 0); in getTime()
119 mCalendar.set(Calendar.MILLISECOND, 0); in getTime()
120 return mCalendar.getTimeInMillis(); in getTime()
178 mCalendar.setTimeInMillis(time); in getDayOfWeek()
179 return mCalendar.get(Calendar.DAY_OF_WEEK); in getDayOfWeek()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DResponseData.java219 private Calendar mCalendar; field in DTTZResponseData
223 mCalendar = cal; in DTTZResponseData()
240 if (mCalendar == null) { in format()
241 mCalendar = Calendar.getInstance(); in format()
244 data[1] = byteToBCD(mCalendar.get(java.util.Calendar.YEAR) % 100); in format()
247 data[2] = byteToBCD(mCalendar.get(java.util.Calendar.MONTH) + 1); in format()
250 data[3] = byteToBCD(mCalendar.get(java.util.Calendar.DATE)); in format()
253 data[4] = byteToBCD(mCalendar.get(java.util.Calendar.HOUR_OF_DAY)); in format()
256 data[5] = byteToBCD(mCalendar.get(java.util.Calendar.MINUTE)); in format()
259 data[6] = byteToBCD(mCalendar.get(java.util.Calendar.SECOND)); in format()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBssidBlocklistMonitor.java106 private final Calendar mCalendar; field in BssidBlocklistMonitor
126 mCalendar = Calendar.getInstance(); in BssidBlocklistMonitor()
538 mCalendar.setTimeInMillis(mClock.getWallClockMillis()); in add()
540 + String.format("%tm-%td %tH:%tM:%tS.%tL", mCalendar, mCalendar, in add()
541 mCalendar, mCalendar, mCalendar, mCalendar)); in add()
621 mCalendar.setTimeInMillis(blocklistStartTimeMs); in toString()
623 + String.format("%tm-%td %tH:%tM:%tS.%tL", mCalendar, mCalendar, in toString()
624 mCalendar, mCalendar, mCalendar, mCalendar)); in toString()
625 mCalendar.setTimeInMillis(blocklistEndTimeMs); in toString()
627 + String.format("%tm-%td %tH:%tM:%tS.%tL", mCalendar, mCalendar, in toString()
[all …]
/frameworks/base/core/java/android/widget/
DDigitalClock.java39 Calendar mCalendar; field in DigitalClock
61 if (mCalendar == null) { in initClock()
62 mCalendar = Calendar.getInstance(); in initClock()
84 mCalendar.setTimeInMillis(System.currentTimeMillis()); in onAttachedToWindow()
85 setText(DateFormat.format(mFormat, mCalendar)); in onAttachedToWindow()
DSimpleMonthView.java83 private final Calendar mCalendar; field in SimpleMonthView
177 mCalendar = Calendar.getInstance(mLocale); in SimpleMonthView()
191 mMonthYearLabel = formatter.format(mCalendar.getTime()); in updateMonthYearLabel()
771 mWeekStart = mCalendar.getFirstDayOfWeek(); in setFirstDayOfWeek()
806 mCalendar.set(Calendar.MONTH, mMonth); in setMonthParams()
807 mCalendar.set(Calendar.YEAR, mYear); in setMonthParams()
808 mCalendar.set(Calendar.DAY_OF_MONTH, 1); in setMonthParams()
809 mDayOfWeekStart = mCalendar.get(Calendar.DAY_OF_WEEK); in setMonthParams()
814 mWeekStart = mCalendar.getFirstDayOfWeek(); in setMonthParams()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DClock.java85 private Calendar mCalendar; field in Clock
204 mCalendar = Calendar.getInstance(TimeZone.getDefault()); in onAttachedToWindow()
241 mCalendar = Calendar.getInstance(TimeZone.getTimeZone(tz));
243 mClockFormat.setTimeZone(mCalendar.getTimeZone());
290 mCalendar.setTimeInMillis(System.currentTimeMillis()); in updateClock()
292 setContentDescription(mContentDescriptionFormat.format(mCalendar.getTime())); in updateClock()
429 String result = sdf.format(mCalendar.getTime()); in getSmallTime()
468 mCalendar.setTimeInMillis(Long.parseLong(millis)); in dispatchDemoCommand()
474 mCalendar.set(Calendar.HOUR_OF_DAY, hh); in dispatchDemoCommand()
476 mCalendar.set(Calendar.HOUR, hh); in dispatchDemoCommand()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DZoneGetterTest.java44 private Calendar mCalendar; field in ZoneGetterTest
50 mCalendar = new GregorianCalendar(2016, 9, 1); in setUp()
95 mCalendar.getTime()); in getTimeZoneOffsetAndName_withTtsSpan()
107 mCalendar.getTime()); in testTimeZoneOffsetAndNameInner()