/foundation/communication/ipc/ipc/native/src/napi/src/ |
H A D | napi_ipc_skeleton.cpp | 59 napi_value global = nullptr;
in NAPI_IPCSkeleton_getCallingTokenId() local 60 napi_get_global(env, &global);
in NAPI_IPCSkeleton_getCallingTokenId() 62 napi_get_named_property(env, global, "activeStatus_", &napiActiveStatus);
in NAPI_IPCSkeleton_getCallingTokenId() 68 napi_get_named_property(env, global, "callingTokenId_", &callingTokenId);
in NAPI_IPCSkeleton_getCallingTokenId() 80 napi_value global = nullptr;
in NAPI_IPCSkeleton_getCallingDeviceID() local 81 napi_get_global(env, &global);
in NAPI_IPCSkeleton_getCallingDeviceID() 83 napi_get_named_property(env, global, "activeStatus_", &napiActiveStatus);
in NAPI_IPCSkeleton_getCallingDeviceID() 89 napi_get_named_property(env, global, "callingDeviceID_", &callingDeviceID);
in NAPI_IPCSkeleton_getCallingDeviceID() 100 napi_value global = nullptr;
in NAPI_IPCSkeleton_getLocalDeviceID() local 101 napi_get_global(env, &global);
in NAPI_IPCSkeleton_getLocalDeviceID() 120 napi_value global = nullptr; NAPI_IPCSkeleton_isLocalCalling() local 186 napi_value global = nullptr; NAPI_IPCSkeleton_resetCallingIdentity() local 271 napi_value global = nullptr; NAPI_IPCSkeleton_setCallingIdentity() local 356 NAPI_IPCSkeleton_restoreCallingIdentitySetProperty(napi_env env, napi_value &global, char* stringValue) NAPI_IPCSkeleton_restoreCallingIdentitySetProperty() argument 413 napi_value global = nullptr; NAPI_IPCSkeleton_restoreCallingIdentity() local 464 napi_value global = nullptr; NAPIIPCSkeleton_JS_Constructor() local [all...] |
/foundation/communication/ipc/ipc/native/src/napi_common/source/ |
H A D | napi_process_skeleton.cpp | 23 napi_value global = nullptr;
in NAPI_getCallingPid() local 24 napi_get_global(env, &global);
in NAPI_getCallingPid() 26 napi_get_named_property(env, global, "activeStatus_", &napiActiveStatus);
in NAPI_getCallingPid() 32 napi_get_named_property(env, global, "callingPid_", &callingPid);
in NAPI_getCallingPid() 44 napi_value global = nullptr;
in NAPI_getCallingUid() local 45 napi_get_global(env, &global);
in NAPI_getCallingUid() 47 napi_get_named_property(env, global, "activeStatus_", &napiActiveStatus);
in NAPI_getCallingUid() 53 napi_get_named_property(env, global, "callingUid_", &callingUid);
in NAPI_getCallingUid()
|
H A D | napi_remote_object.cpp | 93 static bool CreateJsOption(CallbackParam *param, const napi_value global, napi_value &jsOption, in CreateJsOption() argument 97 napi_get_named_property(param->env, global, "IPCOptionConstructor_", &jsOptionConstructor); in CreateJsOption() 115 static bool GetJsParcelConstructor(CallbackParam *param, const napi_value global, bool isOnRemoteMessageRequest, in GetJsParcelConstructor() argument 119 napi_get_named_property(param->env, global, "IPCSequenceConstructor_", &jsParcelConstructor); in GetJsParcelConstructor() 121 napi_get_named_property(param->env, global, "IPCParcelConstructor_", &jsParcelConstructor); in GetJsParcelConstructor() 185 napi_value global = nullptr; in NAPI_RemoteObject_saveOldCallingInfoInner() local 186 napi_get_global(env, &global); in NAPI_RemoteObject_saveOldCallingInfoInner() 188 napi_get_named_property(env, global, "callingPid_", &value); in NAPI_RemoteObject_saveOldCallingInfoInner() 190 napi_get_named_property(env, global, "callingUid_", &value); in NAPI_RemoteObject_saveOldCallingInfoInner() 192 napi_get_named_property(env, global, "callingTokenId in NAPI_RemoteObject_saveOldCallingInfoInner() 390 napi_value global = nullptr; OnJsRemoteRequestCallBack() local 519 napi_value global = nullptr; RemoteObjectAttachCb() local 716 napi_value global = nullptr; NAPI_RemoteObject_saveOldCallingInfo() local 730 napi_value global = nullptr; NAPI_RemoteObject_setNewCallingInfo() local 757 napi_value global = nullptr; NAPI_RemoteObject_resetOldCallingInfo() local 841 napi_value global = nullptr; NAPI_ohos_rpc_CreateJsRemoteObject() local 868 napi_value global = nullptr; NAPI_ohos_rpc_CreateJsRemoteObject() local 903 napi_value global = nullptr; NAPI_ohos_rpc_getNativeRemoteObject() local 1509 napi_value global = nullptr; NAPIRemoteObjectExport() local [all...] |
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_global.cpp | 82 auto global = P_CAST(handle, Global<JSValueRef>*); in AsyncDisposer() local 83 delete global; in AsyncDisposer() 121 * it does not mean global is equal to local, the memory they are allocated are controlled by different system, 122 * have no idea the consequence of NativeScope escape a global variable 124 ARKTS_Value ARKTS_GetGlobalValue(ARKTS_Global global) in ARKTS_GetGlobalValue() argument 126 ARKTS_ASSERT_P(global, "global is null"); in ARKTS_GetGlobalValue() 128 auto result = *P_CAST(global, Local<JSValueRef>*); in ARKTS_GetGlobalValue() 137 void ARKTS_DisposeGlobal(ARKTS_Env env, ARKTS_Global global) in ARKTS_DisposeGlobal() argument 140 ARKTS_ASSERT_V(global, "globa in ARKTS_DisposeGlobal() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | config_factory_test.cpp | 30 * @tc.desc: load the config.json global info. 37 auto *global = ConfigFactory::GetInstance().GetGlobalConfig(); in HWTEST_F() local 38 ASSERT_NE(global, nullptr); in HWTEST_F() 39 ASSERT_EQ(global->processLabel, "distributeddata"); in HWTEST_F() 40 ASSERT_EQ(global->metaData, "service_meta"); in HWTEST_F() 41 ASSERT_EQ(global->version, "000.000.001"); in HWTEST_F() 43 ASSERT_EQ(global->features, features); in HWTEST_F()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/ |
H A D | ability_helper.cpp | 30 napi_value global = nullptr; in GetJsAbility() local 32 napi_status status = napi_get_global(env, &global); in GetJsAbility() 33 if (status != napi_ok || global == nullptr) { in GetJsAbility() 34 HILOGE("Cannot get global instance for %{public}d", status); in GetJsAbility() 38 status = napi_get_named_property(env, global, "ability", &abilityContext); in GetJsAbility()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | dump_runtime_helper.cpp | 95 napi_value global = nullptr; in GetCheckList() local 96 napi_get_global(env, &global); in GetCheckList() 97 napi_value requireValue = GetJsLeakModule(env, global); in GetCheckList() 102 napi_value result = GetMethodCheck(env, requireValue, global); in GetCheckList() 114 napi_value DumpRuntimeHelper::GetJsLeakModule(napi_env env, napi_value global) in GetJsLeakModule() argument 117 napi_status status = napi_get_named_property(env, global, REQUIRE_NAPI, &napiFunc); in GetJsLeakModule() 126 status = napi_call_function(env, global, napiFunc, 1, ¶m[0], &requireValue); in GetJsLeakModule() 134 napi_value DumpRuntimeHelper::GetMethodCheck(napi_env env, napi_value requireValue, napi_value global) in GetMethodCheck() argument 149 status = napi_call_function(env, global, methodCheck, 0, nullptr, &result); in GetMethodCheck()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/bootstrap/src/ |
H A D | bootstrap.cpp | 38 auto *global = ConfigFactory::GetInstance().GetGlobalConfig(); in GetProcessLabel() local 39 if (global == nullptr || global->processLabel.empty()) { in GetProcessLabel() 42 return global->processLabel; in GetProcessLabel() 47 auto *global = ConfigFactory::GetInstance().GetGlobalConfig(); in GetMetaDBName() local 48 if (global == nullptr || global->metaData.empty()) { in GetMetaDBName() 51 return global->metaData; in GetMetaDBName()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_nav_path_stack.cpp | 68 napi_value global; in CreateNewNavPathStackJSObject() local 69 napi_status ret = napi_get_global(env, &global); in CreateNewNavPathStackJSObject() 74 ret = napi_get_named_property(env, global, JS_NAV_PATH_STACK_CLASS_NAME, &constructor); in CreateNewNavPathStackJSObject() 118 napi_value global; in CheckIsValid() local 119 napi_status ret = napi_get_global(env, &global); in CheckIsValid() 124 ret = napi_get_named_property(env, global, JS_NAV_PATH_STACK_CLASS_NAME, &constructor); in CheckIsValid()
|
H A D | js_mock.cpp | 100 shared_ptr<JsValue> global = runtime->GetGlobal(); in MockRequireNativeModule() local 101 shared_ptr<JsValue> moduleObject = global->GetProperty(runtime, moduleName); in MockRequireNativeModule() 109 global->SetProperty(runtime, moduleName, newObject); in MockRequireNativeModule() 116 bool JSMock::PreloadWorkerRequireNative(const shared_ptr<JsRuntime>& runtime, const shared_ptr<JsValue>& global) in PreloadWorkerRequireNative() argument 118 return global->SetProperty(runtime, "requireNativeModule", runtime->NewFunction(MockRequireNativeModule)); in PreloadWorkerRequireNative()
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
H A D | napi_async_callback.cpp | 66 napi_value global {}; in AfterWorkCallback() 67 napi_get_global(context->env, &global); in AfterWorkCallback() 71 napi_status status = napi_call_function(context->env, global, function, argc, argv, &result); in AfterWorkCallback() 100 napi_value global {}; in AfterWorkCallbackWithFlag() 101 napi_get_global(context->env, &global); in AfterWorkCallbackWithFlag() 112 napi_status status = napi_call_function(context->env, global, function, argc, argv, &result); in AfterWorkCallbackWithFlag() 146 napi_value global {}; in AfterWorkCallbackWithFunc() 147 napi_get_global(context->env, &global); in AfterWorkCallbackWithFunc() 161 napi_status status = napi_call_function(context->env, global, function, argc, argv, &result); in AfterWorkCallbackWithFunc()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/wrapper/ |
H A D | js.cpp | 236 JSValue global = JSGlobal::Get(); in Get() local 237 JSValue result = JSObject::Get(global, prop); in Get() 238 JSRelease(global); in Get() 244 JSValue global = JSGlobal::Get(); in Set() local 245 JSObject::Set(global, prop, value); in Set() 246 JSRelease(global); in Set() 251 JSValue global = JSGlobal::Get(); in Del() local 252 JSObject::Del(global, props); in Del() 253 JSRelease(global); in Del() 257 JSValue global in Call() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | dft_impl.cpp | 77 jerry_value_t global = jerry_get_global_object(); in CallbackPageReplaced() local 78 if (jerryx_has_property_str(global, ROUTER_PAGE)) { in CallbackPageReplaced() 79 jerry_value_t param = jerryx_get_property_str(global, ROUTER_PAGE); in CallbackPageReplaced() 84 jerry_release_value(global); in CallbackPageReplaced()
|
/foundation/ability/ability_runtime/interfaces/inner_api/napi_base_context/src/ |
H A D | napi_base_context.cpp | 54 napi_value global; in GetCurrentAbility() local 55 napi_status status = napi_get_global(env, &global); in GetCurrentAbility() 61 status = napi_get_named_property(env, global, "ability", &abilityObj); in GetCurrentAbility()
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | dump_runtime_helper_second_test.cpp | 168 napi_value global = nullptr; in HWTEST_F() local 169 napi_get_global(env, &global); in HWTEST_F() 170 napi_value requireValue = helper->GetJsLeakModule(env, global); in HWTEST_F() 192 napi_value global = nullptr; in HWTEST_F() local 193 napi_get_global(env, &global); in HWTEST_F() 194 napi_value requireValue = helper->GetJsLeakModule(env, global); in HWTEST_F() 213 napi_value global = nullptr; in HWTEST_F() local 214 napi_get_global(env, &global); in HWTEST_F() 216 napi_value result = helper->GetMethodCheck(env, requireValue, global); in HWTEST_F()
|
/foundation/multimedia/image_framework/frameworks/kits/js/common/ |
H A D | image_packer_mdk_kits.cpp | 46 static bool IsInstanceOf(napi_env env, napi_value value, napi_value global, const char* type) in IsInstanceOf() argument 49 if (napi_get_named_property(env, global, type, &constructor) != napi_ok) { in IsInstanceOf() 63 napi_value global = nullptr; in ParserPackingArgumentType() local 64 if (napi_get_global(env, &global) != napi_ok) { in ParserPackingArgumentType() 65 IMAGE_LOGE("Get global property failed!"); in ParserPackingArgumentType() 69 if (IsInstanceOf(env, source, global, "ImageSource")) { in ParserPackingArgumentType() 72 } else if (IsInstanceOf(env, source, global, "PixelMap")) { in ParserPackingArgumentType()
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/n_async/ |
H A D | n_async_work_callback.cpp | 110 napi_value global = nullptr; in CallbackComplete() local 113 napi_get_global(env, &global); in CallbackComplete() 114 napi_status stat = napi_call_function(env, global, callback, argv.size(), argv.data(), &tmp); in CallbackComplete() 175 napi_value global = nullptr; in AfterWorkCallback() local 178 napi_get_global(env, &global); in AfterWorkCallback() 179 napi_status stat = napi_call_function(env, global, callback, argv.size(), argv.data(), &tmp); in AfterWorkCallback()
|
/foundation/multimodalinput/input/frameworks/napi/short_key/src/ |
H A D | js_short_key_context.cpp | 44 napi_value global = nullptr; in CreateInstance() local 45 CHKRP(napi_get_global(env, &global), GET_GLOBAL); in CreateInstance() 54 status = napi_set_named_property(env, global, SHORT_KEY_CLASS.c_str(), jsClass); in CreateInstance() 59 CHKRP(napi_set_named_property(env, global, SHORT_KEY_INSTANCE.c_str(), jsInstance), SET_NAMED_PROPERTY); in CreateInstance() 99 napi_value global = nullptr; in GetInstance() local 100 CHKRP(napi_get_global(env, &global), GET_GLOBAL); in GetInstance() 103 CHKRP(napi_has_named_property(env, global, SHORT_KEY_INSTANCE.c_str(), &result), HAS_NAMED_PROPERTY); in GetInstance() 110 CHKRP(napi_get_named_property(env, global, SHORT_KEY_INSTANCE.c_str(), &object), SET_NAMED_PROPERTY); in GetInstance()
|
/foundation/bundlemanager/bundle_framework/test/benchmarktest/distributed_bundle_info_test/ |
H A D | distributed_bundle_info_test.cpp | 111 const std::string jsonString = R"({"appId": "ohos.global.systemres_BNtg4JBClbl92Rgc3jm/ in BenchmarkTestForFromJsonString() 114 "moduleName":"ohos.global.systemres", in BenchmarkTestForFromJsonString() 125 "bundleName": "ohos.global.systemres", in BenchmarkTestForFromJsonString()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | uv_queue.cpp | 90 napi_value global = nullptr; in Work() local 91 napi_get_global(entry->env, &global); in Work() 93 napi_status status = napi_call_function(entry->env, global, method, argc, argv, &result); in Work()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | uv_queue.cpp | 90 napi_value global = nullptr; in Work() local 91 napi_get_global(entry->env, &global); in Work() 93 napi_status status = napi_call_function(entry->env, global, method, argc, argv, &result); in Work()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/ |
H A D | napi_uv_queue.cpp | 71 napi_value global = nullptr; in CallFunction() 72 napi_get_global(queue->env_, &global); in CallFunction() 74 napi_status status = napi_call_function(queue->env_, global, callback, argc, argv, &result); in CallFunction()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_uv_queue.cpp | 74 napi_value global = nullptr; in CallFunction() 75 napi_get_global(queue->env_, &global); in CallFunction() 77 napi_status status = napi_call_function(queue->env_, global, callback, argc, argv, &result); in CallFunction()
|
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/ |
H A D | uv_queue.cpp | 85 napi_value global = nullptr; in Work() local 86 napi_get_global(entry->env, &global); in Work() 88 napi_status status = napi_call_function(entry->env, global, method, argc, argv, &result); in Work()
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | dump_runtime_helper.h | 37 napi_value GetJsLeakModule(napi_env env, napi_value global); 38 napi_value GetMethodCheck(napi_env env, napi_value requireValue, napi_value global);
|