/ohos5.0/docs/zh-cn/contribute/ |
H A D | 第三方开源软件上游软件元数据READMEOpenSource文件设计规范和使用指南.md | 57 - **许可证顺序**:与 `License File` 字段中的许可证文件路径一一对应。 59 ### 3. License File 70 License File 131 "License File": "LICENSE;LICENSE" 136 - 在 `License File` 字段中,用冒号 `":"` 分隔多个许可证文件路径。 140 "License File": "COPYING:LICENSE" 182 "License File": "LICENSE;LICENSE" 201 "License File": "LICENSE;LICENSE", 217 "License File": "COPYING:LICENSE", 233 "License File": "LICENSE", [all …]
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | core-file-kit-intro.md | 1 # Core File Kit简介 3 Core File Kit(文件基础服务)为开发者提供一套访问和管理应用文件和用户文件的能力。帮助用户更高效地管理、查找和备份各类文件,使用户能够轻松应对各种文件管理的需求。 5 ## Core File Kit概述 7 在Core File Kit套件中,按文件所有者的不同,有如下文件分类模型,其示意图如下面文件分类模型示意图: 23  27 Core File Kit常见的使用场景: 53 应用之间可以通过分享URI(Uniform Resource Identifier)或文件描述符FD(File Descriptor)的方式,进行文件共享。有以下优点: 78 - File Access Framework(用户文件访问框架)的主要功能模块如下: 79 - File Access Helper:提供给文件管理器和文件选择器访问用户文件的API接口。 81 - UserFileManager:内卡文件管理服务,基于File Access ExtensionAbility框架实现,用于管理内置存储设备上的文件。 [all …]
|
/ohos5.0/foundation/ability/idl_tool/util/ |
H A D | file.cpp | 27 constexpr unsigned int File::READ; 32 File::File(const String& path, int mode) in File() function in OHOS::Idl::File 84 File::~File() in ~File() 89 char File::GetChar() in GetChar() 106 char File::PeekChar() in PeekChar() 118 bool File::IsEof() const in IsEof() 123 int File::Read() in Read() 171 void File::Flush() in Flush() 178 bool File::Reset() in Reset() 187 bool File::Skip(long size) in Skip() [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v2.2-beta2/ |
H A D | js-apidiff-v2.2-beta2.md | 70 |File storage - system.file|get|Added|-| 71 |File storage - system.file|list|Added|-| 72 |File storage - system.file|copy|Added|-| 73 |File storage - system.file|move|Added|-| 90 |File storage - fileio|stat.dev|Added|-| 91 |File storage - fileio|stat.ino|Added|-| 92 |File storage - fileio|stat.mode|Added|-| 94 |File storage - fileio|stat.uid|Added|-| 95 |File storage - fileio|stat.gid|Added|-| 96 |File storage - fileio|stat.rdev|Added|-| [all …]
|
/ohos5.0/foundation/ability/idl_tool/idl_tool_2/util/ |
H A D | file.cpp | 37 File::File(const std::string &path, unsigned int mode) : mode_(mode) in File() function in OHOS::Idl::File 62 File::~File() in ~File() 90 char File::GetChar() in GetChar() 107 char File::PeekChar() in PeekChar() 119 bool File::IsEof() const in IsEof() 124 size_t File::Read() in Read() 171 void File::Flush() const in Flush() 178 bool File::Reset() const in Reset() 187 bool File::Skip(long size) const in Skip() 196 void File::Close() in Close() [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdi-gen/util/ |
H A D | file.cpp | 30 File::File(const std::string &path, unsigned int mode) : mode_(mode) in File() function in OHOS::HDI::File 55 File::~File() in ~File() 83 char File::GetChar() in GetChar() 100 char File::PeekChar() in PeekChar() 112 bool File::IsEof() const in IsEof() 117 size_t File::Read() in Read() 161 void File::Flush() const in Flush() 168 bool File::Reset() const in Reset() 177 bool File::Skip(long size) const in Skip() 186 void File::Close() in Close() [all …]
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/data/ |
H A D | file.cpp | 20 File::File() : UnifiedRecord(FILE) in File() function in OHOS::UDMF::File 24 File::File(const std::string &uri) : UnifiedRecord(FILE) in File() function in OHOS::UDMF::File 29 File::File(UDType type, ValueType value) : UnifiedRecord(type, value) in File() function in OHOS::UDMF::File 46 int64_t File::GetSize() in GetSize() 51 std::string File::GetUri() const in GetUri() 56 void File::SetUri(const std::string &uri) in SetUri() 65 std::string File::GetRemoteUri() const in GetRemoteUri() 70 void File::SetRemoteUri(const std::string &uri) in SetRemoteUri() 79 void File::SetDetails(UDDetails &variantMap) in SetDetails() 88 UDDetails File::GetDetails() const in GetDetails() [all …]
|
/ohos5.0/docs/en/application-dev/file-management/ |
H A D | Readme-EN.md | 1 # Core File Kit (Basic File Services) 3 - [Introduction to Core File Kit](core-file-kit-intro.md) 5 - [Application File Overview](app-file-overview.md) 7 - Application File Access and Management 10 - [Obtaining Application and File System Space Statistics](app-fs-space-statistics.md) 14 - [Sharing an Application File](share-app-file.md) 22 - [User File Overview](user-file-overview.md) 23 - [User File URI](user-file-uri-intro.md) 36 - Distributed File System 37 - [Distributed File System Overview](distributed-fs-overview.md) [all …]
|
H A D | core-file-kit-intro.md | 1 # Introduction to Core File Kit 3 Core File Kit provides capabilities for accessing and managing application files and user files. Yo… 5 ## Core File Kit Overview 7 In Core File Kit, the files are classified into the following types based on the file owner: 21 **Figure 1** File classification model 23  27 You can use Core File Kit in any of the following scenarios: 61 ### Application File Access Framework 65 ### User File Access Framework 80 …- **File Access Helper**: provides APIs for the **FileManager** and **FilePicker** to access user … [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/ |
H A D | Readme-EN.md | 1 # Core File Kit (Basic File Service) 7 - [@ohos.file.fileuri (File URI)](js-apis-file-fileuri.md) 8 - [@ohos.file.fs (File Management)](js-apis-file-fs.md) 9 - [@ohos.file.hash (File Hash Processing)](js-apis-file-hash.md) 12 - [@ohos.file.statvfs (File System Space Statistics)](js-apis-file-statvfs.md) 14 - [@ohos.fileshare (File Sharing)](js-apis-fileShare.md) 29 - [@ohos.fileshare (File Sharing) (System API)](js-apis-fileShare-sys.md) 32 - [@ohos.document (File Operation)](js-apis-document.md) 33 - [@ohos.fileio (File Management)](js-apis-fileio.md) 35 - [@system.file (File Storage)](js-apis-system-file.md) [all …]
|
H A D | js-apis-file-statvfs.md | 1 # @ohos.file.statvfs (File System Space Statistics) 21 **System capability**: SystemCapability.FileManagement.File.FileIO 27 | path | string | Yes | File path of the file system.| 60 **System capability**: SystemCapability.FileManagement.File.FileIO 96 **System capability**: SystemCapability.FileManagement.File.FileIO 102 | path | string | Yes | File path of the file system.| 131 **System capability**: SystemCapability.FileManagement.File.FileIO 137 | path | string | Yes | File path of the file system.| 170 **System capability**: SystemCapability.FileManagement.File.FileIO 206 **System capability**: SystemCapability.FileManagement.File.FileIO [all …]
|
H A D | js-apis-file-securityLabel.md | 40 **System capability**: SystemCapability.FileManagement.File.FileIO 48 **System capability**: SystemCapability.FileManagement.File.FileIO 71 | 13900015 | File exists | 96 **System capability**: SystemCapability.FileManagement.File.FileIO 114 | 13900015 | File exists | 141 **System capability**: SystemCapability.FileManagement.File.FileIO 158 | 13900015 | File exists | 178 **System capability**: SystemCapability.FileManagement.File.FileIO 200 | 13900015 | File exists | 242 | 13900015 | File exists | [all …]
|
H A D | js-apis-file-fs.md | 1 # @ohos.file.fs (File Management) 413 console.info("File closed"); 450 console.info("File closed"); 956 dup(fd: number): File 972 | [File](#file) | File object opened.| 1467 | Promise<[File](#file)> | Promise used to return the **File** object.| 1493 File URIs are supported. 1583 | [File](#file) | File object opened.| 1858 console.info("File deleted"); 2597 console.info("File renamed"); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.41/ |
H A D | changelogs-ability.md | 12 在want的flags字段设置了授权flag前提下,禁止在want中的URI字段和wantConstant.Params.PARAMS_STREAM字段中传入无权限的[File URI](../..… 16 …File URI是指应用通过[getUriFromPath](../../../application-dev/reference/apis-core-file-kit/js-apis-file-… 23 在want的flags字段设置了授权flag前提下,借助want实现File URI文件分享时,want中的URI字段和wantConstant.Params.PARAMS_STREAM字段会原封不… 27 1. want中URI字段如果是File URI,且授权方没有该URI的权限, 则URI字段将被擦除。 28 2. WantConstant.Params.PARAMS_STREAM字段中授权方无权限的File URI将被擦除。 29 3. want中的URI字段与WantConstant.Params.PARAMS_STREAM字段中的File URI合并后超过500的部分将会被截断。
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-fs.md | 952 dup(fd: number): File 954 将文件描述符转化为File。 968 | [File](#file) | 打开的File对象。 | 1463 | Promise<[File](#file)> | Promise对象。返回File对象。 | 1579 | [File](#file) | 打开的File对象。 | 3623 | file | string \| [File](#file) | 是 | 文件的应用沙箱路径或已打开的File对象 | 3664 | file | string \| [File](#file) | 是 | 文件的应用沙箱路径或已打开的File对象 | 3699 | file | string \| [File](#file) | 是 | 文件的应用沙箱路径或已打开的File对象 | 4991 ## File section 4993 由open接口打开的File对象。 [all …]
|
H A D | js-apis-file-securityLabel.md | 40 **系统能力**:SystemCapability.FileManagement.File.FileIO 48 **系统能力**:SystemCapability.FileManagement.File.FileIO 71 | 13900015 | File exists | 96 **系统能力**:SystemCapability.FileManagement.File.FileIO 114 | 13900015 | File exists | 141 **系统能力**:SystemCapability.FileManagement.File.FileIO 158 | 13900015 | File exists | 178 **系统能力**:SystemCapability.FileManagement.File.FileIO 200 | 13900015 | File exists | 242 | 13900015 | File exists | [all …]
|
H A D | js-apis-fileio.md | 46 **系统能力**:SystemCapability.FileManagement.File.FileIO 83 **系统能力**:SystemCapability.FileManagement.File.FileIO 112 **系统能力**:SystemCapability.FileManagement.File.FileIO 145 **系统能力**:SystemCapability.FileManagement.File.FileIO 182 **系统能力**:SystemCapability.FileManagement.File.FileIO 212 **系统能力**:SystemCapability.FileManagement.File.FileIO 245 **系统能力**:SystemCapability.FileManagement.File.FileIO 283 **系统能力**:SystemCapability.FileManagement.File.FileIO 314 **系统能力**:SystemCapability.FileManagement.File.FileIO 347 **系统能力**:SystemCapability.FileManagement.File.FileIO [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | async_fs.rs | 19 use ylong_runtime::fs::{File, OpenOptions}; 32 let mut file = File::create(file_path).await.unwrap(); in sdv_async_fs_write() 41 let mut file = File::open(file_path).await.unwrap(); in sdv_async_fs_write() 67 let mut file = File::open(file_path).await.unwrap(); in sdv_async_fs_read() 76 let mut file = File::open(file_path).await.unwrap(); in sdv_async_fs_read() 96 let _ = File::create(file_path).await.unwrap(); in sdv_async_fs_rw() 121 let mut file = File::open(file_path).await; in sdv_async_fs_rw() 123 file = File::open(file_path).await; in sdv_async_fs_rw() 253 let file = File::create(file_path).await.unwrap(); in sdv_async_fs_set_permission() 305 let file = File::create(file_path).await.unwrap(); in sdv_async_fs_set_len() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/ |
H A D | async_file.rs | 33 pub struct File { struct 100 impl File { impl 102 pub fn new(file: SyncFile) -> File { in new() argument 103 File { in new() 135 Ok(File::new(file)) in open() 157 Ok(File::new(file)) in create() 375 impl AsyncSeek for File { implementation 428 impl AsyncRead for File { implementation 492 impl AsyncWrite for File { implementation 576 use crate::fs::{remove_file, File}; [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/docs/ |
H A D | user_guide_zh.md | 11 use std::fs::File; 32 let mut reader: Box<dyn Read> = Box::new(File::open("").unwrap()); 42 use std::fs::File; 66 let mut file: File = File::open("./example.txt").unwrap(); 194 use std::fs::File; 202 let mut file: File = File::open("").unwrap(); 210 use std::fs::File; 232 let mut file: File = File::open("./example.txt").unwrap();
|
/ohos5.0/base/request/request/services/src/task/ |
H A D | download.rs | 271 use std::fs::File; 324 let file = File::create(file_path).unwrap(); in ut_download_basic() 336 let file = File::open(file_path).unwrap(); in ut_download_basic() 359 let file = File::open(file_path).unwrap(); in ut_download_resume() 369 let file = File::create(file_path).unwrap(); in ut_download_not_support_range() 393 let file = File::create(file_path).unwrap(); in ut_download_resume_not_support_range() 451 let file = File::create(file_path).unwrap(); in ut_download_range_0() 474 let file = File::create(file_path).unwrap(); in ut_download_range_1() 518 let file = File::create(file_path).unwrap(); in ut_download_range_resume_1() 548 let file = File::create(file_path).unwrap(); in ut_download_invalid_task() [all …]
|
/ohos5.0/foundation/communication/ipc/interfaces/innerkits/rust/src/remote/ |
H A D | stub.rs | 14 use std::fs::File; 27 fn dump(&self, _file: File, _args: Vec<String>) -> i32 { in dump() argument 42 fn dump(&self, file: File, args: Vec<String>) -> i32 { in dump() argument 64 fn dump(&self, _file: File, _args: Vec<String>) -> i32 { in dump() argument 76 let file = File::create("ipc_rust_test_temp").unwrap(); in remote_stub()
|
/ohos5.0/base/update/packaging_tools/zipalign/src/main/java/com/ohos/ |
H A D | ZipAlign.java | 18 import java.io.File; 43 …private static void copyFileAndAlignment(File input, File tmpOutput, int alignment) throws IOExcep… in copyFileAndAlignment() 126 File inputFile = new File(inputFilePath); in main() 128 File outputFile = new File(outputFilePath); in main()
|
/ohos5.0/base/update/sys_installer/tools/zipalign/src/main/java/com/ohos/ |
H A D | ZipAlign.java | 18 import java.io.File; 43 …private static void copyFileAndAlignment(File input, File tmpOutput, int alignment) throws IOExcep… in copyFileAndAlignment() 127 File inputFile = new File(inputFilePath); in main() 129 File outputFile = new File(outputFilePath); in main()
|
/ohos5.0/docs/en/contribute/ |
H A D | readme.opensource_design_specification_document_and_usage_guide.md | 64 ### 3. License File 136 "License File": "LICENSE;LICENSE" 149 "License File": "COPYING:LICENSE" 160 "License File": "LICENSE-MIT;LICENSE-APACHE" 193 "License File": "LICENSE;LICENSE" 205 ### Example 1: Multiple Licenses Sharing a Single License File 212 "License File": "LICENSE;LICENSE", 228 "License File": "COPYING:LICENSE", 244 "License File": "LICENSE", 262 "License File": "LICENSE", [all …]
|