/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/ringtone_player/ |
H A D | audio_renderer_info_napi.cpp | 133 napi_value jsResult = nullptr; in GetContentType() local 134 napi_get_undefined(env, &jsResult); in GetContentType() 139 return jsResult; in GetContentType() 145 status = napi_create_int32(env, contentType, &jsResult); in GetContentType() 147 return jsResult; in GetContentType() 151 return jsResult; in GetContentType() 162 napi_value jsResult = nullptr; in SetContentType() local 163 napi_get_undefined(env, &jsResult); in SetContentType() 168 return jsResult; in SetContentType() 176 return jsResult; in SetContentType() 195 napi_value jsResult = nullptr; GetStreamUsage() local 224 napi_value jsResult = nullptr; SetStreamUsage() local 259 napi_value jsResult = nullptr; GetRendererFlags() local 288 napi_value jsResult = nullptr; SetRendererFlags() local [all...] |
H A D | ringtone_options_napi.cpp | 135 napi_value jsResult = nullptr; in GetVolume() local 136 napi_get_undefined(env, &jsResult); in GetVolume() 141 return jsResult; in GetVolume() 146 status = napi_create_double(env, ringtoneOptionsNapi->volume_, &jsResult); in GetVolume() 148 return jsResult; in GetVolume() 152 return jsResult; in GetVolume() 163 napi_value jsResult = nullptr; in SetVolume() local 164 napi_get_undefined(env, &jsResult); in SetVolume() 169 return jsResult; in SetVolume() 177 return jsResult; in SetVolume() 195 napi_value jsResult = nullptr; GetLoop() local 223 napi_value jsResult = nullptr; SetLoop() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/system_tone_player/ |
H A D | system_tone_options_napi.cpp | 134 napi_value jsResult = nullptr; in IsAudioMute() local 135 napi_get_undefined(env, &jsResult); in IsAudioMute() 140 return jsResult; in IsAudioMute() 145 status = napi_get_boolean(env, systemToneOptionsNapi->muteAudio_, &jsResult); in IsAudioMute() 147 return jsResult; in IsAudioMute() 151 return jsResult; in IsAudioMute() 162 napi_value jsResult = nullptr; in SetAudioMute() local 163 napi_get_undefined(env, &jsResult); in SetAudioMute() 168 return jsResult; in SetAudioMute() 176 return jsResult; in SetAudioMute() 194 napi_value jsResult = nullptr; IsHapticsMute() local 222 napi_value jsResult = nullptr; SetHapticsMute() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/audio_haptic/src/audio_haptic_player/ |
H A D | audio_haptic_player_options_napi.cpp | 136 napi_value jsResult = nullptr; in IsAudioMute() local 137 napi_get_undefined(env, &jsResult); in IsAudioMute() 142 return jsResult; in IsAudioMute() 147 status = napi_get_boolean(env, audioHapticPlayerOptionsNapi->muteAudio_, &jsResult); in IsAudioMute() 149 return jsResult; in IsAudioMute() 153 return jsResult; in IsAudioMute() 164 napi_value jsResult = nullptr; in SetAudioMute() local 165 napi_get_undefined(env, &jsResult); in SetAudioMute() 170 return jsResult; in SetAudioMute() 178 return jsResult; in SetAudioMute() 196 napi_value jsResult = nullptr; IsHapticsMute() local 224 napi_value jsResult = nullptr; SetHapticsMute() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/tone_haptics_attrs/ |
H A D | tone_haptics_settings_napi.cpp | 123 napi_value jsResult = nullptr; in GetMode() local 124 napi_get_undefined(env, &jsResult); in GetMode() 129 return jsResult; in GetMode() 135 return jsResult; in GetMode() 139 &jsResult); in GetMode() 142 return jsResult; in GetMode() 144 return jsResult; in GetMode() 155 napi_value jsResult = nullptr; in SetMode() local 157 napi_get_undefined(env, &jsResult); in SetMode() 162 return jsResult; in SetMode() 193 napi_value jsResult = nullptr; GetHapticsUri() local 226 napi_value jsResult = nullptr; SetHapticsUri() local [all...] |
/foundation/multimedia/audio_framework/frameworks/js/napi/common/ |
H A D | napi_audio_enum.cpp | 811 napi_value jsResult = nullptr; in GetAudioSampleFormat() local 814 CHECK_AND_RETURN_RET_LOG(napiAudioEnum != nullptr, jsResult, "napiAudioEnum is nullptr"); in GetAudioSampleFormat() 815 CHECK_AND_RETURN_RET_LOG(napiAudioEnum->audioParameters_ != nullptr, jsResult, "audioParameters_ is nullptr"); in GetAudioSampleFormat() 817 napi_status status = NapiParamUtils::SetValueInt32(env, static_cast<int32_t>(audioSampleFormat), jsResult); in GetAudioSampleFormat() 818 CHECK_AND_RETURN_RET_LOG(status == napi_ok, jsResult, "GetAudioSampleFormat fail"); in GetAudioSampleFormat() 819 return jsResult; in GetAudioSampleFormat() 824 napi_value jsResult = nullptr; in SetAudioSampleFormat() local 826 NapiAudioEnum *napiAudioEnum = SetValue(env, info, args, jsResult); in SetAudioSampleFormat() 829 CHECK_AND_RETURN_RET_LOG(status == napi_ok, jsResult, "GetValueInt32 fail"); in SetAudioSampleFormat() 831 CHECK_AND_RETURN_RET_LOG(napiAudioEnum != nullptr, jsResult, "napiAudioEnu in SetAudioSampleFormat() 841 napi_value jsResult = nullptr; GetAudioChannel() local 855 napi_value jsResult = nullptr; SetAudioChannel() local 872 napi_value jsResult = nullptr; GetAudioSamplingRate() local 886 napi_value jsResult = nullptr; SetAudioSamplingRate() local 903 napi_value jsResult = nullptr; GetAudioEncodingType() local 917 napi_value jsResult = nullptr; SetAudioEncodingType() local 934 napi_value jsResult = nullptr; GetContentType() local 948 napi_value jsResult = nullptr; SetContentType() local 965 napi_value jsResult = nullptr; GetStreamUsage() local 979 napi_value jsResult = nullptr; SetStreamUsage() local 996 napi_value jsResult = nullptr; GetDeviceRole() local 1010 napi_value jsResult = nullptr; SetDeviceRole() local 1027 napi_value jsResult = nullptr; GetDeviceType() local 1041 napi_value jsResult = nullptr; SetDeviceType() local [all...] |
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | album_napi.cpp | 234 napi_value jsResult = nullptr; in JSGetAlbumId() local 250 status = napi_create_int32(env, id, &jsResult); in JSGetAlbumId() 252 return jsResult; in JSGetAlbumId() 262 napi_value jsResult = nullptr; in JSGetAlbumName() local 277 status = napi_create_string_utf8(env, name.c_str(), NAPI_AUTO_LENGTH, &jsResult); in JSGetAlbumName() 279 return jsResult; in JSGetAlbumName() 289 napi_value jsResult = nullptr; in JSAlbumNameSetter() local 298 napi_get_undefined(env, &jsResult); in JSAlbumNameSetter() 304 return jsResult; in JSAlbumNameSetter() 315 return jsResult; in JSAlbumNameSetter() 320 napi_value jsResult = nullptr; JSGetAlbumUri() local 347 napi_value jsResult = nullptr; JSGetAlbumDateModified() local 374 napi_value jsResult = nullptr; JSGetCount() local 399 napi_value jsResult = nullptr; JSGetAlbumRelativePath() local 426 napi_value jsResult = nullptr; JSGetCoverUri() local 454 napi_value jsResult = nullptr; JSSetAlbumPath() local 486 napi_value jsResult = nullptr; JSGetAlbumPath() local 514 napi_value jsResult = nullptr; JSGetAlbumVirtual() local [all...] |
H A D | smart_album_napi.cpp | 233 napi_value jsResult = nullptr; in JSGetSmartAlbumId() local 249 status = napi_create_int32(env, id, &jsResult); in JSGetSmartAlbumId() 251 return jsResult; in JSGetSmartAlbumId() 261 napi_value jsResult = nullptr; in JSGetSmartAlbumName() local 276 status = napi_create_string_utf8(env, name.c_str(), NAPI_AUTO_LENGTH, &jsResult); in JSGetSmartAlbumName() 278 return jsResult; in JSGetSmartAlbumName() 288 napi_value jsResult = nullptr; in JSSmartAlbumNameSetter() local 297 napi_get_undefined(env, &jsResult); in JSSmartAlbumNameSetter() 303 return jsResult; in JSSmartAlbumNameSetter() 313 return jsResult; in JSSmartAlbumNameSetter() 319 napi_value jsResult = nullptr; JSGetSmartAlbumTag() local 347 napi_value jsResult = nullptr; JSGetSmartAlbumCapacity() local 375 napi_value jsResult = nullptr; JSGetSmartAlbumCategoryId() local 403 napi_value jsResult = nullptr; JSGetSmartAlbumCategoryName() local 431 napi_value jsResult = nullptr; JSGetSmartAlbumCoverUri() local 458 napi_value jsResult = nullptr; JSSmartAlbumCoverUriSetter() local 504 napi_value jsResult = nullptr; JSGetSmartAlbumUri() local 529 napi_value jsResult = nullptr; JSGetSmartAlbumDateModified() local 555 napi_value jsResult = nullptr; JSGetSmartAlbumType() local 581 napi_value jsResult = nullptr; JSGetSmartAlbumDescription() local 593 napi_value jsResult = nullptr; JSSmartAlbumDescriptionSetter() local 639 napi_value jsResult = nullptr; JSGetSmartAlbumExpiredTime() local [all...] |
H A D | photo_album_napi.cpp | 315 napi_value jsResult = nullptr; in JSGetAlbumName() local 316 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetAlbumName().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSGetAlbumName() 318 return jsResult; in JSGetAlbumName() 326 napi_value jsResult = nullptr; in JSPhotoAccessGetAlbumName() local 327 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetAlbumName().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSPhotoAccessGetAlbumName() 329 return jsResult; in JSPhotoAccessGetAlbumName() 337 napi_value jsResult = nullptr; in JSGetAlbumUri() local 338 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetAlbumUri().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSGetAlbumUri() 340 return jsResult; in JSGetAlbumUri() 348 napi_value jsResult in JSPhotoAccessGetAlbumUri() local 359 napi_value jsResult = nullptr; JSGetAlbumCount() local 369 napi_value jsResult = nullptr; JSPhotoAccessGetAlbumCount() local 379 napi_value jsResult = nullptr; JSPhotoAccessGetAlbumImageCount() local 389 napi_value jsResult = nullptr; JSPhotoAccessGetAlbumVideoCount() local 399 napi_value jsResult = nullptr; JSGetPhotoAlbumType() local 409 napi_value jsResult = nullptr; JSGetPhotoAlbumSubType() local 419 napi_value jsResult = nullptr; JSGetCoverUri() local 430 napi_value jsResult = nullptr; JSGetLatitude() local 440 napi_value jsResult = nullptr; JSGetLongitude() local 517 napi_value jsResult = nullptr; JSGetDateModified() local [all...] |
H A D | file_asset_napi.cpp | 531 napi_value jsResult = nullptr; in JSGetFileId() local 536 napi_get_undefined(env, &jsResult); in JSGetFileId() 540 return jsResult; in JSGetFileId() 553 napi_create_int64(env, virtualId, &jsResult); in JSGetFileId() 555 napi_create_int32(env, id, &jsResult); in JSGetFileId() 559 return jsResult; in JSGetFileId() 567 napi_value jsResult = nullptr; in JSGetFileUri() local 568 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetFileUri().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSGetFileUri() 570 return jsResult; in JSGetFileUri() 576 napi_value jsResult in JSGetFilePath() local 600 napi_value jsResult = nullptr; JSGetFileDisplayName() local 660 napi_value jsResult = nullptr; JSGetMimeType() local 684 napi_value jsResult = nullptr; JSGetMediaType() local 708 napi_value jsResult = nullptr; JSGetTitle() local 766 napi_value jsResult = nullptr; JSGetSize() local 790 napi_value jsResult = nullptr; JSGetAlbumId() local 814 napi_value jsResult = nullptr; JSGetAlbumName() local 838 napi_value jsResult = nullptr; JSGetCount() local 860 napi_value jsResult = nullptr; JSGetDateAdded() local 884 napi_value jsResult = nullptr; JSGetDateTrashed() local 908 napi_value jsResult = nullptr; JSGetDateModified() local 932 napi_value jsResult = nullptr; JSGetOrientation() local 986 napi_value jsResult = nullptr; JSGetWidth() local 1010 napi_value jsResult = nullptr; JSGetHeight() local 1034 napi_value jsResult = nullptr; JSGetRelativePath() local 1085 napi_value jsResult = nullptr; JSGetAlbum() local 1109 napi_value jsResult = nullptr; JSGetArtist() local 1133 napi_value jsResult = nullptr; JSGetDuration() local 1157 napi_value jsResult = nullptr; JSParent() local 1177 napi_value jsResult = nullptr; JSGetAlbumUri() local 1197 napi_value jsResult = nullptr; JSGetDateTaken() local 2770 napi_value jsResult = nullptr; HandleGettingSpecialKey() local 2838 napi_value jsResult = nullptr; HandleGettingDetailTimeKey() local 2870 napi_value jsResult = nullptr; HandleDateTransitionKey() local 2909 napi_value jsResult = nullptr; UserFileMgrGet() local 2987 napi_value jsResult = nullptr; UserFileMgrSet() local 4102 napi_value jsResult = nullptr; PhotoAccessHelperCancelPhotoRequest() local [all...] |
H A D | fetch_file_result_napi.cpp | 367 napi_value jsResult = nullptr; in JSGetCount() local 375 napi_get_undefined(env, &jsResult); in JSGetCount() 405 napi_create_int32(env, count, &jsResult); in JSGetCount() 411 return jsResult; in JSGetCount() 417 napi_value jsResult = nullptr; in JSIsAfterLast() local 425 napi_get_undefined(env, &jsResult); in JSIsAfterLast() 451 napi_get_boolean(env, isAfterLast, &jsResult); in JSIsAfterLast() 457 return jsResult; in JSIsAfterLast() 889 napi_value jsResult = nullptr; in JSClose() local 896 napi_get_undefined(env, &jsResult); in JSClose() [all...] |
/foundation/multimedia/media_library/frameworks/js/src/sendable/ |
H A D | sendable_photo_album_napi.cpp | 283 napi_value jsResult = nullptr; in JSPhotoAccessGetAlbumName() local 284 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetAlbumName().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSPhotoAccessGetAlbumName() 286 return jsResult; in JSPhotoAccessGetAlbumName() 294 napi_value jsResult = nullptr; in JSPhotoAccessGetAlbumUri() local 295 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetAlbumUri().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSPhotoAccessGetAlbumUri() 297 return jsResult; in JSPhotoAccessGetAlbumUri() 305 napi_value jsResult = nullptr; in JSPhotoAccessGetAlbumCount() local 306 CHECK_ARGS(env, napi_create_int32(env, obj->GetCount(), &jsResult), JS_INNER_FAIL); in JSPhotoAccessGetAlbumCount() 307 return jsResult; in JSPhotoAccessGetAlbumCount() 315 napi_value jsResult in JSPhotoAccessGetAlbumImageCount() local 325 napi_value jsResult = nullptr; JSPhotoAccessGetAlbumVideoCount() local 335 napi_value jsResult = nullptr; JSGetPhotoAlbumType() local 345 napi_value jsResult = nullptr; JSGetPhotoAlbumSubType() local 355 napi_value jsResult = nullptr; JSGetCoverUri() local [all...] |
H A D | sendable_file_asset_napi.cpp | 347 napi_value jsResult = nullptr; in JSGetFileUri() local 348 CHECK_ARGS(env, napi_create_string_utf8(env, obj->GetFileUri().c_str(), NAPI_AUTO_LENGTH, &jsResult), in JSGetFileUri() 350 return jsResult; in JSGetFileUri() 356 napi_value jsResult = nullptr; in JSGetFilePath() local 361 napi_get_undefined(env, &jsResult); in JSGetFilePath() 365 return jsResult; in JSGetFilePath() 371 napi_create_string_utf8(env, path.c_str(), NAPI_AUTO_LENGTH, &jsResult); in JSGetFilePath() 374 return jsResult; in JSGetFilePath() 380 napi_value jsResult = nullptr; in JSGetFileDisplayName() local 385 napi_get_undefined(env, &jsResult); in JSGetFileDisplayName() 440 napi_value jsResult = nullptr; JSGetMediaType() local 930 napi_value jsResult = nullptr; HandleGettingSpecialKey() local 998 napi_value jsResult = nullptr; HandleGettingDetailTimeKey() local 1030 napi_value jsResult = nullptr; HandleDateTransitionKey() local 1069 napi_value jsResult = nullptr; PhotoAccessHelperGet() local 1147 napi_value jsResult = nullptr; PhotoAccessHelperSet() local [all...] |
H A D | sendable_fetch_file_result_napi.cpp | 328 napi_value jsResult = nullptr; in JSGetCount() local 336 napi_get_undefined(env, &jsResult); in JSGetCount() 366 napi_create_int32(env, count, &jsResult); in JSGetCount() 372 return jsResult; in JSGetCount() 696 napi_value jsResult = nullptr; in JSClose() local 703 napi_get_undefined(env, &jsResult); in JSClose() 707 return jsResult; in JSClose() 715 napi_create_int32(env, E_SUCCESS, &jsResult); in JSClose() 721 return jsResult; in JSClose() 877 napi_value jsResult in JSIsAfterLast() local [all...] |
/foundation/multimedia/player_framework/frameworks/js/player/ |
H A D | audio_player_napi.cpp | 273 napi_value jsResult = nullptr; in GetSrc() local 286 status = napi_create_string_utf8(env, player->uri_.c_str(), NAPI_AUTO_LENGTH, &jsResult); in GetSrc() 290 return jsResult; in GetSrc() 346 napi_value jsResult = nullptr; in GetFdSrc() local 359 status = napi_create_object(env, &jsResult); in GetFdSrc() 360 CHECK_AND_RETURN_RET_LOG(status == napi_ok, undefinedResult, "create jsResult object error"); in GetFdSrc() 362 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt32(env, jsResult, "fd", player->rawFd_.fd) == true, nullptr); in GetFdSrc() 363 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt64(env, jsResult, "offset", player->rawFd_.offset) == true, in GetFdSrc() 365 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt64(env, jsResult, "length", player->rawFd_.length) == true, in GetFdSrc() 369 return jsResult; in GetFdSrc() 708 napi_value jsResult = nullptr; GetLoop() local 760 napi_value jsResult = nullptr; GetCurrentTime() local 771 napi_value jsResult = nullptr; GetDuration() local 834 napi_value jsResult = nullptr; GetState() local 988 napi_value jsResult = nullptr; GetAudioInterruptMode() local [all...] |
H A D | video_player_napi.cpp | 297 napi_value jsResult = nullptr; in GetUrl() local 298 status = napi_create_string_utf8(env, jsPlayer->url_.c_str(), NAPI_AUTO_LENGTH, &jsResult); in GetUrl() 302 return jsResult; in GetUrl() 372 napi_value jsResult = nullptr; in GetFdSrc() local 373 status = napi_create_object(env, &jsResult); in GetFdSrc() 374 CHECK_AND_RETURN_RET_LOG(status == napi_ok, undefinedResult, "create jsResult object error"); in GetFdSrc() 376 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt32(env, jsResult, "fd", jsPlayer->rawFd_.fd) == true, nullptr); in GetFdSrc() 377 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt64(env, jsResult, "offset", jsPlayer->rawFd_.offset) == true, in GetFdSrc() 379 CHECK_AND_RETURN_RET(CommonNapi::AddNumberPropInt64(env, jsResult, "length", jsPlayer->rawFd_.length) == true, in GetFdSrc() 383 return jsResult; in GetFdSrc() 1108 napi_value jsResult = nullptr; GetLoop() local 1186 napi_value jsResult = nullptr; GetVideoScaleType() local 1217 napi_value jsResult = nullptr; GetCurrentTime() local 1248 napi_value jsResult = nullptr; GetDuration() local 1277 napi_value jsResult = nullptr; GetState() local 1304 napi_value jsResult = nullptr; GetWidth() local 1331 napi_value jsResult = nullptr; GetHeight() local 1401 napi_value jsResult = nullptr; GetAudioInterruptMode() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_client_impl.cpp | 103 bool jsResult = false; in OnJsCommonDialog() local 107 [&webClientImpl, dialogEventType, ¶m, &jsResult] { in OnJsCommonDialog() 113 jsResult = delegate->OnCommonDialog(param, dialogEventType); in OnJsCommonDialog() 116 return jsResult; in OnJsCommonDialog() 497 bool jsResult = false; in OnFileSelectorShow() local 505 [webClient = this, ¶m, &jsResult] { in OnFileSelectorShow() 511 jsResult = delegate->OnFileSelectorShow(param); in OnFileSelectorShow() 514 return jsResult; in OnFileSelectorShow() 564 bool jsResult = false; in OnHttpAuthRequestByJS() local 569 [webClient = this, ¶m, &jsResult] { in OnHttpAuthRequestByJS() 588 bool jsResult = false; OnSslErrorRequestByJS() local 618 bool jsResult = false; OnAllSslErrorRequestByJS() local 649 bool jsResult = false; OnSslSelectCertRequestByJS() local 694 bool jsResult = false; RunContextMenu() local 1286 bool jsResult = false; OnSslErrorRequestByJSV2() local [all...] |
/foundation/arkui/ace_engine/interfaces/napi/kits/plugincomponent/ |
H A D | js_plugin_callback.cpp | 201 napi_value jsResult = nullptr; in OnPushEventInner() local 230 napi_call_function(cbInfo_.env, undefined, jsCallback, ACE_ARGS_FOUR, callbackParam, &jsResult); in OnPushEventInner() 273 napi_value jsResult = nullptr; in OnRequestEventInner() local 292 napi_call_function(cbInfo_.env, undefined, jsCallback, ACE_ARGS_THREE, callbackParam, &jsResult); in OnRequestEventInner() 294 if (AceIsTypeForNapiValue(cbInfo_.env, jsResult, napi_object)) { in OnRequestEventInner() 295 SendRequestEventResult(jsResult); in OnRequestEventInner() 338 napi_value jsResult = nullptr; in OnRequestCallBackInner() local 355 napi_call_function(cbInfo_.env, undefined, jsCallback, ACE_ARGS_TWO, callbackParam, &jsResult); in OnRequestCallBackInner()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/router/test/unittest/common/ |
H A D | router_module_tdd_test.cpp | 173 JSValue jsResult = UNDEFINED; in PrepareRouterStateMachine() local 174 bool initResult = sm.Init(routerParam, jsResult); in PrepareRouterStateMachine() 176 EXPECT_TRUE(jerry_value_is_error(jsResult)); in PrepareRouterStateMachine() 177 ReleaseJSValue(jsResult); in PrepareRouterStateMachine()
|
/foundation/distributeddatamgr/data_share/frameworks/js/napi/common/src/ |
H A D | datashare_js_utils.cpp | 685 napi_value jsResult = nullptr; in UnwrapStringByPropertyName() local 686 auto status = napi_get_named_property(env, jsObject, propertyName, &jsResult); in UnwrapStringByPropertyName() 687 if ((status != napi_ok) || (jsResult == nullptr)) { in UnwrapStringByPropertyName() 692 napi_typeof(env, jsResult, &valueType); in UnwrapStringByPropertyName() 697 value = DataShareJSUtils::Convert2String(env, jsResult); in UnwrapStringByPropertyName() 703 napi_value jsResult = nullptr; in Convert2JSValue() local 704 napi_status status = napi_create_object(env, &jsResult); in Convert2JSValue() 723 if (napi_set_named_property(env, jsResult, valueArray.uri.c_str(), values) != napi_ok) { in Convert2JSValue() 728 return jsResult; in Convert2JSValue()
|
/foundation/ability/ability_runtime/frameworks/js/napi/feature_ability/ |
H A D | js_feature_ability.cpp | 448 napi_value jsResult = nullptr; in CreateJsResult() local 449 napi_create_object(env, &jsResult); in CreateJsResult() 450 napi_set_named_property(env, jsResult, "code", CreateJsNumber(env, errCode)); in CreateJsResult() 452 napi_set_named_property(env, jsResult, "data", CreateJsUndefined(env)); in CreateJsResult() 456 napi_set_named_property(env, jsResult, "data", dataVal); in CreateJsResult() 459 return jsResult; in CreateJsResult()
|
/foundation/arkui/ace_engine/advanced_ui_component/navpushpathhelper/src/ |
H A D | hsp_silentinstall_napi.cpp | 54 napi_value jsResult;
in IsHspExist() local 55 NAPI_CALL(env, napi_get_boolean(env, isHspExits, &jsResult));
in IsHspExist() 56 return jsResult;
in IsHspExist()
|
/foundation/arkui/advanced_ui_component/navpushpathhelper/src/ |
H A D | hsp_silentinstall_napi.cpp | 54 napi_value jsResult; in IsHspExist() local 55 NAPI_CALL(env, napi_get_boolean(env, isHspExits, &jsResult)); in IsHspExist() 56 return jsResult; in IsHspExist()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/mode/ |
H A D | mode_manager_napi.cpp | 222 napi_value jsResult = nullptr; in GetSupportedModes() local 237 jsResult = CreateSceneModeJSArray(env, status, modeObjList); in GetSupportedModes() 239 return jsResult; in GetSupportedModes()
|
/foundation/ability/ability_runtime/frameworks/js/napi/app_startup/startup_manager/ |
H A D | js_startup_manager.cpp | 140 std::shared_ptr<JsStartupTaskResult> jsResult = std::static_pointer_cast<JsStartupTaskResult>(result); in OnGetResult() local 141 if (jsResult == nullptr) { in OnGetResult() 142 TAG_LOGE(AAFwkTag::STARTUP, "null jsResult: %{public}s", startupTask.c_str()); in OnGetResult() 146 std::shared_ptr<NativeReference> jsResultRef = jsResult->GetJsStartupResultRef(); in OnGetResult()
|