Home
last modified time | relevance | path

Searched refs:button (Results 1 – 22 of 22) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_button_option.cpp60 NotificationButtonOption *button = new (std::nothrow) NotificationButtonOption(); in FromJson() local
61 if (button == nullptr) { in FromJson()
68 button->buttonName_ = jsonObject.at("buttonName").get<std::string>(); in FromJson()
71 return button; in FromJson()
93 NotificationButtonOption *button = new (std::nothrow) NotificationButtonOption(); in Unmarshalling() local
95 if (button && !button->ReadFromParcel(parcel)) { in Unmarshalling()
96 delete button; in Unmarshalling()
97 button = nullptr; in Unmarshalling()
100 return button; in Unmarshalling()
Dnotification_local_live_view_button.cpp96 NotificationLocalLiveViewButton *button = new (std::nothrow) NotificationLocalLiveViewButton(); in FromJson() local
97 if (button == nullptr) { in FromJson()
105 button->buttonNames_ = jsonObject.at("names").get<std::vector<std::string>>(); in FromJson()
116 button->buttonIcons_.emplace_back(pIcon); in FromJson()
120 return button; in FromJson()
170 NotificationLocalLiveViewButton *button = new (std::nothrow) NotificationLocalLiveViewButton(); in Unmarshalling() local
172 if (button && !button->ReadFromParcel(parcel)) { in Unmarshalling()
173 delete button; in Unmarshalling()
174 button = nullptr; in Unmarshalling()
177 return button; in Unmarshalling()
Dreminder_request.cpp650 for (auto button : multiButton) { in RecoverActionButton() local
651 std::vector<std::string> singleButton = StringSplit(button, SEP_BUTTON_SINGLE); in RecoverActionButton()
1089 for (auto button : actionButtonMap_) { in MarshallingActionButton() local
1090 uint8_t buttonType = static_cast<uint8_t>(button.first); in MarshallingActionButton()
1092 WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.title, "buttonTitle"); in MarshallingActionButton()
1093 WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.resource, "buttonResource"); in MarshallingActionButton()
1095 if (button.second.wantAgent == nullptr) { in MarshallingActionButton()
1100 … WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.wantAgent->pkgName, "wantAgent's pkgName"); in MarshallingActionButton()
1101 …WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.wantAgent->abilityName, "wantAgent's abilityNa… in MarshallingActionButton()
1103 if (button.second.dataShareUpdate == nullptr) { in MarshallingActionButton()
[all …]
Dnotification_local_live_view_content.cpp57 void NotificationLocalLiveViewContent::SetButton(NotificationLocalLiveViewButton button) in SetButton() argument
59 button_ = button; in SetButton()
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
Dsec_comp_manager_test.cpp42 LocationButton button; in BuildInvalidLocationComponent() local
43 button.fontSize_ = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
44 button.iconSize_ = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
45 button.padding_.top = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
46 button.padding_.right = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
47 button.padding_.bottom = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
48 button.padding_.left = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
49 button.textIconSpace_ = ServiceTestCommon::TEST_INVALID_SIZE; in BuildInvalidLocationComponent()
50 button.fontColor_.value = ServiceTestCommon::TEST_COLOR_WHITE; in BuildInvalidLocationComponent()
51 button.iconColor_.value = ServiceTestCommon::TEST_COLOR_WHITE; in BuildInvalidLocationComponent()
[all …]
/base/update/updater/services/ui/view/component/
Dlabel_btn_adapter.cpp36 LabelBtnAdapter *button = nullptr; in OnFocus() local
40 button = static_cast<LabelBtnAdapter *>(&view); in OnFocus()
42 button->SetLabelStyle(OHOS::STYLE_TEXT_COLOR, focusedTxtcolor_.full); in OnFocus()
43 button->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, focusedBgcolor_.full); in OnFocus()
44 button->Invalidate(); in OnFocus()
50 LabelBtnAdapter *button = nullptr; in OnBlur() local
54 button = static_cast<LabelBtnAdapter *>(&view); in OnBlur()
56 button->SetLabelStyle(OHOS::STYLE_TEXT_COLOR, unfocusedTxtcolor_.full); in OnBlur()
57 button->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, unfocusedBgcolor_.full); in OnBlur()
58 button->Invalidate(); in OnBlur()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_local_live_view_content_test.cpp73 NotificationLocalLiveViewButton button; variable
74 button.addSingleButtonName("test");
75 liveViewContent->SetButton(button);
186 NotificationLocalLiveViewButton button; variable
187 button.addSingleButtonName("test");
188 liveViewContent->SetButton(button);
217 NotificationLocalLiveViewButton button; variable
218 button.addSingleButtonName("test");
219 liveViewContent->SetButton(button);
250 NotificationLocalLiveViewButton button; variable
[all …]
Dnotification_local_live_view_button_test.cpp124 auto button = std::make_shared<NotificationLocalLiveViewButton>(); variable
126 button->addSingleButtonIcon(pixelMap);
128 EXPECT_EQ(button->ToJson(jsonObject), true);
168 auto button = std::make_shared<NotificationLocalLiveViewButton>(); variable
169 button->addSingleButtonName("test");
171 button->addSingleButtonIcon(pixelMap);
173 EXPECT_EQ(button->Marshalling(parcel), false);
219 auto button = std::make_shared<NotificationLocalLiveViewButton>(); variable
220 button->addSingleButtonName("test");
221 button->Marshalling(parcel);
[all …]
Dnotification_action_button_test.cpp125 auto button = std::make_shared<NotificationActionButton>(icon, title, wantAgent, extras, in HWTEST_F() local
128 EXPECT_EQ(button->Marshalling(parcel), true); in HWTEST_F()
129 EXPECT_NE(button->Unmarshalling(parcel), nullptr); in HWTEST_F()
225 auto button = std::make_shared<NotificationActionButton>(); variable
229 button->AddMimeTypeOnlyUserInput(userInput);
230 button->AddNotificationUserInput(userInput);
232 EXPECT_EQ(button->GetMimeTypeOnlyUserInputs().size(), 1);
233 EXPECT_NE(button->GetUserInput(), nullptr);
236 EXPECT_NE(button->Dump(), dumpStr);
/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
Dlocation_button_test.cpp271 LocationButton button; variable
272 ASSERT_TRUE(button.FromJson(jsonComponent));
276 ASSERT_FALSE(button.FromJson(jsonComponent));
280 ASSERT_FALSE(button.FromJson(jsonComponent));
284 ASSERT_FALSE(button.FromJson(jsonComponent));
297 LocationButton button; variable
298 ASSERT_TRUE(button.FromJson(jsonComponent));
302 ASSERT_FALSE(button.FromJson(jsonComponent));
306 ASSERT_FALSE(button.FromJson(jsonComponent));
310 ASSERT_FALSE(button.FromJson(jsonComponent));
[all …]
Dsave_button_test.cpp55 SaveButton button; variable
57 ASSERT_TRUE(button.FromJson(jsonComponent));
61 ASSERT_FALSE(button.FromJson(jsonComponent));
65 ASSERT_FALSE(button.FromJson(jsonComponent));
69 ASSERT_FALSE(button.FromJson(jsonComponent));
73 ASSERT_FALSE(button.FromJson(jsonComponent));
77 ASSERT_FALSE(button.FromJson(jsonComponent));
81 ASSERT_FALSE(button.FromJson(jsonComponent));
Dpaste_button_test.cpp55 PasteButton button; variable
57 ASSERT_TRUE(button.FromJson(jsonComponent));
61 ASSERT_FALSE(button.FromJson(jsonComponent));
65 ASSERT_FALSE(button.FromJson(jsonComponent));
69 ASSERT_FALSE(button.FromJson(jsonComponent));
73 ASSERT_FALSE(button.FromJson(jsonComponent));
77 ASSERT_FALSE(button.FromJson(jsonComponent));
81 ASSERT_FALSE(button.FromJson(jsonComponent));
/base/msdp/device_status/tools/vdev/src/
Dvirtual_mouse.cpp115 int32_t VirtualMouse::DownButton(int32_t button) in DownButton() argument
118 if (button < BTN_MOUSE || button > BTN_TASK) { in DownButton()
119 FI_HILOGE("Not mouse button:%{public}d", button); in DownButton()
124 SendEvent(EV_KEY, button, DOWN_VALUE); in DownButton()
129 int32_t VirtualMouse::UpButton(int32_t button) in UpButton() argument
132 if (button < BTN_MOUSE || button > BTN_TASK) { in UpButton()
133 FI_HILOGE("Not mouse button:%{public}d", button); in UpButton()
138 SendEvent(EV_KEY, button, UP_VALUE); in UpButton()
/base/msdp/device_status/tools/vdev/include/
Dvirtual_mouse.h32 int32_t DownButton(int32_t button);
33 int32_t UpButton(int32_t button);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon_convert_liveview.cpp71 napi_value button = nullptr; in SetNotificationLocalLiveViewContent() local
72 napi_create_object(env, &button); in SetNotificationLocalLiveViewContent()
73 if (!SetButton(env, localLiveViewContent->GetButton(), button)) { in SetNotificationLocalLiveViewContent()
77 napi_set_named_property(env, result, "button", button); in SetNotificationLocalLiveViewContent()
179 napi_value Common::SetButton(const napi_env &env, const NotificationLocalLiveViewButton &button, na… in SetButton() argument
189 for (auto vec : button.GetAllButtonNames()) { in SetButton()
201 std::vector<std::shared_ptr<Media::PixelMap>> icons = button.GetAllButtonIcons(); in SetButton()
430 NotificationLocalLiveViewButton button; in GetNotificationLocalLiveViewButton() local
450 button.addSingleButtonName(str); in GetNotificationLocalLiveViewButton()
478 button.addSingleButtonIcon(pixelMap); in GetNotificationLocalLiveViewButton()
[all …]
/base/update/update_app/feature/ota/src/main/ets/dialog/
DDialogHelper.ets56 logInfo('Callback when the first button is clicked');
64 logInfo('Callback when the second button is clicked');
175 logInfo('defaultKnowDialog button is clicked');
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_local_live_view_content.h75 void SetButton(NotificationLocalLiveViewButton button);
/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/pages/
DUsbDialog.ets19 // allow,notAllow button style
/base/web/webview/test/unittest/common/
Dnweb_create_window.h61 void SendMouseEvent(int x, int y, int button, int action, int count) override in SendMouseEvent() argument
/base/web/webview/ohos_nweb/include/
Dnweb.h180 virtual void SendMouseEvent(int x, int y, int button, int action, int count) = 0;
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_notification.cpp543 … sptr<NotificationButtonOption> button(new (std::nothrow) NotificationButtonOption(buttonOption)); in TriggerLocalLiveView() local
544 return ansManagerProxy_->TriggerLocalLiveView(bo, notificationId, button); in TriggerLocalLiveView()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcommon.h519 …static napi_value SetButton(const napi_env &env, const NotificationLocalLiveViewButton &button, na…