Home
last modified time | relevance | path

Searched refs:view (Results 1 - 11 of 11) sorted by relevance

/base/update/updater/services/ui/control/
H A Devent_listener.cpp29 void CallBackDecorator::operator()(OHOS::UIView &view, bool isAsync) const in operator ()() argument
31 auto *page = view.GetParent(); in operator ()()
33 LOG(ERROR) << "view hasn't a parent"; in operator ()()
36 if (view.GetViewId() == nullptr) { in operator ()()
37 LOG(ERROR) << "view is invalid, please check your json config"; in operator ()()
40 std::string id = view.GetViewId(); in operator ()()
51 if (!view.IsVisible()) { in operator ()()
59 [cb = cb_, &view] () { in operator ()()
60 CallbackWithGuard(cb, view); in operator ()()
67 CallbackWithGuard(cb_, view); in operator ()()
71 CallbackWithGuard(Callback cb, OHOS::UIView &view) CallbackWithGuard() argument
83 OnRelease(OHOS::UIView &view, [[maybe_unused]] const OHOS::ReleaseEvent &event) OnRelease() argument
90 OnClick(OHOS::UIView &view, [[maybe_unused]] const OHOS::ClickEvent &event) OnClick() argument
96 OnPress(OHOS::UIView &view, [[maybe_unused]] const OHOS::PressEvent &event) OnPress() argument
102 OnRelease(OHOS::UIView &view, [[maybe_unused]] const OHOS::ReleaseEvent &event) OnRelease() argument
108 OnCancel(OHOS::UIView &view, [[maybe_unused]] const OHOS::CancelEvent &event) OnCancel() argument
114 OnDragStart(OHOS::UIView &view, [[maybe_unused]] const OHOS::DragEvent &event) OnDragStart() argument
120 OnDrag(OHOS::UIView &view, const OHOS::DragEvent &event) OnDrag() argument
130 OnDragEnd(OHOS::UIView &view, [[maybe_unused]] const OHOS::DragEvent &event) OnDragEnd() argument
138 OnKeyAct(OHOS::UIView &view, const OHOS::KeyEvent &event) OnKeyAct() argument
155 ProcessPowerKey(OHOS::UIView &view, const OHOS::KeyEvent &event) ProcessPowerKey() argument
178 ProcessVolumeKey(OHOS::UIView &view, const OHOS::KeyEvent &event) ProcessVolumeKey() argument
[all...]
H A Devent_listener.h41 void operator()(OHOS::UIView &view, bool isAsync) const;
43 static void CallbackWithGuard(Callback cb, OHOS::UIView &view);
53 bool OnRelease(OHOS::UIView &view, const OHOS::ReleaseEvent &event) override;
65 bool OnClick(OHOS::UIView &view, const OHOS::ClickEvent &event) override;
66 bool OnPress(OHOS::UIView &view, const OHOS::PressEvent &event) override;
67 bool OnRelease(OHOS::UIView &view, const OHOS::ReleaseEvent &event) override;
68 bool OnCancel(OHOS::UIView &view, const OHOS::CancelEvent &event) override;
81 bool OnDragStart(OHOS::UIView &view, const OHOS::DragEvent &event) override;
82 bool OnDrag(OHOS::UIView &view, const OHOS::DragEvent &event) override;
83 bool OnDragEnd(OHOS::UIView &view, cons
[all...]
/base/hiviewdfx/faultloggerd/common/dfxutil/
H A Dstring_view_util.h35 const char* Hold(STRING_VIEW view) in Hold() argument
38 if (view.size() == 0) { in Hold()
43 char *p = new (std::nothrow) char[view.size() + 1]; in Hold()
48 if (memset_s(p, view.size() + 1, '\0', view.size() + 1) != 0) { in Hold()
52 std::copy(view.data(), view.data() + view.size(), p); in Hold()
/base/update/updater/test/unittest/updater_ui_test/control/
H A Dui_control_unittest.cpp28 OHOS::UIView *view; member in __anon4021::UpdaterUiControlUnittest
35 view = new OHOS::UIView();
41 delete view;
42 view = nullptr;
49 bool ret = keyListener->OnKeyAct(*view, *event); in HWTEST_F()
60 bool ret = keyListener->OnKeyAct(*view, *event); in HWTEST_F()
71 bool ret = keyListener->OnKeyAct(*view, *event); in HWTEST_F()
82 bool ret = keyListener->OnKeyAct(*view, *event); in HWTEST_F()
/base/update/updater/services/ui/view/page/
H A Dbase_page.cpp91 auto &view = *upView; in BuildCom() local
92 if (view->GetViewId() == nullptr) { in BuildCom()
96 if (view->IsFocusable() && viewInfo.commonInfo.y < minY) { in BuildCom()
98 focusedView_ = view.operator->(); in BuildCom()
101 root_->Add(view.operator->()); in BuildCom()
102 // empty id is allowed. id is needed only when get specific view by id. in BuildCom()
103 if (std::string(view->GetViewId()).empty()) { in BuildCom()
104 return true; // skip this view. build com success, but not save in map in BuildCom()
107 if (!comsMap_.emplace(view->GetViewId(), coms_.back().get()).second) { in BuildCom()
108 LOG(ERROR) << "view i in BuildCom()
[all...]
H A Dview_proxy.h30 ViewProxy(std::unique_ptr<ComponentInterface> view, const std::string &message) in ViewProxy() argument
31 : view_(std::move(view)), errMsg_(message) { } in ViewProxy()
32 explicit ViewProxy(std::unique_ptr<ComponentInterface> view) : view_(std::move(view)) { } in ViewProxy() argument
53 errMsg = errMsg_ + " view is null"; in As()
57 errMsg = errMsg_ + " view's real type not matched"; in As()
70 errMsg = errMsg_ + " view is null"; in As()
78 errMsg = errMsg_ + " view's real type not matched"; in As()
H A Dsub_page.cpp89 const auto &view = basePage_->GetView(); in SetVisible() local
90 if (view == nullptr) { in SetVisible()
91 LOG(ERROR) << "basepage's view is nullptr"; in SetVisible()
98 view->SetVisible(isVisible); in SetVisible()
101 view->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, color_.full); in SetVisible()
102 view->SetStyle(OHOS::STYLE_BACKGROUND_OPA, color_.alpha); in SetVisible()
/base/update/updater/services/ui/view/component/
H A Dlabel_btn_adapter.cpp34 bool OnFocus(OHOS::UIView &view) override
37 if (view.GetViewType() != OHOS::UI_LABEL_BUTTON) {
40 button = static_cast<LabelBtnAdapter *>(&view);
48 bool OnBlur(OHOS::UIView &view) override
51 if (view.GetViewType() != OHOS::UI_LABEL_BUTTON) {
54 button = static_cast<LabelBtnAdapter *>(&view);
H A Dimg_view_adapter.cpp32 explicit ImgAnimatorCallback(ImgViewAdapter *view) in ImgAnimatorCallback() argument
35 view_ = view; in ImgAnimatorCallback()
47 void Callback(OHOS::UIView *view) override
/base/update/updater/test/unittest/updater_ui_test/view/
H A Dui_component_unittest.cpp44 void CheckCommInfo(OHOS::UIView &view, const UxViewCommonInfo &common) in CheckCommInfo() argument
46 EXPECT_EQ(view.GetX(), common.x); in CheckCommInfo()
47 EXPECT_EQ(view.GetY(), common.x); in CheckCommInfo()
48 EXPECT_EQ(view.GetWidth(), common.w); in CheckCommInfo()
49 EXPECT_EQ(view.GetHeight(), common.h); in CheckCommInfo()
50 EXPECT_STREQ(view.GetViewId(), common.id.c_str()); in CheckCommInfo()
51 EXPECT_EQ(view.IsVisible(), common.visible); in CheckCommInfo()
/base/powermgr/battery_manager/charger/include/
H A Dcharger_animation.h76 virtual void Callback(OHOS::UIView* view) in Callback() argument

Completed in 5 milliseconds