Home
last modified time | relevance | path

Searched refs:calendarDay (Results 1 – 6 of 6) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/data/
DWeekdays.java122 for (int calendarDay : calendarDays) { in fromCalendarDays()
123 final Integer bit = sCalendarDayToBit.get(calendarDay); in fromCalendarDays()
145 public Weekdays setBit(int calendarDay, boolean on) { in setBit() argument
146 final Integer bit = sCalendarDayToBit.get(calendarDay); in setBit()
166 public boolean isBitOn(int calendarDay) { in isBitOn() argument
167 final Integer bit = sCalendarDayToBit.get(calendarDay); in isBitOn()
169 throw new IllegalArgumentException(calendarDay + " is not a valid weekday"); in isBitOn()
193 int calendarDay = time.get(DAY_OF_WEEK); in getDistanceToPreviousDay() local
195 calendarDay--; in getDistanceToPreviousDay()
196 if (calendarDay < Calendar.SUNDAY) { in getDistanceToPreviousDay()
[all …]
DWeekdays.kt100 for (calendarDay in calendarDays) { in fromCalendarDays() variable
101 val bit = sCalendarDayToBit[calendarDay] in fromCalendarDays()
127 fun setBit(calendarDay: Int, on: Boolean): Weekdays { in setBit()
128 val bit = sCalendarDayToBit[calendarDay] ?: return this in setBit()
145 fun isBitOn(calendarDay: Int): Boolean { in isBitOn()
146 val bit = sCalendarDayToBit[calendarDay] in isBitOn()
147 ?: throw IllegalArgumentException("$calendarDay is not a valid weekday") in isBitOn()
166 var calendarDay = time[Calendar.DAY_OF_WEEK] in getDistanceToPreviousDay() variable
168 calendarDay-- in getDistanceToPreviousDay()
169 if (calendarDay < Calendar.SUNDAY) { in getDistanceToPreviousDay()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.kt135 fun getShortWeekday(calendarDay: Int): String? { in getShortWeekday()
147 return mShortWeekdayNames!![calendarDay] in getShortWeekday()
163 fun getLongWeekday(calendarDay: Int): String? { in getLongWeekday()
176 return mLongWeekdayNames!![calendarDay] in getLongWeekday()
DFormattedStringModel.java142 String getShortWeekday(int calendarDay) { in getShortWeekday() argument
154 return mShortWeekdayNames.get(calendarDay); in getShortWeekday()
170 String getLongWeekday(int calendarDay) { in getLongWeekday() argument
183 return mLongWeekdayNames.get(calendarDay); in getLongWeekday()
DUiDataModel.java170 public String getShortWeekday(int calendarDay) { in getShortWeekday() argument
172 return mFormattedStringModel.getShortWeekday(calendarDay); in getShortWeekday()
188 public String getLongWeekday(int calendarDay) { in getLongWeekday() argument
190 return mFormattedStringModel.getLongWeekday(calendarDay); in getLongWeekday()
DUiDataModel.kt149 fun getShortWeekday(calendarDay: Int): String? { in getShortWeekday()
151 return mFormattedStringModel.getShortWeekday(calendarDay) in getShortWeekday()
167 fun getLongWeekday(calendarDay: Int): String? { in getLongWeekday()
169 return mFormattedStringModel.getLongWeekday(calendarDay) in getLongWeekday()