Home
last modified time | relevance | path

Searched refs:icon (Results 1 - 25 of 34) sorted by relevance

12

/base/inputmethod/imf/frameworks/cj/src/
H A Dutils.cpp37 props.icon = Utils::MallocCString(property.icon); in InputMethodProperty2C()
48 property.icon = std::string(props.icon); in C2InputMethodProperty()
59 props.icon = Utils::MallocCString(property.icon); in InputMethodSubProperty2C()
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/
H A Dsetprogressbar_fuzzer.cpp37 std::shared_ptr<Media::PixelMap> icon = nullptr; in DoSomethingInterestingWithMyAPI() local
38 request.SetLittleIcon(icon); in DoSomethingInterestingWithMyAPI()
39 request.SetBigIcon(icon); in DoSomethingInterestingWithMyAPI()
/base/inputmethod/imf/frameworks/cj/include/
H A Dinput_method_ffi_structs.h30 char* icon; member
41 char* icon; member
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
H A Dinput_method_property.h30 std::string icon; // the icon of inputMethod member
31 uint32_t iconId = 0; // the icon id of inputMethod
42 std::string icon; // the icon of subtype member
43 uint32_t iconId = 0; // the icon id of subtype
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_action_button_test.cpp111 std::shared_ptr<Media::PixelMap> icon = nullptr; in HWTEST_F() local
125 auto button = std::make_shared<NotificationActionButton>(icon, title, wantAgent, extras, in HWTEST_F()
140 std::shared_ptr<Media::PixelMap> icon = nullptr; in HWTEST_F() local
154 (icon, title, wantAgent, extras, semanticActionButton, in HWTEST_F()
166 std::shared_ptr<Media::PixelMap> icon = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
180 rrc->Create(icon, title, wantAgent, extras, semanticActionButton, in HWTEST_F()
H A Dnotification_local_live_view_button_test.cpp252 std::shared_ptr<Media::PixelMap> icon = std::make_shared<Media::PixelMap>(); in HWTEST_F() local
254 button->addSingleButtonIcon(icon); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_action_button.cpp25 std::shared_ptr<NotificationActionButton> NotificationActionButton::Create(const std::shared_ptr<Media::PixelMap> &icon, in Create() argument
31 if (isContextual && (!icon || !wantAgent)) { in Create()
32 ANS_LOGE("icon or wantAgent can not be null when isContextual is true"); in Create()
51 auto pActionButton = new (std::nothrow) NotificationActionButton(icon, in Create()
87 NotificationActionButton::NotificationActionButton(const std::shared_ptr<Media::PixelMap> &icon, in NotificationActionButton() argument
92 : icon_(icon), in NotificationActionButton()
222 jsonObject["icon"] = AnsImageUtil::PackImage(icon_); in ToJson()
250 if (jsonObject.find("icon") != jsonEnd && jsonObject.at("icon").is_string()) { in FromJson()
251 auto iconStr = jsonObject.at("icon") in FromJson()
[all...]
H A Dnotification_local_live_view_button.cpp61 void NotificationLocalLiveViewButton::addSingleButtonIcon(std::shared_ptr<Media::PixelMap> &icon) in addSingleButtonIcon() argument
68 buttonIcons_.emplace_back(icon); in addSingleButtonIcon()
175 ANS_LOGE("Failed to parse button icon"); in FromJson()
227 ANS_LOGE("Failed to write button icon resource"); in Marshalling()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_action_button.h33 * @param icon Indicates the icon to represent this NotificationActionButton.
45 * object if isContextual is true but icon or wantAgent is empty.
47 static std::shared_ptr<NotificationActionButton> Create(const std::shared_ptr<Media::PixelMap> &icon,
70 * @brief Obtains the icon of this NotificationActionButton.
72 * @return Returns the icon of this NotificationActionButton.
229 * @param icon Indicates the icon to represent this NotificationActionButton.
240 NotificationActionButton(const std::shared_ptr<Media::PixelMap> &icon, const std::string &title,
H A Dnotification_capsule.h42 * @brief Obtains the icon of the notification capsule.
44 * @return Returns the icon of the notification capsule.
48 void SetIcon(const std::shared_ptr<Media::PixelMap> &icon);
H A Dnotification_local_live_view_button.h53 void addSingleButtonIcon(std::shared_ptr<Media::PixelMap> &icon);
56 * @brief Obtains the buttion icon resource when this message arrived.
58 * @return Returns the buttion icon resource when this message arrived.
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
H A Djs_input_method.cpp118 napi_value icon = nullptr; in GetJsInputMethodProperty() local
119 napi_create_string_utf8(env, property.icon.c_str(), NAPI_AUTO_LENGTH, &icon); in GetJsInputMethodProperty()
120 napi_set_named_property(env, prop, "icon", icon); in GetJsInputMethodProperty()
169 napi_value icon = nullptr; in GetJsInputMethodSubProperty() local
170 napi_create_string_utf8(env, subProperty.icon.c_str(), NAPI_AUTO_LENGTH, &icon); in GetJsInputMethodSubProperty()
171 napi_set_named_property(env, prop, "icon", icon); in GetJsInputMethodSubProperty()
[all...]
/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Djs_util_test.cpp30 std::string icon; member
47 ret = ret && JsUtil::Object::WriteProperty(env, object, "icon", nativeObject.icon); in Write()
55 ret = ret && JsUtil::Object::ReadProperty(env, object, "icon", nativeObject.icon); in Read()
H A Djson_operate_test.cpp59 static constexpr const char *SUBTYPE = "{\"subtypes\": [{\"icon\": \"$media:icon\",\"id\": "
61 "\"zh-CN\",\"mode\": \"lower\"},{\"icon\": \"$media:icon1\",\"id\": "
314 EXPECT_EQ(subtypes[0].icon, "$media:icon"); in HWTEST_F()
319 EXPECT_EQ(subtypes[1].icon, "$media:icon1"); in HWTEST_F()
/base/inputmethod/imf/services/include/
H A Dime_info_inquirer.h51 std::string icon; member
58 GetValue(node, GET_NAME(icon), icon);
/base/request/request/services/src/cxx/
H A Dnotification_bar.cpp165 auto icon = CreatePixelMap(); in RequestProgressNotification() local
166 if (icon != nullptr) { in RequestProgressNotification()
168 button.addSingleButtonIcon(icon); in RequestProgressNotification()
/base/web/webview/interfaces/kits/napi/js/
H A Dwebview_export.js278 icon: $r('sys.media.ohos_ic_public_albums'),
285 icon: $r('sys.media.ohos_ic_public_camera'),
292 icon: $r('sys.media.ohos_ic_public_email'),
/base/web/webview/interfaces/kits/cj/include/
H A Dwebview_utils.h37 int64_t icon; member
/base/inputmethod/imf/services/src/
H A Dime_info_inquirer.cpp455 subProp.icon = property.icon; in GetSubProperty()
475 subProperty.icon = property.icon; in ListInputMethodSubtype()
506 subProp.icon = subtype->icon; in GetSubProperty()
515 pos = subProp.icon.find(':'); in GetSubProperty()
516 if (pos != std::string::npos && pos + 1 < subProp.icon.size()) { in GetSubProperty()
517 int32_t iconId = atoi(subProp.icon.substr(pos + 1).c_str()); in GetSubProperty()
550 .icon in ListInputMethodSubtype()
[all...]
/base/inputmethod/imf/common/src/
H A Ditypes_util.cpp126 if (!Marshal(data, input.name, input.id, input.label, input.labelId, input.icon, input.iconId)) { in Marshalling()
135 if (!Unmarshal(data, output.name, output.id, output.label, output.labelId, output.icon, output.iconId)) { in Unmarshalling()
145 input.icon, input.iconId)) { in Marshalling()
155 output.language, output.icon, output.iconId)) { in Unmarshalling()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
H A Djs_input_method_engine_setting.cpp557 napi_value icon = nullptr; in GetResultOnSetSubtype() local
558 napi_create_string_utf8(env, property.icon.c_str(), property.icon.size(), &icon); in GetResultOnSetSubtype()
559 napi_set_named_property(env, subType, "icon", icon); in GetResultOnSetSubtype()
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp500 if (contentResult->capsule.icon != -1) { in GetNotificationLocalLiveViewCapsule()
501 auto pixelMap = FFIData::GetData<Media::PixelMapImpl>(contentResult->capsule.icon); in GetNotificationLocalLiveViewCapsule()
1304 // icon?: image.PixelMap in SetCapsule()
1305 std::shared_ptr<Media::PixelMap> icon = capsule.GetIcon(); in SetCapsule() local
1306 if (icon) { in SetCapsule()
1307 auto native = FFIData::Create<Media::PixelMapImpl>(icon); in SetCapsule()
1313 LOGE("Invalid object pixelMap of icon"); in SetCapsule()
1316 cCapsule.icon = native->GetID(); in SetCapsule()
1364 .icon = -1, in SetNotificationLocalLiveViewContentDetailed()
/base/inputmethod/imf/test/fuzztest/inputmethodcontroller_fuzzer/
H A Dinputmethodcontroller_fuzzer.cpp50 property.icon = fuzzedString; in TestListInputMethodSubtype()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h83 int64_t icon; member
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_liveview.cpp125 // icon?: image.PixelMap in SetCapsule()
126 std::shared_ptr<Media::PixelMap> icon = capsule.GetIcon(); in SetCapsule() local
127 if (icon) { in SetCapsule()
130 iconResult = Media::PixelMapNapi::CreatePixelMap(env, icon); in SetCapsule()
134 napi_set_named_property(env, result, "icon", NapiGetNull(env)); in SetCapsule()
136 napi_set_named_property(env, result, "icon", iconResult); in SetCapsule()
488 NAPI_CALL(env, napi_has_named_property(env, capsuleResult, "icon", &hasProperty)); in GetNotificationLocalLiveViewCapsule()
490 napi_get_named_property(env, capsuleResult, "icon", &result); in GetNotificationLocalLiveViewCapsule()
502 ANS_LOGD("capsule icon = %{public}d", pixelMap->GetWidth()); in GetNotificationLocalLiveViewCapsule()
642 ANS_LOGE("Property icon resourc in GetNotificationLocalLiveViewButton()
[all...]

Completed in 17 milliseconds

12