Home
last modified time | relevance | path

Searched refs:instanceValue (Results 1 - 9 of 9) sorted by relevance

/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()
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Dsimulator.cpp113 void InitJsAbilityContext(napi_env env, napi_value instanceValue);
114 void DispatchStartLifecycle(napi_value instanceValue);
118 void InitJsAbilityStageContext(napi_value instanceValue);
253 napi_value instanceValue = nullptr; in LoadScript() local
254 napi_new_instance(nativeEngine_, obj, 0, nullptr, &instanceValue); in LoadScript()
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()
412 napi_value instanceValue = LoadScript(moduleSrcPath); LoadAbilityStage() local
474 auto instanceValue = ref->GetNapiValue(); TerminateAbility() local
628 DispatchStartLifecycle(napi_value instanceValue) DispatchStartLifecycle() argument
[all...]
H A Djs_runtime_utils.cpp361 napi_value instanceValue = nullptr; in LoadSystemModuleByEngine() local
362 napi_new_instance(env, classValue, argc, argv, &instanceValue); in LoadSystemModuleByEngine()
363 if (instanceValue == nullptr) { in LoadSystemModuleByEngine()
369 napi_create_reference(env, instanceValue, 1, &result); in LoadSystemModuleByEngine()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime.cpp568 napi_value instanceValue = nullptr; in LoadSystemModuleByEngine() local
569 napi_new_instance(env, classValue, argc, argv, &instanceValue); in LoadSystemModuleByEngine()
570 if (instanceValue == nullptr) { in LoadSystemModuleByEngine()
576 napi_create_reference(env, instanceValue, 1, &resultRef); in LoadSystemModuleByEngine()
1021 napi_value instanceValue = nullptr; in LoadModule() local
1022 napi_new_instance(env, classValue, 0, nullptr, &instanceValue); in LoadModule()
1023 if (instanceValue == nullptr) { in LoadModule()
1029 napi_create_reference(env, instanceValue, 1, &resultRef); in LoadModule()
1050 napi_value instanceValue = nullptr; in LoadSystemModule() local
1051 napi_new_instance(env, classValue, argc, argv, &instanceValue); in LoadSystemModule()
[all...]
/foundation/arkui/napi/test/unittest/
H A Dtest_sendable_napi.cpp700 napi_value instanceValue = nullptr; in HWTEST_F() local
701 res = napi_new_instance(env, testClass, 0, nullptr, &instanceValue); in HWTEST_F()
706 env, instanceValue, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr); in HWTEST_F()
710 res = napi_unwrap_sendable(env, instanceValue, (void**)&tmpTestStr); in HWTEST_F()
715 res = napi_remove_wrap_sendable(env, instanceValue, (void**)&tmpTestStr1); in HWTEST_F()
734 napi_value instanceValue = nullptr; in HWTEST_F() local
735 napi_new_instance(env, testWrapClass, 0, nullptr, &instanceValue); in HWTEST_F()
740 env, instanceValue, (void*)testWrapStr, [](napi_env env, void* data, void* hint) {}, nullptr, size); in HWTEST_F()
743 napi_unwrap_sendable(env, instanceValue, (void**)&tempTestStr); in HWTEST_F()
747 napi_remove_wrap_sendable(env, instanceValue, (voi in HWTEST_F()
[all...]
H A Dtest_napi.cpp1727 napi_value instanceValue = nullptr; in HWTEST_F() local
1728 napi_new_instance(env, testClass, 0, nullptr, &instanceValue); in HWTEST_F()
1732 env, instanceValue, (void*)testStr, [](napi_env env, void* data, void* hint) {}, nullptr, nullptr); in HWTEST_F()
1735 napi_unwrap(env, instanceValue, (void**)&tmpTestStr); in HWTEST_F()
1739 napi_remove_wrap(env, instanceValue, (void**)&tmpTestStr1); in HWTEST_F()
2228 napi_value instanceValue = nullptr; in HWTEST_F() local
2229 napi_new_instance(env, testWrapClass, 0, nullptr, &instanceValue); in HWTEST_F()
2234 env, instanceValue, (void*)testWrapStr, [](napi_env env, void* data, void* hint) {}, nullptr, nullptr, size); in HWTEST_F()
2237 napi_unwrap(env, instanceValue, (void**)&tempTestStr); in HWTEST_F()
2241 napi_remove_wrap(env, instanceValue, (voi in HWTEST_F()
[all...]
/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp1055 Local<ObjectRef> instanceValue = ObjectRef::New(vm_); in LoadModuleByName() local
1057 if (instance == nullptr && instanceValue->Has(vm_, key)) { in LoadModuleByName()
1058 Local<ObjectRef> wrapper = instanceValue->Get(vm_, key); in LoadModuleByName()
1061 instanceValue->Delete(vm_, key); in LoadModuleByName()
1066 Local<JSValueRef> value(instanceValue); in LoadModuleByName()
1072 instanceValue->DefineProperty(vm_, key, attr); in LoadModuleByName()
1075 instanceProperty.value = JsValueFromLocalValue(instanceValue); in LoadModuleByName()

Completed in 26 milliseconds