Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DSimpleDate.java30 public int month; // MM field in SimpleDate
50 this.month = sCalendarInstance.get(Calendar.MONTH); in setTimestamp()
63 result = prime * result + month; in hashCode()
83 if (month != other.month) { in equals()
98 int monthDiff = this.month - other.getMonth(); in compareTo()
112 return month; in getMonth()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DDatePickerDialog.java149 public void onDateChanged(DatePicker view, int year, int month, int day) { in onDateChanged() argument
150 updateTitle(year, month, day); in onDateChanged()
153 private void updateTitle(int year, int month, int day) { in updateTitle() argument
156 calendar.set(Calendar.MONTH, month); in updateTitle()
177 int month = savedInstanceState.getInt(MONTH); in onRestoreInstanceState() local
180 mDatePicker.init(year, month, day, yearOptional, this); in onRestoreInstanceState()
181 updateTitle(year, month, day); in onRestoreInstanceState()
DDatePicker.java120 mMonthPicker = (NumberPicker) findViewById(R.id.month); in DatePicker()
255 private SavedState(Parcelable superState, int year, int month, int day, boolean hasYear, in SavedState() argument
259 mMonth = month; in SavedState()
/packages/services/Car/tools/watchdog/parser/
Dperformancestats.proto26 // * A full date, with non-zero year, month, and day values
27 // * A month and day value, with a zero year, such as an anniversary
28 // * A year on its own, with zero month and day values
29 // * A year and month value, with a zero day, such as a credit card expiration
43 // month and day.
44 optional int32 month = 2; field
46 // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
47 // to specify a year by itself or a year and month where the day isn't
Dperf_stats_proto_utils.py28 year=date.year, month=date.month, day=date.day
133 date_pb.month,
/packages/services/Car/service/proto/android/car/watchdog/
Dperformance_stats.proto127 // * A full date, with non-zero year, month, and day values
128 // * A month and day value, with a zero year, such as an anniversary
129 // * A year on its own, with zero month and day values
130 // * A year and month value, with a zero day, such as a credit card expiration
144 // month and day.
145 optional int32 month = 2;
147 // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
148 // to specify a year by itself or a year and month where the day isn't
Dwatchdogservice_dump.proto183 // * A full date, with non-zero year, month, and day values
184 // * A month and day value, with a zero year, such as an anniversary
185 // * A year on its own, with zero month and day values
186 // * A year and month value, with a zero day, such as a credit card expiration
200 // month and day.
201 optional int32 month = 2; field
203 // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
204 // to specify a year by itself or a year and month where the day isn't
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipDatetimeTest.java34 private Date makeDate(int month, int day, int year, int hours, int min, int sec, TimeZone tz) { in makeDate() argument
38 builder.setDate(year, month - 1, day); in makeDate()
44 private Date makeDate(int month, int day, int year, int hours, int min, int sec) { in makeDate() argument
45 return makeDate(month, day, year, hours, min, sec, null); in makeDate()
48 private String makeTzAdjustedString(int month, int day, int year, int hours, int min, int sec) { in makeTzAdjustedString() argument
50 cal.setTime(makeDate(month, day, year, hours, min, sec)); in makeTzAdjustedString()
DBipAttachmentFormatTest.java33 private Date makeDate(int month, int day, int year, int hours, int min, int sec, TimeZone tz) { in makeDate() argument
37 builder.setDate(year, month - 1, day); in makeDate()
43 private Date makeDate(int month, int day, int year, int hours, int min, int sec) { in makeDate() argument
44 return makeDate(month, day, year, hours, min, sec, null); in makeDate()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DDateTileView.java91 public void setDate(int date, int month, int year) { in setDate() argument
98 if (month == mMonth) { in setDate()
102 if (month != mMonth) { in setDate()
103 mMonth = month; in setDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DDatePickerFactory.kt33 val month = date.month.value - 1 in create() constant
34 datePicker.updateDate(date.year, month, date.dayOfMonth) in create()
DTimeExtensions.kt35 fun getInstant(year: Int, month: Int, day: Int): Instant { in getInstant()
36 val date = LocalDate.of(year, month, day) in getInstant()
/packages/apps/Settings/src/com/android/settings/datetime/
DDatePreferenceController.java96 public void onDateSet(DatePicker view, int year, int month, int day) { in onDateSet() argument
97 setDate(year, month, day); in onDateSet()
130 void setDate(int year, int month, int day) { in setDate() argument
134 c.set(Calendar.MONTH, month); in setDate()
/packages/apps/Calendar/src/com/android/calendar/month/
DSimpleDayPickerFragment.kt16 package com.android.calendar.month
495 val month: Int in updateMonthHighlight() constant
496 month = if (mIsScrollingUp) { in updateMonthHighlight()
504 monthDiff = if (mCurrentMonthDisplayed == 11 && month == 0) { in updateMonthHighlight()
506 } else if (mCurrentMonthDisplayed == 0 && month == 11) { in updateMonthHighlight()
509 month - mCurrentMonthDisplayed in updateMonthHighlight()
541 mCurrentMonthDisplayed = time.month in setMonthDisplayed()
DSimpleWeekView.kt16 package com.android.calendar.month
196 firstMonth = time.month in setWeekParams()
208 firstMonth = time.month in setWeekParams()
210 mOddMonth[i] = time.month % 2 === 1 in setWeekParams()
211 if (time.month === focusMonth) { in setWeekParams()
230 lastMonth = time.month in setWeekParams()
DSimpleWeeksAdapter.kt16 package com.android.calendar.month
206 fun updateFocusMonth(month: Int) { in updateFocusMonth()
207 mFocusMonth = month in updateFocusMonth()
DMonthListView.kt16 package com.android.calendar.month
/packages/apps/Calendar/tests/src/com/android/calendar/
DWeekNumberTest.java36 public DateAndWeekNumber(int year, int month, int day, int expectedWeekNumber) { in DateAndWeekNumber() argument
40 date.set(0, 0, 0, day, month, year); in DateAndWeekNumber()
43 allDayDate.set(day, month, year); in DateAndWeekNumber()
DUtilsTests.java125 int month, int year) { in createTimeInMillis()
126 return createTimeInMillis(second, minute, hour, monthDay, month, year, in createTimeInMillis()
131 int month, int year, String timezone) { in createTimeInMillis()
133 t.set(second, minute, hour, monthDay, month, year); in createTimeInMillis()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DDatePickerFactoryTest.kt55 assertThat(dialog.datePicker.month).isEqualTo(localSelectedDate.month.value - 1) in create_respectSelectedDate()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DDateTimePicker.kt83 { _: DatePicker?, year: Int, month: Int, dayOfMonth: Int -> in <lambda>() method
85 mSelectedMonth = month + 1 in <lambda>()
/packages/apps/Settings/src/com/android/settings/spa/app/backgroundinstall/
DBackgroundInstalledAppsPageProvider.kt234 val month = DeviceConfig.getProperty(DeviceConfig.NAMESPACE_SETTINGS_UI, KEY_GROUPING_MONTH) in getGroupSeparationByMonth() constant
236 if (month.isNullOrBlank()) { in getGroupSeparationByMonth()
239 month.toInt() in getGroupSeparationByMonth()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DDateNavigationView.kt123 datePickerDialog.setOnDateSetListener { _, year, month, day -> in <lambda>() method
126 selectedDate = getInstant(year, month + 1, day) in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/util/
DDateUtils.java112 private static final Calendar getUtcDate(int year, int month, int dayOfMonth) { in getUtcDate() argument
116 calendar.set(Calendar.MONTH, month); in getUtcDate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/
DDatePickerSpinnerAdapter.kt178 val monthOfYear1 = instant1.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()
179 val monthOfYear2 = instant2.atZone(timeSource.deviceZoneOffset()).toLocalDate().month in areInSameMonth()

12