Home
last modified time | relevance | path

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

/base/location/frameworks/js/napi/source/
Dlocation_napi_system.cpp63 bool hasProperty = false; in GetAllCallback() local
67 NAPI_CALL_RETURN_VOID(env, napi_has_named_property(env, argv, "success", &hasProperty)); in GetAllCallback()
68 if (hasProperty) { in GetAllCallback()
72 hasProperty = false; in GetAllCallback()
73 NAPI_CALL_RETURN_VOID(env, napi_has_named_property(env, argv, "fail", &hasProperty)); in GetAllCallback()
74 if (hasProperty) { in GetAllCallback()
78 hasProperty = false; in GetAllCallback()
79 NAPI_CALL_RETURN_VOID(env, napi_has_named_property(env, argv, "complete", &hasProperty)); in GetAllCallback()
80 if (hasProperty) { in GetAllCallback()
104 bool hasProperty = false; in GetLocation() local
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon.cpp1439 bool hasProperty = false; in GetNotificationSubscriberInfo() local
1444 NAPI_CALL(env, napi_has_named_property(env, value, "bundleNames", &hasProperty)); in GetNotificationSubscriberInfo()
1445 if (hasProperty) { in GetNotificationSubscriberInfo()
1474 NAPI_CALL(env, napi_has_named_property(env, value, "userId", &hasProperty)); in GetNotificationSubscriberInfo()
1475 if (hasProperty) { in GetNotificationSubscriberInfo()
1659 bool hasProperty = false; in GetNotificationId() local
1662 NAPI_CALL(env, napi_has_named_property(env, value, "id", &hasProperty)); in GetNotificationId()
1663 if (hasProperty) { in GetNotificationId()
1687 bool hasProperty = false; in GetNotificationSlotType() local
1690 NAPI_CALL(env, napi_has_named_property(env, value, "slotType", &hasProperty)); in GetNotificationSlotType()
[all …]
Dsubscribe.cpp902 bool hasProperty = false; in GetNotificationSubscriber() local
915 NAPI_CALL(env, napi_has_named_property(env, value, "onConsume", &hasProperty)); in GetNotificationSubscriber()
916 if (hasProperty) { in GetNotificationSubscriber()
928 NAPI_CALL(env, napi_has_named_property(env, value, "onCancel", &hasProperty)); in GetNotificationSubscriber()
929 if (hasProperty) { in GetNotificationSubscriber()
941 NAPI_CALL(env, napi_has_named_property(env, value, "onUpdate", &hasProperty)); in GetNotificationSubscriber()
942 if (hasProperty) { in GetNotificationSubscriber()
954 NAPI_CALL(env, napi_has_named_property(env, value, "onConnect", &hasProperty)); in GetNotificationSubscriber()
955 if (hasProperty) { in GetNotificationSubscriber()
967 NAPI_CALL(env, napi_has_named_property(env, value, "onDisconnect", &hasProperty)); in GetNotificationSubscriber()
[all …]
Ddisturb_mode.cpp28 bool hasProperty = false; in GetDoNotDisturbDate() local
31 NAPI_CALL(env, napi_has_named_property(env, argv, "type", &hasProperty)); in GetDoNotDisturbDate()
32 if (!hasProperty) { in GetDoNotDisturbDate()
52 NAPI_CALL(env, napi_has_named_property(env, argv, "begin", &hasProperty)); in GetDoNotDisturbDate()
53 if (!hasProperty) { in GetDoNotDisturbDate()
69 NAPI_CALL(env, napi_has_named_property(env, argv, "end", &hasProperty)); in GetDoNotDisturbDate()
70 if (!hasProperty) { in GetDoNotDisturbDate()
Dpublish.cpp174 bool hasProperty = false; in CheckProperty() local
176 … NAPI_CALL_BASE(env, napi_has_named_property(env, content, property.data(), &hasProperty), false); in CheckProperty()
177 if (!hasProperty) { in CheckProperty()
180 return hasProperty; in CheckProperty()
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dnapi_util.cpp56 bool hasProperty = false; in JsObjectToString() local
57 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectToString()
58 if (hasProperty) { in JsObjectToString()
84 bool hasProperty = false; in JsObjectGetProperty() local
85 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectGetProperty()
86 if (hasProperty) { in JsObjectGetProperty()
91 return hasProperty; in JsObjectGetProperty()
96 bool hasProperty = false; in JsObjectToInt() local
97 napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty); in JsObjectToInt()
98 if (hasProperty) { in JsObjectToInt()
[all …]
Dusb_info.cpp244 bool hasProperty = NapiUtil::JsObjectGetProperty(env, jsObj, "data", dataValue); in ParsePipeControlParam() local
246 …env, hasProperty == true, SYSPARAM_INVALID_INPUT, "The controlParam should have the data property.… in ParsePipeControlParam()
337 bool hasProperty = NapiUtil::JsObjectGetProperty(env, deviceObj, "configs", configsObj); in ParseConfigsObjs() local
339 … env, hasProperty == true, SYSPARAM_INVALID_INPUT, "The device should have the configs property."); in ParseConfigsObjs()
/base/time/time_service/framework/js/napi/system_timer/src/
Dnapi_system_timer.cpp187 bool hasProperty = false; in GetTimerOptions() local
190 napi_has_named_property(env, value, "type", &hasProperty); in GetTimerOptions()
191 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "type expected.", JsErrorCode::P… in GetTimerOptions()
196 napi_has_named_property(env, value, "repeat", &hasProperty); in GetTimerOptions()
197 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "repeat expected.", JsErrorCode:… in GetTimerOptions()
202 napi_has_named_property(env, value, "interval", &hasProperty); in GetTimerOptions()
203 if (hasProperty) { in GetTimerOptions()
210 napi_has_named_property(env, value, "wantAgent", &hasProperty); in GetTimerOptions()
211 if (hasProperty) { in GetTimerOptions()
218 napi_has_named_property(env, value, "callback", &hasProperty); in GetTimerOptions()
[all …]
/base/request/request/download/interfaces/kits/js/napi/download_single/src/
Dnapi_utils.cpp42 bool hasProperty = false; in HasNamedProperty() local
43 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
44 return hasProperty; in HasNamedProperty()
50 bool hasProperty = false; in GetNamedProperty() local
51 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
52 if (!hasProperty) { in GetNamedProperty()
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.cpp184 bool hasProperty = false; in HasNamedProperty() local
185 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in HasNamedProperty()
186 return hasProperty; in HasNamedProperty()
192 bool hasProperty = false; in HasNamedTypeProperty() local
193 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in HasNamedTypeProperty()
194 if (hasProperty) { in HasNamedTypeProperty()
219 bool hasProperty = false; in MatchOptionPropertyType() local
220 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in MatchOptionPropertyType()
221 if (hasProperty) { in MatchOptionPropertyType()
245 bool hasProperty = false; in GetNamedProperty() local
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
Dreminder_common.cpp161 bool hasProperty = false; in GenReminder() local
162 …API_CALL(env, napi_has_named_property(env, value, ReminderAgentNapi::REMINDER_TYPE, &hasProperty)); in GenReminder()
163 if (!hasProperty) { in GenReminder()
258 bool hasProperty = false; in GetStringUtf8() local
263 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetStringUtf8()
264 if (hasProperty) { in GetStringUtf8()
273 return hasProperty; in GetStringUtf8()
308 bool hasProperty = false; in GetPropertyValIfExist() local
309 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetPropertyValIfExist()
310 if (!hasProperty) { in GetPropertyValIfExist()
[all …]
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/
Dcommon_event.cpp2088 bool hasProperty = false; in GetBundlenameByPublish() local
2090 NAPI_CALL(env, napi_has_named_property(env, value, "bundleName", &hasProperty)); in GetBundlenameByPublish()
2091 if (hasProperty) { in GetBundlenameByPublish()
2113 bool hasProperty = false; in GetDataByPublish() local
2115 NAPI_CALL(env, napi_has_named_property(env, value, "data", &hasProperty)); in GetDataByPublish()
2116 if (hasProperty) { in GetDataByPublish()
2142 bool hasProperty = false; in GetCodeByPublish() local
2144 NAPI_CALL(env, napi_has_named_property(env, value, "code", &hasProperty)); in GetCodeByPublish()
2145 if (hasProperty) { in GetCodeByPublish()
2168 bool hasProperty = false; in GetSubscriberPermissionsByPublish() local
[all …]
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
Dnapi_common_event.cpp2082 bool hasProperty = false; in GetBundlenameByPublish() local
2084 NAPI_CALL(env, napi_has_named_property(env, value, "bundleName", &hasProperty)); in GetBundlenameByPublish()
2085 if (hasProperty) { in GetBundlenameByPublish()
2107 bool hasProperty = false; in GetDataByPublish() local
2109 NAPI_CALL(env, napi_has_named_property(env, value, "data", &hasProperty)); in GetDataByPublish()
2110 if (hasProperty) { in GetDataByPublish()
2136 bool hasProperty = false; in GetCodeByPublish() local
2138 NAPI_CALL(env, napi_has_named_property(env, value, "code", &hasProperty)); in GetCodeByPublish()
2139 if (hasProperty) { in GetCodeByPublish()
2162 bool hasProperty = false; in GetSubscriberPermissionsByPublish() local
[all …]
/base/location/frameworks/native/source/
Dnapi_util.cpp561 bool hasProperty = false; in JsObjectToString() local
562 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToString()
563 if (hasProperty) { in JsObjectToString()
588 bool hasProperty = false; in JsObjectToDouble() local
589 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToDouble()
590 if (hasProperty) { in JsObjectToDouble()
606 bool hasProperty = false; in JsObjectToInt() local
607 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToInt()
608 if (hasProperty) { in JsObjectToInt()
624 bool hasProperty = false; in JsObjectToInt64() local
[all …]
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp209 bool hasProperty = false; in ParseParametersBySetTime() local
211 NAPI_CALL(env, napi_has_named_property(env, argv[0], "getTime", &hasProperty)); in ParseParametersBySetTime()
212 NAPI_ASSERTP(env, hasProperty, "type expected."); in ParseParametersBySetTime()
/base/request/request/upload/interfaces/kits/napi/src/
Djs_util.cpp247 bool hasProperty = false; in GetNamedProperty() local
248 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
249 if (!hasProperty) { in GetNamedProperty()
258 bool hasProperty = false; in HasNamedProperty() local
259 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
260 return hasProperty; in HasNamedProperty()
/base/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp92 bool hasProperty = false; in SetDate() local
94 napi_has_named_property(env, argv[ARGV_FIRST], "getTime", &hasProperty); in SetDate()
95 … CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setDateContext, hasProperty, "getTime failed", in SetDate()
/base/notification/common_event_service/interfaces/kits/napi/common_event/include/
Dcommon_event.h415 const napi_env &env, const napi_value &argv, std::string &permission, bool &hasProperty);
418 const napi_env &env, const napi_value &argv, std::string &publisherDeviceId, bool &hasProperty);
422 …yByCreateSubscriber(const napi_env &env, const napi_value &argv, int &priority, bool &hasProperty);
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/include/
Dnapi_common_event.h415 const napi_env &env, const napi_value &argv, std::string &permission, bool &hasProperty);
418 const napi_env &env, const napi_value &argv, std::string &publisherDeviceId, bool &hasProperty);
422 …yByCreateSubscriber(const napi_env &env, const napi_value &argv, int &priority, bool &hasProperty);
/base/global/i18n/interfaces/js/kits/src/
Dintl_addon.cpp175 bool hasProperty = false; in GetOptionValue() local
176 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
177 if (propStatus == napi_ok && hasProperty) { in GetOptionValue()
202 bool hasProperty = false; in GetIntegerOptionValue() local
203 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetIntegerOptionValue()
204 if (propStatus == napi_ok && hasProperty) { in GetIntegerOptionValue()
226 bool hasProperty = false; in GetBoolOptionValue() local
227 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue()
228 if (propStatus == napi_ok && hasProperty) { in GetBoolOptionValue()
Di18n_addon.cpp226 bool hasProperty = false; in GetOptionValue() local
227 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
228 if (propStatus == napi_ok && hasProperty) { in GetOptionValue()
1437 bool hasProperty = false; in GetOptionValue() local
1438 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
1439 if (propStatus == napi_ok && hasProperty) { in GetOptionValue()
/base/telephony/core_service/frameworks/js/network_search/src/
Dnapi_radio.cpp659 bool hasProperty = false; in HasNamedPropertyType() local
660 napi_has_named_property(env, object, propertyName.c_str(), &hasProperty); in HasNamedPropertyType()
661 if (hasProperty) { in HasNamedPropertyType()