Home
last modified time | relevance | path

Searched refs:Lock (Results 1 – 25 of 79) sorted by relevance

1234

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dlock.cpp20 Lock::Lock():mtx_(new std::mutex) in Lock() function in OHOS::Global::Resource::Lock
23 Lock::~Lock() in ~Lock()
28 bool Lock::lock() in lock()
34 bool Lock::unlock() in unlock()
/base/global/resource_management/frameworks/resmgr/src/
Dlock.cpp20 Lock::Lock():mtx_(new std::mutex) in Lock() function in OHOS::Global::Resource::Lock
23 Lock::~Lock() in ~Lock()
28 bool Lock::lock() in lock()
34 bool Lock::unlock() in unlock()
/base/global/resource_management/frameworks/resmgr/include/
Dlock.h22 class Lock {
24 Lock();
26 ~Lock();
35 Lock(const Lock &src) = delete;
Dauto_mutex.h25 explicit inline AutoMutex(Lock &lock) : lock_(lock) in AutoMutex()
28 explicit inline AutoMutex(Lock *lock) : lock_(*lock) in AutoMutex()
35 Lock &lock_;
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dlock.h22 class Lock {
24 Lock();
26 ~Lock();
35 Lock(const Lock &src) = delete;
Dauto_mutex.h25 explicit inline AutoMutex(Lock &lock) : lock_(lock) in AutoMutex()
28 explicit inline AutoMutex(Lock *lock) : lock_(*lock) in AutoMutex()
35 Lock &lock_;
/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_test.cpp46 runningLock1->Lock();
65 runningLock1->Lock();
71 runningLock1->Lock(50);
98 runningLock1->Lock(30);
99 runningLock1->Lock(80);
107 runningLock1->Lock(2);
108 runningLock1->Lock(3);
109 runningLock1->Lock();
114 runningLock1->Lock(30);
118 runningLock1->Lock(5);
[all …]
Drunning_lock_mock_test.cpp88 EXPECT_CALL(*g_lockAction, Lock(_)).WillRepeatedly([&](const RunningLockParam& param) { in __anondd8a49c20302()
107 g_powerService->Lock(runninglockToken, timeoutMs);
109 g_powerService->Lock(runninglockToken2, timeoutMs);
142 EXPECT_CALL(*g_lockAction, Lock(_)).WillRepeatedly([&](const RunningLockParam& param) { in __anondd8a49c20502()
159 g_powerService->Lock(runninglockToken, timeoutMs);
191 EXPECT_CALL(*g_lockAction, Lock(_)).WillRepeatedly([&](const RunningLockParam& param) { in __anondd8a49c20802()
212 g_powerService->Lock(phoneToken, timeoutMs);
213 g_powerService->Lock(notifyToken, timeoutMs);
248 EXPECT_CALL(*g_lockAction, Lock(_)).WillRepeatedly([&](const RunningLockParam& param) { in __anondd8a49c20b02()
269 g_powerService->Lock(audioToken, timeoutMs);
[all …]
Drunning_lock_native_test.cpp68 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
76 runningLockMgr->Lock(token, TIMEOUTMS);
111 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
162 runningLockMgr->Lock(token, TIMEOUTMS);
193 runningLockMgr->Lock(token, TIMEOUTMS);
204 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
229 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
230 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
235 runningLockMgr->Lock(token, TIMEOUTMS);
257 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
[all …]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dstring_utils_test.cpp73 void FuncMultiThread(int* num, Lock* lock) in FuncMultiThread()
81 void TestThread(int* num, int threadNum, Lock* lock) in TestThread()
102 Lock lock;
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dstring_utils_test.cpp74 void FuncMultiThread(int* num, Lock* lock) in FuncMultiThread()
82 void TestThread(int* num, int threadNum, Lock* lock) in TestThread()
103 Lock lock;
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_mock_test.cpp159 pms->Lock(token, 0);
195 EXPECT_CALL(*g_lockAction, Lock(_)).Times(1);
196 pms->Lock(token, 0);
262 pms->Lock(token, 0);
312 pms->Lock(token, 0);
354 pms->Lock(token, 0);
385 EXPECT_CALL(*g_lockAction, Lock(_)).Times(1);
386 pms->Lock(token, 0);
413 pms->Lock(token, 0);
444 pms->Lock(token, 0);
[all …]
Dpower_mgr_st_suspend_test.cpp100 pms->Lock(token, 0);
132 pms->Lock(token, 0);
167 pms->Lock(token, 0);
/base/web/webview/ohos_adapter/power_mgr_adapter/src/
Dpower_mgr_client_adapter_impl.cpp57 int32_t RunningLockAdapterImpl::Lock(uint32_t timeOutMs) in Lock() function in OHOS::NWeb::RunningLockAdapterImpl
60 return lock_->Lock(timeOutMs); in Lock()
/base/web/webview/test/unittest/power_mgr_client_adapter_impl_test/
Dpower_mgr_client_adapter_impl_test.cpp60 EXPECT_NE(runLockAdapter->Lock(1), -1);
82 EXPECT_EQ(runLockAdapter->Lock(1), -1);
/base/powermgr/power_manager/services/native/src/actions/default/
Drunning_lock_action.cpp24 int32_t RunningLockAction::Lock(const RunningLockParam& param) in Lock() function in OHOS::PowerMgr::RunningLockAction
Drunning_lock_action.h25 int32_t Lock(const RunningLockParam& param) override;
/base/powermgr/power_manager/services/native/include/actions/
Dirunning_lock_action.h34 virtual int32_t Lock(const RunningLockParam& param) = 0;
/base/theme/screenlock_mgr/test/unittest/
Dscreenlock_client_test.cpp99 int32_t result = ScreenLockManager::GetInstance()->Lock(listener);
107 result = ScreenLockManager::GetInstance()->Lock(listener);
196 result = proxy->Lock(callback);
/base/powermgr/power_manager/frameworks/native/
Drunning_lock.cpp57 ErrCode RunningLock::Lock(int32_t timeOutMs) in Lock() function in OHOS::PowerMgr::RunningLock
67 proxy->Lock(token_, timeOutMs); in Lock()
/base/powermgr/power_manager/test/mock/action/
Dmock_lock_action.h28 MOCK_METHOD1(Lock, int32_t(const RunningLockParam& param));
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_lock_action.h28 MOCK_METHOD1(Lock, int32_t(const RunningLockParam& param));
/base/web/webview/test/fuzztest/ohos_adapter/power_mgr_adapter/lock_fuzzer/
Dlock_fuzzer.cpp34 runningLockAdapter.Lock(timeOutMs); in DoSomethingInterestingWithMyAPI()
/base/telephony/core_service/services/tel_ril/src/
Dtel_ril_handler.cpp83 reqRunningLock_->Lock(); in ApplyRunningLock()
88 ackRunningLock_->Lock(); in ApplyRunningLock()
/base/web/webview/ohos_adapter/interfaces/
Dpower_mgr_client_adapter.h37 virtual int32_t Lock(uint32_t timeOutMs = 0) = 0;

1234