Home
last modified time | relevance | path

Searched refs:CreateRunningLock (Results 1 – 25 of 49) sorted by relevance

12

/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_test.cpp42 …auto runningLock1 = powerMgrClient.CreateRunningLock("runninglock1", RunningLockType::RUNNINGLOCK_…
62 …auto runningLock1 = powerMgrClient.CreateRunningLock("runninglock1", RunningLockType::RUNNINGLOCK_…
93 auto runningLock1 = powerMgrClient.CreateRunningLock("runninglock005",
134 std::shared_ptr<RunningLock> runningLock = powerMgrClient.CreateRunningLock(
138 …runningLock = powerMgrClient.CreateRunningLock("backgroudPhone", RunningLockType::RUNNINGLOCK_BACK…
141 runningLock = powerMgrClient.CreateRunningLock(
145 …runningLock = powerMgrClient.CreateRunningLock("backgroudAudio", RunningLockType::RUNNINGLOCK_BACK…
148 …runningLock = powerMgrClient.CreateRunningLock("backgroudSport", RunningLockType::RUNNINGLOCK_BACK…
151 runningLock = powerMgrClient.CreateRunningLock(
155 …runningLock = powerMgrClient.CreateRunningLock("backgroudTask", RunningLockType::RUNNINGLOCK_BACKG…
[all …]
Drunning_lock_mock_test.cpp104 …EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(runninglockToken, runninglockInfo…
105 …EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(runninglockToken2, runninglockInf…
157 …EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(runninglockToken, runninglockInfo…
209 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(phoneToken, runninglockPhone));
210 … EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(notifyToken, runninglockNotify));
266 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(audioToken, runninglockAudio));
267 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(sportToken, runninglockSport));
324 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(naviToken, runninglockNavi));
325 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(taskToken, runninglockTask));
387 EXPECT_EQ(PowerErrors::ERR_OK, g_powerService->CreateRunningLock(phoneToken, runninglockPhone));
[all …]
Drunning_lock_native_test.cpp66 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
109 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
160 EXPECT_TRUE(runningLockMgr->CreateRunningLock(token, runningLockParam) != nullptr);
192 EXPECT_TRUE(runningLockMgr->CreateRunningLock(token, runningLockParam) != nullptr);
203 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam2) != nullptr);
228 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
234 EXPECT_TRUE(runningLockMgr->CreateRunningLock(token, runningLockParam1) != nullptr);
256 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
538 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
564 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
Dpower_mgr_client_test.cpp338 …auto runningLock = powerMgrClient.CreateRunningLock("runninglock", RunningLockType::RUNNINGLOCK_SC…
363 …auto runningLock = powerMgrClient.CreateRunningLock("runninglock", RunningLockType::RUNNINGLOCK_SC…
389 …auto runningLock = powerMgrClient.CreateRunningLock("runninglock", RunningLockType::RUNNINGLOCK_SC…
416 …auto runningLock = powerMgrClient.CreateRunningLock("runninglock", RunningLockType::RUNNINGLOCK_SC…
444 …auto runningLock = powerMgrClient.CreateRunningLock("runninglock", RunningLockType::RUNNINGLOCK_SC…
Dpower_mgr_service_native_test.cpp62 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr); in SetUp()
/base/web/webview/test/unittest/power_mgr_client_adapter_impl_test/
Dpower_mgr_client_adapter_impl_test.cpp56 std::shared_ptr<RunningLockAdapter> runLockAdapter = powerMgrImpl->CreateRunningLock("screen",
62 … runLockAdapter = powerMgrImpl->CreateRunningLock("backgroud", RunningLockAdapterType::BACKGROUND);
64 runLockAdapter = powerMgrImpl->CreateRunningLock("proximity_screen_control",
67 runLockAdapter = powerMgrImpl->CreateRunningLock("butt", RunningLockAdapterType::BUTT);
/base/telephony/core_service/services/tel_ril/src/
Dtel_ril_handler.cpp55 ackRunningLock_ = powerMgrClient.CreateRunningLock( in OnInit()
57 reqRunningLock_ = powerMgrClient.CreateRunningLock( in OnInit()
68 ackRunningLock_ = powerMgrClient.CreateRunningLock( in ApplyRunningLock()
74 reqRunningLock_ = powerMgrClient.CreateRunningLock( in ApplyRunningLock()
/base/web/webview/ohos_adapter/power_mgr_adapter/src/
Dpower_mgr_client_adapter_impl.cpp73 std::shared_ptr<RunningLockAdapter> PowerMgrClientAdapterImpl::CreateRunningLock( in CreateRunningLock() function in OHOS::NWeb::PowerMgrClientAdapterImpl
77 std::shared_ptr<RunningLock> lock = PowerMgrClient::GetInstance().CreateRunningLock( in CreateRunningLock()
/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_module.cpp108 static napi_value CreateRunningLock(napi_env env, napi_callback_info info) in CreateRunningLock() function
110 return RunningLockInterface::CreateRunningLock(env, info, g_napiRunningLockIns); in CreateRunningLock()
130 DECLARE_NAPI_FUNCTION("createRunningLock", CreateRunningLock), in RunningLockInit()
Drunninglock_interface.h44 …static napi_value CreateRunningLock(napi_env env, napi_callback_info info, napi_ref& napiRunningLo…
/base/powermgr/power_manager/test/systemtest/src/
Dpower_mgr_st_mock_test.cpp158 pms->CreateRunningLock(token, info);
193 pms->CreateRunningLock(token, info);
260 pms->CreateRunningLock(token, info);
296 pms->CreateRunningLock(token, info);
343 pms->CreateRunningLock(token, info);
383 pms->CreateRunningLock(token, info);
412 pms->CreateRunningLock(token, info);
442 pms->CreateRunningLock(token, info);
477 pms->CreateRunningLock(token, info);
513 pms->CreateRunningLock(token, info);
Dpower_mgr_st_suspend_test.cpp99 pms->CreateRunningLock(token, info);
130 pms->CreateRunningLock(token, info);
166 pms->CreateRunningLock(token, info);
Dpower_mgr_mock_system_test.cpp81 pms->CreateRunningLock(token, info);
/base/web/webview/test/fuzztest/ohos_adapter/power_mgr_adapter/createrunninglock_fuzzer/
Dcreaterunninglock_fuzzer.cpp33 powerMgrClientAdapter.CreateRunningLock(name, RunningLockAdapterType::SCREEN); in DoSomethingInterestingWithMyAPI()
/base/powermgr/powermgr_lite/interfaces/kits/
Drunning_lock.h60 const RunningLock *CreateRunningLock(const char *name, RunningLockType type, RunningLockFlag flag);
/base/web/webview/ohos_adapter/interfaces/
Dpower_mgr_client_adapter.h48 virtual std::shared_ptr<RunningLockAdapter> CreateRunningLock(
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.cpp80 PowerErrors AsyncCallbackInfo::AsyncData::CreateRunningLock() in CreateRunningLock() function in OHOS::PowerMgr::AsyncCallbackInfo::AsyncData
82 runningLock_ = PowerMgrClient::GetInstance().CreateRunningLock(name_, type_); in CreateRunningLock()
Dasync_callback_info.h58 PowerErrors CreateRunningLock();
/base/powermgr/power_manager/test/fuzztest/power_fuzzer/
Dpower_fuzzer.cpp142 static void CreateRunningLock(const uint8_t* data, size_t size) in CreateRunningLock() function
149 g_powerMgrClient.CreateRunningLock(name, static_cast<RunningLockType>(type)); in CreateRunningLock()
188 auto fuzzLock = g_powerMgrClient.CreateRunningLock(name, static_cast<RunningLockType>(type)); in Lock()
203 auto fuzzLock = g_powerMgrClient.CreateRunningLock(name, static_cast<RunningLockType>(type)); in UnLock()
305 &CreateRunningLock,
/base/web/webview/ohos_adapter/power_mgr_adapter/include/
Dpower_mgr_client_adapter_impl.h39 std::shared_ptr<RunningLockAdapter> CreateRunningLock(
/base/powermgr/power_manager/frameworks/native/
Drunning_lock.cpp110 return proxy->CreateRunningLock(token_, runningLockInfo_); in Create()
/base/powermgr/power_manager/test/unittest/include/servicetest/
Dpowermgr_service_test_proxy.h41 …PowerErrors CreateRunningLock(const sptr<IRemoteObject>& remoteObj, const RunningLockInfo& running…
/base/powermgr/power_manager/interfaces/inner_api/native/include/
Dpower_mgr_client.h128 std::shared_ptr<RunningLock> CreateRunningLock(const std::string& name, RunningLockType type);
Dipower_mgr.h36 virtual PowerErrors CreateRunningLock(const sptr<IRemoteObject>& remoteObj,
/base/powermgr/powermgr_lite/
DREADME_zh.md55 …me="p67351028124111"></a><a name="p67351028124111"></a>RunningLock *CreateRunningLock(const char *…
92 const RunningLock *lock = CreateRunningLock("runinglock_example", RUNNINGLOCK_BACKGROUND, RUNNINGLO…

12