Home
last modified time | relevance | path

Searched refs:g_mtx (Results 1 – 15 of 15) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/src/interfaces/
Dhap_verify.cpp31 static std::mutex g_mtx; variable
41 g_mtx.lock(); in HapVerifyInit()
50 g_mtx.unlock(); in HapVerifyInit()
58 g_mtx.lock(); in EnableDebugMode()
64 g_mtx.unlock(); in EnableDebugMode()
72 g_mtx.lock(); in DisableDebugMode()
75 g_mtx.unlock(); in DisableDebugMode()
81 g_mtx.lock(); in SetDevMode()
83 g_mtx.unlock(); in SetDevMode()
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_manager_service_subscribe_module_test.cpp39 std::mutex g_mtx; variable
96 g_mtx.unlock(); in OnAccountsChanged()
132 g_mtx.unlock(); in OnAccountsChanged()
155 g_mtx.unlock(); in OnAccountsChanged()
200 g_mtx.unlock(); in OnAccountsChanged()
234 while (!g_mtx.try_lock()) { in Wait()
284 g_mtx.lock();
305 g_mtx.unlock();
387 g_mtx.lock();
412 g_mtx.unlock();
[all …]
/base/notification/common_event_service/test/systemtest/common/ces/common_event_services_publish_ordered_system_test/
Dcommon_event_services_publish_ordered_system_test.cpp47 std::mutex g_mtx; variable
145 g_mtx.unlock(); in ProcessSubscriberTestCase1()
155 g_mtx.unlock(); in ProcessSubscriberTestCase2()
166 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase3()
174 g_mtx.unlock(); in ProcessSubscriberTestCase3()
197 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase5()
205 g_mtx.unlock(); in ProcessSubscriberTestCase5()
228 while (!g_mtx.try_lock()) { in AsyncProcess()
236 g_mtx.unlock(); in AsyncProcess()
461 g_mtx.lock();
[all …]
/base/account/os_account/services/accountmgr/test/moduletest/os_account/
Dos_account_manager_service_subscribe_module_test.cpp57 std::mutex g_mtx; variable
118 g_mtx.unlock(); in OnAccountsChanged()
156 g_mtx.unlock(); in OnResult()
169 g_mtx.unlock(); in OnResult()
207 g_mtx.lock();
214 while (!g_mtx.try_lock()) {
221 g_mtx.unlock();
/base/notification/common_event_service/services/test/moduletest/common_event_services_publish_ordered_module_test/
Dcommon_event_services_publish_ordered_module_test.cpp54 std::mutex g_mtx; variable
153 g_mtx.unlock(); in ProcessSubscriberTestCase1()
164 g_mtx.unlock(); in ProcessSubscriberTestCase2()
176 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase3()
184 g_mtx.unlock(); in ProcessSubscriberTestCase3()
209 while (!g_mtx.try_lock()) { in ProcessSubscriberTestCase5()
217 g_mtx.unlock(); in ProcessSubscriberTestCase5()
241 while (!g_mtx.try_lock()) { in AsyncProcess()
249 g_mtx.unlock(); in AsyncProcess()
478 g_mtx.lock();
[all …]
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_event_system_test.cpp48 std::mutex g_mtx; variable
428 std::unique_lock<std::mutex> lck(g_mtx);
447 std::unique_lock<std::mutex> lck(g_mtx);
466 std::unique_lock<std::mutex> lck(g_mtx);
485 std::unique_lock<std::mutex> lck(g_mtx);
504 std::unique_lock<std::mutex> lck(g_mtx);
523 std::unique_lock<std::mutex> lck(g_mtx);
542 std::unique_lock<std::mutex> lck(g_mtx);
561 std::unique_lock<std::mutex> lck(g_mtx);
583 std::unique_lock<std::mutex> lck(g_mtx);
/base/powermgr/power_manager/test/systemtest/src/
Dpower_level_event_system_test_on.cpp45 std::mutex g_mtx; variable
108 std::unique_lock<std::mutex> lck(g_mtx);
Dpower_level_event_system_test_off.cpp45 std::mutex g_mtx; variable
107 std::unique_lock<std::mutex> lck(g_mtx);
Dpower_mgr_shutdown_fast_test.cpp45 std::mutex g_mtx; variable
115 std::unique_lock<std::mutex> lck(g_mtx);
Dpower_mgr_powersavemode_test.cpp45 std::mutex g_mtx; variable
455 std::unique_lock<std::mutex> lck(g_mtx);
/base/notification/common_event_service/test/systemtest/common/acts/actsCESManagertest/
DactsCESManagertest.cpp40 std::mutex g_mtx; variable
73 g_mtx.unlock(); in OnReceiveEvent()
1912 g_mtx.lock();
1918 while (!g_mtx.try_lock()) {
1928 g_mtx.unlock();
1953 g_mtx.lock();
1959 while (!g_mtx.try_lock()) {
1970 g_mtx.unlock();
1995 g_mtx.lock();
2001 while (!g_mtx.try_lock()) {
[all …]
/base/powermgr/power_manager/test/apitest/inner_api/shutdown/
Dasync_shutdown_callback_test.cpp37 std::mutex g_mtx; variable
96 std::unique_lock<std::mutex> lck(g_mtx); in WaitingCallback()
/base/security/dataclassification/test/unittest/datatransmitmgr/
DDevSLMgrTest.cpp257 static std::mutex g_mtx; variable
279 std::unique_lock<std::mutex> lck(g_mtx);
/base/notification/eventhandler/test/systemtest/ems_event_handler_system_test/
Dems_event_handler_test.cpp29 std::mutex g_mtx; variable
217 g_mtx.unlock(); in ProcessEvent()
251 g_mtx.lock(); in ProcessEventTest()
254 while (!g_mtx.try_lock()) { in ProcessEventTest()
263 g_mtx.unlock(); in ProcessEventTest()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_test.cpp1048 static mutex g_mtx; variable
1053 unique_lock<mutex> lck(g_mtx); in TestDeviceSecurityInfoCallback()
1077 unique_lock<mutex> lck(g_mtx);