/test/xts/acts/commonlibrary/ark_runtime/ark_runtime_jsvm_test/entry/src/main/cpp/jsvmtest/unittests/ |
H A D | test_wasm.cpp | 84 auto exports = jsvm::GetProperty(wasmInstance, "exports"); in GetInstanceExports() local 85 CHECK(jsvm::IsObject(exports)); in GetInstanceExports() 86 return exports; in GetInstanceExports() 183 auto exports = jsvm::GetProperty(instance, jsvm::Str("exports")); in VerifyAddWasmInstance() local 184 CHECK(jsvm::IsObject(exports)); in VerifyAddWasmInstance() 185 auto add = jsvm::GetProperty(exports, jsvm::Str("add")); in VerifyAddWasmInstance() 281 JSVM_Value exports = jsvm::GetProperty(wasmInstance, jsvm::Str("exports")); local 388 TestImportGlobal(JSVM_Env env, JSVM_Value exports) global() argument 413 TestImportFunc(JSVM_Env env, JSVM_Value exports) global() argument 424 TestImportMemory(JSVM_Env env, JSVM_Value exports) global() argument 450 TestImportTable(JSVM_Env env, JSVM_Value exports) global() argument 512 JSVM_Value exports = jsvm::GetProperty(wasmInstance, jsvm::Str("exports")); global() local 539 JSVM_Value exports = jsvm::GetProperty(wasmInstance, jsvm::Str("exports")); global() local 563 TestCacheAndRelocInfoStep2(JSVM_Env env, const std::vector<uint8_t> &buffer, const uint8_t *cacheData, size_t cacheSize, JSVM_Value exports) global() argument 618 JSVM_Value exports = TestCacheAndRelocInfoStep1(env, buffer, cacheData, cacheSize); global() local 690 auto exports = jsvm::GetProperty(instance, jsvm::Str("exports")); global() local 761 auto exports = GetInstanceExports(instance); global() local 784 auto exports = GetInstanceExports(instance); global() local 833 auto exports = GetInstanceExports(instance); global() local 890 JSVM_Value exports = jsvm::GetProperty(wasmInstance, jsvm::Str("exports")); global() local 947 auto exports = GetInstanceExports(instance); global() local 979 auto exports = GetInstanceExports(instance); global() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/scroll/ |
H A D | scroll_scrollto_test.cpp | 113 napi_value exports; in CreateNativeNode() local 114 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNode() 119 return exports; in CreateNativeNode() 185 napi_value exports; in CreateNativeNodeEase() local 186 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeEase() 191 return exports; in CreateNativeNodeEase() 257 napi_value exports; in CreateNativeNodeEaseInOut() local 258 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeEaseInOut() 263 return exports; in CreateNativeNodeEaseInOut() 329 napi_value exports; in CreateNativeNodeEaseIn() local 401 napi_value exports; CreateNativeNodeEaseOut() local 473 napi_value exports; CreateNativeNodeExtremeDeceleration() local 545 napi_value exports; CreateNativeNodeFastOutLinearIn() local 617 napi_value exports; CreateNativeNodeFastOutSlowIn() local 689 napi_value exports; CreateNativeNodeFriction() local 761 napi_value exports; CreateNativeNodeLinearOutSlowIn() local 833 napi_value exports; CreateNativeNodeRhythm() local 905 napi_value exports; CreateNativeNodeSharp() local 977 napi_value exports; CreateNativeNodeSmooth() local [all...] |
H A D | scroll_currentoffset_test.cpp | 113 napi_value exports; in CreateNativeNode() local 114 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNode() 119 return exports; in CreateNativeNode() 185 napi_value exports; in CreateNativeNodeEase() local 186 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeEase() 191 return exports; in CreateNativeNodeEase() 257 napi_value exports; in CreateNativeNodeEaseInOut() local 258 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeEaseInOut() 263 return exports; in CreateNativeNodeEaseInOut() 329 napi_value exports; in CreateNativeNodeEaseIn() local 401 napi_value exports; CreateNativeNodeEaseOut() local 473 napi_value exports; CreateNativeNodeExtremeDeceleration() local 545 napi_value exports; CreateNativeNodeFastOutLinearIn() local 617 napi_value exports; CreateNativeNodeFastOutSlowIn() local 689 napi_value exports; CreateNativeNodeFriction() local 761 napi_value exports; CreateNativeNodeLinearOutSlowIn() local 833 napi_value exports; CreateNativeNodeRhythm() local 905 napi_value exports; CreateNativeNodeSharp() local 977 napi_value exports; CreateNativeNodeSmooth() local [all...] |
H A D | scroll_hittestbehavior_test.cpp | 247 napi_value exports; in CreateNativeNodeDefault() local 248 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeDefault() 253 return exports; in CreateNativeNodeDefault() 293 napi_value exports; in CreateNativeNodeBlock() local 294 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeBlock() 299 return exports; in CreateNativeNodeBlock() 337 napi_value exports; in CreateNativeNodeTransparent() local 338 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeTransparent() 343 return exports; in CreateNativeNodeTransparent() 384 napi_value exports; in CreateNativeNodeNone() local [all...] |
/test/testfwk/arkxtest/uitest/napi/ |
H A D | uitest_napi.cpp | 433 static napi_status ExportClass(napi_env env, napi_value exports, const FrontEndClassDef &classDef) in ExportClass() argument 435 NAPI_ASSERT_BASE(env, exports != nullptr, "Illegal export params", NAPI_ERR); in ExportClass() 472 NAPI_CALL_BASE(env, napi_set_named_property(env, exports, name, ctor), NAPI_ERR); in ExportClass() 483 NAPI_CALL_BASE(env, napi_set_named_property(env, exports, seedName, seed), NAPI_ERR); in ExportClass() 489 static napi_status ExportEnumerator(napi_env env, napi_value exports, const FrontendEnumeratorDef &enumDef) in ExportEnumerator() argument 491 NAPI_ASSERT_BASE(env, exports != nullptr, "Illegal export params", NAPI_ERR); in ExportEnumerator() 501 NAPI_CALL_BASE(env, napi_set_named_property(env, exports, enumDef.name_.data(), enumerator), NAPI_ERR); in ExportEnumerator() 520 napi_value Export(napi_env env, napi_value exports) in Export() argument 528 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(props) / sizeof(props[0]), props)); in Export() 529 NAPI_CALL(env, ExportClass(env, exports, BY_DE in Export() [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/gesture/ |
H A D | gesture_test.cpp | 153 napi_value exports; in CreateLongPressNativeNode() local 154 if (napi_create_object(env, &exports) != napi_ok) { in CreateLongPressNativeNode() 158 return exports; in CreateLongPressNativeNode() 210 napi_value exports; in CreateSwipeNativeNode() local 211 if (napi_create_object(env, &exports) != napi_ok) { in CreateSwipeNativeNode() 215 return exports; in CreateSwipeNativeNode() 264 napi_value exports; in CreatePanNativeNode() local 265 if (napi_create_object(env, &exports) != napi_ok) { in CreatePanNativeNode() 269 return exports; in CreatePanNativeNode() 324 napi_value exports; in CreatePinchNativeNode() local 381 napi_value exports; CreateRotateNativeNode() local 452 napi_value exports; CreateInterruptNativeNode() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test_api13/entry/src/main/cpp/ |
H A D | napi_render_init.cpp | 23 static napi_value Init(napi_env env, napi_value exports) in Init() argument 26 if ((env == nullptr) || (exports == nullptr)) { in Init() 27 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "Init", "env or exports is null"); in Init() 38 if (napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc) != napi_ok) { in Init() 43 PluginManager::GetInstance()->Export(env, exports); in Init() 44 return exports; in Init()
|
H A D | napi_func_init.cpp | 19 static napi_value Init(napi_env env, napi_value exports) in Init() argument 21 if ((env == nullptr) || (exports == nullptr)) { in Init() 22 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "Init", "env or exports is null"); in Init() 28 if (napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc) != napi_ok) { in Init() 32 return exports; in Init()
|
/test/xts/acts/arkui/ace_ets_xcomponent/entry/src/main/cpp/ |
H A D | plugin_manager.cpp | 33 napi_value exports; in GetContext() local 56 NAPI_CALL(env, napi_create_object(env, &exports)); in GetContext() 70 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in GetContext() 82 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in GetContext() 88 return exports; in GetContext() 91 bool PluginManager::Export(napi_env env, napi_value exports) in Export() argument 100 status = napi_get_named_property(env, exports, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance); in Export() 121 render->Export(env, exports); in Export()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/manager/ |
H A D | plugin_manager.cpp | 72 napi_value exports; in GetContext() local 73 if (napi_create_object(env, &exports) != napi_ok) { in GetContext() 78 return exports; in GetContext() 81 void PluginManager::Export(napi_env env, napi_value exports) in Export() argument 83 if ((env == nullptr) || (exports == nullptr)) { in Export() 84 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "PluginManager", "Export: env or exports is null"); in Export() 89 if (napi_get_named_property(env, exports, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance) != napi_ok) { in Export()
|
/test/xts/acts/arkui/ace_c_arkui_test_api13/entry/src/main/cpp/customproperty/ |
H A D | custom_property_test.cpp | 64 napi_value exports; in testAddCustomProperty001() local 65 if (napi_create_object(env, &exports) != napi_ok) { in testAddCustomProperty001() 69 return exports; in testAddCustomProperty001() 113 napi_value exports; in testRemoveCustomProperty002() local 114 if (napi_create_object(env, &exports) != napi_ok) { in testRemoveCustomProperty002() 118 return exports; in testRemoveCustomProperty002()
|
/test/xts/acts/arkui/ace_c_arkui_test_api13/entry/src/main/cpp/manager/ |
H A D | plugin_manager.cpp | 72 napi_value exports; in GetContext() local 73 if (napi_create_object(env, &exports) != napi_ok) { in GetContext() 78 return exports; in GetContext() 81 void PluginManager::Export(napi_env env, napi_value exports) in Export() argument 83 if ((env == nullptr) || (exports == nullptr)) { in Export() 84 OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "PluginManager", "Export: env or exports is null"); in Export() 89 if (napi_get_named_property(env, exports, OH_NATIVE_XCOMPONENT_OBJ, &exportInstance) != napi_ok) { in Export()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customproperty/ |
H A D | custom_property_test.cpp | 64 napi_value exports; in testAddCustomProperty001() local 65 if (napi_create_object(env, &exports) != napi_ok) { in testAddCustomProperty001() 69 return exports; in testAddCustomProperty001() 113 napi_value exports; in testRemoveCustomProperty002() local 114 if (napi_create_object(env, &exports) != napi_ok) { in testRemoveCustomProperty002() 118 return exports; in testRemoveCustomProperty002()
|
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/list/ |
H A D | list_hittestbehavior_test.cpp | 247 napi_value exports; in CreateNativeNodeDefault() local 248 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeDefault() 253 return exports; in CreateNativeNodeDefault() 292 napi_value exports; in CreateNativeNodeBlock() local 293 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeBlock() 298 return exports; in CreateNativeNodeBlock() 335 napi_value exports; in CreateNativeNodeTransparent() local 336 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeTransparent() 341 return exports; in CreateNativeNodeTransparent() 381 napi_value exports; in CreateNativeNodeNone() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/listitem/ |
H A D | listitem_hittestbehavior_test.cpp | 213 napi_value exports; in CreateNativeNodeDefault() local 214 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeDefault() 219 return exports; in CreateNativeNodeDefault() 260 napi_value exports; in CreateNativeNodeBlock() local 261 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeBlock() 266 return exports; in CreateNativeNodeBlock() 306 napi_value exports; in CreateNativeNodeTransparent() local 307 if (napi_create_object(env, &exports) != napi_ok) { in CreateNativeNodeTransparent() 312 return exports; in CreateNativeNodeTransparent() 353 napi_value exports; in CreateNativeNodeNone() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/animation/ |
H A D | animator_event_test.cpp | 206 napi_value exports; in testKeyframeRegisterOnFinish_001() local 207 if (napi_create_object(env, &exports) != napi_ok) { in testKeyframeRegisterOnFinish_001() 211 return exports; in testKeyframeRegisterOnFinish_001() 263 napi_value exports; in testKeyframeRegisterOnEvent_002() local 264 if (napi_create_object(env, &exports) != napi_ok) { in testKeyframeRegisterOnEvent_002() 268 return exports; in testKeyframeRegisterOnEvent_002() 360 napi_value exports; in testAnimatorRegisterOnFrame_003() local 361 if (napi_create_object(env, &exports) != napi_ok) { in testAnimatorRegisterOnFrame_003() 365 return exports; in testAnimatorRegisterOnFrame_003() 437 napi_value exports; in testAnimatorRegisterOnFinish_004() local 514 napi_value exports; testAnimatorRegisterOnCancel_005() local 592 napi_value exports; testAnimatorRegisterOnRepeat_006() local [all...] |
/test/xts/acts/arkui/ace_ets_xcomponent/entry/src/main/cpp/napi/ |
H A D | napi_init.cpp | 20 * function for module exports 22 static napi_value Init(napi_env env, napi_value exports) in Init() argument 28 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in Init() 30 bool ret = PluginManager::GetInstance()->Export(env, exports); in Init() 34 return exports; in Init()
|
/test/xts/acts/powermgr/ndk/entry/src/main/cpp/ |
H A D | napi_init.cpp | 139 static napi_value CreateEnumPluggedType(napi_env env, napi_value exports)
in CreateEnumPluggedType() argument 162 napi_set_named_property(env, exports, "BatteryInfo_BatteryPluggedType", result);
in CreateEnumPluggedType() 164 return exports;
in CreateEnumPluggedType() 168 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 179 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 181 CreateEnumPluggedType(env, exports);
in Init() 182 return exports;
in Init()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | fenvndk1.cpp | 30 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 35 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 36 return exports;
in Init()
|
H A D | applicationTargetSdkVersionndk.cpp | 37 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 43 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 44 return exports;
in Init()
|
H A D | deviceApiVersionndk.cpp | 39 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 44 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 45 return exports;
in Init()
|
H A D | ifaddrsndk1.cpp | 37 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 41 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 42 return exports;
in Init()
|
H A D | ipcndk.cpp | 42 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 47 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 48 return exports;
in Init()
|
/test/xts/acts/notification/ans_standard/actsNotificationNDKEnableTest/entry/src/main/cpp/ |
H A D | enable.cpp | 34 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 39 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 40 return exports;
in Init()
|
/test/xts/acts/security/accesstokenNDKTest/entry/src/main/cpp/ |
H A D | napi_init.cpp | 36 static napi_value Init(napi_env env, napi_value exports)
in Init() argument 42 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc);
in Init() 43 return exports;
in Init()
|