Home
last modified time | relevance | path

Searched refs:openFile (Results 1 – 25 of 44) sorted by relevance

12

/ohos5.0/foundation/distributeddatamgr/data_share/test/native/resource/datashare_ext_bundle/entry/src/main/ets/MainAbility/
H A DMainAbility.ts53 this.openFile();
110 openFile() {
111 globalThis.openFile = (async () => {
117 let result = await globalThis.dsHelper.openFile(dseUri, "rw");
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/
H A Djs-apidiff-distributed-data.md17 …a.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<numbe…
H A Djs-apidiff-file-management.md16 …ss | FileAccessHelper | openFile(uri: string, flags: OPENFLAGS) : Promise\<number…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta3/
H A Djs-apidiff-distributed-data.md17 …a.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<numbe…
H A Djs-apidiff-file-management.md16 …ss | FileAccessHelper | openFile(uri: string, flags: OPENFLAGS) : Promise\<number…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_compressor.cpp560 std::ifstream openFile(recordsPath_); local
561 if (!openFile.is_open()) {
566 while (!openFile.eof()) {
567 std::getline(openFile, line);
570 openFile.close();
/ohos5.0/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_ext_ability/
H A Dfile_access_ext_ability.js20 openFile(sourceFileUri, flags) { method in FileAccessExtensionAbility
/ohos5.0/docs/zh-cn/application-dev/application-models/
H A Daccess-datashareextensionability-from-fa.md50 | openFile | 是 | 否 | 否 |
H A Ddataabilityhelper-switch.md6openFile(uri:&nbsp;string,&nbsp;mode:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback&lt;number&gt;…
H A Ddataability-lifecycle.md19 | openFile?(uri:&nbsp;string,&nbsp;mode:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback&lt;number&g…
H A Ddataability-switch.md28 …| openFile?(uri:&nbsp;string,&nbsp;mode:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback&lt;number&…
H A Dlifecycledata-switch.md13 | openFile?(uri:&nbsp;string,&nbsp;mode:&nbsp;string,&nbsp;callback:&nbsp;AsyncCallback&lt;number&g…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/
H A Djs-apis-inner-ability-dataAbilityHelper.md25 ## DataAbilityHelper.openFile
27 openFile(uri: string, mode: string, callback: AsyncCallback\<number>): void
54 DAHelper.openFile('dataability:///com.example.DataAbility', mode, (error, data) => {
56 console.error(`openFile fail, error: ${JSON.stringify(error)}`);
58 console.log(`openFile success, data: ${JSON.stringify(data)}`);
63 ## DataAbilityHelper.openFile
65 openFile(uri: string, mode: string): Promise\<number>
97 DAHelper.openFile('dataability:///com.example.DataAbility', mode).then((data) => {
98 console.info(`openFile data: ${JSON.stringify(data)}`);
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/js/napi/datashare_ext_ability/
H A Ddatashare_ext_ability.js26 openFile(uri, mode, callback) { method in DataShareExtensionAbility
/ohos5.0/docs/en/application-dev/application-models/
H A Ddataabilityhelper-switch.md6openFile(uri: string, mode: string, callback: AsyncCallback&lt;number&gt;): void;](../reference/ap…
H A Ddataability-lifecycle.md19 | openFile?(uri: string, mode: string, callback: AsyncCallback&lt;number&gt;): void | Opens a file.…
H A Daccess-datashareextensionability-from-fa.md52 | openFile | Yes| No| No|
H A Dlifecycledata-switch.md13 | openFile?(uri: string, mode: string, callback: AsyncCallback&lt;number&gt;): void; | There is no …
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Drdb_security_manager.h73 KeyFiles(const std::string &dbPath, bool openFile = true);
/ohos5.0/foundation/distributeddatamgr/data_share/test/native/resource/errorcode_ext_bundle/entry/src/main/ets/DataShareExtAbility/
H A DDataShareExtAbility.ts52 async openFile(uri: string, mode: string, callback) {
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-distributed-data.md21 …a.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<numbe…
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta2/
H A Djs-apidiff-distributed-data.md21 …a.dataShare | DataShareHelper | openFile(uri: string, mode: string, callback: AsyncCallback\<numbe…
/ohos5.0/docs/en/application-dev/reference/apis-ability-kit/
H A Djs-apis-inner-ability-dataAbilityHelper.md25 ## DataAbilityHelper.openFile
27 openFile(uri: string, mode: string, callback: AsyncCallback\<number>): void
54 DAHelper.openFile('dataability:///com.example.DataAbility', mode, (error, data) => {
56 console.error(`openFile fail, error: ${JSON.stringify(error)}`);
58 console.log(`openFile success, data: ${JSON.stringify(data)}`);
63 ## DataAbilityHelper.openFile
65 openFile(uri: string, mode: string): Promise\<number>
97 DAHelper.openFile('dataability:///com.example.DataAbility', mode).then((data) => {
98 console.info(`openFile data: ${JSON.stringify(data)}`);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileAccess-sys.md888 ### openFile subsection
890 openFile(uri: string, flags: OPENFLAGS) : Promise&lt;number&gt;
928 let fd = await fileAccessHelper.openFile(targetUri, fileAccess.OPENFLAGS.READ);
932 console.error("openFile failed, errCode:" + error.code + ", errMessage:" + error.message);
937 ### openFile subsection
939 openFile(uri: string, flags: OPENFLAGS, callback: AsyncCallback&lt;number&gt;) : void
971 …fileAccessHelper.openFile(targetUri, fileAccess.OPENFLAGS.READ, (err: BusinessError, fd: number) =…
973 … console.error("Failed to openFile in async, errCode:" + err.code + ", errMessage:" + err.message);
975 console.log("openFile sucess, fd: " + fd);
980 console.error("openFile failed, errCode:" + error.code + ", errMessage:" + error.message);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_security_manager.cpp644 RdbSecurityManager::KeyFiles::KeyFiles(const std::string &dbPath, bool openFile) in KeyFiles() argument
655 if (!openFile) { in KeyFiles()

12