Home
last modified time | relevance | path

Searched refs:args (Results 1 - 25 of 31) sorted by relevance

12

/applications/standard/app_samples/code/BasicFeature/Media/Camera/entry/src/main/cpp/
H A Dmain.cpp39 napi_value args[2] = {nullptr}; in SetZoomRatio() local
42 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in SetZoomRatio()
45 napi_typeof(env, args[0], &valuetype0); in SetZoomRatio()
48 napi_get_value_int32(env, args[0], &zoomRatio); in SetZoomRatio()
62 napi_value args[2] = {nullptr}; in HasFlash() local
65 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in HasFlash()
68 napi_typeof(env, args[0], &valuetype0); in HasFlash()
71 napi_get_value_int32(env, args[0], &flashMode); in HasFlash()
85 napi_value args[2] = {nullptr}; in IsVideoStabilizationModeSupported() local
88 napi_get_cb_info(env, info, &argc, args, nullpt in IsVideoStabilizationModeSupported()
108 napi_value args[3] = {nullptr}; InitCamera() local
148 napi_value args[2] = {nullptr}; ReleaseCamera() local
170 napi_value args[2] = {nullptr}; ReleaseSession() local
189 napi_value args[3] = {nullptr}; StartPhotoOrVideo() local
237 napi_value args[2] = {nullptr}; IsExposureModeSupported() local
260 napi_value args[2] = {nullptr}; IsMeteringPoint() local
284 napi_value args[2] = {nullptr}; IsExposureBiasRange() local
305 napi_value args[2] = {nullptr}; IsFocusModeSupported() local
328 napi_value args[2] = {nullptr}; IsFocusPoint() local
354 napi_value args[1] = {nullptr}; GetVideoFrameWidth() local
368 napi_value args[1] = {nullptr}; GetVideoFrameHeight() local
382 napi_value args[1] = {nullptr}; GetVideoFrameRate() local
396 napi_value args[1] = {nullptr}; VideoOutputStopAndRelease() local
463 napi_value args[1] = {nullptr}; TakePictureWithSettings() local
[all...]
/applications/standard/settings/napi/settings/
H A Dnapi_settings.cpp163 napi_value args[ARGS_TWO] = {nullptr}; in napi_get_uri_sync() local
164 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in napi_get_uri_sync()
172 NAPI_CALL(env, napi_typeof(env, args[PARAM0], &valueType)); in napi_get_uri_sync()
177 std::string keyStr = unwrap_string_from_js(env, args[PARAM0]); in napi_get_uri_sync()
187 std::string tableName = unwrap_string_from_js(env, args[PARAM1]); in napi_get_uri_sync()
193 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in napi_get_uri_sync()
199 std::string uriArgStr = unwrap_string_from_js(env, args[PARAM0]); in napi_get_uri_sync()
211 napi_value args[ARGS_THREE] = {nullptr}; in napi_get_uri() local
212 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in napi_get_uri()
223 NAPI_CALL(env, napi_typeof(env, args[PARAM in napi_get_uri()
615 napi_value args[ARGS_FOUR] = {nullptr}; napi_get_value_sync() local
724 napi_value args[ARGS_FOUR] = {nullptr}; napi_get_value() local
908 napi_value args[ARGS_FOUR] = {nullptr}; napi_get_value_ext() local
1034 napi_value args[ARGS_FOUR] = {nullptr}; napi_set_value_sync() local
1280 napi_value args[ARGS_FIVE] = {nullptr}; napi_set_value() local
1350 napi_value args[ARGS_FIVE] = {nullptr}; napi_set_value_ext() local
1482 napi_value args[ARGS_TWO] = {nullptr}; napi_enable_airplane_mode() local
1623 napi_value args[PARAM1] = {nullptr}; napi_can_show_floating() local
1811 napi_get_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value* args) napi_get_value_sync_ext() argument
1866 napi_set_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value *args) napi_set_value_sync_ext() argument
[all...]
H A Dnapi_settings_observer.cpp135 napi_value args[ARGS_FOUR] = {nullptr}; in npai_settings_register_observer() local
136 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in npai_settings_register_observer()
144 NAPI_CALL(env, napi_typeof(env, args[PARAM0], &valueType)); in npai_settings_register_observer()
146 NAPI_CALL(env, napi_typeof(env, args[PARAM1], &valueType)); in npai_settings_register_observer()
148 NAPI_CALL(env, napi_typeof(env, args[PARAM2], &valueType)); in npai_settings_register_observer()
152 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, args[PARAM0], stageMode); in npai_settings_register_observer()
164 callbackInfo->key = unwrap_string_from_js(env, args[PARAM1]); in npai_settings_register_observer()
165 callbackInfo->tableName = unwrap_string_from_js(env, args[PARAM2]); in npai_settings_register_observer()
166 napi_create_reference(env, args[PARAM3], 1, &(callbackInfo->callbackRef)); in npai_settings_register_observer()
177 auto dataShareHelper = getDataShareHelper(env, args[PARAM in npai_settings_register_observer()
200 napi_value args[ARGS_THREE] = {nullptr}; npai_settings_unregister_observer() local
[all...]
H A Dnapi_settings.h185 napi_value napi_get_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value* args);
186 napi_value napi_set_value_sync_ext(bool stageMode, size_t argc, napi_env env, napi_value* args);
/applications/standard/app_samples/code/BasicFeature/Connectivity/VPN/entry/src/main/cpp/
H A Dvpn_client.cpp137 napi_value args[2] = {nullptr}; in TcpConnect() local
138 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in TcpConnect()
141 napi_get_value_int32(env, args[1], &port); in TcpConnect()
142 std::string ipAddr = GetStringFromValueUtf8(env, args[0]); in TcpConnect()
171 napi_value args[2] = {nullptr}; in StartVpn() local
172 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in StartVpn()
174 napi_get_value_int32(env, args[0], &g_fdInfo.tunFd); in StartVpn()
175 napi_get_value_int32(env, args[1], &g_fdInfo.tunnelFd); in StartVpn()
200 napi_value args[1] = {nullptr}; in StopVpn() local
201 napi_get_cb_info(env, info, &argc, args, nullpt in StopVpn()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/NdkRenderNodeDrawing/entry/src/main/cpp/
H A Dhello.cpp22 napi_value args[2] = {nullptr}; in Add() local
24 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in Add()
27 napi_typeof(env, args[0], &valuetype0); in Add()
30 napi_typeof(env, args[1], &valuetype1); in Add()
33 napi_get_value_double(env, args[0], &value0); in Add()
36 napi_get_value_double(env, args[1], &value1); in Add()
H A Dnative_bridge.cpp265 napi_value args[6] = {nullptr}; in OnDraw() local
266 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in OnDraw()
269 napi_get_value_int32(env, args[0], &id); in OnDraw()
271 napi_unwrap(env, args[1], &temp); in OnDraw()
275 napi_get_value_int32(env, args[2], &width); // 2 means the second argument in OnDraw()
277 napi_get_value_int32(env, args[3], &height); // 3 means the third argument in OnDraw()
279 napi_get_value_int32(env, args[4], &drawOption); // 4 means the forth argument in OnDraw()
280 NativePixelMap *nativePixelMap = OH_PixelMap_InitNativePixelMap(env, args[5]); // 5 means the forth argument in OnDraw()
/applications/standard/app_samples/code/DocsSample/BundleManagerDocsSample/HarSample/library/src/main/cpp/
H A Dhello.cpp22 napi_value args[2] = {nullptr}; in Add() local
24 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in Add()
27 napi_typeof(env, args[0], &valuetype0); in Add()
30 napi_typeof(env, args[1], &valuetype1); in Add()
33 napi_get_value_double(env, args[0], &value0); in Add()
36 napi_get_value_double(env, args[1], &value1); in Add()
/applications/standard/app_samples/code/DocsSample/BundleManagerDocsSample/HspSample/library/src/main/cpp/
H A Dhello.cpp22 napi_value args[2] = {nullptr}; in multi() local
24 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in multi()
27 napi_typeof(env, args[0], &valuetype0); in multi()
30 napi_typeof(env, args[1], &valuetype1); in multi()
33 napi_get_value_double(env, args[0], &value0); in multi()
36 napi_get_value_double(env, args[1], &value1); in multi()
/applications/standard/app_samples/code/SuperFeature/Widget/FormGame/entry/src/main/cpp/
H A Dnapi_info_util.cpp33 napi_value args[2] = { nullptr }; in NAPI_GetRandomNumber() local
34 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in NAPI_GetRandomNumber()
36 napi_typeof(env, args[0], &valueType0); in NAPI_GetRandomNumber()
38 napi_typeof(env, args[1], &valueType1); in NAPI_GetRandomNumber()
40 OH_LOG_ERROR(LOG_APP, "Error value type for args"); in NAPI_GetRandomNumber()
44 napi_get_value_int32(env, args[0], &startNum); in NAPI_GetRandomNumber()
46 napi_get_value_int32(env, args[1], &endNum); in NAPI_GetRandomNumber()
/applications/standard/app_samples/code/BasicFeature/Native/ArkTSXComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.cpp35 napi_value args[1] = {nullptr}; in ParseId() local
36 if (napi_ok != napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)) { in ParseId()
42 if (napi_ok != napi_get_value_bigint_int64(env, args[0], &value, &lossless)) { in ParseId()
122 napi_value args[3] = {nullptr}; in ChangeSurface() local
124 if (napi_ok != napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)) { in ChangeSurface()
130 if (napi_ok != napi_get_value_bigint_int64(env, args[index++], &surfaceId, &lossless)) { in ChangeSurface()
134 if (napi_ok != napi_get_value_double(env, args[index++], &width)) { in ChangeSurface()
138 if (napi_ok != napi_get_value_double(env, args[index++], &height)) { in ChangeSurface()
/applications/sample/camera/communication/wpa_cli/src/
H A Dwpa_cli_sample.c28 #define SAMPLE_INFO(format, args...) \
30 fprintf(stderr, "\033[1;32m WpaCliSample(%s:%d):\t\033[0m" format, __func__, __LINE__, ##args); \
34 #define SAMPLE_ERROR(format, args...) \
36 fprintf(stderr, "\033[1;31m WpaCliSample(%s:%d):\t\033[0m" format, __func__, __LINE__, ##args); \
107 static void* MonitorTask(void *args) in MonitorTask() argument
109 (void)args; in MonitorTask()
/applications/standard/app_samples/code/BasicFeature/Media/ImageEffect/entry/src/main/cpp/backend/
H A Dimage_edit.cpp73 napi_value args[EXPECTED_ARGS_TWO] = {nullptr}; in Apply() local
74 napi_status status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in Apply()
77 std::string path = CommonUtils::GetStringArgument(env, args[EXPECTED_ARGS_ZERO]); in Apply()
78 std::vector<std::vector<FilterArrayData>> filters = GetFilters(env, args[EXPECTED_ARGS_ONE]); in Apply()
252 napi_value args[EXPECTED_ARGS_ONE] = {nullptr}; in LookupFilterInfo() local
253 napi_status status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in LookupFilterInfo()
255 std::string filterName = CommonUtils::GetStringArgument(env, args[EXPECTED_ARGS_ZERO]); in LookupFilterInfo()
314 napi_value args[EXPECTED_ARGS_ONE] = {nullptr}; in LookupFilters() local
315 napi_status status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in LookupFilters()
317 const char *key = CommonUtils::GetStringArgument(env, args[EXPECTED_ARGS_ZER in LookupFilters()
[all...]
/applications/standard/app_samples/code/BasicFeature/Media/Image/photomodify/src/main/cpp/
H A DImage.cpp387 napi_value args[NUM_1] = {nullptr}; in SetDesiredAuxiliaryPictures() local
388 if (napi_get_cb_info(env, info, &argc, args, nullptr, nullptr) != napi_ok || argc < 1 || args[0] == nullptr) { in SetDesiredAuxiliaryPictures()
394 napi_get_array_length(env, args[0], &length); in SetDesiredAuxiliaryPictures()
403 napi_get_element(env, args[NUM_0], index, &element); in SetDesiredAuxiliaryPictures()
454 napi_value args[NUM_1] = {nullptr}; in PackToDataPicture() local
455 if (napi_get_cb_info(env, info, &argc, args, nullptr, nullptr) != napi_ok) { in PackToDataPicture()
462 napi_get_value_string_utf8(env, args[NUM_0], outPath, PATH_MAX, &outPathLen); in PackToDataPicture()
500 napi_value args[NUM_1] = {nullptr}; in PackToFilePicture() local
501 if (napi_get_cb_info(env, info, &argc, args, nullpt in PackToFilePicture()
[all...]
/applications/standard/app_samples/code/BasicFeature/Native/XComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.cpp51 napi_value args[1] = { nullptr }; in GetContext() local
52 if (napi_get_cb_info(env, info, &argCnt, args, nullptr, nullptr) != napi_ok) { in GetContext()
62 if (napi_typeof(env, args[0], &valuetype) != napi_ok) { in GetContext()
73 if (napi_get_value_int64(env, args[0], &value) != napi_ok) { in GetContext()
/applications/sample/camera/setting/setting/src/main/cpp/
H A Dwpa_work.c26 #define SAMPLE_INFO(format, args...) \
28 fprintf(stderr, "\033[1;32m WpaCliSample(%s:%d):\t\033[0m" format, __func__, __LINE__, ##args); \
32 #define SAMPLE_ERROR(format, args...) \
34 fprintf(stderr, "\033[1;31m WpaCliSample(%s:%d):\t\033[0m" format, __func__, __LINE__, ##args); \
339 static void* MonitorTask(void *args) in MonitorTask() argument
341 (void)args; in MonitorTask()
452 void* WpaScanThread(void *args) in WpaScanThread() argument
/applications/standard/app_samples/code/BasicFeature/Native/NdkOpenGL/entry/src/main/cpp/
H A Dnapi_manager.cpp35 napi_value args[1]; in GetContext() local
36 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in GetContext()
44 status = napi_typeof(env, args[0], &valuetype); in GetContext()
54 NAPI_CALL(env, napi_get_value_int64(env, args[0], &value)); in GetContext()
H A Dapp_napi.cpp286 napi_value args[2] = {nullptr}; in UpdateAngle() local
288 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in UpdateAngle()
291 napi_typeof(env, args[0], &valuetype0); in UpdateAngle()
294 napi_typeof(env, args[1], &valuetype1); in UpdateAngle()
297 napi_get_value_double(env, args[0], &offsetX); in UpdateAngle()
300 napi_get_value_double(env, args[1], &offsetY); in UpdateAngle()
/applications/standard/app_samples/code/BasicFeature/Native/XComponent3D/entry/src/main/cpp/
H A Dnapi_manager.cpp35 napi_value args[1]; in GetContext() local
36 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in GetContext()
44 status = napi_typeof(env, args[0], &valuetype); in GetContext()
54 NAPI_CALL(env, napi_get_value_int64(env, args[0], &value)); in GetContext()
H A Dapp_napi.cpp482 napi_value args[1] = {nullptr}; in ChangeShape() local
484 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in ChangeShape()
487 napi_get_value_uint32(env, args[0], &value1); in ChangeShape()
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/
H A DNativeRender.cpp67 napi_value args[1] = {nullptr}; in GetNativeRender() local
68 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in GetNativeRender()
75 status = napi_typeof(env, args[0], &valuetype); in GetNativeRender()
/applications/standard/app_samples/code/BasicFeature/Native/NdkXComponent/entry/src/main/cpp/manager/
H A Dplugin_manager.cpp247 napi_value args[2] = { nullptr, nullptr }; in createNativeNode() local
248 if (napi_get_cb_info(env, info, &argCnt, args, nullptr, nullptr) != napi_ok) { in createNativeNode()
256 OH_ArkUI_GetNodeContentFromNapiValue(env, args[0], &nodeContentHandle_); in createNativeNode()
260 std::string tag = value2String(env, args[1]); in createNativeNode()
/applications/standard/systemui/
H A Dgradlew153 eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
155 eval `echo args$i`="\"$arg\""
173 # Escape application args
/applications/standard/calendardata/calendarmanager/napi/src/
H A Dcalendar_manager_napi.cpp216 napi_value args[argsOne] = {nullptr}; in GetCalendarManager() local
217 if (napi_get_cb_info(env, info, &argc, args, nullptr, nullptr) != napi_ok) { in GetCalendarManager()
225 if (napi_new_instance(env, cons, argsOne, args, &result) != napi_ok) { in GetCalendarManager()
/applications/standard/app_samples/code/BasicFeature/Connectivity/StageSocket/server_python/
H A DTCP_Server.py49 client_thread = threading.Thread(target=handle_client, args=(conn,))

Completed in 15 milliseconds

12