Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 1271) sorted by relevance

12345678910>>...51

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_web.h31 static void OnAlert(const JSCallbackInfo& args);
32 static void OnBeforeUnload(const JSCallbackInfo& args);
33 static void OnConfirm(const JSCallbackInfo& args);
34 static void OnFullScreenEnter(const JSCallbackInfo& args);
35 static void OnFullScreenExit(const JSCallbackInfo& args);
36 static void OnPrompt(const JSCallbackInfo& args);
37 static void OnConsoleLog(const JSCallbackInfo& args);
38 static void OnPageStart(const JSCallbackInfo& args);
39 static void OnPageFinish(const JSCallbackInfo& args);
40 static void OnProgressChange(const JSCallbackInfo& args);
[all …]
Djs_web_controller.h32 static void Constructor(const JSCallbackInfo& args);
36 void LoadUrl(const JSCallbackInfo& args);
37 void ExecuteTypeScript(const JSCallbackInfo& args);
38 void LoadDataWithBaseUrl(const JSCallbackInfo& args);
39 void Refresh(const JSCallbackInfo& args);
40 void StopLoading(const JSCallbackInfo& args);
41 void GetHitTestResult(const JSCallbackInfo& args);
42 void GetHitTestValue(const JSCallbackInfo& args);
43 void GetCookieManager(const JSCallbackInfo& args);
44 void GetPageHeight(const JSCallbackInfo& args);
[all …]
Djs_indexer.h28 static void Create(const JSCallbackInfo& args);
29 static void JsOnSelected(const JSCallbackInfo& args);
30 static void SetColor(const JSCallbackInfo& args);
31 static void SetSelectedColor(const JSCallbackInfo& args);
32 static void SetPopupColor(const JSCallbackInfo& args);
33 static void SetSelectedBackgroundColor(const JSCallbackInfo& args);
34 static void SetPopupBackground(const JSCallbackInfo& args);
36 static void SetSelectedFont(const JSCallbackInfo& args);
37 static void SetFont(const JSCallbackInfo& args);
38 static void SetPopupFont(const JSCallbackInfo& args);
[all …]
Djs_counter.cpp75 void JSCounter::JsEnableDec(const JSCallbackInfo& args) in JsEnableDec() argument
77 if (args.Length() < 1) { in JsEnableDec()
81 if (!args[0]->IsBoolean()) { in JsEnableDec()
84 CounterModel::GetInstance()->SetEnableDec(args[0]->ToBoolean()); in JsEnableDec()
88 void JSCounter::JsEnableInc(const JSCallbackInfo& args) in JsEnableInc() argument
90 if (args.Length() < 1) { in JsEnableInc()
94 if (!args[0]->IsBoolean()) { in JsEnableInc()
97 CounterModel::GetInstance()->SetEnableInc(args[0]->ToBoolean()); in JsEnableInc()
101 void JSCounter::JsOnInc(const JSCallbackInfo& args) in JsOnInc() argument
103 if (args.Length() < 1) { in JsOnInc()
[all …]
Djs_indexer.cpp78 void JSIndexer::Create(const JSCallbackInfo& args) in Create() argument
80 if (args.Length() >= 1 && args[0]->IsObject()) { in Create()
83 auto param = JsonUtil::ParseJsonString(args[0]->ToString()); in Create()
99 JSRef<JSObject> paramObj = JSRef<JSObject>::Cast(args[0]); in Create()
116 ParseIndexerSelectedObject(args, changeEventVal); in Create()
121 args.ReturnSelf(); in Create()
125 void JSIndexer::SetSelectedColor(const JSCallbackInfo& args) in SetSelectedColor() argument
127 if (args.Length() < 1) { in SetSelectedColor()
131 IndexerModel::GetInstance()->SetSelectedColor(PaseColor(args)); in SetSelectedColor()
134 void JSIndexer::SetColor(const JSCallbackInfo& args) in SetColor() argument
[all …]
Djs_scroll.h31 static void OnScrollBeginCallback(const JSCallbackInfo& args);
32 static void OnScrollFrameBeginCallback(const JSCallbackInfo& args);
33 static void OnScrollCallback(const JSCallbackInfo& args);
34 static void OnScrollEdgeCallback(const JSCallbackInfo& args);
35 static void OnScrollEndCallback(const JSCallbackInfo& args);
36 static void OnScrollStartCallback(const JSCallbackInfo& args);
37 static void OnScrollStopCallback(const JSCallbackInfo& args);
39 static void SetScrollBarWidth(const JSCallbackInfo& args);
40 static void SetScrollBar(const JSCallbackInfo& args);
41 static void SetEdgeEffect(const JSCallbackInfo& args);
[all …]
Djs_persistent.cpp37 void JSPersistent::ConstructorCallback(const JSCallbackInfo& args) in ConstructorCallback() argument
40 if (args.Length() > 0 && args[0]->IsBoolean()) { in ConstructorCallback()
41 needCrossThread = args[0]->ToBoolean(); in ConstructorCallback()
46 args.SetReturnValue(Referenced::RawPtr(persistent)); in ConstructorCallback()
56 void JSPersistent::Set(const JSCallbackInfo& args) in Set() argument
63 if (args.Length() < 2 || !args[0]->IsString() || args[1]->IsUndefined() || args[1]->IsNull()) { in Set()
67 std::string key = args[0]->ToString(); in Set()
68 auto serializedValue = JSON::Stringify(args.GetVm(), args[1].Get().GetLocalHandle()); in Set()
69 std::string value = serializedValue->ToString(args.GetVm())->ToString(); in Set()
90 void JSPersistent::Get(const JSCallbackInfo& args) in Get() argument
[all …]
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/
Dimage_source_mdk.cpp34 ImageSourceArgs args; in OH_ImageSource_InitNative() local
35 args.inEnv = env; in OH_ImageSource_InitNative()
36 args.inVal = source; in OH_ImageSource_InitNative()
37 auto ret = ImageSourceNativeCall(ENV_FUNC_IMAGE_SOURCE_UNWRAP, &args); in OH_ImageSource_InitNative()
38 if (ret != IMAGE_RESULT_SUCCESS || args.napi == nullptr) { in OH_ImageSource_InitNative()
42 result->napi = args.napi; in OH_ImageSource_InitNative()
51 ImageSourceArgs args; in OH_ImageSource_Create() local
52 args.inEnv = env; in OH_ImageSource_Create()
53 args.source = src; in OH_ImageSource_Create()
54 args.sourceOps = ops; in OH_ImageSource_Create()
[all …]
Dimage_receiver_mdk.cpp47 ImageReceiverArgs args; in OH_Image_Receiver_CreateImageReceiver() local
48 args.inNum0 = info.width; in OH_Image_Receiver_CreateImageReceiver()
49 args.inNum1 = info.height; in OH_Image_Receiver_CreateImageReceiver()
50 args.inNum2 = info.format; in OH_Image_Receiver_CreateImageReceiver()
51 args.inNum3 = info.capicity; in OH_Image_Receiver_CreateImageReceiver()
52 args.outValue = res; in OH_Image_Receiver_CreateImageReceiver()
53 return ImageReceiverNativeEnvCall(ENV_FUNC_IMAGE_RECEIVER_CREATE, env, &args); in OH_Image_Receiver_CreateImageReceiver()
62 ImageReceiverArgs args; in OH_Image_Receiver_GetReceivingSurfaceId() local
63 args.id = id; in OH_Image_Receiver_GetReceivingSurfaceId()
64 args.inLen = len; in OH_Image_Receiver_GetReceivingSurfaceId()
[all …]
/foundation/multimedia/image_framework/frameworks/kits/js/common/pixelmap_ndk/
Dimage_pixel_map_ndk.cpp46 PixelMapNapiArgs args; in OH_PixelMap_CreatePixelMap() local
47 args.createOptions.width = info.width; in OH_PixelMap_CreatePixelMap()
48 args.createOptions.height = info.height; in OH_PixelMap_CreatePixelMap()
49 args.createOptions.pixelFormat = info.pixelFormat; in OH_PixelMap_CreatePixelMap()
50 args.createOptions.editable = info.editable; in OH_PixelMap_CreatePixelMap()
51 args.createOptions.alphaType = info.alphaType; in OH_PixelMap_CreatePixelMap()
52 args.createOptions.scaleMode = info.scaleMode; in OH_PixelMap_CreatePixelMap()
53 args.inBuffer = buf; in OH_PixelMap_CreatePixelMap()
54 args.bufferLen = len; in OH_PixelMap_CreatePixelMap()
55 args.outValue = res; in OH_PixelMap_CreatePixelMap()
[all …]
/foundation/multimedia/image_framework/frameworks/kits/js/common/
Dimage_pixel_map_napi_kits.cpp29 using PixelMapNapiEnvFunc = int32_t (*)(napi_env env, PixelMapNapiArgs* args);
30 using PixelMapNapiCtxFunc = int32_t (*)(PixelMapNapi* native, PixelMapNapiArgs* args);
84 static int32_t PixelMapNapiCreate(napi_env env, PixelMapNapiArgs* args) in PixelMapNapiCreate() argument
86 if (args == nullptr || args->outValue == nullptr) { in PixelMapNapiCreate()
90 …if ((!makeUndefined(env, &undefinedValue)) || args->inBuffer == nullptr || args->bufferLen <= NUM_… in PixelMapNapiCreate()
91 *(args->outValue) = undefinedValue; in PixelMapNapiCreate()
95 *(args->outValue) = undefinedValue; in PixelMapNapiCreate()
97 info.alphaType = ParseAlphaType(args->createOptions.alphaType); in PixelMapNapiCreate()
98 info.editable = args->createOptions.editable != NUM_0; in PixelMapNapiCreate()
99 info.pixelFormat = ParsePixelForamt(args->createOptions.pixelFormat); in PixelMapNapiCreate()
[all …]
Dimage_receiver_mdk_kits.cpp24 using ImageReceiverNapiEnvFunc = int32_t (*)(napi_env env, struct ImageReceiverArgs* args);
25 … ImageReceiverNapiCtxFunc = int32_t (*)(ImageReceiverNapi* native, struct ImageReceiverArgs* args);
37 …ImageReceiver* CheckAndGetReceiver(ImageReceiverNapi* native, const struct ImageReceiverArgs* args) in CheckAndGetReceiver() argument
39 if (args == nullptr) { in CheckAndGetReceiver()
45 static int32_t ImageReceiverNapiCreate(napi_env env, struct ImageReceiverArgs* args) in ImageReceiverNapiCreate() argument
47 if (args == nullptr) { in ImageReceiverNapiCreate()
52 createArgs.width = args->inNum0; in ImageReceiverNapiCreate()
53 createArgs.height = args->inNum1; in ImageReceiverNapiCreate()
54 createArgs.format = args->inNum2; in ImageReceiverNapiCreate()
55 createArgs.capicity = args->inNum3; in ImageReceiverNapiCreate()
[all …]
Dimage_mdk_kits.cpp26 using ImageNapiEnvFunc = int32_t (*)(napi_env env, struct ImageNapiArgs* args);
27 using ImageNapiCtxFunc = int32_t (*)(ImageNapi* native, struct ImageNapiArgs* args);
40 static NativeImage* CheckAndGetImage(ImageNapi* native, const struct ImageNapiArgs* args) in CheckAndGetImage() argument
42 if (args == nullptr) { in CheckAndGetImage()
48 static int32_t ImageNapiClipRect(ImageNapi* native, struct ImageNapiArgs* args) in ImageNapiClipRect() argument
50 auto nativeImage = CheckAndGetImage(native, args); in ImageNapiClipRect()
55 if (nativeImage->GetSize(args->outRect->width, args->outRect->height) != NUM_0) { in ImageNapiClipRect()
59 args->outRect->x = NUM_0; in ImageNapiClipRect()
60 args->outRect->y = NUM_0; in ImageNapiClipRect()
64 static int32_t ImageNapiSize(ImageNapi* native, struct ImageNapiArgs* args) in ImageNapiSize() argument
[all …]
/foundation/filemanagement/storage_service/services/storage_daemon/
Dsdc.cpp27 static int32_t InitGlobalKey(const std::vector<std::string> &args) in InitGlobalKey() argument
29 (void)args; in InitGlobalKey()
33 static int32_t InitMainUser(const std::vector<std::string> &args) in InitMainUser() argument
35 (void)args; in InitMainUser()
39 static int32_t GenerateUserKeys(const std::vector<std::string> &args) in GenerateUserKeys() argument
41 if (args.size() < 5) { in GenerateUserKeys()
47 if ((OHOS::StorageDaemon::StringToUint32(args[3], userId) == false) || in GenerateUserKeys()
48 (OHOS::StorageDaemon::StringToUint32(args[4], flags) == false)) { in GenerateUserKeys()
55 static int32_t PrepareUserSpace(const std::vector<std::string> &args) in PrepareUserSpace() argument
57 if (args.size() < 5) { in PrepareUserSpace()
[all …]
/foundation/arkui/ace_engine/frameworks/base/log/
Dace_trace.cpp29 bool AceTraceBeginWithArgv(const char* format, va_list args) in AceTraceBeginWithArgv() argument
32 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceTraceBeginWithArgv()
41 va_list args; in AceTraceBeginWithArgs() local
42 va_start(args, format); in AceTraceBeginWithArgs()
43 bool retVal = AceTraceBeginWithArgv(format, args); in AceTraceBeginWithArgs()
44 va_end(args); in AceTraceBeginWithArgs()
51 va_list args; in AceCountTraceWidthArgs() local
52 va_start(args, format); in AceCountTraceWidthArgs()
53 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in AceCountTraceWidthArgs()
56 va_end(args); in AceCountTraceWidthArgs()
[all …]
/foundation/filemanagement/user_file_service/interfaces/kits/picker/
Dpicker.js78 function checkArguments(args) { argument
81 if (args.length === ARGS_TWO && typeof args[ARGS_ONE] !== 'function') {
85 if (args.length > 0 && typeof args[ARGS_ZERO] === 'object') {
86 let option = args[ARGS_ZERO];
111 function parsePhotoPickerSelectOption(args) { argument
120 if (args.length > ARGS_ZERO && typeof args[ARGS_ZERO] === 'object') {
121 let option = args[ARGS_ZERO];
136 function getPhotoPickerSelectResult(args) { argument
142 if (args.resultCode === 0) {
143 if (args.want && args.want.parameters) {
[all …]
/foundation/arkui/ace_engine_lite/frameworks/common/log/
Dace_log.cpp39 void PrintInfo(const char *format, va_list args) in PrintInfo() argument
45 vprintf(originalStr.c_str(), args); in PrintInfo()
53 va_list args; in HILOG_FATAL() local
54 va_start(args, msg); in HILOG_FATAL()
55 PrintInfo(msg, args); in HILOG_FATAL()
56 va_end(args); in HILOG_FATAL()
63 va_list args; in HILOG_ERROR() local
64 va_start(args, msg); in HILOG_ERROR()
65 PrintInfo(msg, args); in HILOG_ERROR()
66 va_end(args); in HILOG_ERROR()
[all …]
/foundation/multimedia/media_lite/interfaces/kits/player_lite/js/builtin/include/
Daudio_module.h61 static JSIValue Play(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
70 static JSIValue Pause(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
79 static JSIValue Stop(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
88 static JSIValue GetPlayState(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
97 static JSIValue SrcGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
106 static JSIValue SrcSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
115 … static JSIValue CurrentTimeGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
124 … static JSIValue CurrentTimeSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
133 static JSIValue DurationGetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
142 static JSIValue DurationSetter(const JSIValue thisVal, const JSIValue *args, uint8_t argsSize);
[all …]
/foundation/ability/idl_tool/util/
Dlogger.cpp28 va_list args; in D() local
29 va_start(args, format); in D()
30 Log(tag, format, args); in D()
31 va_end(args); in D()
38 va_list args; in E() local
39 va_start(args, format); in E()
40 Err(tag, format, args); in E()
41 va_end(args); in E()
48 va_list args; in V() local
49 va_start(args, format); in V()
[all …]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Dgraphic_log.h45 #define GRAPHIC_DECORATOR_HILOG(level, op, fmt, args...) … argument
48 …op(GRPHIC_LABEL, "{%s()-%s:%d} " fmt, __FUNCTION__, FILE_NAME(__FILE__), __LINE__, ##args); …
52 #define GRAPHIC_LOGF(fmt, args...) GRAPHIC_DECORATOR_HILOG(LOG_LEVEL_FATAL, HiviewDFX::HiLog::Fatal… argument
53 #define GRAPHIC_LOGE(fmt, args...) GRAPHIC_DECORATOR_HILOG(LOG_LEVEL_ERROR, HiviewDFX::HiLog::Error… argument
54 #define GRAPHIC_LOGW(fmt, args...) GRAPHIC_DECORATOR_HILOG(LOG_LEVEL_WARN, HiviewDFX::HiLog::Warn, … argument
55 #define GRAPHIC_LOGI(fmt, args...) GRAPHIC_DECORATOR_HILOG(LOG_LEVEL_INFO, HiviewDFX::HiLog::Info, … argument
56 #define GRAPHIC_LOGD(fmt, args...) GRAPHIC_DECORATOR_HILOG(LOG_LEVEL_DEBUG, HiviewDFX::HiLog::Debug… argument
59 #define GRAPHIC_LOGF(fmt, args...) HILOG_FATAL(HILOG_MODULE_UIKIT, fmt, ##args)
60 #define GRAPHIC_LOGE(fmt, args...) HILOG_ERROR(HILOG_MODULE_UIKIT, fmt, ##args)
61 #define GRAPHIC_LOGW(fmt, args...) HILOG_WARN(HILOG_MODULE_UIKIT, fmt, ##args)
[all …]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/test/unittest/common/
Ddate_time_module_tdd_test.cpp54 const jerry_value_t args[], in FormatDate() argument
60 jerry_value_t result = CallJSFunction(format, dateTime, args, argsNum); in FormatDate()
85 jerry_value_t args[1]; variable
86 args[0] = RunJs("new Date(2020, 9, 28, 9, 4, 5)");
87 char* formatRes = FormatDate(dateTime, args, 1);
101 formatRes = FormatDate(dateTime, args, 1);
104 ReleaseJerryValue(dateTime, args[0], VA_ARG_END_FLAG);
126 jerry_value_t args[1]; variable
127 args[0] = RunJs("new Date(2020, 9,28);");
128 char* formatRes = FormatDate(dateTime, args, 1);
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/utest/common/
Dstate_mgmt_console_trace_mock.ts17 public static log (...args : any) : void {
18 console.log(...args);
20 public static debug(...args : any) : void {
21 console.debug(...args);
23 public static info (...args : any) : void {
24 console.info(...args);
26 public static warn (...args : any) : void {
27 console.warn(...args);
29 public static error (...args : any) : void {
30 console.error(...args);
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
Djs_drag_function.h54 void GetJsPasteData(const JSCallbackInfo& args);
55 void GetScreenX(const JSCallbackInfo& args);
56 void GetScreenY(const JSCallbackInfo& args);
57 void GetX(const JSCallbackInfo& args);
58 void GetY(const JSCallbackInfo& args);
59 void GetDescription(const JSCallbackInfo& args);
60 void SetDescription(const JSCallbackInfo& args);
61 void GetVelocityX(const JSCallbackInfo& args);
62 void GetVelocityY(const JSCallbackInfo& args);
63 void GetVelocity(const JSCallbackInfo& args);
[all …]
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/managersink/src/
Ddaudio_sink_dev_test.cpp84 std::string args; variable
85 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskOpenCtrlChannel(args));
96 std::string args = "args"; variable
97 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskOpenCtrlChannel(args));
98 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskOpenCtrlChannel(args));
109 std::string args; variable
111 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskCloseCtrlChannel(args));
122 std::string args; variable
124 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskCloseCtrlChannel(args));
125 EXPECT_EQ(DH_SUCCESS, sinkDev_->TaskCloseCtrlChannel(args));
[all …]
/foundation/resourceschedule/ffrt/src/dfx/log/hmos/
Dlog_base.cpp44 va_list args; in LogErr() local
45 va_start(args, format); in LogErr()
46 PrintLogString(LOG_ERROR, format, args); in LogErr()
47 va_end(args); in LogErr()
52 va_list args; in LogWarn() local
53 va_start(args, format); in LogWarn()
54 PrintLogString(LOG_WARN, format, args); in LogWarn()
55 va_end(args); in LogWarn()
60 va_list args; in LogInfo() local
61 va_start(args, format); in LogInfo()
[all …]

12345678910>>...51