/ohos5.0/foundation/distributeddatamgr/preferences/test/js/unittest/preferences/src/ |
H A D | PreferencesTaskpoolJsunit.test.js | 59 await mPreferences.flush() 66 await mPreferences.flush() 85 await mPreferences.flush() 92 await mPreferences.flush() 113 await mPreferences.flush() 122 await pref.flush(); 124 await pref.flush(); 153 await mPreferences.flush() 162 await pref.flush(); 164 await pref.flush();
|
H A D | PreferencesCallBackJsunit.test.js | 63 await mPreferences.flush(); 225 await mPreferences.flush(); 244 await mPreferences.flush(); 263 await mPreferences.flush(); 283 await mPreferences.flush(); 302 await mPreferences.flush(); 360 await mPreferences.flush(); 383 await mPreferences.flush(); 470 await mPreferences.flush(); 490 await mPreferences.flush(); [all …]
|
H A D | PreferencesPromiseJsunit.test.js | 141 await mPreferences.flush(); 327 await mPreferences.flush(); 349 await mPreferences.flush(); 371 await mPreferences.flush(); 392 await mPreferences.flush(); 413 await mPreferences.flush(); 500 await mPreferences.flush(); 621 await mPreferences.flush(); 641 await mPreferences.flush(); 659 await mPreferences.flush(); [all …]
|
H A D | PreferencesSyncJsunit.test.js | 134 mPreferences.flush(); 245 await mPreferences.flush(); 259 await mPreferences.flush(); 276 await mPreferences.flush(); 293 await mPreferences.flush(); 311 await mPreferences.flush(); 329 await mPreferences.flush(); 347 await mPreferences.flush();
|
H A D | V9_PreferencesPromiseJsunit.test.js | 46 await mPreference.flush(); 60 mPreference.flush().then(()=>{ 276 mPreference.flush().then(() => { 301 await mPreference.flush(); 339 await mPreference.flush(); 467 await mPreference.flush() 501 await mPreference.flush() 535 await mPreference.flush() 568 await mPreference.flush() 599 await mPreference.flush() [all …]
|
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | dump_compressor.cpp | 56 int flush = 0; in Compress() local 71 …if (FillBuffer(flush, srcBuffer, buffInV, toRead, srcPos, srcBufferOffset) == DumpStatus::DUMP_FAI… in Compress() 74 if (DeflateBuffer(flush, buffOutV, dstPos) == DumpStatus::DUMP_FAIL) { in Compress() 77 } while (flush != Z_FINISH); in Compress() 92 DumpStatus DumpCompressor::FillBuffer(int& flush, CompressBuffer*& srcBuffer, char*& buffIn, in FillBuffer() argument 114 flush = flag ? Z_FINISH : Z_NO_FLUSH; in FillBuffer() 119 DumpStatus DumpCompressor::DeflateBuffer(int flush, char*& buffOut, size_t& dstPos) in DeflateBuffer() argument 125 if (deflate(&zStream_, flush) == Z_STREAM_ERROR) { in DeflateBuffer()
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | data-persistence-by-preferences.md | 6 …地方,可以采用用户首选项来进行存储。Preferences会将该数据缓存在内存中,当用户读取的时候,能够快速从内存中获取数据,当需要持久化时可以使用flush接口将内存中的数据写入持久化文件中。P… 44 | putSync(key: string, value: ValueType): void | 将数据写入Preferences实例,可通过flush将Prefer… 48 | flush(callback: AsyncCallback<void>): void | 将当前Preferences实例的数据异步存储到用户首选项持久化文件… 49 | on(type: 'change', callback: Callback<string>): void | 订阅数据变更,订阅的数据发生变更后,在执行flush方法后,触发call… 98 使用putSync()方法保存数据到缓存的Preferences实例中。在写入数据后,如有需要,可使用flush()方法将Preferences实例的数据存储到持久化文件。 147 应用存入数据到Preferences实例后,可以使用flush()方法实现数据持久化。示例代码如下所示: 150 dataPreferences.flush((err: BusinessError) => { 152 console.error(`Failed to flush. Code:${err.code}, message:${err.message}`); 161 应用订阅数据变更需要指定observer作为回调方法。订阅的Key值发生变更后,当执行flush()方法时,observer被触发回调。示例代码如下所示: 176 dataPreferences.flush((err: BusinessError) => { [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-sendablePreferences.md | 489 将数据写入缓存的Preferences实例中,可通过[flush](#flush)将Preferences实例持久化,使用Promise异步回调。 540 将数据写入缓存的Preferences实例中,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 668 从缓存的Preferences实例中删除名为给定Key的存储键值对,可通过[flush](#flush)将Preferences实例持久化,使用Promise异步回调。 712 从缓存的Preferences实例中删除名为给定Key的存储键值对,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 739 ### flush subsection 741 flush(): Promise<void> 812 清除缓存的Preferences实例中的所有数据,可通过[flush](#flush)将Preferences实例持久化,使用Promise异步回调。 849 清除缓存的Preferences实例中的所有数据,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 873 订阅数据变更,订阅的Key的值发生变更后,在执行[flush](#flush)方法后,触发callback回调。 920 订阅进程间数据变更,多个进程持有同一个首选项文件时,在任意一个进程(包括本进程)执行[flush](#flush)方法,持久化文件发生变更后,触发callback回调。 [all …]
|
H A D | js-apis-data-preferences.md | 1417 将数据写入缓存的Preferences实例中,可通过[flush](#flush)将Preferences实例持久化,使用callback异步回调。 1465 将数据写入缓存的Preferences实例中,可通过[flush](#flush)将Preferences实例持久化,使用Promise异步回调。 1517 将数据写入缓存的Preferences实例中,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 1779 从缓存的Preferences实例中删除名为给定Key的存储键值对,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 1807 ### flush subsection 1851 ### flush subsection 1924 清除缓存的Preferences实例中的所有数据,可通过[flush](#flush)将Preferences实例持久化,使用callback异步回调。 1964 清除缓存的Preferences实例中的所有数据,可通过[flush](#flush)将Preferences实例持久化,使用Promise异步回调。 2002 清除缓存的Preferences实例中的所有数据,可通过[flush](#flush)将Preferences实例持久化,此为同步接口。 2019 订阅数据变更,订阅的Key的值发生变更后,在执行[flush](#flush)方法后,触发callback回调。 [all …]
|
H A D | js-apis-data-storage.md | 460 首先获取指定文件对应的Storage实例,然后借助Storage API将数据写入Storage实例,通过flush或者flushSync将Storage实例持久化。 511 首先获取指定文件对应的Storage实例,然后借助Storage API将数据写入Storage实例,通过flush或者flushSync将Storage实例持久化。使用Promise方式返回结果,… 736 ### flush subsection 738 flush(callback: AsyncCallback<void>): void 753 storage.flush(function (err) { 755 console.info("Failed to flush to file with err: " + err); 763 ### flush subsection 765 flush(): Promise<void> 780 let promiseflush = storage.flush(); 784 console.info("Failed to flush to file with err: " + err); [all …]
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/buffered/ |
H A D | async_buf_writer.rs | 173 fn flush(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<io::Result<()>> { in flush() method 212 poll_ready!(self.as_mut().flush(cx))?; in poll_write() 235 poll_ready!(self.as_mut().flush(cx))?; in poll_write_vectored() 256 poll_ready!(self.as_mut().flush(cx))?; in poll_write_vectored() 283 poll_ready!(self.as_mut().flush(cx))?; in poll_flush() 289 poll_ready!(self.as_mut().flush(cx))?; in poll_shutdown() 301 poll_ready!(self.as_mut().flush(cx))?; in poll_seek()
|
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/ |
H A D | ssl_stream.rs | 49 fn flush(&mut self) -> std::io::Result<()> { in flush() function 51 MixStream::Http(s) => s.flush(), in flush() 52 MixStream::Https(s) => s.flush(), in flush()
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-distributed-data-management.md | 115 在storage轻量级存储中,调用put方法,只是将数据保存在内存中,并不会持久化到硬盘中,在退出应用后会将内存中的数据清空。如果想持久化到硬盘中,则在调用put方法后需要再调用flush或flus… 139 1. 使用put操作后,使用flush持久化数据,然后再使用get获取数据。 141 2. 由于flush操作是异步执行,将Storage实例通过异步线程回写入文件中, 所以需要等待flush操作执行完成后,再执行get操作。
|
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_stringdecoder.cpp | 29 napi_value StringDecoder::Write(napi_env env, napi_value src, UBool flush) in Write() argument 56 … ucnv_toUnicode(conv_, &target, target + len, &source, source + length, nullptr, flush, &codeFlag); in Write() 96 UBool flush = true; in End() local 97 ucnv_toUnicode(conv_, &target, targetEnd, &src, sourceEnd, nullptr, flush, &errorCode); in End()
|
H A D | js_textdecoder.cpp | 62 UBool flush = ((flags & static_cast<uint8_t>(ConverterFlags::FLUSH_FLG))) == in Decode() local 92 …ode(GetConverterPtr(), &target, target + len, &source, source + length, nullptr, flush, &codeFlag); in Decode() 108 if (flush) { in Decode() 119 UBool flush = (flags & static_cast<uint8_t>(ConverterFlags::FLUSH_FLG)) == in DecodeToString() local 143 …ode(GetConverterPtr(), &target, target + len, &source, source + length, nullptr, flush, &codeFlag); in DecodeToString() 161 if (flush) { in DecodeToString()
|
/ohos5.0/docs/en/application-dev/database/ |
H A D | data-persistence-by-preferences.md | 8 …ess when the data is required. If you want to persist data, you can use **flush()** to save the da… 40 …lt synchronously. An asynchronous API is also provided.<br/>You can use **flush()** to persist the… 44 | flush(callback: AsyncCallback<void>): void | Flushes the data of this **Prefere… 45 …;): void | Subscribes to data changes. A callback will be invoked after **flush()** is executed fo… 94 …the cached **Preferences** instance. After data is written, you can use **flush()** to persist the… 143 …You can use **flush()** to persist the data held in a **Preferences** instance to a file.<br>Examp… 146 dataPreferences.flush((err: BusinessError) => { 148 console.error(`Failed to flush. Code:${err.code}, message:${err.message}`); 157 …plication. When the value of the subscribed key is changed and saved by **flush()**, the observer … 172 dataPreferences.flush((err: BusinessError) => { [all …]
|
/ohos5.0/foundation/ability/form_fwk/test/resource/benchmark/form_test_bundle/src/main/ets/FormAbility/ |
H A D | form.ts | 64 await storage.flush(); 91 await storage.flush(); 123 await storage.flush(); 135 await storage.flush();
|
/ohos5.0/foundation/ability/ability_runtime/test/resource/benchmark/form_test_bundle/src/main/ets/FormAbility/ |
H A D | form.ts | 64 await storage.flush(); 91 await storage.flush(); 123 await storage.flush(); 135 await storage.flush();
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/ |
H A D | stream.rs | 239 fn flush(&mut self) -> io::Result<()> { in flush() method 240 self.inner.flush() in flush() 267 fn flush(&mut self) -> io::Result<()> { in flush() method 269 inner.flush() in flush()
|
/ohos5.0/base/sensors/sensor/services/src/ |
H A D | flush_info_record.cpp | 50 FlushInfo flush(channel, isFirstFlush); in SetFlushInfo() local 56 it->second.push_back(flush); in SetFlushInfo() 58 std::vector<FlushInfo> vec { flush }; in SetFlushInfo()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | async_buf_write.rs | 52 buf_writer.flush().await.unwrap(); in sdv_buf_writer_write() 94 buf_writer.flush().await.unwrap(); in sdv_buf_writer_write_vectored() 190 buf_writer.flush().await.unwrap(); in sdv_buf_writer_write_vectored_2() 210 let res = buf_writer.flush().await; in sdv_buf_writer_stdio_write() 219 let res = buf_writer.flush().await; in sdv_buf_writer_stdio_write()
|
/ohos5.0/build/hb/util/ |
H A D | log_util.py | 47 sys.stdout.flush() 52 sys.stdout.flush() 59 sys.stderr.flush() 67 sys.stderr.flush() 88 sys.stderr.flush()
|
/ohos5.0/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
H A D | LocaleList.java | 75 dataOutputStream.flush(); in write() 91 dataOutputStream.flush(); in write() 94 dataOutputStream.flush(); in write()
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_compress.cpp | 70 int flush = 0; in Compress() local 88 flush = flag ? Z_FINISH : Z_NO_FLUSH; in Compress() 95 if (deflate(&cStream, flush) == Z_STREAM_ERROR) { in Compress() 107 } while (flush != Z_FINISH); in Compress()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/ |
H A D | stream.rs | 181 fn flush(&mut self) -> io::Result<()> { in flush() method 182 self.inner.flush() in flush() 208 fn flush(&mut self) -> io::Result<()> { in flush() method 210 inner.flush() in flush()
|