/ohos5.0/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_request.cpp | 230 if (hasProperty) { in GetNotificationSmallIcon() 259 if (hasProperty) { in GetNotificationLargeIcon() 288 if (hasProperty) { in GetNotificationOverlayIcon() 320 if (hasProperty) { in GetNotificationSupportDisplayDevices() 365 if (hasProperty) { in GetNotificationSupportOperateDevices() 409 if (hasProperty) { in GetNotificationId() 492 if (hasProperty) { in GetNotificationIsOngoing() 517 if (hasProperty) { in GetNotificationIsUnremovable() 542 if (hasProperty) { in GetNotificationDeliveryTime() 567 if (hasProperty) { in GetNotificationtapDismissed() [all …]
|
H A D | notification_napi_convert_content.cpp | 127 if (!hasProperty) { in GetNotificationBasicContent() 187 if (hasProperty) { in GetNotificationBasicContentDetailed() 212 if (!hasProperty) { in GetNotificationLongTextContent() 254 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 274 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 294 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 325 if (!hasProperty) { in GetNotificationPictureContent() 364 if (!hasProperty) { in GetNotificationPictureContentDetailed() 383 if (!hasProperty) { in GetNotificationPictureContentDetailed() 402 if (!hasProperty) { in GetNotificationPictureContentDetailed() [all …]
|
H A D | notification_napi.cpp | 54 if (hasProperty) { in GetNotificationSubscriberInfo() 84 if (hasProperty) { in GetNotificationSubscriberInfo() 109 if (hasProperty) { in GetNotificationUserInput() 139 if (!hasProperty) { in GetNotificationUserInputByInputKey() 177 if (!hasProperty) { in GetNotificationUserInputByTag() 214 if (!hasProperty) { in GetNotificationUserInputByOptions() 266 if (hasProperty) { in GetNotificationUserInputByPermitMimeTypes() 310 if (hasProperty) { in GetNotificationUserInputByPermitFreeFormInput() 342 if (hasProperty) { in GetNotificationUserInputByEditType() 371 if (hasProperty) { in GetNotificationUserInputByAdditionalData() [all …]
|
H A D | notification_napi_convert_liveview.cpp | 42 if (!hasProperty) { in GetNotificationLocalLiveViewContent() 93 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 107 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 119 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 166 if (hasProperty) { in GetNotificationLocalLiveViewButton() 189 if (hasProperty) { in GetNotificationLocalLiveViewButton() 244 if (hasProperty) { in GetNotificationLocalLiveViewProgress() 257 if (hasProperty) { in GetNotificationLocalLiveViewProgress() 270 if (hasProperty) { in GetNotificationLocalLiveViewProgress() 310 if (hasProperty) { in GetNotificationLocalLiveViewTime() [all …]
|
H A D | notification_napi_convert_notification.cpp | 39 bool hasProperty = false; in GetNotificationRequestDistributedOptions() local 42 NAPI_CALL(env, napi_has_named_property(env, value, "distributedOption", &hasProperty)); in GetNotificationRequestDistributedOptions() 43 if (hasProperty) { in GetNotificationRequestDistributedOptions() 77 bool hasProperty = false; in GetNotificationIsDistributed() local 80 NAPI_CALL(env, napi_has_named_property(env, value, "isDistributed", &hasProperty)); in GetNotificationIsDistributed() 81 if (hasProperty) { in GetNotificationIsDistributed()
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_request.cpp | 754 if (hasProperty) { in GetNotificationSmallIcon() 782 if (hasProperty) { in GetNotificationLargeIcon() 811 if (hasProperty) { in GetNotificationOverlayIcon() 843 if (hasProperty) { in GetNotificationSupportDisplayDevices() 888 if (hasProperty) { in GetNotificationSupportOperateDevices() 931 if (hasProperty) { in GetNotificationId() 1012 if (hasProperty) { in GetNotificationIsOngoing() 1037 if (hasProperty) { in GetNotificationIsUnremovable() 1062 if (hasProperty) { in GetNotificationDeliveryTime() 1087 if (hasProperty) { in GetNotificationtapDismissed() [all …]
|
H A D | common_convert_content.cpp | 515 if (!hasProperty) { in GetNotificationBasicContent() 581 if (hasProperty) { in GetNotificationBasicContentDetailed() 606 if (!hasProperty) { in GetNotificationLongTextContent() 653 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 673 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 693 if (!hasProperty) { in GetNotificationLongTextContentDetailed() 724 if (!hasProperty) { in GetNotificationPictureContent() 767 if (!hasProperty) { in GetNotificationPictureContentDetailed() 1041 if (hasProperty) { in GetMessageUserByCustom() 1284 if (hasProperty) { in GetConversationalMessageOtherInfo() [all …]
|
H A D | common.cpp | 304 if (hasProperty) { in GetNotificationSubscriberInfo() 334 if (hasProperty) { in GetNotificationSubscriberInfo() 348 if (hasProperty) { in GetNotificationSubscriberInfo() 380 if (hasProperty) { in GetNotificationUserInput() 537 if (hasProperty) { in GetNotificationUserInputByPermitMimeTypes() 581 if (hasProperty) { in GetNotificationUserInputByPermitFreeFormInput() 613 if (hasProperty) { in GetNotificationUserInputByEditType() 642 if (hasProperty) { in GetNotificationUserInputByAdditionalData() 767 if (hasProperty) { in GetNotificationSlotByString() 784 if (hasProperty) { in GetNotificationSlotByString() [all …]
|
H A D | common_convert_liveview.cpp | 449 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 463 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 476 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 489 if (hasProperty) { in GetNotificationLocalLiveViewCapsule() 587 if (hasProperty) { in GetNotificationLocalLiveViewButton() 610 if (hasProperty) { in GetNotificationLocalLiveViewButton() 638 if (hasProperty) { in GetNotificationLocalLiveViewButton() 693 if (hasProperty) { in GetNotificationLocalLiveViewProgress() 706 if (hasProperty) { in GetNotificationLocalLiveViewProgress() 719 if (hasProperty) { in GetNotificationLocalLiveViewProgress() [all …]
|
H A D | disturb_mode.cpp | 32 bool hasProperty = false; in GetDoNotDisturbDate() local 35 NAPI_CALL(env, napi_has_named_property(env, argv, "type", &hasProperty)); in GetDoNotDisturbDate() 36 if (!hasProperty) { in GetDoNotDisturbDate() 61 if (!hasProperty) { in GetDoNotDisturbDate() 80 NAPI_CALL(env, napi_has_named_property(env, argv, "end", &hasProperty)); in GetDoNotDisturbDate() 81 if (!hasProperty) { in GetDoNotDisturbDate() 106 bool hasProperty = false; in GetDoNotDisturbProfile() local 108 if (!hasProperty) { in GetDoNotDisturbProfile() 129 if (!hasProperty) { in GetDoNotDisturbProfile() 149 bool hasProperty = false; in AnalyseTrustlist() local [all …]
|
H A D | common_convert_notification.cpp | 173 bool hasProperty = false; in GetNotificationRequestDistributedOptions() local 176 NAPI_CALL(env, napi_has_named_property(env, value, "distributedOption", &hasProperty)); in GetNotificationRequestDistributedOptions() 177 if (hasProperty) { in GetNotificationRequestDistributedOptions() 211 bool hasProperty = false; in GetNotificationIsDistributed() local 214 NAPI_CALL(env, napi_has_named_property(env, value, "isDistributed", &hasProperty)); in GetNotificationIsDistributed() 215 if (hasProperty) { in GetNotificationIsDistributed()
|
H A D | subscribe.cpp | 1121 if (hasProperty) { in GetNotificationSubscriber() 1136 if (hasProperty) { in GetNotificationSubscriber() 1151 if (hasProperty) { in GetNotificationSubscriber() 1166 if (hasProperty) { in GetNotificationSubscriber() 1181 if (hasProperty) { in GetNotificationSubscriber() 1196 if (hasProperty) { in GetNotificationSubscriber() 1211 if (hasProperty) { in GetNotificationSubscriber() 1227 if (hasProperty) { in GetNotificationSubscriber() 1243 if (hasProperty) { in GetNotificationSubscriber() 1259 if (hasProperty) { in GetNotificationSubscriber() [all …]
|
/ohos5.0/base/location/frameworks/js/napi/source/ |
H A D | location_napi_system.cpp | 68 if (hasProperty) { in GetAllCallback() 72 hasProperty = false; in GetAllCallback() 74 if (hasProperty) { in GetAllCallback() 78 hasProperty = false; in GetAllCallback() 80 if (hasProperty) { in GetAllCallback() 106 if (hasProperty) { in GetLocation() 112 if (hasProperty) { in GetLocation() 169 if (hasProperty) { in GetLocationType() 174 if (hasProperty) { in GetLocationType() 179 if (hasProperty) { in GetLocationType() [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/interfaces/kits/napi/src/ |
H A D | napi_accessibility_utils.cpp | 986 if (hasProperty) { in ConvertIntJSToNAPI() 998 if (hasProperty) { in ConvertBoolJSToNAPI() 1010 if (hasProperty) { in ConvertStringJSToNAPI() 1022 if (hasProperty) { in ConvertStringArrayJSToNAPI() 1102 if (hasProperty) { in ConvertEventInfoJSToNAPIPart1() 1114 if (hasProperty) { in ConvertEventInfoJSToNAPIPart1() 1121 if (hasProperty) { in ConvertEventInfoJSToNAPIPart1() 1142 if (hasProperty) { in ConvertEventInfoJSToNAPIPart2() 1148 if (hasProperty) { in ConvertEventInfoJSToNAPIPart2() 1154 if (hasProperty) { in ConvertEventInfoJSToNAPIPart2() [all …]
|
/ohos5.0/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | napi_util.cpp | 56 bool hasProperty = false; in JsObjectToString() local 58 if (hasProperty) { in JsObjectToString() 84 bool hasProperty = false; in JsObjectGetProperty() local 86 if (hasProperty) { in JsObjectGetProperty() 91 return hasProperty; in JsObjectGetProperty() 96 bool hasProperty = false; in JsObjectToBool() local 98 if (hasProperty) { in JsObjectToBool() 114 bool hasProperty = false; in JsObjectToInt() local 116 if (hasProperty) { in JsObjectToInt() 133 bool hasProperty = false; in JsObjectToUint() local [all …]
|
/ohos5.0/base/customization/enterprise_device_management/interfaces/kits/common/src/ |
H A D | napi_edm_common.cpp | 282 bool hasProperty = false; in JsObjectToInt() local 290 if (hasProperty) { in JsObjectToInt() 299 bool hasProperty = false; in JsObjectToUint() local 307 if (hasProperty) { in JsObjectToUint() 316 bool hasProperty = false; in JsObjectToLong() local 324 if (hasProperty) { in JsObjectToLong() 333 bool hasProperty = false; in JsObjectToBool() local 341 if (hasProperty) { in JsObjectToBool() 359 if (hasProperty) { in JsObjectToString() 380 if (hasProperty) { in JsObjectToCharArray() [all …]
|
/ohos5.0/base/notification/common_event_service/interfaces/kits/napi/common_event/src/ |
H A D | common_event_parse.cpp | 613 if (hasProperty) { in GetBundlenameByPublish() 638 if (hasProperty) { in GetDataByPublish() 667 if (hasProperty) { in GetCodeByPublish() 693 if (hasProperty) { in GetSubscriberPermissionsByPublish() 733 if (hasProperty) { in GetIsOrderedByPublish() 755 if (hasProperty) { in GetIsStickyByPublish() 777 if (hasProperty) { in GetParametersByPublish() 1021 if (!hasProperty) { in GetEventsByCreateSubscriber() 1066 if (hasProperty) { in GetPublisherPermissionByCreateSubscriber() 1093 if (hasProperty) { in GetPublisherDeviceIdByCreateSubscriber() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/js/napi/src/ |
H A D | wifi_napi_utils.cpp | 63 bool hasProperty = false; in JsObjectToString() local 64 NAPI_CALL(env, napi_has_named_property(env, object, fieldStr, &hasProperty)); in JsObjectToString() 65 if (hasProperty) { in JsObjectToString() 102 bool hasProperty = false; in JsObjectToInt() local 103 NAPI_CALL(env, napi_has_named_property(env, object, fieldStr, &hasProperty)); in JsObjectToInt() 104 if (hasProperty) { in JsObjectToInt() 120 bool hasProperty = false; in JsObjectToUint() local 122 if (hasProperty) { in JsObjectToUint() 138 bool hasProperty = false; in JsObjectToBool() local 140 if (hasProperty) { in JsObjectToBool() [all …]
|
/ohos5.0/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/ |
H A D | common_event_parse.cpp | 748 if (hasProperty) { in GetBundlenameByPublish() 775 if (hasProperty) { in GetDataByPublish() 809 if (hasProperty) { in GetCodeByPublish() 837 if (hasProperty) { in GetSubscriberPermissionsByPublish() 880 if (hasProperty) { in GetIsOrderedByPublish() 904 if (hasProperty) { in GetIsStickyByPublish() 928 if (hasProperty) { in GetParametersByPublish() 1240 if (!hasProperty) { in GetEventsByCreateSubscriber() 1293 if (hasProperty) { in GetPublisherPermissionByCreateSubscriber() 1322 if (hasProperty) { in GetPublisherDeviceIdByCreateSubscriber() [all …]
|
/ohos5.0/base/time/time_service/framework/js/napi/system_timer/src/ |
H A D | napi_system_timer.cpp | 182 bool hasProperty = false; in GetTimerOptions() local 185 napi_has_named_property(env, value, "type", &hasProperty); in GetTimerOptions() 186 CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, in GetTimerOptions() 192 napi_has_named_property(env, value, "repeat", &hasProperty); in GetTimerOptions() 193 CHECK_ARGS_RETURN_VOID(TIME_MODULE_JS_NAPI, context, hasProperty, in GetTimerOptions() 199 napi_has_named_property(env, value, "interval", &hasProperty); in GetTimerOptions() 200 if (hasProperty) { in GetTimerOptions() 206 napi_has_named_property(env, value, "wantAgent", &hasProperty); in GetTimerOptions() 207 if (hasProperty) { in GetTimerOptions() 213 napi_has_named_property(env, value, "callback", &hasProperty); in GetTimerOptions() [all …]
|
/ohos5.0/base/global/i18n/interfaces/js/kits/src/ |
H A D | variable_convertor.cpp | 46 bool hasProperty = false; in GetOptionValue() local 47 … napi_status propStatus = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetOptionValue() 48 if (propStatus == napi_ok && hasProperty) { in GetOptionValue() 74 bool hasProperty = false; in GetBoolOptionValue() local 75 status = napi_has_named_property(env, options, optionName.c_str(), &hasProperty); in GetBoolOptionValue() 76 if (status != napi_ok || !hasProperty) { in GetBoolOptionValue()
|
/ohos5.0/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | native_node_napi.cpp | 37 bool hasProperty = false; in OH_ArkUI_GetNodeHandleFromNapiValue() local 38 auto result = napi_has_named_property(env, value, "nodePtr_", &hasProperty); in OH_ArkUI_GetNodeHandleFromNapiValue() 40 if (result == napi_ok && hasProperty) { in OH_ArkUI_GetNodeHandleFromNapiValue() 65 result = napi_has_named_property(env, value, "builderNode_", &hasProperty); in OH_ArkUI_GetNodeHandleFromNapiValue() 66 if (result == napi_ok && hasProperty) { in OH_ArkUI_GetNodeHandleFromNapiValue() 120 bool hasProperty = false; in OH_ArkUI_GetContextFromNapiValue() local 121 auto result = napi_has_named_property(env, value, "instanceId_", &hasProperty); in OH_ArkUI_GetContextFromNapiValue() 122 if (result != napi_ok || !hasProperty) { in OH_ArkUI_GetContextFromNapiValue() 151 bool hasProperty = false; in OH_ArkUI_GetNodeContentFromNapiValue() local 152 auto result = napi_has_named_property(env, value, "nativePtr_", &hasProperty); in OH_ArkUI_GetNodeContentFromNapiValue() [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/interfaces/kits/js4.0/src/ |
H A D | dm_native_util.cpp | 49 bool hasProperty = false; in JsObjectToString() local 50 … NAPI_CALL_RETURN_VOID(env, napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty)); in JsObjectToString() 51 if (hasProperty) { in JsObjectToString() 70 bool hasProperty = false; in JsObjectToBool() local 71 … NAPI_CALL_RETURN_VOID(env, napi_has_named_property(env, object, fieldStr.c_str(), &hasProperty)); in JsObjectToBool() 72 if (hasProperty) { in JsObjectToBool() 90 bool hasProperty = false; in JsObjectToInt() local 92 if (hasProperty) { in JsObjectToInt() 349 bool hasProperty = false; in JsToDiscoverTargetType() local 350 napi_has_named_property(env, object, "discoverTargetType", &hasProperty); in JsToDiscoverTargetType() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | use-jsvm-about-property.md | 216 {"hasProperty", nullptr, method++, nullptr, nullptr, nullptr, JSVM_DEFAULT}, 222 hasProperty(obj, "data") 223 hasProperty(obj, 0) 229 // hasProperty(obj, "data")输出 231 // hasProperty(obj, 0)输出 320 // 检查对象是否具有指定属性,结果存储在hasProperty中 321 bool hasProperty; 331 OH_JSVM_GetBoolean(env, hasProperty, &result); 487 // 检查对象是否具有指定命名的属性,并将结果存储在hasProperty中 488 bool hasProperty = false; [all …]
|
/ohos5.0/foundation/communication/bluetooth/frameworks/js/napi/src/common/ |
H A D | napi_bluetooth_utils.cpp | 535 bool hasProperty = false; in ParseNumberParams() local 537 if (hasProperty) { in ParseNumberParams() 545 outExist = hasProperty; in ParseNumberParams() 581 bool hasProperty = false; in ParseBooleanParams() local 583 if (hasProperty) { in ParseBooleanParams() 594 outExist = hasProperty; in ParseBooleanParams() 602 bool hasProperty = false; in ParseStringParams() local 604 if (hasProperty) { in ParseStringParams() 618 outExist = hasProperty; in ParseStringParams() 627 if (hasProperty) { in ParseArrayBufferParams() [all …]
|