/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_path.cpp | 76 auto jsPath = AceType::MakeRefPtr<JSPath>(); in ConstructorCallback() local 85 jsPath->SetBasicShape(path); in ConstructorCallback() 86 jsPath->IncRefCount(); in ConstructorCallback() 87 info.SetReturnValue(AceType::RawPtr(jsPath)); in ConstructorCallback() 90 void JSPath::DestructorCallback(JSPath* jsPath) in DestructorCallback() argument 92 if (jsPath != nullptr) { in DestructorCallback() 93 jsPath->DecRefCount(); in DestructorCallback()
|
H A D | js_path_shape.cpp | 22 auto jsPath = AceType::MakeRefPtr<JSPathShape>(); in ConstructorCallback() local 34 jsPath->SetBasicShape(path); in ConstructorCallback() 35 jsPath->IncRefCount(); in ConstructorCallback() 36 info.SetReturnValue(AceType::RawPtr(jsPath)); in ConstructorCallback()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/ |
H A D | js_path.cpp | 95 JsPath* jsPath = nullptr; in Constructor() local 103 jsPath = new JsPath(path); in Constructor() 113 jsPath = new JsPath(p); in Constructor() 117 if (!jsPath) { in Constructor() 121 status = napi_wrap(env, jsThis, jsPath, in Constructor() 124 delete jsPath; in Constructor() 146 auto jsPath = new JsPath(path); in CreateJsPath() local 149 delete jsPath; in CreateJsPath() 153 status = napi_wrap(env, result, jsPath, JsPath::Destructor, nullptr, nullptr); in CreateJsPath() 155 delete jsPath; in CreateJsPath() 668 JsPath* jsPath = nullptr; OnOp() local 986 JsPath* jsPath = nullptr; OnAddPath() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
H A D | js_app_context.cpp | 258 void JsAppContext::SetCurrentJsPath(const char * const jsPath) in SetCurrentJsPath() argument 266 if (jsPath != nullptr) { in SetCurrentJsPath() 267 size_t jsPathLen = strlen(jsPath); in SetCurrentJsPath() 274 if (memcpy_s(currentJsPath_, jsPathLen, jsPath, jsPathLen) != 0) { in SetCurrentJsPath()
|
H A D | js_app_context.h | 86 void SetCurrentJsPath(const char * const jsPath);
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/region_napi/ |
H A D | js_region.cpp | 252 JsPath* jsPath = nullptr; in OnSetPath() local 253 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnSetPath() 254 if (jsPath->GetPath() == nullptr) { in OnSetPath() 255 ROSEN_LOGE("JsRegion::OnSetPath jsPath is nullptr"); in OnSetPath() 265 return CreateJsValue(env, m_region->SetPath(*jsPath->GetPath(), *jsClip->GetRegion())); in OnSetPath()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_parser.cpp | 611 char *jsPath = nullptr; in CreateBundleInfo() local 614 jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in CreateBundleInfo() 617 jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in CreateBundleInfo() 619 if (jsPath == nullptr) { in CreateBundleInfo() 625 AbilityInfo abilityInfo = {.srcPath = jsPath, .bundleName = bundleInfo->bundleName}; in CreateBundleInfo() 845 char *jsPath = nullptr; in SaveBundleInfo() local 848 jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in SaveBundleInfo() 851 jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in SaveBundleInfo() 853 if (jsPath == nullptr) { in SaveBundleInfo() 859 AbilityInfo abilityInfo = {.srcPath = jsPath, in SaveBundleInfo() [all...] |
H A D | gt_bundle_installer.cpp | 497 char *jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in TransformJsToBc() local 498 if (jsPath == nullptr) { in TransformJsToBc() 501 if (!BundleUtil::IsDir(jsPath)) { in TransformJsToBc() 502 AdapterFree(jsPath); in TransformJsToBc() 504 jsPath = BundleUtil::Strscat(newJsPathComp, sizeof(newJsPathComp) / sizeof(char *)); in TransformJsToBc() 505 if (jsPath == nullptr) { in TransformJsToBc() 509 EXECRES result = walk_directory(jsPath); in TransformJsToBc() 512 AdapterFree(jsPath); in TransformJsToBc() 515 AdapterFree(jsPath); in TransformJsToBc()
|
H A D | gt_bundle_manager_service.cpp | 1000 char *jsPath = BundleUtil::Strscat(jsPathComp, sizeof(jsPathComp) / sizeof(char *)); in TransformJsToBc() local 1001 if (jsPath == nullptr) { in TransformJsToBc() 1005 EXECRES result = walk_directory(jsPath); in TransformJsToBc() 1008 result = walk_del_bytecode(jsPath); in TransformJsToBc() 1010 AdapterFree(jsPath); in TransformJsToBc() 1013 AdapterFree(jsPath); in TransformJsToBc()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/ |
H A D | js_canvas.cpp | 528 JsPath* jsPath = nullptr; in OnDrawShadow() local 529 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnDrawShadow() 564 if (jsPath->GetPath() == nullptr) { in OnDrawShadow() 573 m_canvas->DrawShadow(*jsPath->GetPath(), offset, lightPos, lightRadius, ambientColorPara, spotColorPara, in OnDrawShadow() 1002 JsPath* jsPath = nullptr; in OnDrawPath() local 1003 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnDrawPath() 1005 if (jsPath->GetPath() == nullptr) { in OnDrawPath() 1011 m_canvas->DrawPath(*jsPath->GetPath()); in OnDrawPath() 1594 JsPath* jsPath = nullptr; in OnClipPath() local 1595 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnClipPath() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | js_fwk_common.cpp | 491 const char * const jsPath = JsAppContext::GetInstance()->GetCurrentJsPath(); in RelocateFilePathRelative() local 492 if (jsPath == nullptr) { in RelocateFilePathRelative() 495 const char * const ret = strrchr(jsPath, RESOURCE_SEPARATOR); in RelocateFilePathRelative() 499 size_t jsPathLen = strlen(jsPath); in RelocateFilePathRelative() 512 if (memcpy_s(dirPath, len, jsPath, len) != 0) { in RelocateFilePathRelative()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/paragraph_napi/ |
H A D | js_paragraph.cpp | 206 Drawing::JsPath* jsPath = nullptr; in OnPaintOnPath() local 210 GET_UNWRAP_PARAM(ARGC_ONE, jsPath); in OnPaintOnPath() 211 if (!jsCanvas || !jsCanvas->GetCanvas() || !jsPath || !jsPath->GetPath() || in OnPaintOnPath() 216 paragraph_->Paint(jsCanvas->GetCanvas(), jsPath->GetPath(), hOffset, vOffset); in OnPaintOnPath()
|