Home
last modified time | relevance | path

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

123

/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_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/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/powermgr/power_manager/services/native/test/unittest/src/
Drunning_lock_test.cpp47 runningLock1->Lock();
60 runningLock1->Lock();
83 runningLock->Lock();
120 runningLock->Lock();
135 runningLock1->Lock();
141 runningLock1->Lock(50);
209 runningLock1->Lock(30);
210 runningLock1->Lock(80);
218 runningLock1->Lock(2);
219 runningLock1->Lock(3);
[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.cpp156 pms->Lock(token, info, 0);
190 EXPECT_CALL(*g_lockAction, Lock(_, _)).Times(1);
191 pms->Lock(token, info, 0);
227 EXPECT_CALL(*g_lockAction, Lock(_, _)).Times(1);
228 pms->Lock(token, info, 0);
263 EXPECT_CALL(*g_lockAction, Lock(_, _)).Times(0);
264 pms->Lock(token, info, 0);
350 pms->Lock(token, info, 0);
389 pms->Lock(token, info, 0);
425 EXPECT_CALL(*g_lockAction, Lock(_, _)).Times(1);
[all …]
/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/theme/screenlock_mgr/test/unittest/
Dscreenlock_client_test.cpp99 int32_t result = ScreenLockManager::GetInstance()->Lock(listener);
112 result = ScreenLockManager::GetInstance()->Lock(listener);
198 result = proxy->Lock(listener);
/base/powermgr/power_manager/services/native/src/actions/default/
Drunning_lock_action.cpp24 void RunningLockAction::Lock(RunningLockType type, const string& tag) in Lock() function in OHOS::PowerMgr::RunningLockAction
Drunning_lock_action.h25 void Lock(RunningLockType type, const std::string& tag) override;
/base/powermgr/power_manager/services/native/test/unittest/mock/
Dmock_lock_action.h30 MOCK_METHOD2(Lock, void(RunningLockType type, const std::string& tag));
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_lock_action.h30 MOCK_METHOD2(Lock, void(RunningLockType type, const std::string& tag));
/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/powermgr/power_manager/test/fuzztest/power_fuzzer/
Dpower_fuzzer.cpp167 static void Lock(const uint8_t* data) in Lock() function
176 fuzzLock -> Lock(); in Lock()
188 fuzzLock -> Lock(); in UnLock()
288 Lock(data); in DoSomethingInterestingWithMyAPI()
/base/web/webview/ohos_adapter/interfaces/
Dpower_mgr_client_adapter.h37 virtual int32_t Lock(uint32_t timeOutMs = 0) = 0;
/base/powermgr/power_manager/frameworks/native/
Drunning_lock.cpp57 ErrCode RunningLock::Lock(uint32_t timeOutMs) in Lock() function in OHOS::PowerMgr::RunningLock
67 proxy->Lock(token_, runningLockInfo_, timeOutMs); in Lock()
/base/theme/screenlock_mgr/frameworks/kitsimpl/src/
Dscreenlock_manager.cpp101 int32_t ScreenLockManager::Lock(const sptr<ScreenLockSystemAbilityInterface> &listener) in Lock() function in OHOS::ScreenLock::ScreenLockManager
113 return proxy->Lock(listener); in Lock()
/base/web/webview/ohos_adapter/power_mgr_adapter/include/
Dpower_mgr_client_adapter_impl.h29 int32_t Lock(uint32_t timeOutMs = 0) override;
/base/powermgr/power_manager/interfaces/innerkits/native/include/
Drunning_lock.h47 ErrCode Lock(uint32_t timeOutMs = 0);

123