Home
last modified time | relevance | path

Searched refs:instanceValue (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Dsimulator.cpp114 void DispatchStartLifecycle(napi_value instanceValue);
253 napi_value instanceValue = nullptr; in LoadScript() local
255 return instanceValue; in LoadScript()
367 napi_value instanceValue = LoadScript(abilityPath_); in StartAbility() local
368 if (instanceValue == nullptr) { in StartAbility()
376 InitJsAbilityContext(nativeEngine_, instanceValue); in StartAbility()
377 DispatchStartLifecycle(instanceValue); in StartAbility()
413 if (instanceValue == nullptr) { in LoadAbilityStage()
418 InitJsAbilityStageContext(instanceValue); in LoadAbilityStage()
474 auto instanceValue = ref->GetNapiValue(); in TerminateAbility() local
[all …]
H A Djs_runtime_utils.cpp343 napi_value instanceValue = nullptr; in LoadSystemModuleByEngine() local
344 napi_new_instance(env, classValue, argc, argv, &instanceValue); in LoadSystemModuleByEngine()
345 if (instanceValue == nullptr) { in LoadSystemModuleByEngine()
351 napi_create_reference(env, instanceValue, 1, &result); in LoadSystemModuleByEngine()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_basic_base.cpp185 napi_value instanceValue = nullptr; in GetContextInstance() local
190 status = napi_new_instance(env, contextClass, 0, nullptr, &instanceValue); in GetContextInstance()
194 … status = napi_wrap(env, instanceValue, static_cast<void*>(this), finalize_cb, nullptr, nullptr); in GetContextInstance()
198 status = napi_create_reference(env, instanceValue, 1, &contextRef_); in GetContextInstance()
203 status = napi_get_reference_value(env, contextRef_, &instanceValue); in GetContextInstance()
208 return instanceValue; in GetContextInstance()
H A Dwebgl_rendering_context.cpp34 napi_value instanceValue = GetContextInstance(env, in Export() local
49 if (instanceValue == nullptr) { in Export()
81 NVal::DeclareNapiProperty("WebGLRenderingContext", instanceValue), in Export()
H A Dwebgl2_rendering_context.cpp1349 napi_value instanceValue = GetContextInstance(env, GetClassName(), in Export() local
1365 if (instanceValue == nullptr) { in Export()
1369 LOGD("WebGL WebGL2RenderingContext::Export instanceValue %{public}p", instanceValue); in Export()
1758 NVal::DeclareNapiProperty("WebGLRenderingContext", instanceValue), in Export()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Djsvm-data-types-interfaces.md1557 JSVM_Value instanceValue = nullptr;
1558 OH_JSVM_NewInstance(env, testClass, 0, nullptr, &instanceValue);
1564 OH_JSVM_Unwrap(env, instanceValue, (void **)&tmpTestStr);
1566 OH_JSVM_RemoveWrap(env, instanceValue, (void **)&tmpTestStr1);
1567 OH_JSVM_Unwrap(env, instanceValue, (void **)&tmpTestStr1);
1879 JSVM_Value instanceValue = nullptr;
1892 OH_JSVM_GetNamedProperty(env, instanceValue, "str11", &valueName);
1924 OH_JSVM_SetProperty(env, instanceValue, jsIndex, setvalueName);
1928 OH_JSVM_SetProperty(env, instanceValue, jsIndex1, setvalueName);
1932 OH_JSVM_GetProperty(env, instanceValue, jsIndex, &valueName1);
[all …]
H A Duse-jsvm-about-class.md148 JSVM_Value instanceValue = nullptr;
150 JSVM_CALL(OH_JSVM_NewInstance(env, cons, 0, nullptr, &instanceValue));
151 std::string str = ToString(env, instanceValue);
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime.cpp600 napi_value instanceValue = nullptr; in LoadSystemModuleByEngine() local
601 napi_new_instance(env, classValue, argc, argv, &instanceValue); in LoadSystemModuleByEngine()
602 if (instanceValue == nullptr) { in LoadSystemModuleByEngine()
608 napi_create_reference(env, instanceValue, 1, &resultRef); in LoadSystemModuleByEngine()
1057 napi_value instanceValue = nullptr; in LoadModule() local
1058 napi_new_instance(env, classValue, 0, nullptr, &instanceValue); in LoadModule()
1059 if (instanceValue == nullptr) { in LoadModule()
1065 napi_create_reference(env, instanceValue, 1, &resultRef); in LoadModule()
1086 napi_value instanceValue = nullptr; in LoadSystemModule() local
1088 if (instanceValue == nullptr) { in LoadSystemModule()
[all …]
/ohos5.0/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp700 napi_value instanceValue = nullptr; variable
701 res = napi_new_instance(env, testClass, 0, nullptr, &instanceValue);
706 env, instanceValue, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr); in __anoncd28cf5c0b02()
710 res = napi_unwrap_sendable(env, instanceValue, (void**)&tmpTestStr);
715 res = napi_remove_wrap_sendable(env, instanceValue, (void**)&tmpTestStr1);
734 napi_value instanceValue = nullptr; variable
735 napi_new_instance(env, testWrapClass, 0, nullptr, &instanceValue);
740 …env, instanceValue, (void*)testWrapStr, [](napi_env env, void* data, void* hint) {}, nullptr, size… in __anoncd28cf5c0d02()
743 napi_unwrap_sendable(env, instanceValue, (void**)&tempTestStr);
747 napi_remove_wrap_sendable(env, instanceValue, (void**)&tempTestStr1);
H A Dtest_napi.cpp1716 napi_value instanceValue = nullptr; variable
1717 napi_new_instance(env, testClass, 0, nullptr, &instanceValue);
1721 …env, instanceValue, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr, nullptr); in __anonb8b91ebf2102()
1724 napi_unwrap(env, instanceValue, (void**)&tmpTestStr);
1728 napi_remove_wrap(env, instanceValue, (void**)&tmpTestStr1);
2217 napi_value instanceValue = nullptr; variable
2218 napi_new_instance(env, testWrapClass, 0, nullptr, &instanceValue);
2223 …env, instanceValue, (void*)testWrapStr, [](napi_env env, void* data, void* hint) {}, nullptr, null… in __anonb8b91ebf2402()
2226 napi_unwrap(env, instanceValue, (void**)&tempTestStr);
2230 napi_remove_wrap(env, instanceValue, (void**)&tempTestStr1);
/ohos5.0/docs/en/application-dev/napi/
H A Djsvm-data-types-interfaces.md1557 JSVM_Value instanceValue = nullptr;
1558 OH_JSVM_NewInstance(env, testClass, 0, nullptr, &instanceValue);
1564 OH_JSVM_Unwrap(env, instanceValue, (void **)&tmpTestStr);
1566 OH_JSVM_RemoveWrap(env, instanceValue, (void **)&tmpTestStr1);
1567 OH_JSVM_Unwrap(env, instanceValue, (void **)&tmpTestStr1);
1879 JSVM_Value instanceValue = nullptr;
1892 OH_JSVM_GetNamedProperty(env, instanceValue, "str11", &valueName);
1924 OH_JSVM_SetProperty(env, instanceValue, jsIndex, setvalueName);
1928 OH_JSVM_SetProperty(env, instanceValue, jsIndex1, setvalueName);
1932 OH_JSVM_GetProperty(env, instanceValue, jsIndex, &valueName1);
[all …]
H A Duse-jsvm-about-class.md159 JSVM_Value instanceValue = nullptr;
160 OH_JSVM_NewInstance(env, cons, 0, nullptr, &instanceValue);
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp1059 Local<ObjectRef> instanceValue = ObjectRef::New(vm_); in LoadModuleByName() local
1061 if (instance == nullptr && instanceValue->Has(vm_, key)) { in LoadModuleByName()
1062 Local<ObjectRef> wrapper = instanceValue->Get(vm_, key); in LoadModuleByName()
1065 instanceValue->Delete(vm_, key); in LoadModuleByName()
1070 Local<JSValueRef> value(instanceValue); in LoadModuleByName()
1076 instanceValue->DefineProperty(vm_, key, attr); in LoadModuleByName()
1079 instanceProperty.value = JsValueFromLocalValue(instanceValue); in LoadModuleByName()