Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 46) sorted by relevance

12

/test/xts/device_attest/interfaces/innerkits/native_cpp/src/
Ddevattest_client.cpp39 std::lock_guard<std::mutex> lock(clientLock_); in GetDeviceProfileService() local
57 std::lock_guard<std::mutex> lock(clientLock_); in GetDeviceProfileService() local
71 std::unique_lock<std::mutex> lock(clientLock_); in LoadDevAttestProfile() local
89 … bool waitStatus = proxyConVar_.wait_for(lock, std::chrono::milliseconds(ATTEST_LOADSA_TIMEOUT_MS), in LoadDevAttestProfile()
100 std::lock_guard<std::mutex> lock(clientLock_); in LoadSystemAbilitySuccess() local
111 std::lock_guard<std::mutex> lock(clientLock_); in LoadSystemAbilityFail() local
/test/xts/acts/multimedia/media/media_cpp_standard/audioDecEncNdk/src/
DADecEncNdkSample.cpp44 unique_lock<mutex> lock(acodecSignal_->inMutexDec_); in AdecAsyncNeedInputData() local
57 unique_lock<mutex> lock(acodecSignal_->inMutexEnc_); in AdecAsyncNewOutputData() local
84 unique_lock<mutex> lock(acodecSignal_->inMutexEnc_); in AencAsyncNeedInputData() local
97 unique_lock<mutex> lock(acodecSignal_->outMutexEnc_); in AencAsyncNewOutputData() local
206 unique_lock<mutex> lock(acodecSignal_->inMutexDec_); in ResetDecParam() local
210 lock.unlock(); in ResetDecParam()
229 unique_lock<mutex> lock(acodecSignal_->inMutexEnc_); in ResetEncParam() local
233 lock.unlock(); in ResetEncParam()
248 unique_lock<mutex> lock(acodecSignal_->inMutexDec_); in StopDec() local
251 lock.unlock(); in StopDec()
[all …]
/test/xts/acts/storage/storagefileiov9jstest/src/main/js/test/class_file/
DfileLock.test.js40 await file.lock();
69 await file.lock(true);
98 await file.lock(false);
127 await file.lock();
157 await file.lock();
187 await file.lock();
272 await file.lock(undefined);
300 await file.lock();
330 await file.lock(null);
358 await file.lock(true, true);
[all …]
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/src/
DVDecEncNdkSample.cpp55 unique_lock<mutex> lock(vcodecSignal_->inMutexDec_); in VdecAsyncNeedInputData() local
69 unique_lock<mutex> lock(vcodecSignal_->outMutexDec_); in VdecAsyncNewOutputData() local
96 unique_lock<mutex> lock(vcodecSignal_->outMutexEnc_); in VencAsyncNewOutputData() local
272 unique_lock<mutex> lock(vcodecSignal_->inMutexDec_); in StopDec() local
275 lock.unlock(); in StopDec()
297 unique_lock<mutex> lock(vcodecSignal_->inMutexDec_); in FlushDec() local
300 lock.unlock(); in FlushDec()
322 unique_lock<mutex> lock(vcodecSignal_->inMutexDec_); in ResetDec() local
325 lock.unlock(); in ResetDec()
349 unique_lock<mutex> lock(vcodecSignal_->inMutexDec_); in ReleaseDec() local
[all …]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dpthreadndk1.cpp1164 pthread_rwlock_t lock; in PThreadRwLockDestroy() local
1165 pthread_rwlock_init(&lock, nullptr); in PThreadRwLockDestroy()
1166 int ret = pthread_rwlock_destroy(&lock); in PThreadRwLockDestroy()
1174 pthread_rwlock_t lock; in PThreadRwLockInit() local
1175 int ret = pthread_rwlock_init(&lock, nullptr); in PThreadRwLockInit()
1176 pthread_rwlock_destroy(&lock); in PThreadRwLockInit()
1184 pthread_rwlock_t lock; in PThreadRwLockRdLock() local
1185 pthread_rwlock_init(&lock, nullptr); in PThreadRwLockRdLock()
1186 int ret = pthread_rwlock_rdlock(&lock); in PThreadRwLockRdLock()
1187 pthread_rwlock_unlock(&lock); in PThreadRwLockRdLock()
[all …]
/test/xts/dcts/distributedhardware/distributedscreentest/
Ddecoder_demo.cpp235 unique_lock<mutex> lock(signal_->inMutex_); in InputFunc() local
236 signal_->inCond_.wait(lock, [this]() { return signal_->inQueue_.size() > 0; }); in InputFunc()
294 unique_lock<mutex> lock(signal_->outMutex_); in OutputFunc() local
295 signal_->outCond_.wait(lock, [this]() { return signal_->outQueue_.size() > 0; }); in OutputFunc()
324 unique_lock<mutex> lock(signal_->inMutex_); in OnInputBufferAvailable() local
332 unique_lock<mutex> lock(signal_->outMutex_); in OnOutputBufferAvailable() local
/test/testfwk/arkxtest/uitest/addon/
Dscreen_copy.cpp131 unique_lock<mutex> lock(frameLock_); in Destroy() local
134 lock.unlock(); in Destroy()
171 frameLock_.lock(); in PollAndNotifyFrames()
251 unique_lock<mutex> lock(frameLock_); in WaitAndConsumeFrames() local
252 frameCond_.wait(lock); in WaitAndConsumeFrames()
259 lock.unlock(); in WaitAndConsumeFrames()
/test/xts/hats/hdf/nfc/secureElement_additional/
Dnfc_services_test.cpp109 std::lock_guard<std::recursive_mutex> lock(mLock_);
137 std::lock_guard<std::recursive_mutex> lock(mLock_);
165 std::lock_guard<std::recursive_mutex> lock(mLock_);
196 std::lock_guard<std::recursive_mutex> lock(mLock_);
227 std::lock_guard<std::recursive_mutex> lock(mLock_);
254 std::lock_guard<std::recursive_mutex> lock(mLock_);
281 std::lock_guard<std::recursive_mutex> lock(mLock_);
311 std::lock_guard<std::recursive_mutex> lock(mLock_);
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/test/
DPatternLockJsunit.test.ets50 let strJson = getInspectorByKey('lock');
113 let strJson = getInspectorByKey('lock');
127 let strJson = getInspectorByKey('lock');
141 let strJson = getInspectorByKey('lock');
155 let strJson = getInspectorByKey('lock');
169 let strJson = getInspectorByKey('lock');
183 let strJson = getInspectorByKey('lock');
198 let strJson = getInspectorByKey('lock');
212 let strJson = getInspectorByKey('lock');
/test/xts/acts/ai_lite/ai_engine_posix/
DBUILD.gn24 "//foundation/ai/ai_engine/services/common/platform/lock:lock",
/test/xts/acts/theme/screenlock_ets/entry/src/main/ets/test/
DscreenLockTest.test.ets31 * @tc.name Set to locked screen, query the lock screen state is locked state
66 * @tc.name Set to locked screen, query the lock screen state is locked state
95 * @tc.name Set to locked screen, query the lock screen state is locked state
124 * @tc.name Set to locked screen, query the lock screen state is locked state
159 * @tc.name Set to locked screen, query the lock screen state is locked state
DscreenLockPromiseTest.test.ets32 * @tc.name Set to locked screen, query the lock screen state is locked state
56 * @tc.name Set to locked screen, query the lock screen state is locked state
80 * @tc.name Set to locked screen, query the lock screen state is locked state
103 * @tc.name Set to locked screen, query the lock screen state is locked state
/test/ostest/wukong/common/src/
Dwukong_logger.cpp110 LOCK_PRINT_BUFFER.lock(); in Print()
145 mtxQueue_.lock(); in Print()
185 self->mtxQueue_.lock(); in Run()
/test/xts/tools/sample/AppSampleF/
D.gitignore4 /oh-package-lock.json5
/test/xts/tools/sample/AppSampleE/
D.gitignore4 /oh-package-lock.json5
/test/xts/tools/sample/AppSampleD/
D.gitignore4 /oh-package-lock.json5
/test/xts/acts/bundlemanager/zlib/actszlibtest/
DActsZlibTest.cpp49 std::lock_guard<std::mutex> lock(puMutex_); in pull() local
62 std::lock_guard<std::mutex> lock(puMutex_); in push() local
69 std::lock_guard<std::mutex> lock(gzMutex_); in TestGzPrintf() local
159 std::lock_guard<std::mutex> lock(file_mutex);
793 std::lock_guard<std::mutex> lock(file_mutex);
855 std::lock_guard<std::mutex> lock(file_mutex);
883 std::lock_guard<std::mutex> lock(file_mutex);
906 std::lock_guard<std::mutex> lock(file_mutex);
928 std::lock_guard<std::mutex> lock(file_mutex);
949 std::lock_guard<std::mutex> lock(file_mutex);
[all …]
/test/testfwk/arkxtest/uitest/connection/
Dipc_transactor.cpp200 unique_lock<mutex> lock(mtx); in PublishCallerAndWaitForBackcaller() local
215 … } while (tries < PUBLISH_MAX_RETIES && condition.wait_for(lock, period) == cv_status::timeout); in PublishCallerAndWaitForBackcaller()
226 unique_lock<mutex> lock(mtx); in WaitForPublishedCaller() local
246 if (condition.wait_for(lock, timeout) == cv_status::timeout) { in WaitForPublishedCaller()
382 unique_lock<mutex> lock(mtx); in SendBroadcastCommand() local
395 if (condition.wait_for(lock, timeout) == cv_status::timeout) { in SendBroadcastCommand()
/test/xts/acts/powermgr/power_manager/src/main/js/test/
Dpower_performance.test.js59 runningLock.lock(500);
84 runningLock.lock(500);
Dpower_manager_running_lock.test.js36 runninglock.lock(500);
81 runninglock.lock(500);
265 runninglock.lock(500);
/test/xts/hats/powermgr/power/hdi_power/common/
Dhdi_power_test.cpp155 std::lock_guard<std::mutex> lock(g_mutex); in ReadFile() local
265 std::string lock = lockValue; variable
266 EXPECT_FALSE(lock.empty());
267 auto pos = lock.find(testName);
268 EXPECT_TRUE(pos != std::string::npos) << "HdfPowerHdiTest006 failed lock: " << lock;
/test/xts/acts/arkui/ace_ets_components_ux/ace_ets_component_patternlock/src/main/ets/test/
DpatternLock.ets37 let strJson = getInspectorByKey('lock');
58 let strJson = getInspectorByKey('lock');
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
Dmock_idevice.cpp223 std::lock_guard<std::mutex> lock(m_mtx); in AllocateBuffer() local
252 std::lock_guard<std::mutex> lock(m_mtx); in ReleaseBuffer() local
260 std::lock_guard<std::mutex> lock(m_mtx); in MemoryCopy() local
/test/xts/acts/resourceschedule/resourceschedule_standard/ffrt/entry/src/main/cpp/
Dffrtndk.cpp716 pthread_mutex_t lock; in FfrtYieldC0001() local
717 int ret = (pthread_mutex_init(&lock, nullptr)); in FfrtYieldC0001()
723 pthread_mutex_lock(&lock); in FfrtYieldC0001()
725 pthread_mutex_unlock(&lock); in FfrtYieldC0001()
728 pthread_mutex_unlock(&lock); in FfrtYieldC0001()
735 pthread_mutex_lock(&lock); in FfrtYieldC0001()
737 pthread_mutex_unlock(&lock); in FfrtYieldC0001()
755 pthread_mutex_destroy(&lock); in FfrtYieldC0001()
841 ffrt_mutex_t lock; in MutexTest006() local
842 int ret = ffrt_mutex_init(&lock, nullptr); in MutexTest006()
[all …]
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
Dmock_idevice.cpp238 std::lock_guard<std::mutex> lock(m_mtx); in AllocateBuffer() local
267 std::lock_guard<std::mutex> lock(m_mtx); in ReleaseBuffer() local
275 std::lock_guard<std::mutex> lock(m_mtx); in MemoryCopy() local

12