Searched refs:day (Results 1 - 24 of 24) sorted by relevance

/frameworks/base/core/java/android/util/
H A DMonthDisplayHelper.java44 * @param weekStartDay What day of the week the week should start.
85 * @return The first day of the month using a constants such as
102 * box. For example, if the calendar is set to display the first day of
132 * @return The day at a particular row, column
140 int day = 7 * row + column - mOffset + 1;
142 return (day > mNumDaysInMonth) ?
143 day - mNumDaysInMonth : day;
147 * @return Which row day is in.
149 public int getRowOf(int day) { argument
156 getColumnOf(int day) argument
[all...]
/frameworks/base/media/libdrm/mobile1/include/objmng/
H A Ddrm_time.h47 uint16_t day; member in struct:__db_system_time_
H A Ddrm_inner.h26 #define INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time) do{\
29 day = date %100;\
/frameworks/av/media/mtp/
H A DMtpUtils.cpp31 DD replaced by the day (01-31), T is a constant character 'T' delimiting time from date,
37 int year, month, day, hour, minute, second; local
41 &year, &month, &day, &hour, &minute, &second) != 6)
57 tm.tm_mday = day;
/frameworks/base/media/libdrm/mobile1/include/parser/
H A Dparser_rel.h43 #define YMD_HMS_2_INT(year, mon, day, date, hour, min, sec, time) do{\
44 date = year * 10000 + mon * 100 + day;\
54 int32_t date; /**< year * 10000 + mon *100 + day */
95 * \param day day of the date
103 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, int32_t hour, int32_t min, int32_t sec);
/frameworks/base/core/java/android/app/
H A DDatePickerDialog.java44 private static final String DAY = "day";
62 * @param dayOfMonth The day of the month that was set.
72 * @param dayOfMonth The initial day of the dialog.
88 * @param dayOfMonth The initial day of the dialog.
120 int month, int day) {
121 mDatePicker.init(year, month, day, this);
122 updateTitle(year, month, day);
139 * @param dayOfMonth The date day of month.
159 private void updateTitle(int year, int month, int day) { argument
163 mCalendar.set(Calendar.DAY_OF_MONTH, day);
119 onDateChanged(DatePicker view, int year, int month, int day) argument
[all...]
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_time.c48 time_ptr->day = tm_t->tm_mday;
H A Ddrm_api.c347 if (-1 == drm_checkDate(curDateTime.year, curDateTime.month, curDateTime.day,
351 YMD_HMS_2_INT(curDateTime.year, curDateTime.month, curDateTime.day,
390 int32_t year, mon, day, hour, min, sec, date, time; local
403 INT_2_YMD_HMS(year, mon, day, date, hour, min, sec, time);
414 day += hour / 24;
417 if (day > 31) {
418 mon += day / 31;
419 day %= 31;
425 if (day > (ret = drm_monthDays(year, mon))) {
426 day
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DEventRecurrence.java168 public static int calendarDay2Day(int day) argument
170 switch (day)
187 throw new RuntimeException("bad day of week: " + day);
191 public static int timeDay2Day(int day) argument
193 switch (day)
210 throw new RuntimeException("bad day of week: " + day);
213 public static int day2TimeDay(int day) argument
215 switch (day)
241 day2CalendarDay(int day) argument
274 day2String(int day) argument
[all...]
H A DRecurrenceProcessor.java321 * Compute the day of the week for the first day of the month. "instance" has a
322 * day number and a DotW, so we compute the DotW of the 1st from that. Note DotW
325 * The basic calculation is to take the instance's "day of the week" number, subtract
326 * (day of the month - 1) mod 7, and then make sure it's positive. We can simplify
341 * Generate a set according to the BYDAY rules. For each day of the month, determine
342 * if its day of the week is included. If so, append it to the day set.
349 // For each month day, see if it's part of the set. (This makes some assumptions
430 boolean get(Time iterator, int day) argument
1262 weekDay(int year, int month, int day) argument
1278 yearDay(int year, int month, int day) argument
[all...]
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbEtwsInfo.java138 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]);
160 time.monthDay = day;
/frameworks/base/media/libdrm/mobile1/src/parser/
H A Dparser_rel.c51 int32_t drm_checkDate(int32_t year, int32_t month, int32_t day, argument
55 day >= 1 && day <= drm_monthDays(year, month) &&
66 int32_t year, mon, day, hour, min, sec; local
95 /** get day */
101 day = atoi((char *)pHead);
128 if (0 != drm_checkDate(year, mon, day, hour, min, sec))
131 YMD_HMS_2_INT(year, mon, day, dateTime->date, hour, min, sec,
238 int32_t year, mon, day, hour, min, sec; local
364 /** get day */
[all...]
/frameworks/base/media/libdrm/mobile1/src/jni/
H A Ddrm1_jni.c33 #define MS_PER_DAY 24 * MS_PER_HOUR /* Milliseconds per day */
37 #define SECONDS_PER_DAY 24 * SECONDS_PER_HOUR /* Seconds per day */
306 * \param day the day (1 - 31)
315 uint32_t year, uint32_t month, uint32_t day,
326 && day > 0 && day <= 31
330 /* Set 'day' to the number of days into the year. */
331 day += ydays[month - 1] + (month > 2 && leap (year)) - 1;
333 /* Now calculate 'day' t
314 mkgmtime( uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second) argument
356 int32_t year, month, day, hour, minute, second; local
399 int32_t year, month, day, hour, minute, second; local
[all...]
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java82 &quot;&apos;Noteworthy day: &apos;M/d/yy&quot; -&gt; &quot;Noteworthy day: 4/6/70&quot;
115 This designator indicates the day of the month.
124 This designator indicates the name of the day of the week.
133 This designator indicates the hour of the day in 12 hour format.
142 This designator indicates the hour of the day in 24 hour format.
313 int day = value.indexOf('d');
316 if (month >= 0 && day >= 0 && year >= 0) {
318 if (year < month && year < day) {
319 if (month < day) {
[all...]
H A DDateUtils.java230 * Return a string for the day of the week.
302 * a day of the month.
510 // above a week or exact dates below a day, so clamp
533 * Returns a string describing a day relative to the current day. For example if the day is
534 * today this function returns "Today", if the day was a week ago it returns "7 days ago", and
535 * if the day is in 2 weeks it returns "in 14 days".
538 * @param day the relative day t
542 getRelativeDayString(Resources r, long day, long today) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/format/
H A DTimeTest.java99 // Use normalize(true) with these tests to change the date by 1 day.
103 // Nov 4, 12am + 0 day = Nov 4, 12am
104 // Nov 5, 12am + 0 day = Nov 5, 12am
108 // Nov 3, 12am + 1 day = Nov 4, 12am
109 // Nov 4, 12am + 1 day = Nov 5, 12am
110 // Nov 5, 12am + 1 day = Nov 6, 12am
115 // Nov 3, 1am + 1 day = Nov 4, 1am
116 // Nov 4, 1am + 1 day = Nov 5, 1am
117 // Nov 5, 1am + 1 day = Nov 6, 1am
122 // Nov 3, 2am + 1 day
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DDatePicker.java41 * A view for selecting a month / year / day based on a calendar like layout.
81 * @param dayOfMonth The day of the month that was set.
104 mDayPicker = (NumberPicker) findViewById(R.id.day);
143 // Adjust max day of the month
154 // Adjust max day for leap years if needed
297 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, argument
302 mDay = day;
395 * @param dayOfMonth The initial day of the month.
407 * @param dayOfMonth The initial day of the month.
/frameworks/base/core/java/android/content/
H A DSyncStorageEngine.java75 private static final long DEFAULT_POLL_FREQUENCY_SECONDS = 60 * 60 * 24; // One day
251 public final int day; field in class:SyncStorageEngine.DayStats
257 public DayStats(int day) { argument
258 this.day = day;
1146 int day = getCurrentDayLocked();
1148 mDayStats[0] = new DayStats(day);
1149 } else if (day != mDayStats[0].day) {
1151 mDayStats[0] = new DayStats(day);
[all...]
H A DSyncManager.java450 // Pick a random second in a day to seed all periodic syncs
1485 int today = dses[0].day;
1489 // Print each day in the current week.
1493 int delta = today-ds.day;
1511 int delta = weekDay-ds.day;
/frameworks/base/core/java/android/widget/
H A DDatePicker.java50 * year, month, and day spinners or a {@link CalendarView}. The set of spinners
135 * @param dayOfMonth The day of the month that was set.
211 // calendar view day-picker
221 // day
222 mDaySpinner = (NumberPicker) findViewById(R.id.day);
538 * @param dayOfMonth The day of the month.
577 * @param dayOfMonth The initial day of the month.
687 * @return The selected day of month.
781 private SavedState(Parcelable superState, int year, int month, int day) { argument
785 mDay = day;
[all...]
H A DCalendarView.java89 * The number of milliseconds in a day.e
94 * The number of day in a week.
203 * The number of day per week to be shown.
233 * The header with week day names.
243 * The first day of the week.
273 * Listener for changes in the selected day.
288 * The first day of the focused month.
318 * Called upon change of the selected day.
323 * @param dayOfMonth The day of the month that was set.
635 * Sets the text appearance for the week day abbreviatio
1462 onDateTapped(Calendar day) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java242 int day = IccUtils.cdmaBcdByteToInt(data[2]);
243 if (day < 1 || day > 31) return null;
244 ts.monthDay = day;
263 builder.append(", day=" + monthDay);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DSmsMessage.java585 int day = IccUtils.gsmBcdByteToInt(pdu[cur++]);
607 time.monthDay = day;
/frameworks/base/services/java/com/android/server/
H A DThrottleService.java715 int day = end.get(Calendar.DAY_OF_MONTH);
721 if (day >= mPolicyResetDay) {

Completed in 3008 milliseconds