| /base/notification/distributed_notification_service/frameworks/ans/src/ |
| D | notification_button_option.cpp | 60 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()
|
| D | notification_local_live_view_button.cpp | 96 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()
|
| D | reminder_request.cpp | 650 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 …]
|
| D | notification_local_live_view_content.cpp | 57 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/ |
| D | sec_comp_manager_test.cpp | 42 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/ |
| D | label_btn_adapter.cpp | 36 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/ |
| D | notification_local_live_view_content_test.cpp | 73 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 …]
|
| D | notification_local_live_view_button_test.cpp | 124 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 …]
|
| D | notification_action_button_test.cpp | 125 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/ |
| D | location_button_test.cpp | 271 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 …]
|
| D | save_button_test.cpp | 55 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));
|
| D | paste_button_test.cpp | 55 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/ |
| D | virtual_mouse.cpp | 115 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/ |
| D | virtual_mouse.h | 32 int32_t DownButton(int32_t button); 33 int32_t UpButton(int32_t button);
|
| /base/notification/distributed_notification_service/frameworks/js/napi/src/ |
| D | common_convert_liveview.cpp | 71 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/ |
| D | DialogHelper.ets | 56 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/ |
| D | notification_local_live_view_content.h | 75 void SetButton(NotificationLocalLiveViewButton button);
|
| /base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/pages/ |
| D | UsbDialog.ets | 19 // allow,notAllow button style
|
| /base/web/webview/test/unittest/common/ |
| D | nweb_create_window.h | 61 void SendMouseEvent(int x, int y, int button, int action, int count) override in SendMouseEvent() argument
|
| /base/web/webview/ohos_nweb/include/ |
| D | nweb.h | 180 virtual void SendMouseEvent(int x, int y, int button, int action, int count) = 0;
|
| /base/notification/distributed_notification_service/frameworks/core/src/ |
| D | ans_notification.cpp | 543 … 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/ |
| D | common.h | 519 …static napi_value SetButton(const napi_env &env, const NotificationLocalLiveViewButton &button, na…
|