/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_button_option.cpp | 60 NotificationButtonOption *button = new (std::nothrow) NotificationButtonOption(); in FromJson() local 61 if (button == nullptr) { in FromJson() 62 ANS_LOGE("Failed to create button option instance"); 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 in Unmarshalling() [all...] |
H A D | notification_local_live_view_button.cpp | 155 NotificationLocalLiveViewButton *button = new (std::nothrow) NotificationLocalLiveViewButton(); in FromJson() local 156 if (button == nullptr) { in FromJson() 164 button->buttonNames_ = jsonObject.at("names").get<std::vector<std::string>>(); in FromJson() 175 ANS_LOGE("Failed to parse button icon"); in FromJson() 176 delete button; in FromJson() 179 button->buttonIcons_.emplace_back(pIcon); in FromJson() 188 button->buttonIconsResource_.emplace_back(resourceObj); in FromJson() 193 return button; in FromJson() 227 ANS_LOGE("Failed to write button icon resource"); in Marshalling() 238 ANS_LOGE("Failed to read button name in ReadFromParcel() 284 NotificationLocalLiveViewButton *button = new (std::nothrow) NotificationLocalLiveViewButton(); Unmarshalling() local [all...] |
H A D | reminder_request.cpp | 100 // check action button type range in IsVaildButtonType() 493 ANSR_LOGW("unkown button type!"); in RecoverActionButtonJsonMode() 520 for (auto button : multiButton) { in DeserializeButtonInfo() 521 std::vector<std::string> singleButton = StringSplit(button, SEP_BUTTON_SINGLE); in DeserializeButtonInfo() 1053 for (auto button : actionButtonMap_) { in MarshallingActionButton() 1054 uint8_t buttonType = static_cast<uint8_t>(button.first); in MarshallingActionButton() 1056 WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.title, "buttonTitle"); in MarshallingActionButton() 1057 WRITE_STRING_RETURN_FALSE_LOG(parcel, button.second.resource, "buttonResource"); in MarshallingActionButton() 1059 if (button.second.wantAgent == nullptr) { in MarshallingActionButton() 1060 ANSR_LOGE("button wantAgen in MarshallingActionButton() [all...] |
H A D | notification_local_live_view_content.cpp | 58 void NotificationLocalLiveViewContent::SetButton(NotificationLocalLiveViewButton button) in SetButton() argument 60 button_ = button; in SetButton() 108 ", button = " + button_.Dump() + in Dump() 129 ANS_LOGE("Cannot convert button to JSON"); in ToJson() 147 jsonObject["button"] = buttonObj; in ToJson() 185 if (jsonObject.find("button") != jsonEnd) { in FromJson() 186 auto buttonObj = jsonObject.at("button"); in FromJson() 244 ANS_LOGE("Failed to write button"); in Marshalling() 300 ANS_LOGE("Failed to read button"); in ReadFromParcel()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_local_live_view_button_test.cpp | 125 auto button = std::make_shared<NotificationLocalLiveViewButton>(); in HWTEST_F() local 127 button->addSingleButtonIcon(pixelMap); in HWTEST_F() 129 EXPECT_EQ(button->ToJson(jsonObject), true); in HWTEST_F() 183 auto button = std::make_shared<NotificationLocalLiveViewButton>(); in HWTEST_F() local 184 button->addSingleButtonName("test"); in HWTEST_F() 186 button->addSingleButtonIcon(pixelMap); in HWTEST_F() 188 EXPECT_EQ(button->Marshalling(parcel), false); in HWTEST_F() 234 auto button = std::make_shared<NotificationLocalLiveViewButton>(); in HWTEST_F() local 235 button->addSingleButtonName("test"); in HWTEST_F() 236 button in HWTEST_F() 251 auto button = std::make_shared<NotificationLocalLiveViewButton>(); HWTEST_F() local [all...] |
H A D | notification_local_live_view_content_test.cpp | 73 NotificationLocalLiveViewButton button; in HWTEST_F() local 74 button.addSingleButtonName("test"); in HWTEST_F() 75 liveViewContent->SetButton(button); in HWTEST_F() 99 nlohmann::json jsonObject = nlohmann::json{"typeCode", "capsule", "button", "progress", "time"}; in HWTEST_F() 115 {"additionalText", ""}, {"button", ""}, {"capsule", ""}, {"flags", ""}, in HWTEST_F() 186 NotificationLocalLiveViewButton button; in HWTEST_F() local 187 button.addSingleButtonName("test"); in HWTEST_F() 188 liveViewContent->SetButton(button); in HWTEST_F() 217 NotificationLocalLiveViewButton button; in HWTEST_F() local 218 button in HWTEST_F() 250 NotificationLocalLiveViewButton button; HWTEST_F() local [all...] |
H A 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>();
in HWTEST_F() local 229 button->AddMimeTypeOnlyUserInput(userInput);
in HWTEST_F() 230 button->AddNotificationUserInput(userInput);
in HWTEST_F() 232 EXPECT_EQ(button->GetMimeTypeOnlyUserInputs().size(), 1);
in HWTEST_F() 233 EXPECT_NE(button->GetUserInput(), nullptr);
in HWTEST_F() 236 EXPECT_NE(button->Dump(), dumpStr);
in HWTEST_F()
|
/base/update/updater/services/ui/view/component/ |
H A D | label_btn_adapter.cpp | 36 LabelBtnAdapter *button = nullptr; variable 40 button = static_cast<LabelBtnAdapter *>(&view); 42 button->SetLabelStyle(OHOS::STYLE_TEXT_COLOR, focusedTxtcolor_.full); 43 button->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, focusedBgcolor_.full); 44 button->Invalidate(); 50 LabelBtnAdapter *button = nullptr; variable 54 button = static_cast<LabelBtnAdapter *>(&view); 56 button->SetLabelStyle(OHOS::STYLE_TEXT_COLOR, unfocusedTxtcolor_.full); 57 button->SetStyle(OHOS::STYLE_BACKGROUND_COLOR, unfocusedBgcolor_.full); 58 button [all...] |
/base/security/security_component_manager/frameworks/inner_api/security_component/test/unittest/src/ |
H A D | location_button_test.cpp | 76 * @tc.desc: Test location button from wrong type json 96 * @tc.desc: Test location button from wrong rect json 131 * @tc.desc: Test location button from wrong rect json 166 * @tc.desc: Test location button from wrong size json 192 * @tc.desc: Test location button from wrong size json 215 * @tc.desc: Test location button from wrong size json 238 * @tc.desc: Test location button from wrong border and parent json 263 * @tc.desc: Test location button from wrong type params json 271 LocationButton button; in HWTEST_F() local 272 ASSERT_TRUE(button in HWTEST_F() 297 LocationButton button; HWTEST_F() local 323 LocationButton button; HWTEST_F() local 362 LocationButton button; HWTEST_F() local 378 LocationButton button; HWTEST_F() local [all...] |
H A D | save_button_test.cpp | 47 * @tc.desc: Test save button from wrong value params json 55 SaveButton button; in HWTEST_F() local 57 ASSERT_TRUE(button.FromJson(jsonComponent)); in HWTEST_F() 61 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 65 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 69 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 73 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 77 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 81 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 86 * @tc.desc: Test compare save button [all...] |
H A D | paste_button_test.cpp | 47 * @tc.desc: Test paste button from wrong value params json 55 PasteButton button; in HWTEST_F() local 57 ASSERT_TRUE(button.FromJson(jsonComponent)); in HWTEST_F() 61 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 65 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 69 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 73 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 77 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 81 ASSERT_FALSE(button.FromJson(jsonComponent)); in HWTEST_F() 86 * @tc.desc: Test compare paste button [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A 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 in BuildInvalidLocationComponent() 71 LocationButton button; BuildValidLocationComponent() local [all...] |
/base/msdp/device_status/tools/vdev/src/ |
H A D | virtual_mouse.cpp | 117 int32_t VirtualMouse::DownButton(int32_t button) in DownButton() argument 120 if (button < BTN_MOUSE || button > BTN_TASK) { in DownButton() 121 FI_HILOGE("Not mouse button:%{public}d", button); in DownButton() 126 SendEvent(EV_KEY, button, DOWN_VALUE); in DownButton() 131 int32_t VirtualMouse::UpButton(int32_t button) in UpButton() argument 134 if (button < BTN_MOUSE || button > BTN_TASK) { in UpButton() 135 FI_HILOGE("Not mouse button in UpButton() [all...] |
/base/msdp/device_status/tools/vdev/include/ |
H A D | virtual_mouse.h | 32 int32_t DownButton(int32_t button); 33 int32_t UpButton(int32_t button);
|
/base/print/print_fwk/frameworks/helper/scan_helper/src/ |
H A D | scanner_info.cpp | 31 button=""; in ScanDeviceInfoTCP() 45 button = right.button; in ScanDeviceInfoTCP() 60 button = right.button; in operator =() 104 button = button_; in SetButton() 154 return button; in GetButton()
|
/base/request/request/services/src/cxx/ |
H A D | notification_bar.cpp | 163 // set button in RequestProgressNotification() 164 auto button = localLiveViewContent->GetButton(); in RequestProgressNotification() local 167 button.addSingleButtonName("cancel"); in RequestProgressNotification() 168 button.addSingleButtonIcon(icon); in RequestProgressNotification() 169 localLiveViewContent->SetButton(button); in RequestProgressNotification()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_liveview.cpp | 70 // button: NotificationLocalLiveViewButton in SetNotificationLocalLiveViewContent() 72 napi_value button = nullptr; in SetNotificationLocalLiveViewContent() local 73 napi_create_object(env, &button); in SetNotificationLocalLiveViewContent() 74 if (!SetButton(env, localLiveViewContent->GetButton(), button)) { in SetNotificationLocalLiveViewContent() 78 napi_set_named_property(env, result, "button", button); in SetNotificationLocalLiveViewContent() 242 napi_value Common::SetButton(const napi_env &env, const NotificationLocalLiveViewButton &button, napi_value &result) in SetButton() argument 252 for (auto vec : button.GetAllButtonNames()) { in SetButton() 264 std::vector<std::shared_ptr<Media::PixelMap>> icons = button.GetAllButtonIcons(); in SetButton() 281 auto iconResources = button in SetButton() 584 NotificationLocalLiveViewButton button; GetNotificationLocalLiveViewButton() local [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_local_live_view_content.h | 72 * @brief Sets the button to be included in a local live view notification. 74 * @param button Indicates the type to be included. 76 void SetButton(NotificationLocalLiveViewButton button); 79 * @brief Get the button of a local live view notification.
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 518 NotificationLocalLiveViewButton button; in GetNotificationLocalLiveViewButton() local 519 int64_t length = contentResult->button.names.size; in GetNotificationLocalLiveViewButton() 521 if (strcpy_s(str, STR_MAX_SIZE, contentResult->button.names.head[i]) != EOK) { in GetNotificationLocalLiveViewButton() 522 LOGE("copy button.names failed"); in GetNotificationLocalLiveViewButton() 525 button.addSingleButtonName(std::string(str)); in GetNotificationLocalLiveViewButton() 528 length = contentResult->button.icons.size; in GetNotificationLocalLiveViewButton() 530 int64_t id = contentResult->button.icons.head[i]; in GetNotificationLocalLiveViewButton() 538 button.addSingleButtonIcon(pix); in GetNotificationLocalLiveViewButton() 544 content->SetButton(button); in GetNotificationLocalLiveViewButton() 608 // button in GetNotificationLocalLiveViewContentDetailed() 1321 SetButton(const NotificationLocalLiveViewButton &button, CNotificationButton &cButton) SetButton() argument [all...] |
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_liveview.cpp | 156 napi_get_named_property(env, contentResult, "button", &buttonResult); in GetNotificationLocalLiveViewButton() 163 NotificationLocalLiveViewButton button; in GetNotificationLocalLiveViewButton() local 183 button.addSingleButtonName(str); in GetNotificationLocalLiveViewButton() 184 LBSLOGD(NAPI_UTILS, "button buttonName = %{public}s.", str); in GetNotificationLocalLiveViewButton() 208 button.addSingleButtonIcon(pixelMap); in GetNotificationLocalLiveViewButton() 215 LBSLOGD(NAPI_UTILS, "button buttonIcon = %{public}s", str); in GetNotificationLocalLiveViewButton() 216 content->SetButton(button); in GetNotificationLocalLiveViewButton() 407 //button? in GetNotificationLocalLiveViewContentDetailed() 408 NAPI_CALL(env, napi_has_named_property(env, contentResult, "button", &hasProperty)); in GetNotificationLocalLiveViewContentDetailed()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 112 CNotificationButton button; member 316 bool SetButton(const OHOS::Notification::NotificationLocalLiveViewButton &button, CNotificationButton &cButton);
|
/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_mdns_service.cpp | 149 std::vector<std::string> keys = {"UUID", "adminur", "button", "feeder", "mdl", "mfg", "mote", "txtvers", "ty"}; in ToMDnsScaner() 167 } else if (key == "button") { in ToMDnsScaner() 168 scannerInfo->button = value; in ToMDnsScaner()
|
/base/print/print_fwk/frameworks/helper/scan_helper/include/ |
H A D | scanner_info.h | 83 std::string button; member in OHOS::Scan::final
|
/base/web/webview/test/fuzztest/ohos_nweb/nwebhelper_fuzzer/ |
H A D | nweb_create_window.h | 51 void SendMouseEvent(int x, int y, int button, int action, int count) override {}
|
/base/web/webview/test/unittest/common/ |
H A D | nweb_create_window.h | 63 void SendMouseEvent(int x, int y, int button, int action, int count) override
|