Home
last modified time | relevance | path

Searched refs:sync (Results 1 - 25 of 89) sorted by relevance

1234

/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_semaphore_gles.cpp37 plat_.sync = handle; in GpuSemaphoreGles()
43 if (ownsResources_ && plat_.sync) { in ~GpuSemaphoreGles()
45 GLsync sync = reinterpret_cast<GLsync>(plat_.sync); in ~GpuSemaphoreGles() local
46 glDeleteSync(sync); in ~GpuSemaphoreGles()
48 plat_.sync = 0; in ~GpuSemaphoreGles()
53 return plat_.sync; in GetHandle()
H A Dgpu_semaphore_gles.h30 uint64_t sync { 0 };
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_render_display_sync_test.cpp153 OHOS::Rosen::RSRenderDisplaySync sync(id); in HWTEST_F()
154 int32_t result = sync.GetNearestFrameRate(30, {}); in HWTEST_F()
157 result = sync.GetNearestFrameRate(60, {30, 60, 90}); in HWTEST_F()
160 result = sync.GetNearestFrameRate(5, {30, 60, 90}); in HWTEST_F()
163 RSRenderDisplaySync sync(id); in HWTEST_F()
164 int32_t result = sync.GetNearestFrameRate(100, {30, 60, 90}); in HWTEST_F()
168 RSRenderDisplaySync sync(id); in HWTEST_F()
169 int32_t result = sync.GetNearestFrameRate(70, {60, 75, 90}); in HWTEST_F()
173 RSRenderDisplaySync sync(id); in HWTEST_F()
174 int32_t result = sync in HWTEST_F()
[all...]
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreJstest/hap/entry/src/ohosTest/js/test/
H A DRelationalStoreCloudSync.test.js539 * @tc.name cloud sync with no table, SyncMode is SYNC_MODE_TIME_FIRST and callback method
541 * @tc.desc cloud sync with no table, SyncMode is SYNC_MODE_TIME_FIRST and callback method
547 console.log(TAG + `cloud sync success:`);
555 console.log(TAG + `cloud sync fail, err code is ${err.code}, message is ${err.message}.`);
563 * @tc.name cloud sync with no table, SyncMode is SYNC_MODE_TIME_FIRST and promise method
565 * @tc.desc cloud sync with no table, SyncMode is SYNC_MODE_TIME_FIRST and promise method
571 console.log(TAG + `cloud sync success:`);
578 console.log(TAG + `cloud sync fail, err code is ${err.code}, message is ${err.message}.`);
586 * @tc.name cloud sync with table, SyncMode is SYNC_MODE_TIME_FIRST and callback method
588 * @tc.desc cloud sync wit
[all...]
H A DRelationalStoreDistributedJsunit.test.js366 * @tc.desc sync test
375 await rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates).then(() => {
376 console.info(TAG + "sync push success");
381 await rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PULL, predicates).then(() => {
382 console.info(TAG + "sync pull success");
394 * @tc.desc sync Callback test
406 await rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates, async (err,ret)=>{
411 console.info(TAG + "sync push success");
412 await rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PULL, predicates,(err,ret)=>{
417 console.info(TAG + "sync pus
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dthread_linux.c45 Semaphore *sync; member
75 SemaphorePost(startPromise->sync); in ThreadStartFunc()
147 promise->sync = SemaphoreCreate(0); in ThreadCreate()
148 if (promise->sync == NULL) { in ThreadCreate()
161 SemaphoreWait(promise->sync); in ThreadCreate()
162 SemaphoreDelete(promise->sync); in ThreadCreate()
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/
H A Dimage_provider.h52 bool sync = false; member
70 * @param sync if true, run task synchronously
72 static void CreateImageObject(const ImageSourceInfo& src, const WeakPtr<ImageLoadingContext>& ctxWp, bool sync);
79 * @param sync if true, run task synchronously
121 static void CreateImageObjHelper(const ImageSourceInfo& src, bool sync = false);
127 static void SuccessCallback(const RefPtr<CanvasImage>& canvasImage, const std::string& key, bool sync = false);
128 static void FailCallback(const std::string& key, const std::string& errorMsg, bool sync = false);
H A Dimage_provider.cpp117 void ImageProvider::FailCallback(const std::string& key, const std::string& errorMsg, bool sync) in FailCallback() argument
126 if (sync) { in FailCallback()
140 void ImageProvider::SuccessCallback(const RefPtr<CanvasImage>& canvasImage, const std::string& key, bool sync) in SuccessCallback() argument
150 if (sync) { in SuccessCallback()
164 void ImageProvider::CreateImageObjHelper(const ImageSourceInfo& src, bool sync) in CreateImageObjHelper() argument
175 FailCallback(src.GetKey(), src.ToString() + errorMessage, sync); in CreateImageObjHelper()
181 FailCallback(src.GetKey(), "Failed to load image data", sync); in CreateImageObjHelper()
191 FailCallback(src.GetKey(), "Failed to build image object", sync); in CreateImageObjHelper()
209 if (sync) { in CreateImageObjHelper()
269 void ImageProvider::CreateImageObject(const ImageSourceInfo& src, const WeakPtr<ImageLoadingContext>& ctxWp, bool sync) in CreateImageObject() argument
[all...]
H A Dstatic_image_object.cpp43 .sync = syncLoad, in MakeCanvasImage()
/test/xts/dcts/distributeddatamgr/jstest/distributed_rdb_store/client/hap/src/main/js/test/
H A DRdbStoreSyncFirstLevelJsunit.test.js201 let promise = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
203 console.log('testRdbSyncTest0010 sync done.');
210 console.log('testRdbSyncTest0010 sync failed' + err.code);
245 console.info(logTag + "testRdbSyncTest0020 sync before" + syncDeviceIds);
246 let promise = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
248 console.log('testRdbSyncTest0020 sync done.');
255 console.log('testRdbSyncTest0020 sync failed' + err.code);
281 let promiseTwo = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
289 console.log('testRdbSyncTest0020 sync failed' + err.code);
324 let promise = rdbStore.sync(data_Rd
[all...]
H A DRdbStoreSyncCustomDir.test.js202 let promise = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
204 console.log('testRdbSyncCustomTest0100 sync done.');
211 console.log('testRdbSyncCustomTest0100 sync failed' + err.code);
246 console.info(logTag + "testRdbSyncCustomTest0200 sync before" + syncDeviceIds);
247 let promise = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
249 console.log('testRdbSyncCustomTest0200 sync done.');
256 console.log('testRdbSyncCustomTest0200 sync failed' + err.code);
282 let promiseTwo = rdbStore.sync(data_Rdb.SyncMode.SYNC_MODE_PUSH, predicates);
290 console.log('testRdbSyncCustomTest0200 sync failed' + err.code);
325 let promise = rdbStore.sync(data_Rd
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/
H A Dwebgl_sync.h39 void SetSync(int64_t sync) in SetSync() argument
41 sync_ = sync; in SetSync()
/test/xts/dcts/distributeddatamgr/jstest/distributed_kv_store/client/hap/src/main/js/test/
H A DKvStoreSecurityLevelS1Jsunit.test.js251 console.info(logTag + "Client sync start");
253 kvStore.sync(syncDeviceIds, PULL);
310 console.info(logTag + "Client sync start");
311 kvStore.sync(syncDeviceIds, PULL);
368 console.info(logTag + "Client sync start");
369 kvStore.sync(syncDeviceIds, PULL);
426 console.info(logTag + "Client sync start");
427 kvStore.sync(syncDeviceIds, PUSH_PULL);
484 console.info(logTag + "Client sync start");
485 kvStore.sync(syncDeviceId
[all...]
/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/src/EGL/
H A Degl_wrapper_entry.cpp664 EGLBoolean EglDestroySyncImpl(EGLDisplay dpy, EGLSync sync) in EglDestroySyncImpl() argument
676 ret = table->egl.eglDestroySync(display->GetEglDisplay(), sync); in EglDestroySyncImpl()
684 EGLint EglClientWaitSyncImpl(EGLDisplay dpy, EGLSync sync, in EglClientWaitSyncImpl() argument
698 sync, flags, timeout); in EglClientWaitSyncImpl()
706 EGLBoolean EglGetSyncAttribImpl(EGLDisplay dpy, EGLSync sync, in EglGetSyncAttribImpl() argument
726 sync, attribute, value); in EglGetSyncAttribImpl()
794 EGLBoolean EglWaitSyncImpl(EGLDisplay dpy, EGLSync sync, EGLint flags) in EglWaitSyncImpl() argument
806 ret = table->egl.eglWaitSync(display->GetEglDisplay(), sync, flags); in EglWaitSyncImpl()
884 EGLBoolean EglDestroySyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync) in EglDestroySyncKHRImpl() argument
896 ret = table->egl.eglDestroySyncKHR(display->GetEglDisplay(), sync); in EglDestroySyncKHRImpl()
904 EglClientWaitSyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout) EglClientWaitSyncKHRImpl() argument
926 EglGetSyncAttribKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value) EglGetSyncAttribKHRImpl() argument
954 EglSignalSyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode) EglSignalSyncKHRImpl() argument
1240 EglWaitSyncKHRImpl(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags) EglWaitSyncKHRImpl() argument
1305 EglDupNativeFenceFDANDROIDImpl(EGLDisplay dpy, EGLSyncKHR sync) EglDupNativeFenceFDANDROIDImpl() argument
[all...]
/foundation/multimedia/av_codec/test/unittest/media_sink_test/
H A Dsync_manager_test.cpp90 VideoSink sync; in HWTEST_F() local
91 syncManager_->AddSynchronizer(&sync); in HWTEST_F()
93 syncManager_->RemoveSynchronizer(&sync); in HWTEST_F()
107 updateTimeStatus = syncManager_->UpdateTimeAnchor(1, 1, {1, 1, 1}, &sync); in HWTEST_F()
114 VideoSink sync; in HWTEST_F() local
115 syncManager_->AddSynchronizer(&sync); in HWTEST_F()
129 updateTimeStatus = syncManager_->UpdateTimeAnchor(1, 1, {1, 1, 1}, &sync); in HWTEST_F()
145 syncManager_->ReportPrerolled(&sync); in HWTEST_F()
146 syncManager_->ReportEos(&sync); in HWTEST_F()
147 syncManager_->SetMediaTimeRangeEnd(0, 0, &sync); in HWTEST_F()
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dcloud_data_test.cpp435 * @tc.desc: The query last sync info interface failed because account is false.
450 * @tc.desc: The query last sync info interface failed because bundleName is false.
465 * @tc.desc: The query last sync info interface failed because storeId is false.
479 * @tc.desc: The query last sync info interface failed when switch is close.
501 * @tc.desc: The query last sync info interface failed when app cloud switch is close.
526 * @tc.desc: The query last sync info interface failed when schema is invalid.
1477 CloudData::SyncManager sync; in HWTEST_F() local
1479 auto ret = sync.DoCloudSync(info); in HWTEST_F()
1481 ret = sync.StopCloudSync(user); in HWTEST_F()
1485 sync in HWTEST_F()
1513 CloudData::SyncManager sync; HWTEST_F() local
1530 CloudData::SyncManager sync; HWTEST_F() local
1554 CloudData::SyncManager sync; HWTEST_F() local
1589 CloudData::SyncManager sync; HWTEST_F() local
1607 CloudData::SyncManager sync; HWTEST_F() local
1628 CloudData::SyncManager sync; HWTEST_F() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/
H A Dnapi_queue.cpp37 void ContextBase::GetCbInfo(napi_env envi, napi_callback_info info, NapiCbInfoParser parse, bool sync) in GetCbInfo() argument
46 if (!sync) { in GetCbInfo()
52 if (!sync && (argc > 0)) { in GetCbInfo()
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/
H A Dnapi_queue.cpp37 void ContextBase::GetCbInfo(napi_env envi, napi_callback_info info, NapiCbInfoParser parse, bool sync) in GetCbInfo() argument
46 if (!sync) { in GetCbInfo()
52 if (!sync && (argc > 0)) { in GetCbInfo()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/
H A Dnapi_queue.cpp39 void ContextBase::GetCbInfo(napi_env envi, napi_callback_info info, NapiCbInfoParser parse, bool sync) in GetCbInfo() argument
48 if (!sync) { in GetCbInfo()
54 if (!sync && (argc > 0)) { in GetCbInfo()
/foundation/distributeddatamgr/udmf/framework/jskitsimpl/common/
H A Dnapi_queue.cpp29 void ContextBase::GetCbInfo(napi_env envi, napi_callback_info info, NapiCbInfoParser parse, bool sync) in GetCbInfo() argument
38 if (!sync) { in GetCbInfo()
44 if (!sync && (argc > 0)) { in GetCbInfo()
/foundation/communication/ipc/interfaces/innerkits/rust/src/remote/
H A Dstub.rs15 use std::sync::Arc;
H A Dobj.rs15 use std::sync::Arc;
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/examples/listen_rust_sa/src/
H A Dstub.rs14 use std::sync::{Arc, Mutex};
H A Dlib.rs25 use std::sync::{Arc, Mutex};
/foundation/CastEngine/castengine_cast_framework/interfaces/kits/js/include/
H A Dnapi_async_work.h40 bool sync = false);

Completed in 19 milliseconds

1234