Home
last modified time | relevance | path

Searched refs:FileSystem (Results 1 - 12 of 12) sorted by relevance

/ide/tools/previewer/util/
H A DFileSystem.cpp16 #include "FileSystem.h"
24 std::vector<std::string> FileSystem::pathList = {"file_system", "app", "ace", "data"};
25 std::string FileSystem::bundleName = "";
26 std::string FileSystem::fileSystemPath = "";
29 std::string FileSystem::separator = "\\";
31 std::string FileSystem::separator = "/";
34 bool FileSystem::IsFileExists(std::string path) in IsFileExists()
39 bool FileSystem::IsDirectoryExists(std::string path) in IsDirectoryExists()
44 std::string FileSystem::GetApplicationPath() in GetApplicationPath()
55 const std::string& FileSystem
[all...]
H A DFileSystem.h22 class FileSystem { class
H A DCommandParser.cpp21 #include "FileSystem.h"
329 if (!FileSystem::IsDirectoryExists(path)) { in IsAppPathValid()
459 if (!FileSystem::IsFileExists(path)) { in IsConfigPathValid()
475 if (!FileSystem::IsDirectoryExists(path)) { in IsAppResourcePathValid()
757 if (!FileSystem::IsDirectoryExists(path)) { in IsContainerSdkPathValid()
991 if (!FileSystem::IsFileExists(path)) { in IsLoaderJsonPathValid()
/ide/tools/previewer/test/unittest/jsapp_lite/
H A DJsAppImplTest.cpp23 #include "FileSystem.h"
53 testConfigPath = FileSystem::GetApplicationPath() + FileSystem::separator + ".." + in SetUpTestCase()
54 FileSystem::separator + "config" + FileSystem::separator; in SetUpTestCase()
55 std::string srcBrkPath = FileSystem::GetApplicationPath() + FileSystem::separator + in SetUpTestCase()
57 std::string srcFontPath = FileSystem::GetApplicationPath() + FileSystem::separator + in SetUpTestCase()
/ide/tools/previewer/jsapp/rich/external/
H A DStageContext.cpp21 #include "FileSystem.h"
37 if (!FileSystem::IsFileExists(filePath)) { in ReadFileContents()
59 loaderJsonPath = FileSystem::NormalizePath(assetPath); in SetLoaderJsonPath()
60 if (loaderJsonPath.empty() || !FileSystem::IsFileExists(loaderJsonPath)) { in SetLoaderJsonPath()
74 if (!FileSystem::IsFileExists(loaderJsonPath)) { in GetModulePathMapFromLoaderJson()
111 if (!FileSystem::IsFileExists(hspConfigPath)) { in GetHspAceModuleBuild()
194 if (!FileSystem::IsDirectoryExists(modulePath)) { in GetLocalModuleBuffer()
202 std::string separator = FileSystem::GetSeparator(); in GetLocalModuleBuffer()
211 if (!FileSystem::IsDirectoryExists(abcDir)) { in GetLocalModuleBuffer()
216 if (!FileSystem in GetLocalModuleBuffer()
[all...]
/ide/tools/previewer/test/unittest/jsapp/
H A DStageContextTest.cpp19 #include "FileSystem.h"
59 if (!FileSystem::IsDirectoryExists(hspDir)) { in SetUpTestCase()
60 FileSystem::MakeDir(testDir + "/MyApplication32"); in SetUpTestCase()
61 FileSystem::MakeDir(testDir + "/MyApplication32/oh_modules"); in SetUpTestCase()
62 FileSystem::MakeDir(testDir + "/MyApplication32/oh_modules/.hsp"); in SetUpTestCase()
63 FileSystem::MakeDir(testDir + "/MyApplication32/oh_modules/.hsp/example@1.0.0"); in SetUpTestCase()
69 if (!FileSystem::IsDirectoryExists("ets")) { in SetUpTestCase()
70 FileSystem::MakeDir(testDir + "/ets"); in SetUpTestCase()
89 if (FileSystem::IsDirectoryExists(etsDir)) { in TearDownTestCase()
247 if (FileSystem in TEST_F()
[all...]
H A DJsAppImplTest.cpp28 #include "FileSystem.h"
464 EXPECT_EQ(FileSystem::bundleName, "aaa"); in TEST_F()
465 size_t pos = FileSystem::fileSystemPath.find("aaa"); in TEST_F()
519 const std::string moduleJsonPath = testDir + FileSystem::GetSeparator() + "module.json"; in TEST_F()
520 const std::string pkgContextInfoJsonPath = testDir + FileSystem::GetSeparator() + "pkgContextInfo.json"; in TEST_F()
/ide/tools/previewer/mock/
H A DSystemCapability.cpp21 #include "FileSystem.h"
47 std::string separator = FileSystem::GetSeparator(); in ReadCapability()
48 std::string filePath = FileSystem::GetApplicationPath() + separator + ".." + separator + "config" + separator + in ReadCapability()
/ide/tools/previewer/jsapp/
H A DJsApp.cpp20 #include "FileSystem.h"
105 FileSystem::SetBundleName(name); in SetBundleName()
106 FileSystem::MakeVirtualFileSystemPath(); in SetBundleName()
/ide/tools/previewer/mock/lite/
H A DHalSysParam.cpp20 #include "FileSystem.h"
149 return FileSystem::GetVirtualFileSystemPath().data(); in GetDataPath()
/ide/tools/previewer/jsapp/lite/
H A DJsAppImpl.cpp37 #include "FileSystem.h"
79 std::string separator = FileSystem::GetSeparator(); in InitFontEngine()
80 std::string fontPath = FileSystem::GetApplicationPath() + separator + ".." + separator + "config" + separator; in InitFontEngine()
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp19 #include "FileSystem.h"
319 const std::string path = commandInfo.appResourcePath + FileSystem::GetSeparator() + "module.json"; in SetSimulatorParams()
320 if (!FileSystem::IsFileExists(path)) { in SetSimulatorParams()
336 options.modulePath = aceRunArgs.assetPath + FileSystem::GetSeparator() + "modules.abc"; in SetSimulatorCommonParams()
337 options.resourcePath = commandInfo.appResourcePath + FileSystem::GetSeparator() + "resources.index"; in SetSimulatorCommonParams()
369 options.previewPath = fPath.substr(0, pos) + ".idea" + FileSystem::GetSeparator() + "previewer"; in SetSimulatorCommonParams()
554 std::string sep = FileSystem::GetSeparator(); in SetSystemResourcesPath()
555 std::string rPath = FileSystem::GetApplicationPath(); in SetSystemResourcesPath()
556 rPath = FileSystem::NormalizePath(rPath); in SetSystemResourcesPath()
900 std::string filePath = commandInfo.appResourcePath + FileSystem in SetMockJsonInfo()
[all...]

Completed in 14 milliseconds