/ohos5.0/base/startup/init/services/modules/trace/ |
H A D | init_trace.cfg | 9 "sys-files" : [ 27 "sys-files" : [ 36 "sys-files" : [ 45 "sys-files" : [ 54 "sys-files" : [ 64 "sys-files" : [ 74 "sys-files" : [ 91 "sys-files" : [ 100 "sys-files" : [ 109 "sys-files" : [ [all …]
|
/ohos5.0/docs/en/application-dev/file-management/ |
H A D | user-file-overview.md | 5 - User files are stored in a directory, whose owner is the user who has logged in to the device. 9 - An application cannot access user files without user authorization, or the operations on user fil… 17 …es of a user: The files belong to the user who has logged in to the device. Different login users … 19 - Image/Video files<br> 20 …files have attributes, such as the shooting time, location, rotation angle, and file width and hei… 22 - Audio files<br> 23 …The files have attributes, such as the album, artist, and duration information, and are stored in … 25 - Other files (documents)<br> 26 …files are stored as common files, including common text files, compressed files, and images, video… 29 The files in the share directory are stored as common files and presented in a directory tree. [all …]
|
H A D | core-file-kit-intro.md | 3 …application files and user files. You can use the APIs provided by Core File Kit to manage, search… 7 In Core File Kit, the files are classified into the following types based on the file owner: 9 - [Application files](app-file-overview.md): files of an application, including the installation fi… 11 - [User files](user-file-overview.md): files of a user who has logged in to the device. User files … 13 …em files: files irrelevant to applications and users. System files include public libraries, devic… 29 - Access to and share of application files 31 - Operations for selecting and saving user files 37 - Uploading application files to a network server and downloading network resource files from a net… 39 - Sharing application files to other applications and using the files shared by other applications. 44 - Accessing and copying files across devices. [all …]
|
H A D | app-file-overview.md | 3 Application files are files of an application, including the application's installation files, reso… 5 …files, key-value (KV) pairs, and databases in a dedicated directory on a device. This directory is… 7 … application file directory and a directory containing the minimum system files required for the r… 9 - The system files and directories are read-only for the application. The application can only save… 11 …tion sandbox, application file directories, and how to access, manage, and share application files.
|
H A D | app-sandbox-directory.md | 7 …access only its own application files and the system files required for its running. The applicati… 9 …ss its application files in the application file directory, and can only read the system files and… 52 2. Level 2 directory **storage/**: directory for persistent files of the application. 54 3. Level 3 directories **el1/** and **el2/**: directories for files of different encryption levels. 60 …The application global data is stored in the **distributedfiles** directory and **files**, **cache… 62 …. When a HAP is uninstalled, the files in the **haps/** directory are automatically deleted, witho… 72 …ctory for the device's files| Directory for saving the application's persistent data on the device… 73 …files operated by the distributed database service.<br>This directory is cleared when the applicat… 75 …files | filesDir | Application file directory| Directory for saving the application's persistent f… 78 …files generated and required during the application's runtime on the device. <br>This directory is… [all …]
|
H A D | native-fileshare-guidelines.md | 13 …licyErrorResult **result, unsigned int *resultNum) | Persists the permissions on files or folders.| 14 …icyErrorResult **result, unsigned int *resultNum) | Revokes the permissions from files or folders.| 15 …ult **result, unsigned int *resultNum) | Activates the persistent permissions on files or folders.| 17 …, bool **result, unsigned int *resultNum) | Checks the persistent permissions on files or folders.| 44 … and use **OH_FileShare_PersistPermission** to persist the permissions on files based on their URI… 47 char strTestPath1[] = "file://com.example.fileshare/data/storage/el2/base/files/test1.txt"; 48 char strTestPath2[] = "file://com.example.fileshare/data/storage/el2/base/files/test2.txt"; 66 2. Call **OH_FileShare_ActivatePermission** to activate the persistent permissions on files. The ma… 80 3. Call **OH_FileShare_DeactivatePermission** to deactivate the persistent permissions on files. Th… 94 4. Call **OH_FileShare_RevokePermission** to revoke the persistent permissions from files. The maxi… [all …]
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/cleaner/ |
H A D | app_event_log_cleaner.cpp | 40 std::vector<std::string> files; in ClearSpace() local 41 FileUtil::GetDirFiles(path_, files); in ClearSpace() 44 sort(files.begin(), files.end()); in ClearSpace() 47 while (!files.empty() && nowSize > maxSize) { in ClearSpace() 48 std::string delFile = files[0]; in ClearSpace() 49 files.erase(files.begin()); in ClearSpace() 67 std::vector<std::string> files; in ClearData() local 68 FileUtil::GetDirFiles(path_, files); in ClearData() 69 for (const auto& file : files) { in ClearData()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/io/dev/ |
H A D | FileMonitor.cpp | 106 std::vector<std::string> files; in recursivelyCollectAllFiles() local 183 std::vector<std::string> files; in AddPath() local 187 for (const auto& ref : files) { in AddPath() 202 std::vector<std::string> files; in RemovePath() local 279 std::vector<std::string> files; in scanModifications() local 285 for (std::vector<std::string>::iterator it = files.begin(); it != files.end(); ++it) { in scanModifications() 307 if (std::find(files.begin(), files.end(), ref.first) == files.end()) { in scanModifications() 328 std::vector<std::string> files; in getMonitoredFiles() local 329 files.reserve(mFiles.size()); in getMonitoredFiles() 332 files.push_back(it->first); in getMonitoredFiles() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
H A D | common_util.cpp | 62 std::vector<std::string>& files) in GetDirRegexFiles() argument 74 … files.push_back(FileUtil::IncludeTrailingPathDelimiter(path) + std::string(ptr->d_name)); in GetDirRegexFiles() 79 std::sort(files.begin(), files.end()); in GetDirRegexFiles() 107 std::vector<std::string> files; in CreateExportFile() local 108 GetDirRegexFiles(path, prefix + EXPORT_FILE_REGEX, files); in CreateExportFile() 109 if (files.size() >= static_cast<size_t>(maxFileNum)) { in CreateExportFile() 110 for (size_t index = 0; index <= files.size() - static_cast<size_t>(maxFileNum); ++index) { in CreateExportFile() 111 HIVIEW_LOGI("remove file=%{public}s", FileUtil::ExtractFileName(files[index]).c_str()); in CreateExportFile() 112 (void)FileUtil::RemoveFile(files[index]); in CreateExportFile() 120 if (!files.empty()) { in CreateExportFile() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/ |
H A D | nstackx_file_list.c | 295 files[i] = fileList->tarFile; in FileListGetNames() 518 free(fileListInfo->files[end - 1]); in FreeFileListInfo() 521 free(fileListInfo->files); in FreeFileListInfo() 522 fileListInfo->files = NULL; in FreeFileListInfo() 538 fileListInfo->files[i] = calloc(1, strlen(fileListPara->files[i]) + 1); in CopyFilesListInfo() 539 if (fileListInfo->files[i] == NULL) { in CopyFilesListInfo() 544 … if (memcpy_s(fileListInfo->files[i], strlen(fileListPara->files[i]) + 1, fileListPara->files[i], in CopyFilesListInfo() 625 if (fileListInfo->files == NULL) { in CreateFileListInfo() 670 free(fileListInfo->files[i]); in DestroyFileListInfo() 672 free(fileListInfo->files); in DestroyFileListInfo() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | extension_plugin_info_test.cpp | 91 std::vector<std::string> files; variable 92 bool res = ExtensionPluginInfo::GetInstance().ScanExtensions(files); 95 EXPECT_NE(files.size(), 0); 98 EXPECT_EQ(files.size(), 0); 112 std::vector<std::string> files; variable 113 bool res = ExtensionPluginInfo::GetInstance().ScanExtensions(files); 116 EXPECT_NE(files.size(), 0); 119 EXPECT_EQ(files.size(), 0); 121 ExtensionPluginInfo::GetInstance().ParseExtensions(files);
|
/ohos5.0/base/update/updater/interfaces/kits/packages/ |
H A D | package.cpp | 30 std::vector<std::pair<std::string, ComponentInfo>> &files, in GetUpgradePkgInfo() argument 54 files.resize(pkgInfoExt->entryCount); in GetUpgradePkgInfo() 56 files[i].first.assign(compInfo[i].filePath); in GetUpgradePkgInfo() 57 ComponentInfo* info = &files[i].second; in GetUpgradePkgInfo() 78 std::vector<std::pair<std::string, ZipFileInfo>> &files, in GetZipPkgInfo() argument 86 files.resize(pkgInfoExt->entryCount); in GetZipPkgInfo() 88 files[i].first.assign(compInfo[i].filePath); in GetZipPkgInfo() 89 ZipFileInfo* info = &files[i].second; in GetZipPkgInfo() 106 files.resize(pkgInfoExt->entryCount); in GetLz4PkgInfo() 108 files[i].first.assign(compInfo[i].filePath); in GetLz4PkgInfo() [all …]
|
/ohos5.0/docs/en/application-dev/tools/ |
H A D | app-check-tool.md | 6 - Scans for duplicate files. 7 - Scans for large files (files that exceed the specified size). 39 "taskDesc":"find the duplicated files", 46 "files":[ 71 | files | Vector\<String> | Paths of the duplicate files. | 94 "taskDesc":"find files whose size exceed the limit size", 145 "taskDesc":"show files group by file type[.suffix]", 156 "files":[{ 165 "files":[{ 197 | files | Stuct | [Fields of files](#section4) | [all …]
|
H A D | packing-tool.md | 3 …ol packs compiled files for installation and release. You can use DevEco Studio or the JAR package… 91 … rules**: When packaging the APP files, the HAP and HSP files in release mode are compressed, but … 108 …files. The file name extension must be .hap. If there are multiple HAP files, separate them with c… 109 …files. The file name extension must be .hsp. If there are multiple HSP files, separate them with c… 141 …files | Path of the HAP files. The file name extension must be .hap. If there are multiple HAP f… 142 …files | Path of the HSP files. The file name extension must be .hsp. If there are multiple HSP f… 143 …files | Path of the APP files. The file name extension must be .app. If there are multiple APP f… 205 …files | Path of the HAP or HSP files. The file name extension must be .hap or .hsp. If there … 224 …files | Path of the HSP files. The file name extension must be .hsp. If there are multiple HSP… 255 … rules**: When packaging the APP files, the HAP and HSP files in release mode are compressed, but … [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | js-framework-file.md | 15 Functions of the files are as follows: 17 - .hml files describe the page layout. 18 - .css files describe the page style. 19 - .js files process the page logic and user interactions . 25 …*common** directory stores public resource files, such as media resources, custom components, and… 26 - The **resources** directory stores resource configuration files, for example, for multi-resolut… 27 …gure resources shared by multiple instances. For example, images and JSON files in this directory … 42 - Store code files and resource files in the **common** directory and access the files in a requi… 49 … If code files A and B are in the same directory, you can use either a relative or absolute path… 50 >- If code files A and B are in different directories, you must use an absolute path in code file…
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-file.md | 22 Functions of the files are as follows: 24 - **.hml** files describe the widget template layout. 26 - **.css** files describe the page style. 28 - **.json** files define variables and action events used for a service widget. 34 - The **common** folder stores public resource files, such as images. 46 - Store code files and resource files in the **common** directory and access them in the required f… 54 … - If code files A and B are in the same directory, you can use either a relative or absolute path… 56 > - If code files A and B are in different directories, you must use an absolute path in code file … 58 > - When defining data in a **.json** file, use absolute paths for resource files.
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js-lite/ |
H A D | js-lite-framework-file.md | 12 Functions of the files are as follows: 14 - **.hml** files describe the page layout. 16 - **.css** files describe the page style. 18 - **.js** files process the interactions between pages and users. 24 - The **common** directory stores public resource files, such as media resources and **.js** files. 43 - Store code files and resource files in the **common** directory and access the files in a require… 51 … - If code files A and B are in the same directory, you can use either a relative or absolute path… 53 > - If code files A and B are in different directories, you must use an absolute path in code file…
|
/ohos5.0/base/update/updater/test/unittest/package/ |
H A D | pkg_manager_unittest.cpp | 110 files.resize(testFileNames_.size()); in GetUpgradePkgInfo() 114 files[i].first = filePath; in GetUpgradePkgInfo() 116 ComponentInfo* info = &files[i].second; in GetUpgradePkgInfo() 137 GetUpgradePkgInfo(pkgInfo, files); in TestPackagePack() 152 GetUpgradePkgInfo(pkgInfo, files); in TestPackagePackFileNotExist() 157 files[0].first = "sssssssssss"; in TestPackagePackFileNotExist() 246 GetUpgradePkgInfo(pkgInfo, files); in TestCreatePackageInvalidFile() 271 GetUpgradePkgInfo(pkgInfo, files); in TestCreatePackageInvalidSignMethod() 285 std::vector<std::pair<std::string, Lz4FileInfo>> files; in TestLz4PackageInvalidFile() local 310 std::vector<std::pair<std::string, Lz4FileInfo>> files; in TestLz4PackageInvalidPkgType() local [all …]
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | application-package-structure-fa.md | 7 …files of a HAP file are stored. In the FA model, all the resource files, library files, and code f… 12 - The **assets** folder is a collection of all the resource files, library files, and code files in… 14 - The **resources** folder stores resource files (such as strings and images) of the application. F… 18 - The **js** folder stores code files created after compilation.
|
H A D | application-package-structure-stage.md | 22 | Configuration files| A collection of application-level and module-level configurations.<br> - **A… 23 | ArkTS source code files| **Module_name > src > main > ets**: ArkTS source code files of … 24 …files| A collection of application-level and module-level resource files, including images, multim… 25 …n files| A collection of files used for compilation and building, including build configuration fi… 34 From the development phase to the build phase, the files in the module directory are changed as fol… 35 - **ets** directory: The ArkTS source code files are built into .abc files. 36 …**resources** directory: The resource files in the **AppScope** directory are merged into this dir… 45 …t least one HAP and zero, one or more HSPs. The collection of HAP and HSP files in an application … 64 … the application package may contain multiple copies of code and resource files for the HAPs or HS… 65 … the shared package can avoid the unnecessary copies of code and resource files and thereby reduce… [all …]
|
/ohos5.0/base/print/print_fwk/test/unittest/fwk_print_cups_client_test/ |
H A D | print_cups_client_test.cpp | 284 testJob.SetFdList(files); 323 testJob.SetFdList(files); 379 testJob.SetFdList(files); 409 testJob.SetFdList(files); 438 testJob.SetFdList(files); 467 testJob.SetFdList(files); 681 testJob.SetFdList(files); 765 testJob.SetFdList(files); 797 testJob.SetFdList(files); 830 testJob.SetFdList(files); [all …]
|
/ohos5.0/base/update/updater/services/applypatch/ |
H A D | store.cpp | 33 std::vector<std::string> files; in DoFreeSpace() local 34 if (GetFilesFromDirectory(directoryPath, files, true) <= 0) { in DoFreeSpace() 38 for (const auto &file : files) { in DoFreeSpace() 80 std::vector<std::string> files {}; in CreateNewSpace() local 81 if (GetFilesFromDirectory(dirPath, files) < 0) { in CreateNewSpace() 84 if (files.empty()) { in CreateNewSpace() 87 std::vector<std::string>::iterator iter = files.begin(); in CreateNewSpace() 88 while (iter != files.end()) { in CreateNewSpace() 94 files.clear(); in CreateNewSpace()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/file/src/ |
H A D | client_trans_file.c | 73 if (event->statusList.completedList.files == NULL) { in FillFileStatusList() 78 if (event->statusList.notCompletedList.files == NULL) { in FillFileStatusList() 83 if (event->statusList.notStartedList.files == NULL) { in FillFileStatusList() 117 if (event->statusList.completedList.files != NULL) { in FreeFileStatusList() 119 event->statusList.completedList.files = NULL; in FreeFileStatusList() 123 event->statusList.notCompletedList.files = NULL; in FreeFileStatusList() 125 if (event->statusList.notStartedList.files != NULL) { in FreeFileStatusList() 127 event->statusList.notStartedList.files = NULL; in FreeFileStatusList() 183 event.files = msgData->fileList.files; in NotifySocketSendResult() 287 const char *firstFile = msgData->fileList.files[0]; in NotifyRecvResult() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | app-file-backup-extension.md | 60 "/data/storage/el2/base/files/users/" 63 "/data/storage/el2/base/files/users/hidden/" 151 …files/A/** 。那么在恢复时,如果配置了fullBackupOnly为false,数据会被直接解压到:**/data/storage/el2/base/files/A/**目录下,如果配置… 159 "data/storage/el1/base/files/", 161 "data/storage/el1/base/haps/*/files/", 164 "data/storage/el2/base/files/", 166 "data/storage/el2/base/haps/*/files/", 170 "data/storage/el5/base/files/", 172 "data/storage/el5/base/haps/*/files/",
|
/ohos5.0/base/startup/init/services/modules/seccomp/ |
H A D | seccomp_policy.c | 117 CfgFiles *files = GetCfgFiles(filterLibPath); in GetFilterFileByName() local 118 for (int i = MAX_CFG_POLICY_DIRS_CNT - 1; files && i >= 0; i--) { in GetFilterFileByName() 119 if (files->paths[i]) { in GetFilterFileByName() 125 if (seccompPathNum == 1 && files && files->paths[0]) { in GetFilterFileByName() 126 … if (memcpy_s(filterLibRealPath, pathSize, files->paths[0], strlen(files->paths[0]) + 1) == EOK) { in GetFilterFileByName() 130 FreeCfgFiles(files); in GetFilterFileByName()
|