/base/location/frameworks/js/napi/source/ |
D | location_napi_system.cpp | 63 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/ |
D | common.cpp | 1439 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 …]
|
D | subscribe.cpp | 902 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 …]
|
D | disturb_mode.cpp | 28 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()
|
D | publish.cpp | 174 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/ |
D | napi_util.cpp | 56 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 …]
|
D | usb_info.cpp | 244 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/ |
D | napi_system_timer.cpp | 187 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/ |
D | napi_utils.cpp | 42 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/ |
D | napi_util.cpp | 184 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/ |
D | reminder_common.cpp | 161 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/ |
D | common_event.cpp | 2088 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/ |
D | napi_common_event.cpp | 2082 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/ |
D | napi_util.cpp | 561 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/ |
D | napi_utils.cpp | 209 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/ |
D | js_util.cpp | 247 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/ |
D | napi_system_date_time.cpp | 92 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/ |
D | common_event.h | 415 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/ |
D | napi_common_event.h | 415 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/ |
D | intl_addon.cpp | 175 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()
|
D | i18n_addon.cpp | 226 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/ |
D | napi_radio.cpp | 659 bool hasProperty = false; in HasNamedPropertyType() local 660 napi_has_named_property(env, object, propertyName.c_str(), &hasProperty); in HasNamedPropertyType() 661 if (hasProperty) { in HasNamedPropertyType()
|