Home
last modified time | relevance | path

Searched refs:runningLockMgr (Results 1 – 5 of 5) sorted by relevance

/base/powermgr/power_manager/test/unittest/src/
Drunning_lock_native_test.cpp57 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest); variable
58 EXPECT_TRUE(runningLockMgr->Init());
60 EXPECT_TRUE(runningLockMgr->GetRunningLockInner(remoteObject) == nullptr);
66 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr);
67 EXPECT_FALSE(runningLockMgr->IsUsed(remoteObj));
68 runningLockMgr->Lock(remoteObj, TIMEOUTMS);
69 … EXPECT_TRUE(runningLockMgr->GetRunningLockNum(RunningLockType::RUNNINGLOCK_SCREEN) == LOCKNUM_B);
70 EXPECT_TRUE(runningLockMgr->GetRunningLockNum(RunningLockType::RUNNINGLOCK_BUTT) == LOCKNUM_B);
71 …EXPECT_TRUE(runningLockMgr->GetValidRunningLockNum(RunningLockType::RUNNINGLOCK_SCREEN) == LOCKNUM…
72 …EXPECT_TRUE(runningLockMgr->GetValidRunningLockNum(static_cast<RunningLockType>(MAXTYPE)) == LOCKN…
[all …]
Dpower_mgr_service_native_test.cpp57 auto runningLockMgr = std::make_shared<RunningLockMgr>(g_pmsTest); in SetUp() local
58 EXPECT_TRUE(runningLockMgr->Init()); in SetUp()
62 EXPECT_TRUE(runningLockMgr->CreateRunningLock(remoteObj, runningLockParam) != nullptr); in SetUp()
63 runningLockMgr->Lock(remoteObj, TIMEOUTMS); in SetUp()
64 EXPECT_FALSE(runningLockMgr->ReleaseLock(remoteObj)); in SetUp()
Drunning_lock_mock_test.cpp84 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable
108 EXPECT_EQ(1, runningLockMgr->GetValidRunningLockNum(runninglockInfo.type));
110 EXPECT_EQ(2, runningLockMgr->GetValidRunningLockNum(runninglockInfo2.type));
113 EXPECT_EQ(1, runningLockMgr->GetValidRunningLockNum(runninglockInfo.type));
115 EXPECT_EQ(0, runningLockMgr->GetValidRunningLockNum(runninglockInfo2.type));
138 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable
160 EXPECT_EQ(1, runningLockMgr->GetValidRunningLockNum(runninglockInfo.type));
479 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable
501 auto backgroundLock = runningLockMgr->GetRunningLockInner(runninglockToken);
600 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable
[all …]
/base/powermgr/power_manager/services/native/src/
Dpower_mgr_dumper.cpp54 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump() local
55 if (runningLockMgr == nullptr) { in Dump()
58 runningLockMgr->DumpInfo(result); in Dump()
72 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump() local
73 if (runningLockMgr == nullptr) { in Dump()
76 runningLockMgr->DumpInfo(result); in Dump()
Dpower_state_machine.cpp730 auto runningLockMgr = pms->GetRunningLockMgr(); in CheckRunningLock() local
731 if (runningLockMgr == nullptr) { in CheckRunningLock()
743 uint32_t count = runningLockMgr->GetValidRunningLockNum(*iter); in CheckRunningLock()