/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
D | calendar_data_adapter.cpp | 67 today_.month.year = static_cast<int32_t>(currentDate.year); in CalendarDataAdapter() 68 today_.month.month = static_cast<int32_t>(currentDate.month - 1); in CalendarDataAdapter() 105 if (!ParseDayNumberProp(item, CalendarDay::MONTH, dayInfo.month.month)) { in ParseData() 108 if (!ParseDayNumberProp(item, CalendarDay::YEAR, dayInfo.month.year)) { in ParseData() 115 if (dayInfo.month == result.month) { in ParseData() 122 dayInfo.today = dayInfo.month == today_.month && dayInfo.day == today_.day; in ParseData() 147 indexMap_[request.indexOfContainer] = request.month; in RequestData() 150 json->Put("month", request.month.month); in RequestData() 151 json->Put("year", request.month.year); in RequestData() 152 json->Put("currentMonth", currentMonth_.month); in RequestData() [all …]
|
D | calendar_data_adapter.h | 46 int32_t month = CALENDAR_MIN_DATE_MONTH; member 50 return calendarMonth.month == month && calendarMonth.year == year; 54 return calendarMonth.month != month || calendarMonth.year != year; 58 … return year > calendarMonth.year || (year == calendarMonth.year && month > calendarMonth.month); 62 … return year < calendarMonth.year || (year == calendarMonth.year && month < calendarMonth.month); 68 if (calendarMonth.month + 1 >= CALENDAR_TOTAL_MONTH_OF_YEAR) { in GetNextMonth() 69 nextMonth.month = 0; in GetNextMonth() 72 ++nextMonth.month; in GetNextMonth() 80 if (calendarMonth.month - 1 < 0) { in GetLastMonth() 81 lastMonth.month = CALENDAR_TOTAL_MONTH_OF_YEAR - 1; in GetLastMonth() [all …]
|
D | calendar_controller_v2.h | 41 controller_->GoTo(today.month.year, today.month.month, today.day); in BackToToday() 45 void GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument 49 calendarDay.month.month = month; in GoTo() 50 calendarDay.month.year = year; in GoTo() 54 controller_->GoTo(year, month, day); in GoTo()
|
D | flutter_render_calendar.cpp | 350 day.month.month != currentMonth_.month) { in PaintDay() 366 if (day.month.month == currentMonth_.month) { in PaintDay() 411 if (day.month.month != currentMonth_.month) { in SetNonFocusStyle() 472 …calendarController_->FirstSetToday() && IsToday(day) && (day.month.month == currentMonth_.month)) { in DrawCardCalendar() 478 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in DrawCardCalendar() 487 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in DrawCardCalendar() 531 day.month.month != currentMonth_.month) { in DrawTvCalendar() 548 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in DrawTvCalendar() 556 … if (day.focused && day.month.month == currentMonth_.month && !renderSwiper->GetMoveStatus() && in DrawTvCalendar() 602 if (day.month.month != currentMonth_.month) { in PaintUnderscore() [all …]
|
D | rosen_render_calendar.cpp | 423 day.month.month != currentMonth_.month) { in PaintDay() 439 if (day.month.month == currentMonth_.month) { in PaintDay() 506 if (day.month.month != currentMonth_.month) { in SetNonFocusStyle() 513 if (day.month.month != currentMonth_.month) { in SetNonFocusStyle() 593 …calendarController_->FirstSetToday() && IsToday(day) && (day.month.month == currentMonth_.month)) { in SetNonFocusStyle() 599 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in SetNonFocusStyle() 608 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in SetNonFocusStyle() 657 day.month.month != currentMonth_.month) { in SetNonFocusStyle() 674 if (IsToday(day) && (day.month.month == currentMonth_.month)) { in SetNonFocusStyle() 682 … if (day.focused && day.month.month == currentMonth_.month && !renderSwiper->GetMoveStatus() && in SetNonFocusStyle() [all …]
|
D | render_calendar.cpp | 96 dateTime.year = static_cast<uint32_t>(today.month.year); in UpdateAccessibility() 97 dateTime.month = static_cast<uint32_t>(today.month.month); in UpdateAccessibility() 139 if (currentMonth_ == daysOfMonth.month) { in OnDataChanged() 158 currentMonth_ = daysOfMonth.month; in OnDataChanged() 182 calendarController_->GetCrossMonthDay().month == currentMonth_ && IsValid(touchIndex_)) { in OnSelectedDay() 256 calendarDays_[date.index].month != calendarController_->GetCurrentMonth()) { in OnDateSelected() 295 if (onFocusDay.month < currentMonth_) { in FocusChanged() 299 } else if (calendarDays_[newIndex].month > currentMonth_) { in FocusChanged() 347 if (calendarDays_[index].month > calendarController_->GetCurrentMonth()) { in HandleClick() 351 } else if (calendarDays_[index].month < calendarController_->GetCurrentMonth()) { in HandleClick() [all …]
|
D | calendar_component.cpp | 53 currentCalendarMonth_ = dataAdapter_->GetToday().month; in Initialize() 59 requestMonth.month = CalendarMonth::GetNextMonth(currentCalendarMonth_); in Initialize() 63 requestMonth.month = CalendarMonth::GetLastMonth(currentCalendarMonth_); in Initialize() 146 void CalendarController::GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument 157 LOGD("go to: year=%{private}d, month=%{private}d, day=%{private}d", year, month, day); in GoTo() 158 CalendarMonth calendarMonth { year, month }; in GoTo() 281 dateTime.year = today.month.year; in UpdateTitle() 282 dateTime.month = today.month.month; in UpdateTitle() 359 void CalendarComponent::GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument 362 calendarController_->GoTo(year, month, 1); in GoTo() [all …]
|
D | calendar_element.cpp | 126 dateTime.month = currentDate.month; in RegisterChangeEndListener() 210 today.month == currentDate ? json->Put("day", today.day) : json->Put("day", 1); in BuildCardCalendar() 211 json->Put("month", currentDate.month); in BuildCardCalendar() 226 if (today.day != date.day || today.month != date.month) { in UpdateAttr() 228 calendarController_->GoTo(date.month.year, date.month.month, date.day); in UpdateAttr()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
D | picker_data.cpp | 42 uint32_t PickerDate::GetMaxDay(uint32_t year, uint32_t month) in GetMaxDay() argument 44 if (month == 2) { // days count in february is different between leap year and other. in GetMaxDay() 49 switch (month) { in GetMaxDay() 77 date.month = month_ - 1; // W3C's month start from 0 to 11 in ToString() 91 for (uint32_t month = 1; month < month_; ++month) { in ToDays() local 92 days += PickerDate::GetMaxDay(year_, month); in ToDays() 250 for (uint32_t month = 1; month <= 12; ++month) { in Init() local 251 if (month - 1 < months.size()) { in Init() 252 solarMonths_[month - 1] = months[month - 1]; in Init() 256 date.month = month - 1; // W3C's month start from 0 to 11 in Init() [all …]
|
D | picker_date_component.cpp | 174 … lunarResult.month = monthColumn->GetCurrentIndex() + 1; // month from 1 to 12, index from 0 to 11 in GetCurrentLunarDate() 178 lunarResult.month = lunarLeapMonth; in GetCurrentLunarDate() 180 … lunarResult.month = monthColumn->GetCurrentIndex() + 1; // month start from 1, index start from 0 in GetCurrentLunarDate() 182 lunarResult.month = monthColumn->GetCurrentIndex(); in GetCurrentLunarDate() 224 uint32_t nowMaxDay = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleLunarYearChange() 286 uint32_t maxDay = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleLunarMonthChange() 399 lunarDate.month = 1; // first month in HandleAddLunarDayChange() 403 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange() 406 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange() 407 } else if (lunarLeapMonth == lunarDate.month) { in HandleAddLunarDayChange() [all …]
|
D | picker_data.h | 32 … PickerDate(uint32_t year, uint32_t month, uint32_t day) : year_(year), month_(month), day_(day) {} in PickerDate() argument 38 static uint32_t GetMaxDay(uint32_t year, uint32_t month); 206 uint32_t month = static_cast<uint32_t>(lunarMonth); in GetLunarMonthDays() local 208 return ((LUNAR_INFO[lunarYear - YEAR_START] & (0x10000u >> month)) != 0) ? 30 : 29; in GetLunarMonthDays() 221 static const std::string& GetSolarMonth(uint32_t month); 225 static const std::string& GetLunarMonth(uint32_t month, bool isLeap);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/ |
D | calendar_dialog_pattern.cpp | 432 … return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent() 444 … return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent() 456 … PickerDate selectedDay(focusedDay_.month.year, focusedDay_.month.month, focusedDay_.day); in HandleCalendarNodeKeyEvent() 473 currentMonthData.days[focusedDayIndex].month.year == currentMonthData.year && in IsIndexInCurrentMonth() 474 currentMonthData.days[focusedDayIndex].month.month == currentMonthData.month; in IsIndexInCurrentMonth() 506 focusedDay_.month.year = static_cast<int32_t>(selectedDay.GetYear()); in FocusedLastFocusedDay() 507 focusedDay_.month.month = static_cast<int32_t>(selectedDay.GetMonth()); in FocusedLastFocusedDay() 512 …if (currentMonthData.year == focusedDay_.month.year && currentMonthData.month == focusedDay_.month… in FocusedLastFocusedDay() 517 GetCalendarMonthData(focusedDay_.month.year, focusedDay_.month.month, monthData); in FocusedLastFocusedDay() 518 auto isPrev = currentMonthData.year > focusedDay_.month.year || in FocusedLastFocusedDay() [all …]
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
D | date_util.h | 26 Date(uint32_t year, uint32_t month, uint32_t day) : year(year), month(month), day(day) {} in Date() 30 static int32_t DayOfMonth(int32_t year, int32_t month); 32 static int32_t CalculateWeekDay(int32_t year, int32_t month, int32_t day); 36 uint32_t month = 0; member
|
D | date_util.cpp | 32 …date.month = static_cast<uint32_t>(local->tm_mon) + 1; // local month start from 0 to 11, need … in Current() 43 int32_t Date::DayOfMonth(int32_t year, int32_t month) in DayOfMonth() argument 46 switch (month) { in DayOfMonth() 71 int32_t Date::CalculateWeekDay(int32_t year, int32_t month, int32_t day) in CalculateWeekDay() argument 73 if (month == 1 || month == 2) { in CalculateWeekDay() 74 month += 12; in CalculateWeekDay() 79 return (day + 2 * month + 3 * (month + 1) / 5 + year + year / 4 - year / 100 + year / 400) % 7; in CalculateWeekDay()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
D | calendar_pattern.cpp | 190 auto currentMonth = calendarDay_.month; in FireFirstRequestData() 192 json->Put("currentMonth", currentMonth.month); in FireFirstRequestData() 194 json->Put("month", currentMonth.month); in FireFirstRequestData() 209 json->Put("month", preMonth_.month); in FireRequestData() 213 json->Put("month", nextMonth_.month); in FireRequestData() 215 json->Put("currentYear", calendarDay_.month.year); in FireRequestData() 216 json->Put("currentMonth", calendarDay_.month.month); in FireRequestData() 220 void CalendarPattern::FireGoToRequestData(int32_t year, int32_t month, int32_t day) in FireGoToRequestData() argument 222 LOGI("Jump to date %{public}d-%{public}d-%{public}d.", year, month, day); in FireGoToRequestData() 228 auto currentMonth = calendarDay_.month; in FireGoToRequestData() [all …]
|
D | calendar_month_pattern.h | 82 … if (day.month.year == calendarDay.month.year && day.month.month == calendarDay.month.month && in SetCalendarDay()
|
D | calendar_controller_ng.cpp | 31 void CalendarControllerNg::GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument 36 LOGD("go to: year=%{private}d, month=%{private}d, day=%{private}d", year, month, day); in GoTo() 37 calendarPattern->FireGoToRequestData(year, month, day); in GoTo()
|
D | calendar_paint_method.cpp | 185 if (day.focused && day.month.month == currentMonth_.month) { in DrawCalendar() 244 if (day.month.year == obtainedMonth_.year && day.month.month == obtainedMonth_.month) { in DrawCalendarPickerBackgroundArea() 294 if (day.month.month != currentMonth_.month) { in SetDayTextStyle() 312 if (day.month.month != currentMonth_.month) { in SetCalendarPickerDayTextStyle() 328 if (day.month.month == currentMonth_.month) { in SetOffWorkTextStyle() 540 currentMonth_.month = obtainedMonth_.month; in SetCalendarTheme() 546 return today.month == day.month && today.day == day.day; in IsToday()
|
D | calendar_controller_model_ng.cpp | 32 void CalendarControllerModelNG::GoTo(const int32_t& year, const int32_t& month, const int32_t& day, in GoTo() argument 38 controllerNG->GoTo(year, month, day); in GoTo()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
D | datepicker_pattern.cpp | 403 auto month = *iter; in GetAllChildNode() local 404 CHECK_NULL_RETURN(month, allChildNode); in GetAllChildNode() 410 auto stackMonth = DynamicCast<FrameNode>(month); in GetAllChildNode() 729 lunarDate.month = 12; // set to be previous year's max month in HandleReduceLunarDayChange() 734 lunarDate.day = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleReduceLunarDayChange() 739 lunarDate.month = lunarDate.month - 1; // reduce to previous month in HandleReduceLunarDayChange() 740 } else if (lunarLeapMonth == lunarDate.month - 1) { // leap month is previous month in HandleReduceLunarDayChange() 742 lunarDate.month = lunarLeapMonth; in HandleReduceLunarDayChange() 744 lunarDate.month = lunarDate.month - 1; // reduce to previous month in HandleReduceLunarDayChange() 746 lunarDate.day = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleReduceLunarDayChange() [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/test/pattern/calendar/ |
D | calendar_pattern_test_ng.cpp | 301 obtainedMonth.month = MONTH_VALUE; 324 calendarMonth.month = MONTH_VALUE; 325 calendarDay.month = calendarMonth; 330 EXPECT_EQ(pattern->GetCurrentMonthData().month, MONTH_VALUE); 333 EXPECT_EQ(pattern->GetPreMonthData().month, MONTH_VALUE); 336 EXPECT_EQ(pattern->GetNextMonthData().month, MONTH_VALUE); 352 EXPECT_EQ(pattern->GetCalendarDay().month.year, YEAR_VALUE); 353 EXPECT_EQ(pattern->GetCalendarDay().month.month, MONTH_VALUE); 401 obtainedMonth.month = JUMP_MONTH; 409 day.month.year = JUMP_YEAR; [all …]
|
/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/MainAbility/model/ |
D | DateTimeUtil.ts | 51 concatDate(year: number, month: number, date: number) { 52 return `${year}${this.fill(month)}${this.fill(date)}`
|
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/model/ |
D | DateTimeUtil.ts | 51 concatDate(year: number, month: number, date: number) { 52 return `${year}${this.fill(month)}${this.fill(date)}`
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
D | calendar_controller_model_impl.cpp | 32 void CalendarControllerModelImpl::GoTo(const int32_t& year, const int32_t& month, const int32_t& da… in GoTo() argument 38 controllerV2->GoTo(year, month, day); in GoTo()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
D | js_calendar_controller.cpp | 84 int32_t month = 0; in GoTo() local 87 ConvertFromJSValue(obj->GetProperty("month"), month); in GoTo() 89 CalendarControllerModel::GetInstance()->GoTo(year, month, day, controller_); in GoTo()
|