Home
last modified time | relevance | path

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

12

/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.cpp1463 bool hasProperty = false; in GetNotificationSubscriberInfo() local
1468 NAPI_CALL(env, napi_has_named_property(env, value, "bundleNames", &hasProperty)); in GetNotificationSubscriberInfo()
1469 if (hasProperty) { in GetNotificationSubscriberInfo()
1498 NAPI_CALL(env, napi_has_named_property(env, value, "userId", &hasProperty)); in GetNotificationSubscriberInfo()
1499 if (hasProperty) { in GetNotificationSubscriberInfo()
1686 bool hasProperty = false; in GetNotificationId() local
1689 NAPI_CALL(env, napi_has_named_property(env, value, "id", &hasProperty)); in GetNotificationId()
1690 if (hasProperty) { in GetNotificationId()
1714 bool hasProperty = false; in GetNotificationSlotType() local
1717 NAPI_CALL(env, napi_has_named_property(env, value, "slotType", &hasProperty)); in GetNotificationSlotType()
[all …]
Dsubscribe.cpp1001 bool hasProperty = false; in GetNotificationSubscriber() local
1014 NAPI_CALL(env, napi_has_named_property(env, value, "onConsume", &hasProperty)); in GetNotificationSubscriber()
1015 if (hasProperty) { in GetNotificationSubscriber()
1027 NAPI_CALL(env, napi_has_named_property(env, value, "onCancel", &hasProperty)); in GetNotificationSubscriber()
1028 if (hasProperty) { in GetNotificationSubscriber()
1040 NAPI_CALL(env, napi_has_named_property(env, value, "onUpdate", &hasProperty)); in GetNotificationSubscriber()
1041 if (hasProperty) { in GetNotificationSubscriber()
1053 NAPI_CALL(env, napi_has_named_property(env, value, "onConnect", &hasProperty)); in GetNotificationSubscriber()
1054 if (hasProperty) { in GetNotificationSubscriber()
1066 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/customization/enterprise_device_management/interfaces/kits/common/src/
Dnapi_edm_common.cpp203 bool hasProperty = false; in JsObjectToInt() local
204 if (napi_has_named_property(env, object, filedStr, &hasProperty) != napi_ok) { in JsObjectToInt()
208 if (isNecessaryProp && !hasProperty) { in JsObjectToInt()
211 if (hasProperty) { in JsObjectToInt()
220 bool hasProperty = false; in JsObjectToUint() local
221 if (napi_has_named_property(env, object, filedStr, &hasProperty) != napi_ok) { in JsObjectToUint()
225 if (isNecessaryProp && !hasProperty) { in JsObjectToUint()
228 if (hasProperty) { in JsObjectToUint()
237 bool hasProperty = false; in JsObjectToBool() local
238 if (napi_has_named_property(env, object, filedStr, &hasProperty) != napi_ok) { in JsObjectToBool()
[all …]
/base/global/i18n/interfaces/js/kits/src/
Dvariable_convertor.cpp36 bool hasProperty = false; in GetOptionValue() local
37 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
38 if (propStatus == napi_ok && hasProperty) { in GetOptionValue()
63 bool hasProperty = false; in GetBoolOptionValue() local
64 status = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue()
65 if (status != napi_ok || !hasProperty) { in GetBoolOptionValue()
Dintl_addon.cpp183 bool hasProperty = false; in GetOptionValue() local
184 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue()
185 if (propStatus == napi_ok && hasProperty) { in GetOptionValue()
210 bool hasProperty = false; in GetIntegerOptionValue() local
211 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetIntegerOptionValue()
212 if (propStatus == napi_ok && hasProperty) { in GetIntegerOptionValue()
234 bool hasProperty = false; in GetBoolOptionValue() local
235 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue()
236 if (propStatus == napi_ok && hasProperty) { in GetBoolOptionValue()
/base/time/time_service/framework/js/napi/system_timer/src/
Dnapi_system_timer.cpp153 bool hasProperty = false; in GetTimerOptions() local
156 napi_has_named_property(env, value, "type", &hasProperty); in GetTimerOptions()
157 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "type expected.", JsErrorCode::P… in GetTimerOptions()
162 napi_has_named_property(env, value, "repeat", &hasProperty); in GetTimerOptions()
163 …CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, "repeat expected.", JsErrorCode:… in GetTimerOptions()
168 napi_has_named_property(env, value, "interval", &hasProperty); in GetTimerOptions()
169 if (hasProperty) { in GetTimerOptions()
176 napi_has_named_property(env, value, "wantAgent", &hasProperty); in GetTimerOptions()
177 if (hasProperty) { in GetTimerOptions()
184 napi_has_named_property(env, value, "callback", &hasProperty); in GetTimerOptions()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
Dreminder_common.cpp202 bool hasProperty = false; in GenReminder() local
203 …API_CALL(env, napi_has_named_property(env, value, ReminderAgentNapi::REMINDER_TYPE, &hasProperty)); in GenReminder()
204 if (!hasProperty) { in GenReminder()
314 bool hasProperty = false; in GetStringUtf8() local
319 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetStringUtf8()
320 if (hasProperty) { in GetStringUtf8()
329 return hasProperty; in GetStringUtf8()
335 bool hasProperty = false; in GetBool() local
338 NAPI_CALL_BASE(env, napi_has_named_property(env, value, propertyName, &hasProperty), false); in GetBool()
339 if (!hasProperty) { in GetBool()
[all …]
/base/print/print_fwk/frameworks/helper/src/
Dnapi_print_utils.cpp40 bool hasProperty = false; in HasNamedProperty() local
41 …PRINT_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fal… in HasNamedProperty()
42 return hasProperty; in HasNamedProperty()
48 bool hasProperty = false; in GetNamedProperty() local
49 PRINT_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
50 if (!hasProperty) { in GetNamedProperty()
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.cpp188 bool hasProperty = false; in HasNamedProperty() local
189 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in HasNamedProperty()
190 return hasProperty; in HasNamedProperty()
196 bool hasProperty = false; in HasNamedTypeProperty() local
197 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in HasNamedTypeProperty()
198 if (hasProperty) { in HasNamedTypeProperty()
223 bool hasProperty = false; in MatchOptionPropertyType() local
224 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.data(), &hasProperty), false… in MatchOptionPropertyType()
225 if (hasProperty) { in MatchOptionPropertyType()
249 bool hasProperty = false; in GetNamedProperty() local
[all …]
/base/request/request/frameworks/js/napi/src/upload/
Djs_util.cpp143 bool hasProperty = false; in GetNamedProperty() local
144 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
145 if (!hasProperty) { in GetNamedProperty()
154 bool hasProperty = false; in HasNamedProperty() local
155 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
156 return hasProperty; in HasNamedProperty()
/base/notification/common_event_service/interfaces/kits/napi/common_event/src/
Dcommon_event.cpp2089 bool hasProperty = false; in GetBundlenameByPublish() local
2091 NAPI_CALL(env, napi_has_named_property(env, value, "bundleName", &hasProperty)); in GetBundlenameByPublish()
2092 if (hasProperty) { in GetBundlenameByPublish()
2114 bool hasProperty = false; in GetDataByPublish() local
2116 NAPI_CALL(env, napi_has_named_property(env, value, "data", &hasProperty)); in GetDataByPublish()
2117 if (hasProperty) { in GetDataByPublish()
2143 bool hasProperty = false; in GetCodeByPublish() local
2145 NAPI_CALL(env, napi_has_named_property(env, value, "code", &hasProperty)); in GetCodeByPublish()
2146 if (hasProperty) { in GetCodeByPublish()
2169 bool hasProperty = false; in GetSubscriberPermissionsByPublish() local
[all …]
/base/location/frameworks/native/source/
Dnapi_util.cpp588 bool hasProperty = false; in JsObjectToString() local
589 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToString()
590 if (hasProperty) { in JsObjectToString()
618 bool hasProperty = false; in JsObjectToDouble() local
619 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToDouble()
620 if (hasProperty) { in JsObjectToDouble()
636 bool hasProperty = false; in JsObjectToInt() local
637 NAPI_CALL_BASE(env, napi_has_named_property(env, object, fieldStr, &hasProperty), COMMON_ERROR); in JsObjectToInt()
638 if (hasProperty) { in JsObjectToInt()
654 bool hasProperty = false; in JsObjectToInt64() local
[all …]
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/
Duser_auth_napi_helper.cpp446 bool hasProperty = false; in GetNamedProperty() local
447 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
448 if (!hasProperty) { in GetNamedProperty()
472 bool hasProperty = false; in HasNamedProperty() local
473 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
474 return hasProperty; in HasNamedProperty()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/
Dnapi_common_event.cpp2486 bool hasProperty = false; in GetBundlenameByPublish() local
2488 NAPI_CALL(env, napi_has_named_property(env, value, "bundleName", &hasProperty)); in GetBundlenameByPublish()
2489 if (hasProperty) { in GetBundlenameByPublish()
2511 bool hasProperty = false; in GetDataByPublish() local
2513 NAPI_CALL(env, napi_has_named_property(env, value, "data", &hasProperty)); in GetDataByPublish()
2514 if (hasProperty) { in GetDataByPublish()
2540 bool hasProperty = false; in GetCodeByPublish() local
2542 NAPI_CALL(env, napi_has_named_property(env, value, "code", &hasProperty)); in GetCodeByPublish()
2543 if (hasProperty) { in GetCodeByPublish()
2566 bool hasProperty = false; in GetSubscriberPermissionsByPublish() local
[all …]
/base/time/time_service/framework/js/napi/common/src/
Dnapi_utils.cpp186 bool hasProperty = false; in ParseParametersBySetTime() local
188 NAPI_CALL(env, napi_has_named_property(env, argv[0], "getTime", &hasProperty)); in ParseParametersBySetTime()
189 NAPI_ASSERTP(env, hasProperty, "type expected."); in ParseParametersBySetTime()
/base/request/request/frameworks/js/napi/src/
Dnapi_utils.cpp526 bool hasProperty = false; in HasNamedProperty() local
527 …NAPI_CALL_BASE(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty), fals… in HasNamedProperty()
528 return hasProperty; in HasNamedProperty()
534 bool hasProperty = false; in GetNamedProperty() local
535 NAPI_CALL(env, napi_has_named_property(env, object, propertyName.c_str(), &hasProperty)); in GetNamedProperty()
536 if (!hasProperty) { in GetNamedProperty()
/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/time/time_service/framework/js/napi/system_date_time/src/
Dnapi_system_date_time.cpp114 bool hasProperty = false; in SetDate() local
116 napi_has_named_property(env, argv[ARGV_FIRST], "getTime", &hasProperty); in SetDate()
117 … CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, setDateContext, hasProperty, "getTime failed", in SetDate()
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/include/
Dnapi_common_event.h436 const napi_env &env, const napi_value &argv, std::string &permission, bool &hasProperty);
439 const napi_env &env, const napi_value &argv, std::string &publisherDeviceId, bool &hasProperty);
443 …yByCreateSubscriber(const napi_env &env, const napi_value &argv, int &priority, bool &hasProperty);
/base/customization/enterprise_device_management/interfaces/kits/bundle_manager/src/
Dbundle_manager_addon.cpp265 bool hasProperty = false; in jsObjectToInstallParam() local
266 if (napi_has_named_property(env, object, "userId", &hasProperty) == napi_ok && !hasProperty) { in jsObjectToInstallParam()

12