Searched refs:isLeapMonth (Results 1 - 9 of 9) sorted by relevance
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_date_component.cpp | 172 lunarResult.isLeapMonth = false; in GetCurrentLunarDate() 177 lunarResult.isLeapMonth = true; in GetCurrentLunarDate() 221 if (!hasLeapMonth && lunarDate.isLeapMonth) { in HandleLunarYearChange() 222 lunarDate.isLeapMonth = false; in HandleLunarYearChange() 224 uint32_t nowMaxDay = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleLunarYearChange() 284 if (!hasLeapMonth && lunarDate.isLeapMonth) { in HandleLunarMonthChange() 285 lunarDate.isLeapMonth = false; in HandleLunarMonthChange() 287 uint32_t maxDay = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleLunarMonthChange() 404 lunarDate.isLeapMonth = false; in HandleAddLunarDayChange() 406 if (lunarDate.isLeapMonth) { in HandleAddLunarDayChange() [all...] |
H A D | picker_datetime_component.cpp | 188 return Localization::GetInstance()->GetLunarMonth(lunarDate.month, lunarDate.isLeapMonth) + in GetMonthDayFormatString()
|
/foundation/arkui/ace_engine/frameworks/base/i18n/ |
H A D | localization.h | 37 bool isLeapMonth = false; member 41 if (lunarDate.isLeapMonth != isLeapMonth) { in operator ==() 209 * @param isLeapMonth is a leap month. 212 std::string GetLunarMonth(uint32_t month, bool isLeapMonth);
|
H A D | localization.cpp | 589 dateRet.isLeapMonth = chineseCalendar->IsLeapMonth(); in GetLunarDate() 624 int32_t isLeapMonth = chineseCalendar.get(UCalendarDateFields::UCAL_IS_LEAP_MONTH, status); in GetIcuLunarDate() local 640 dateRet.isLeapMonth = !(isLeapMonth == 0); in GetIcuLunarDate() 644 std::string Localization::GetLunarMonth(uint32_t month, bool isLeapMonth) in GetLunarMonth() argument 650 if (isLeapMonth) { in GetLunarMonth()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_pattern.cpp | 944 lunarDate.isLeapMonth = false; in HandleReduceLunarDayChange() 946 lunarDate.isLeapMonth = true; in HandleReduceLunarDayChange() 948 lunarDate.day = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleReduceLunarDayChange() 950 if (lunarDate.isLeapMonth) { in HandleReduceLunarDayChange() 951 lunarDate.isLeapMonth = false; in HandleReduceLunarDayChange() 955 lunarDate.isLeapMonth = true; in HandleReduceLunarDayChange() 960 lunarDate.day = GetLunarMaxDay(lunarDate.year, lunarDate.month, lunarDate.isLeapMonth); in HandleReduceLunarDayChange() 996 lunarDate.isLeapMonth = false; in HandleAddLunarDayChange() 998 if (lunarDate.isLeapMonth) { in HandleAddLunarDayChange() 1000 lunarDate.isLeapMonth in HandleAddLunarDayChange() [all...] |
/foundation/arkui/ace_engine/test/mock/base/ |
H A D | mock_localization.cpp | 105 std::string Localization::GetLunarMonth(uint32_t month, bool isLeapMonth) in GetLunarMonth() argument
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/picker/ |
H A D | date_picker_column_test_ng.cpp | 1889 startDate.isLeapMonth = endDate.isLeapMonth = true; in HWTEST_F() 1898 current.isLeapMonth = true; in HWTEST_F()
|
H A D | date_picker_test_update.cpp | 1687 lunarDate.isLeapMonth = false; in HWTEST_F() 1697 lunarDate.isLeapMonth = true; in HWTEST_F()
|
H A D | date_picker_test_ng.cpp | 2321 * @tc.expected: lunarDate.isLeapMonth is true. in HWTEST_F() 2353 lunarDateLeft.isLeapMonth = lunarDateRight.isLeapMonth = false; in HWTEST_F() 2410 startDate.isLeapMonth = endDate.isLeapMonth = false; in HWTEST_F() 2458 startDate.isLeapMonth = endDate.isLeapMonth = false; in HWTEST_F()
|
Completed in 24 milliseconds