/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_color_picker_test.cpp | 30 std::shared_ptr<RSColorPicker> picker; member in OHOS::Rosen::RSColorPickerTest 37 picker = std::make_shared<RSColorPicker>(pixmap); in SetUp() 41 picker.reset(); in TearDown() 53 EXPECT_EQ(picker->CreateColorPicker(pixmap, errorCode), nullptr); in HWTEST_F() 73 EXPECT_EQ(picker->CreateColorPicker(pixmap, &coordinates, errorCode), nullptr); in HWTEST_F() 92 EXPECT_EQ(picker->GetLargestProportionColor(color), 2); in HWTEST_F() 113 EXPECT_EQ(picker->GetHighestSaturationColor(color), 2); in HWTEST_F() 133 EXPECT_EQ(picker->GetAverageColor(color), RS_COLOR_PICKER_ERR_EFFECT_INVALID_VALUE); in HWTEST_F() 153 EXPECT_FALSE(picker->IsBlackOrWhiteOrGrayColor(255)); in HWTEST_F() 154 EXPECT_TRUE(picker in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_time_picker.cpp | 122 void UITimePicker::InitPicker(UIPicker*& picker, int16_t start, int16_t end) in InitPicker() argument 124 picker = new UIPicker(); in InitPicker() 125 if (picker == nullptr) { in InitPicker() 129 picker->SetPosition(xPos_, 0, pickerWidth_, GetHeight()); in InitPicker() 130 picker->SetItemHeight(itemsHeight_); in InitPicker() 131 picker->SetFontId(backgroundFontId_, highlightFontId_); in InitPicker() 133 picker->SetFontId(backgroundFontId_, highlightFontId_); in InitPicker() 135 picker->SetBackgroundFont(backgroundFontName_, backgroundFontSize_); in InitPicker() 136 picker->SetHighlightFont(highlightFontName_, highlightFontSize_); in InitPicker() 138 picker in InitPicker() 154 DeInitPicker(UIPicker*& picker) DeInitPicker() argument [all...] |
H A D | ui_picker.cpp | 23 PickerListScrollListener::PickerListScrollListener(UIPicker* picker, UIList* list) in PickerListScrollListener() argument 25 pickerView_(picker), in PickerListScrollListener()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_picker_base.cpp | 179 { DOM_PICKER_COLUMN_COUNT, [](DOMPickerBase& picker, const std::string& val) { picker.SetColumnCount(val); } }, in SetSpecializedAttr() 180 { DOM_PICKER_CONTAIN_SECOND, [](DOMPickerBase& picker, const std::string& val) { picker.SetHasSecond(val); } }, in SetSpecializedAttr() 181 { DOM_END, [](DOMPickerBase& picker, const std::string& val) { picker.SetEnd(val); } }, in SetSpecializedAttr() 182 { DOM_PICKER_HOUR24, [](DOMPickerBase& picker, const std::string& val) { picker.SetHour24(val); } }, in SetSpecializedAttr() 183 { DOM_PICKER_PREFIX, [](DOMPickerBase& picker, const std::string& val) { picker in SetSpecializedAttr() 490 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); CompositeComponents() local 582 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); SetStart() local 598 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); SetEnd() local 619 auto picker = AceType::DynamicCast<PickerTextComponent>(basePickerChild_); SetTextSelected() local 626 auto picker = AceType::DynamicCast<PickerMultiTextComponent>(basePickerChild_); SetTextSelected() local 644 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); SetDateTimeSelected() local 655 auto picker = AceType::DynamicCast<PickerTimeComponent>(basePickerChild_); SetDateTimeSelected() local 665 auto picker = AceType::DynamicCast<PickerDateTimeComponent>(basePickerChild_); SetDateTimeSelected() local 681 auto picker = AceType::DynamicCast<PickerTimeComponent>(basePickerChild_); SetHasSecond() local 693 auto picker = AceType::DynamicCast<PickerTextComponent>(basePickerChild_); SetRange() local 702 auto picker = AceType::DynamicCast<PickerMultiTextComponent>(basePickerChild_); SetRange() local 722 auto picker = AceType::DynamicCast<PickerMultiTextComponent>(basePickerChild_); SetColumnCount() local 734 auto picker = AceType::DynamicCast<PickerTimeComponent>(basePickerChild_); SetHour24() local 753 auto picker = AceType::DynamicCast<PickerDateTimeComponent>(basePickerChild_); SetShowLunar() local 764 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); SetShowLunar() local 783 auto picker = AceType::DynamicCast<PickerDateTimeComponent>(basePickerChild_); SetLunar() local 794 auto picker = AceType::DynamicCast<PickerDateComponent>(basePickerChild_); SetLunar() local 810 auto picker = AceType::DynamicCast<PickerTextComponent>(basePickerChild_); SetPrefix() local 821 auto picker = AceType::DynamicCast<PickerTextComponent>(basePickerChild_); SetSuffix() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_base_element.cpp | 16 #include "core/components/picker/picker_base_element.h" 18 #include "core/components/picker/render_picker_base.h" 45 auto picker = AceType::DynamicCast<PickerBaseComponent>(component_); in PerformBuild() local 47 if (picker && accessibilityManager) { in PerformBuild() 48 picker->Initialize(accessibilityManager, GetThemeManager()); in PerformBuild() 50 LOGE("can not get accessibility manager or picker is null."); in PerformBuild() 53 if (accessibilityManager && picker) { in PerformBuild() 54 auto node = accessibilityManager->GetAccessibilityNodeById(picker->GetPickerBaseId()); in PerformBuild() 55 auto stack = picker->GetStack(); in PerformBuild() 70 LOGE("render picker bas in PerformBuild() [all...] |
H A D | render_picker_base.cpp | 16 #include "core/components/picker/render_picker_base.h" 17 #include "core/components/picker/picker_date_component.h" 22 #include "core/components/picker/picker_time_component.h" 84 auto picker = AceType::DynamicCast<PickerBaseComponent>(component); in Update() local 85 if (!picker) { in Update() 111 columnHeight_ = picker->GetColumnHeight(); in Update() 112 data_ = picker; in Update() 126 if (picker->GetOnTextCancel()) { in Update() 127 onTextCancel_ = *picker->GetOnTextCancel(); in Update() 129 if (picker in Update() [all...] |
H A D | picker_base_component.cpp | 16 #include "core/components/picker/picker_base_component.h" 19 #include "core/components/picker/picker_base_element.h" 20 #include "core/components/picker/render_picker_base.h" 187 const auto& picker = weak.Upgrade(); in OpenDialog() 188 if (context && picker) { in OpenDialog() 189 picker->dialogComponent_ = context->ShowDialog(dialogProperties, false, picker->GetDialogName()); in OpenDialog() 267 auto titleComposed = GenerateAccessibilityComposed("picker-title", row, titleAccessibility_); in InitializeTitle() 295 // picker and picker in InitializeColumns() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | picker_view_component.cpp | 33 void DatePickerListener::OnDatePickerStoped(UIDatePicker &picker) in OnDatePickerStoped() argument 39 uint32_t year = (picker.GetSelectYear() == nullptr) ? 0 : strtol(picker.GetSelectYear(), nullptr, DEC); in OnDatePickerStoped() 40 uint32_t month = (picker.GetSelectMonth() == nullptr) ? 0 : strtol(picker.GetSelectMonth(), nullptr, DEC); in OnDatePickerStoped() 41 uint32_t day = (picker.GetSelectDay() == nullptr) ? 0 : strtol(picker.GetSelectDay(), nullptr, DEC); in OnDatePickerStoped() 52 void TextPickerListener::OnPickerStoped(UIPicker &picker) in OnPickerStoped() argument 58 uint16_t index = picker.GetSelected(); in OnPickerStoped() 66 void TimePickerListener::OnTimePickerStoped(UITimePicker &picker) in OnTimePickerStoped() argument [all...] |
H A D | picker_view_component.h | 38 static constexpr int16_t PICKER_ITEM_HEIGHT = 50; // default picker item height 42 * @brief listener class for text picker onchange event. 53 void OnPickerStoped(UIPicker& picker) override; 72 * @brief listener class for time picker onchange event. 83 void OnTimePickerStoped(UITimePicker& picker) override; 97 * @brief listener class for date picker onchange event. 108 void OnDatePickerStoped(UIDatePicker& picker) override; 122 * @brief class for picker-view component adaptation. 144 * @brief Values that represent different types of picker-view 181 // text picker [all...] |
/foundation/arkui/ui_lite/interfaces/kits/components/ |
H A D | ui_time_picker.h | 42 * @brief Defines the time picker. The time is in the format of "hour:minute" or "hour:minute:second". 97 * @brief Sets the time currently selected in the time picker. 109 * @brief Obtains the time currently selected in the time picker. 122 * @brief Obtains the hour currently selected in the time picker. 134 * @brief Obtains the minute currently selected in the time picker. 146 * @brief Obtains the second currently selected in the time picker. 158 * @brief Sets the height of each item in the time picker. 167 * @brief Sets whether to enable seconds in the time picker. 169 * @param state Specifies whether to enable seconds in the time picker. Value <b>true</b> means to enable seconds, 177 * @brief Sets the text format in the time picker, includin 282 OnTimePickerStoped(UITimePicker& picker) OnTimePickerStoped() argument [all...] |
H A D | ui_picker.h | 46 PickerListScrollListener(UIPicker* picker, UIList* list); 89 * @brief Defines a picker. Multiple texts or numbers can be put into a sliding list for selection. 131 * @brief Sets dynamic text data in the picker by using a string array. 142 * @brief Sets the numeric data in the picker by using a given numeric range. 145 * the picker in sequence. The start value must be smaller or equal to the end value. 156 * @brief Clears all values in the picker. 252 * @brief Sets the index of the item currently selected in the picker. 262 * @brief Obtains the index of the item currently selected in the picker. 271 * @brief Sets the height of each item in the picker. 298 * @brief Sets whether a picker ca 340 OnPickerStoped(UIPicker& picker) OnPickerStoped() argument 348 OnPickerChanged(UIPicker& picker) OnPickerChanged() argument [all...] |
/foundation/arkui/ui_lite/test/uitest/test_picker/ |
H A D | ui_test_ui_picker.h | 44 void OnPickerStoped(UIPicker& picker) override; 45 void OnTimePickerStoped(UITimePicker& picker) override;
|
H A D | ui_test_ui_picker.cpp | 80 void UITestUIPicker::OnPickerStoped(UIPicker& picker) in OnPickerStoped() argument 82 uint16_t index = picker.GetSelected(); in OnPickerStoped() 87 void UITestUIPicker::OnTimePickerStoped(UITimePicker& picker) in OnTimePickerStoped() argument 89 selectTime_->SetText(picker.GetSelectValue()); in OnTimePickerStoped()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/ |
H A D | timepicker_paint_method.cpp | 19 #include "core/components/picker/picker_theme.h" 56 auto picker = weak.Upgrade(); in GetForegroundDrawFunction() 57 CHECK_NULL_VOID(picker); in GetForegroundDrawFunction()
|
H A D | timepicker_column_pattern.cpp | 30 #include "core/components/picker/picker_base_component.h" 365 auto picker = weak.Upgrade(); in PlayPressAnimation() 366 if (picker) { in PlayPressAnimation() 367 picker->SetButtonBackgroundColor(pressColor); in PlayPressAnimation() 379 auto picker = weak.Upgrade(); in PlayHoverAnimation() 380 if (picker) { in PlayHoverAnimation() 381 picker->SetButtonBackgroundColor(color); in PlayHoverAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_paint_method.cpp | 19 #include "core/components/picker/picker_theme.h" 52 auto picker = weak.Upgrade(); in GetForegroundDrawFunction() 53 CHECK_NULL_VOID(picker); in GetForegroundDrawFunction() 61 double dividerHeight = picker->defaultPickerItemHeight_ * fontScale; in GetForegroundDrawFunction() 71 picker->PaintCustomDividerLines(canvas, contentRect, frameRect, divider, dividerHeight); in GetForegroundDrawFunction() 73 picker->PaintDefaultDividerLines(canvas, contentRect, dividerHeight); in GetForegroundDrawFunction()
|
H A D | textpicker_column_pattern.cpp | 28 #include "core/components/picker/picker_theme.h" 334 auto picker = weak.Upgrade(); in PlayPressAnimation() 335 if (picker) { in PlayPressAnimation() 336 picker->SetButtonBackgroundColor(pressColor); in PlayPressAnimation()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | datepicker_column_pattern.cpp | 16 #include "core/components_ng/pattern/picker/datepicker_column_pattern.h" 31 #include "core/components/picker/picker_base_component.h" 35 #include "core/components_ng/pattern/picker/datepicker_event_hub.h" 36 #include "core/components_ng/pattern/picker/datepicker_pattern.h" 37 #include "core/components_ng/pattern/picker/toss_animation_controller.h" 296 auto picker = weak.Upgrade(); in PlayPressAnimation() 297 CHECK_NULL_VOID(picker); in PlayPressAnimation() 298 picker->SetButtonBackgroundColor(pressColor); in PlayPressAnimation() 309 auto picker = weak.Upgrade(); in PlayHoverAnimation() 310 CHECK_NULL_VOID(picker); in PlayHoverAnimation() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_textpicker.h | 21 #include "core/components/picker/picker_text_component.h" 22 #include "core/components_ng/pattern/picker/picker_type_define.h" 133 static void AddEvent(RefPtr<PickerTextComponent>& picker, const JSCallbackInfo& info);
|
H A D | js_textpicker.cpp | 32 #include "core/components/picker/picker_base_component.h" 33 #include "core/components/picker/picker_theme.h" 1756 void JSTextPickerDialog::AddEvent(RefPtr<PickerTextComponent>& picker, const JSCallbackInfo& info) in AddEvent() argument 1774 picker->SetDialogAcceptEvent(acceptId); in AddEvent() 1786 picker->SetDialogCancelEvent(cancelId); in AddEvent() 1799 picker->SetDialogChangeEvent(changeId); in AddEvent()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | keys.h | 80 KEYWORD(CHANGE, change) // the input component event name, picker-view event name 99 KEYWORD(DATE, date) // picker-view attr value 118 KEYWORD(END, end) // date picker-view attr 207 KEYWORD(PICKER_VIEW, picker-view) // tag name 226 KEYWORD(RANGE, range) // picker-view attr 255 KEYWORD(SELECTED, selected) // picker-view attr 256 KEYWORD(SELECTED_COLOR, selectedColor) // picker-view style 257 KEYWORD(SELECTED_FONT_FAMILY, selectedFontFamily) // picker-view style 258 KEYWORD(SELECTED_FONT_SIZE, selectedFontSize) // picker-view style 274 KEYWORD(START, start) // date picker [all...] |
/foundation/arkui/ace_engine/advanced_ui_component/atomicserviceweb/interfaces/ |
H A D | atomicserviceweb.js | 48 const picker = requireNapi('multimedia.cameraPicker'); 49 const filePicker = requireNapi('file.picker'); 967 picker.pick(this.context, c4.mediaTypes, {
|
/foundation/arkui/advanced_ui_component/atomicserviceweb/interfaces/ |
H A D | atomicserviceweb.js | 48 const picker = requireNapi('multimedia.cameraPicker'); 49 const filePicker = requireNapi('file.picker'); 967 picker.pick(this.context, c4.mediaTypes, {
|