Home
last modified time | relevance | path

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

12345678910>>...31

/foundation/ace/ace_engine/frameworks/bridge/js_frontend/engine/v8/
Dv8_offscreen_canvas_bridge.h39 void GetBridge(const v8::FunctionCallbackInfo<v8::Value>& args);
52 static void GetContext(const v8::FunctionCallbackInfo<v8::Value>& args);
53 static void TransferToImageBitmap(const v8::FunctionCallbackInfo<v8::Value>& args);
54 static void ToDataURL(const v8::FunctionCallbackInfo<v8::Value>& args);
57 static void CreateLinearGradient(const v8::FunctionCallbackInfo<v8::Value>& args);
58 static void CreateRadialGradient(const v8::FunctionCallbackInfo<v8::Value>& args);
59 static void CreatePattern(const v8::FunctionCallbackInfo<v8::Value>& args);
60 static void AddColorStop(const v8::FunctionCallbackInfo<v8::Value>& args);
61 static void FillRect(const v8::FunctionCallbackInfo<v8::Value>& args);
62 static void ClearRect(const v8::FunctionCallbackInfo<v8::Value>& args);
[all …]
Dv8_offscreen_canvas_bridge.cpp49 inline std::vector<double> GetDashValue(const v8::FunctionCallbackInfo<v8::Value>& args, uint32_t i… in GetDashValue() argument
51 v8::Isolate* isolate = args.GetIsolate(); in GetDashValue()
56 v8::String::Utf8Value value(isolate, args[index]->ToString(context).ToLocalChecked()); in GetDashValue()
78 inline Rect GetRectParam(const v8::FunctionCallbackInfo<v8::Value>& args) in GetRectParam() argument
81 if (args.Length() != 4) { in GetRectParam()
84 v8::Isolate* isolate = args.GetIsolate(); in GetRectParam()
88 double x = args[0]->Int32Value(context).ToChecked(); in GetRectParam()
89 double y = args[1]->Int32Value(context).ToChecked(); in GetRectParam()
90 double width = args[2]->Int32Value(context).ToChecked(); in GetRectParam()
91 double height = args[3]->Int32Value(context).ToChecked(); in GetRectParam()
[all …]
Dv8_canvas_bridge.h49 …void HandleContext(const v8::Local<v8::Context>& ctx, NodeId id, const std::string& args, JsEngine…
50 void HandleToDataURL(const v8::Local<v8::Context>& ctx, NodeId id, const std::string& args);
52 static void CreateLinearGradient(const v8::FunctionCallbackInfo<v8::Value>& args);
53 static void CreateRadialGradient(const v8::FunctionCallbackInfo<v8::Value>& args);
54 static void AddColorStop(const v8::FunctionCallbackInfo<v8::Value>& args);
57 static void FillRect(const v8::FunctionCallbackInfo<v8::Value>& args);
58 static void StrokeRect(const v8::FunctionCallbackInfo<v8::Value>& args);
59 static void ClearRect(const v8::FunctionCallbackInfo<v8::Value>& args);
62 static void FillText(const v8::FunctionCallbackInfo<v8::Value>& args);
63 static void StrokeText(const v8::FunctionCallbackInfo<v8::Value>& args);
[all …]
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_web.h29 static void OnAlert(const JSCallbackInfo& args);
30 static void OnBeforeUnload(const JSCallbackInfo& args);
31 static void OnConfirm(const JSCallbackInfo& args);
32 static void OnConsoleLog(const JSCallbackInfo& args);
33 static void OnPageStart(const JSCallbackInfo& args);
34 static void OnPageFinish(const JSCallbackInfo& args);
35 static void OnProgressChange(const JSCallbackInfo& args);
36 static void OnTitleReceive(const JSCallbackInfo& args);
37 static void OnGeolocationHide(const JSCallbackInfo& args);
38 static void OnGeolocationShow(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 GetCookieManager(const JSCallbackInfo& args);
43 void AddJavascriptInterface(const JSCallbackInfo& args);
44 void RemoveJavascriptInterface(const JSCallbackInfo& args);
[all …]
Djs_indexer.h26 static void Create(const JSCallbackInfo& args);
27 static void JsOnSelected(const JSCallbackInfo& args);
28 static void SetColor(const JSCallbackInfo& args);
29 static void SetSelectedColor(const JSCallbackInfo& args);
30 static void SetPopupColor(const JSCallbackInfo& args);
31 static void SetSelectedBackgroundColor(const JSCallbackInfo& args);
32 static void SetPopupBackground(const JSCallbackInfo& args);
34 static void SetSelectedFont(const JSCallbackInfo& args);
35 static void SetFont(const JSCallbackInfo& args);
36 static void SetPopupFont(const JSCallbackInfo& args);
[all …]
Djs_counter.cpp52 void JSCounter::JsOnInc(const JSCallbackInfo& args) in JsOnInc() argument
54 if (!JSViewBindEvent(&CounterComponent::SetOnInc, args)) { in JsOnInc()
57 args.ReturnSelf(); in JsOnInc()
60 void JSCounter::JsOnDec(const JSCallbackInfo& args) in JsOnDec() argument
62 if (!JSViewBindEvent(&CounterComponent::SetOnDec, args)) { in JsOnDec()
65 args.ReturnSelf(); in JsOnDec()
68 void JSCounter::JSHeight(const JSCallbackInfo& args) in JSHeight() argument
70 if (args.Length() < 1) { in JSHeight()
76 if (!ConvertFromJSValue(args[0], value)) { in JSHeight()
86 args.ReturnSelf(); in JSHeight()
[all …]
Djs_environment.cpp41 void JSEnvironment::ConstructorCallback(const JSCallbackInfo& args) in ConstructorCallback() argument
45 args.SetReturnValue(Referenced::RawPtr(environment)); in ConstructorCallback()
55 void JSEnvironment::GetAccessibilityEnabled(const JSCallbackInfo& args) in GetAccessibilityEnabled() argument
69 JAVASCRIPT_EXECUTION_SCOPE_WITH_CHECK(args.GetExecutionContext()); in GetAccessibilityEnabled()
72 args.SetReturnValue(returnPtr); in GetAccessibilityEnabled()
75 void JSEnvironment::GetColorMode(const JSCallbackInfo& args) in GetColorMode() argument
77 JAVASCRIPT_EXECUTION_SCOPE_WITH_CHECK(args.GetExecutionContext()); in GetColorMode()
81 args.SetReturnValue(returnPtr); in GetColorMode()
84 void JSEnvironment::onChange(const JSCallbackInfo& args) in onChange() argument
86 JAVASCRIPT_EXECUTION_SCOPE_WITH_CHECK(args.GetExecutionContext()); in onChange()
[all …]
Djs_indexer.cpp31 void JSIndexer::Create(const JSCallbackInfo& args) in Create() argument
33 if (args.Length() >= 1 && args[0]->IsObject()) { in Create()
34 JSRef<JSObject> obj = JSRef<JSObject>::Cast(args[0]); in Create()
66 args.ReturnSelf(); in Create()
70 void JSIndexer::SetSelectedColor(const JSCallbackInfo& args) in SetSelectedColor() argument
72 if (args.Length() < 1) { in SetSelectedColor()
77 if (!ParseJsColor(args[0], color)) { in SetSelectedColor()
89 void JSIndexer::SetColor(const JSCallbackInfo& args) in SetColor() argument
91 if (args.Length() < 1) { in SetColor()
96 if (!ParseJsColor(args[0], color)) { in SetColor()
[all …]
Djs_canvas_path.h28 void JsPath2DSetTransform(const JSCallbackInfo& args);
29 void JsPath2DMoveTo(const JSCallbackInfo& args);
30 void JsPath2DLineTo(const JSCallbackInfo& args);
31 void JsPath2DArc(const JSCallbackInfo& args);
32 void JsPath2DArcTo(const JSCallbackInfo& args);
33 void JsPath2DQuadraticCurveTo(const JSCallbackInfo& args);
34 void JsPath2DBezierCurveTo(const JSCallbackInfo& args);
35 void JsPath2DEllipse(const JSCallbackInfo& args);
36 void JsPath2DRect(const JSCallbackInfo& args);
37 void JsPath2DClosePath(const JSCallbackInfo& args);
Djs_gesture.h41 static void JsHandlerOnAction(const JSCallbackInfo& args);
42 static void JsHandlerOnActionStart(const JSCallbackInfo& args);
43 static void JsHandlerOnActionUpdate(const JSCallbackInfo& args);
44 static void JsHandlerOnActionEnd(const JSCallbackInfo& args);
45 static void JsHandlerOnActionCancel(const JSCallbackInfo& args);
46 static void JsHandlerOnGestureEvent(JSGestureEvent action, const JSCallbackInfo& args);
56 static void Create(const JSCallbackInfo& args);
66 static void Create(const JSCallbackInfo& args);
75 static void Constructor(const JSCallbackInfo& args);
77 void SetDirection(const JSCallbackInfo& args);
[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()
46 if ((OHOS::StorageDaemon::StringToUint32(args[3], userId) == false) || in GenerateUserKeys()
47 (OHOS::StorageDaemon::StringToUint32(args[4], flags) == false)) { in GenerateUserKeys()
54 static int32_t PrepareUserSpace(const std::vector<std::string> &args) in PrepareUserSpace() argument
56 if (args.size() < 5) { in PrepareUserSpace()
[all …]
/foundation/ace/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/graphic/utils/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/ace/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()
86 jerry_value_t args[1]; variable
87 args[0] = RunJs("new Date(2020, 9, 28, 9, 4, 5)");
88 char* formatRes = FormatDate(dateTime, args, 1);
102 formatRes = FormatDate(dateTime, args, 1);
105 ReleaseJerryValue(dateTime, args[0], VA_ARG_END_FLAG);
128 jerry_value_t args[1]; variable
129 args[0] = RunJs("new Date(2020, 9,28);");
130 char* formatRes = FormatDate(dateTime, args, 1);
[all …]
Dnumber_format_module_tdd_test.cpp54 const jerry_value_t *args, in FormatNumber() argument
67 jerry_value_t result = CallJSFunction(format, numberFormat, args, argsNum); in FormatNumber()
92 jerry_value_t args[1]; variable
94 args[0] = jerry_create_number(formatNum);
95 char* formatRes = FormatNumber(numberFormat, args, 1);
110 formatRes = FormatNumber(numberFormat, args, 1);
125 formatRes = FormatNumber(numberFormat, args, 1);
127 ReleaseJerryValue(args[0], numberFormat, VA_ARG_END_FLAG);
151 jerry_value_t args[1]; variable
153 args[0] = jerry_create_number(num);
[all …]
/foundation/filemanagement/user_file_service/services/include/
Dlog.h26 #define DEBUG_LOG(fmt, args...) \ argument
27 HILOG_DEBUG(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args)
28 #define ERR_LOG(fmt, args...) \ argument
29 HILOG_ERROR(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args)
30 #define WARNING_LOG(fmt, args...) \ argument
31 HILOG_WARN(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args)
32 #define INFO_LOG(fmt, args...) \ argument
33 HILOG_INFO(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args)
34 #define FATAL_LOG(fmt, args...) \ argument
35 HILOG_FATAL(LOG_CORE, "{%{public}s():%{public}d} " fmt, __FUNCTION__, __LINE__, ##args)
/foundation/distributeddatamgr/appdatamgr/frameworks/jskitsimpl/napi_rdb/src/
Dnapi_rdb_predicates.cpp91 napi_value args[1] = { 0 }; in New() local
93 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, &thiz, nullptr)); in New()
97 NAPI_CALL(env, napi_typeof(env, args[0], &valueType)); in New()
99 std::string tableName = JSUtils::Convert2String(env, args[0]); in New()
111 napi_value argv[1] = { args[0] }; in New()
132 napi_value args[1] = { JSUtils::Convert2JSValue(env, value->GetTableName()) }; in NewInstance() local
134 status = napi_new_instance(env, cons, argc, args, &instance); in NewInstance()
181 napi_value args[2] = { 0 }; in EqualTo() local
182 napi_get_cb_info(env, info, &argc, args, &thiz, nullptr); in EqualTo()
184 std::string field = JSUtils::Convert2String(env, args[0]); in EqualTo()
[all …]
/foundation/ace/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 AceScopedTrace() local
52 va_start(args, format); in AceScopedTrace()
53 traceEnabled_ = AceTraceBeginWithArgv(format, args); in AceScopedTrace()
54 va_end(args); in AceScopedTrace()
/foundation/ace/ace_engine_lite/frameworks/src/core/modules/
Dsample_module.cpp25 JSIValue SampleModule::TestCallFunc(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in TestCallFunc() argument
30 JSIValue SampleModule::TestCallback(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in TestCallback() argument
33 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in TestCallback()
37 JSIValue callback = JSI::GetNamedProperty(args[0], CB_CALLBACK); in TestCallback()
47 JSIValue SampleModule::TestStandardCallback(const JSIValue thisVal, const JSIValue *args, uint8_t a… in TestStandardCallback() argument
50 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in TestStandardCallback()
53 JSIValue success = JSI::GetNamedProperty(args[0], CB_SUCCESS); in TestStandardCallback()
54 JSIValue fail = JSI::GetNamedProperty(args[0], CB_FAIL); in TestStandardCallback()
55 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in TestStandardCallback()
89 JSIValue SampleModule::TestCallbackWithArgs(const JSIValue thisVal, const JSIValue *args, uint8_t a… in TestCallbackWithArgs() argument
[all …]
/foundation/ace/ace_engine/frameworks/core/components/common/properties/
Ddecoration.cpp255 PathArgs args; in CanvasPath2D() local
256 args.cmds = cmds; in CanvasPath2D()
257 caches_.emplace_back(PathCmd::CMDS, args); in CanvasPath2D()
278 PathArgs args; in SetTransform() local
279 args.para1 = a; in SetTransform()
280 args.para2 = b; in SetTransform()
281 args.para3 = c; in SetTransform()
282 args.para4 = d; in SetTransform()
283 args.para5 = e; in SetTransform()
284 args.para6 = f; in SetTransform()
[all …]
/foundation/multimedia/image_standard/frameworks/kits/js/common/
Dimage_receiver_napi.cpp212 int32_t args[ARGS4] = {0}; in JSCreateImageReceiver() local
235 status = napi_get_value_int32(env, argv[i], &(args[i])); in JSCreateImageReceiver()
244 …staticInstance_ = ImageReceiver::CreateImageReceiver(args[PARAM0], args[PARAM1], args[PARAM2], arg… in JSCreateImageReceiver()
258 static bool CheckArgs(ImageReceiverCommonArgs &args) in CheckArgs() argument
260 if (args.async != CallType::GETTER) { in CheckArgs()
261 if (args.queryArgs == nullptr) { in CheckArgs()
267 if (args.async != CallType::ASYNC || args.asyncLater) { in CheckArgs()
268 if (args.nonAsyncBack == nullptr) { in CheckArgs()
276 static bool PrepareOneArg(ImageReceiverCommonArgs &args, struct ImageReceiverInnerContext &ic) in PrepareOneArg() argument
279 auto argType = ImageNapiUtils::getType(args.env, ic.argv[PARAM0]); in PrepareOneArg()
[all …]
/foundation/windowmanager/utils/src/
Dwm_trace.cpp51 bool WmTraceBeginWithArgv(const char* format, va_list args) in WmTraceBeginWithArgv() argument
54 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in WmTraceBeginWithArgv()
64 va_list args; in WmTraceBeginWithArgs() local
65 va_start(args, format); in WmTraceBeginWithArgs()
66 bool retVal = WmTraceBeginWithArgv(format, args); in WmTraceBeginWithArgs()
67 va_end(args); in WmTraceBeginWithArgs()
76 va_list args; in WmScopedTrace() local
77 va_start(args, format); in WmScopedTrace()
78 traceEnabled_ = WmTraceBeginWithArgv(format, args); in WmScopedTrace()
79 va_end(args); in WmScopedTrace()
/foundation/resourceschedule/frame_aware_sched/common/src/
Drme_scoped_trace.cpp48 bool RmeTraceBeginWithArgv(const char* format, va_list args) in RmeTraceBeginWithArgv() argument
51 if (vsnprintf_s(name, sizeof(name), sizeof(name) - 1, format, args) < 0) { in RmeTraceBeginWithArgv()
61 va_list args; in RmeTraceBeginWithArgs() local
62 va_start(args, format); in RmeTraceBeginWithArgs()
63 bool retVal = RmeTraceBeginWithArgv(format, args); in RmeTraceBeginWithArgs()
64 va_end(args); in RmeTraceBeginWithArgs()
73 va_list args; in RmeScopedTrace() local
74 va_start(args, format); in RmeScopedTrace()
75 traceEnabled_ = RmeTraceBeginWithArgv(format, args); in RmeScopedTrace()
76 va_end(args); in RmeScopedTrace()

12345678910>>...31