Home
last modified time | relevance | path

Searched refs:day (Results 1 – 25 of 93) sorted by relevance

1234

/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthAdapter.java55 int day; field in MonthAdapter.CalendarDay
68 day = calendar.get(Calendar.DAY_OF_MONTH); in CalendarDay()
71 public CalendarDay(int year, int month, int day) { in CalendarDay() argument
72 setDay(year, month, day); in CalendarDay()
78 day = date.day; in set()
81 public void setDay(int year, int month, int day) { in setDay() argument
84 this.day = day; in setDay()
102 day = calendar.get(Calendar.DAY_OF_MONTH); in setTime()
114 return day; in getDay()
131 public void setSelectedDay(CalendarDay day) { in setSelectedDay() argument
[all …]
DMonthView.java267 final int day = getDayFromLocation(event.getX(), event.getY()); in onTouchEvent() local
268 if (day >= 0) { in onTouchEvent()
269 onDayClick(day); in onTouchEvent()
380 final int day = i + 1; in setMonthParams() local
381 if (sameDay(day, today)) { in setMonthParams()
383 mToday = day; in setMonthParams()
392 public void setSelectedDay(int day) { in setSelectedDay() argument
393 mSelectedDay = day; in setSelectedDay()
408 private boolean sameDay(int day, Time today) { in sameDay() argument
411 day == today.monthDay; in sameDay()
[all …]
DDayPickerView.java178 … public boolean goTo(CalendarDay day, boolean animate, boolean setSelected, boolean forceScroll) { in goTo() argument
182 mSelectedDay.set(day); in goTo()
185 mTempDay.set(day); in goTo()
186 final int position = (day.year - mController.getMinYear()) in goTo()
187 * MonthAdapter.MONTHS_IN_YEAR + day.month; in goTo()
405 private boolean restoreAccessibilityFocus(CalendarDay day) { in restoreAccessibilityFocus() argument
406 if (day == null) { in restoreAccessibilityFocus()
414 if (((MonthView) child).restoreAccessibilityFocus(day)) { in restoreAccessibilityFocus()
440 private static String getMonthAndYearString(CalendarDay day) { in getMonthAndYearString() argument
442 cal.set(day.year, day.month, day.day); in getMonthAndYearString()
[all …]
DSimpleMonthView.java31 public void drawMonthDay(Canvas canvas, int year, int month, int day, in drawMonthDay() argument
33 if (mSelectedDay == day) { in drawMonthDay()
39 if (isOutOfRange(year, month, day)) { in drawMonthDay()
41 } else if (mHasToday && mToday == day) { in drawMonthDay()
46 canvas.drawText(String.format("%d", day), x, y, mMonthNumPaint); in drawMonthDay()
DDatePickerController.java31 void onDayOfMonthSelected(int year, int month, int day); in onDayOfMonthSelected() argument
DDatePickerDialog.java432 int day = mCalendar.get(Calendar.DAY_OF_MONTH); in adjustDayInMonthIfNeeded() local
434 if (day > daysInMonth) { in adjustDayInMonthIfNeeded()
459 public void onDayOfMonthSelected(int year, int month, int day) { in onDayOfMonthSelected() argument
462 mCalendar.set(Calendar.DAY_OF_MONTH, day); in onDayOfMonthSelected()
/frameworks/base/core/java/android/widget/
DSimpleMonthView.java495 final int day = col - offset + 1; in onFocusChanged() local
496 mHighlightedDay = day < 1 ? day + DAYS_IN_WEEK : day; in onFocusChanged()
502 final int day = col - offset + (DAYS_IN_WEEK * maxWeeks) + 1; in onFocusChanged()
503 mHighlightedDay = day > mDaysInMonth ? day - DAYS_IN_WEEK : day; in onFocusChanged()
594 private boolean isFirstDayOfWeek(int day) { in isFirstDayOfWeek() argument
596 return (offset + day - 1) % DAYS_IN_WEEK == 0; in isFirstDayOfWeek()
599 private boolean isLastDayOfWeek(int day) { in isLastDayOfWeek() argument
601 return (offset + day) % DAYS_IN_WEEK == 0; in isLastDayOfWeek()
668 for (int day = 1, col = findDayOffset(); day <= mDaysInMonth; day++) { in drawDays()
679 final boolean isDayEnabled = isDayEnabled(day); in drawDays()
[all …]
DDayPickerPagerAdapter.java115 public void setSelectedDay(@Nullable Calendar day) { in setSelectedDay() argument
117 final int newPosition = getPositionForDay(day); in setSelectedDay()
131 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH); in setSelectedDay()
136 mSelectedDay = day; in setSelectedDay()
201 private int getPositionForDay(@Nullable Calendar day) { in getPositionForDay() argument
202 if (day == null) { in getPositionForDay()
206 final int yearOffset = day.get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR); in getPositionForDay()
207 final int monthOffset = day.get(Calendar.MONTH) - mMinDate.get(Calendar.MONTH); in getPositionForDay()
304 public void onDayClick(SimpleMonthView view, Calendar day) {
305 if (day != null) {
[all …]
DCalendarViewMaterialDelegate.java114 public void onDaySelected(DayPickerView view, Calendar day) {
116 final int year = day.get(Calendar.YEAR);
117 final int month = day.get(Calendar.MONTH);
118 final int dayOfMonth = day.get(Calendar.DAY_OF_MONTH);
DDatePicker.java540 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument
542 this(superState, year, month, day, minDate, maxDate, 0, 0, 0); in SavedState()
548 public SavedState(Parcelable superState, int year, int month, int day, long minDate, in SavedState() argument
553 mSelectedDay = day; in SavedState()
DDatePickerCalendarDelegate.java241 public void onDaySelected(DayPickerView view, Calendar day) {
242 mCurrentDate.setTimeInMillis(day.getTimeInMillis());
258 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH);
261 if (day > daysInMonth) {
538 final int day = mCurrentDate.get(Calendar.DAY_OF_MONTH); in onSaveInstanceState() local
550 return new SavedState(superState, year, month, day, mMinDate.getTimeInMillis(), in onSaveInstanceState()
/frameworks/base/core/java/android/util/
DMonthDisplayHelper.java140 int day = 7 * row + column - mOffset + 1; in getDayAt() local
142 return (day > mNumDaysInMonth) ? in getDayAt()
143 day - mNumDaysInMonth : day; in getDayAt()
149 public int getRowOf(int day) { in getRowOf() argument
150 return (day + mOffset - 1) / 7; in getRowOf()
156 public int getColumnOf(int day) { in getColumnOf() argument
157 return (day + mOffset - 1) % 7; in getColumnOf()
189 int day = 7 * row + column - mOffset + 1; in isWithinCurrentMonth() local
190 if (day > mNumDaysInMonth) { in isWithinCurrentMonth()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DEventRecurrence.java168 public static int calendarDay2Day(int day) in calendarDay2Day() argument
170 switch (day) in calendarDay2Day()
187 throw new RuntimeException("bad day of week: " + day); in calendarDay2Day()
191 public static int timeDay2Day(int day) in timeDay2Day() argument
193 switch (day) in timeDay2Day()
210 throw new RuntimeException("bad day of week: " + day); in timeDay2Day()
213 public static int day2TimeDay(int day) in day2TimeDay() argument
215 switch (day) in day2TimeDay()
232 throw new RuntimeException("bad day of week: " + day); in day2TimeDay()
241 public static int day2CalendarDay(int day) in day2CalendarDay() argument
[all …]
DRecurrenceProcessor.java430 boolean get(Time iterator, int day) in get() argument
441 + "/" + iterator.year + " day=" + day); in get()
443 if (day < 1 || day > 28) { in get()
446 t.set(day, realMonth, realYear); in get()
450 day = t.monthDay; in get()
466 t.set(day, realMonth, realYear); in get()
482 return (mDays & (1<<day)) != 0; in get()
940 int day; in expand() local
946 day = dayIndex; in expand()
949 day = iteratorDay; in expand()
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DDatePickerBindingAdapter.java35 public static void setListeners(DatePicker view, int year, int month, int day, in setListeners() argument
41 if (day == 0) { in setListeners()
42 day = view.getDayOfMonth(); in setListeners()
45 view.init(year, month, day, listener); in setListeners()
53 view.init(year, month, day, oldListener); in setListeners()
/frameworks/av/media/mtp/
DMtpUtils.cpp37 int year, month, day, hour, minute, second; in parseDateTime() local
39 &year, &month, &day, &hour, &minute, &second) != 6) in parseDateTime()
62 tm.tm_mday = day; in parseDateTime()
/frameworks/base/core/java/android/text/format/
DDateFormat.java533 private static String getDayOfWeekString(LocaleData ld, int day, int count, int kind) { in getDayOfWeekString() argument
536 return standalone ? ld.tinyStandAloneWeekdayNames[day] : ld.tinyWeekdayNames[day]; in getDayOfWeekString()
538 return standalone ? ld.longStandAloneWeekdayNames[day] : ld.longWeekdayNames[day]; in getDayOfWeekString()
540 return standalone ? ld.shortStandAloneWeekdayNames[day] : ld.shortWeekdayNames[day]; in getDayOfWeekString()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java551 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() local
552 if (day != julianDay) { in disableTestGetJulianDay()
553 Log.e("TimeTest", "Julian day: " + day + " at time " in disableTestGetJulianDay()
558 assertEquals(day, julianDay); in disableTestGetJulianDay()
597 int day = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() local
598 if (day != julianDay) { in disableTestSetJulianDay()
604 assertEquals(day, julianDay); in disableTestSetJulianDay()
/frameworks/opt/telephony/src/java/android/telephony/
DSmsCbEtwsInfo.java152 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]); in getPrimaryNotificationTimestamp() local
174 time.monthDay = day; in getPrimaryNotificationTimestamp()
/frameworks/base/core/java/android/text/style/
DTtsSpan.java1157 Integer day, in DateBuilder() argument
1164 if (day != null) { in DateBuilder()
1165 setDay(day); in DateBuilder()
1192 public DateBuilder setDay(int day) { in setDay() argument
1193 return setIntArgument(TtsSpan.ARG_DAY, day); in setDay()
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleCalendar.java98 final int day = ((getDayOfWeek(time) - 1) + (daysOffset % n) + n) % n + 1; in isInSchedule() local
101 return mDays.contains(day) && time >= start && time < end; in isInSchedule()
/frameworks/base/docs/html/design/auto/
Dindex.jd57 user’s location, time of day, and so on. The user can also use this screen to view
157 <p>All the UIs support different color schemes for day and night. The platform
158 provides the state (day or night) and makes adjustments automatically.</p>
162 <img src="{@docRoot}auto/images/ui/gearhead_day.png" alt="Audio app in day mode" />
165   <strong>Figure 8.</strong> Example of the Google Play Music app in day mode.
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DTimeStatsAggregator.java107 private static String getDayOfWeek(int day) { in getDayOfWeek() argument
108 switch (day) { in getDayOfWeek()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java314 public final int day; field in SyncStorageEngine.DayStats
320 public DayStats(int day) { in DayStats() argument
321 this.day = day; in DayStats()
1087 int day = getCurrentDayLocked(); in stopSyncEvent() local
1089 mDayStats[0] = new DayStats(day); in stopSyncEvent()
1090 } else if (day != mDayStats[0].day) { in stopSyncEvent()
1092 mDayStats[0] = new DayStats(day); in stopSyncEvent()
2087 int day = in.readInt(); in readStatisticsLocked() local
2089 day = day - 2009 + 14245; // Magic! in readStatisticsLocked()
2091 DayStats ds = new DayStats(day); in readStatisticsLocked()
[all …]
/frameworks/base/docs/html/training/auto/testing/
Dindex.jd189 playing voice input or switching between night and day display mode. You can issue commands to
198 <h3 id="day-night">Switching between day and night mode</h3>
201 Android Auto supports different color schemes for day and night. You should test your app in both
202 day and night mode. You can switch between night and day mode in either of the
332 <td>Shows the full command set. Specifying a command name (for example, <code>help day</code>)
473 <td>day</td>
477 <td>Activates day mode (high brightness, full color).</td>
495 <td>Toggles current day/night mode.</td>

1234