Home
last modified time | relevance | path

Searched refs:jsPath (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_path.cpp84 auto jsPath = AceType::MakeRefPtr<JSPath>(); in ConstructorCallback() local
93 jsPath->SetBasicShape(path); in ConstructorCallback()
94 jsPath->IncRefCount(); in ConstructorCallback()
95 info.SetReturnValue(AceType::RawPtr(jsPath)); in ConstructorCallback()
98 void JSPath::DestructorCallback(JSPath* jsPath) in DestructorCallback() argument
100 if (jsPath != nullptr) { in DestructorCallback()
101 jsPath->DecRefCount(); in DestructorCallback()
H A Djs_path_shape.cpp22 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()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/
H A Djs_path.cpp95 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()
124 delete jsPath; in Constructor()
146 auto jsPath = new JsPath(path); in CreateJsPath() local
149 delete jsPath; in CreateJsPath()
155 delete jsPath; in CreateJsPath()
668 JsPath* jsPath = nullptr; in OnOp() local
670 if (jsPath->GetPath() == nullptr) { in OnOp()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/
H A Dgt_bundle_parser.cpp611 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()
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()
863 AdapterFree(jsPath); in SaveBundleInfo()
870 AdapterFree(jsPath); in SaveBundleInfo()
[all …]
H A Dgt_bundle_installer.cpp497 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 Dgt_bundle_manager_service.cpp1000 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()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/region_napi/
H A Djs_region.cpp252 JsPath* jsPath = nullptr; in OnSetPath() local
253 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnSetPath()
254 if (jsPath->GetPath() == nullptr) { in OnSetPath()
265 return CreateJsValue(env, m_region->SetPath(*jsPath->GetPath(), *jsClip->GetRegion())); in OnSetPath()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/context/
H A Djs_app_context.cpp258 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 Djs_app_context.h86 void SetCurrentJsPath(const char * const jsPath);
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/paragraph_napi/
H A Djs_paragraph.cpp208 Drawing::JsPath* jsPath = nullptr; in OnPaintOnPath() local
212 GET_UNWRAP_PARAM(ARGC_ONE, jsPath); in OnPaintOnPath()
213 if (!jsCanvas || !jsCanvas->GetCanvas() || !jsPath || !jsPath->GetPath() || in OnPaintOnPath()
218 paragraph_->Paint(jsCanvas->GetCanvas(), jsPath->GetPath(), hOffset, vOffset); in OnPaintOnPath()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Djs_fwk_common.cpp491 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()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/canvas_napi/
H A Djs_canvas.cpp514 JsPath* jsPath = nullptr; in OnDrawShadow() local
515 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnDrawShadow()
541 if (jsPath->GetPath() == nullptr) { in OnDrawShadow()
550 …m_canvas->DrawShadow(*jsPath->GetPath(), offset, lightPos, lightRadius, ambientColorPara, spotColo… in OnDrawShadow()
983 JsPath* jsPath = nullptr; in OnDrawPath() local
984 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnDrawPath()
986 if (jsPath->GetPath() == nullptr) { in OnDrawPath()
992 m_canvas->DrawPath(*jsPath->GetPath()); in OnDrawPath()
1595 JsPath* jsPath = nullptr; in OnClipPath() local
1596 GET_UNWRAP_PARAM(ARGC_ZERO, jsPath); in OnClipPath()
[all …]