Searched refs:runningLockMgr (Results 1 – 5 of 5) sorted by relevance
57 auto runningLockMgr = std::make_shared<RunningLockMgr>(pmsTest); variable58 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 …]
57 auto runningLockMgr = std::make_shared<RunningLockMgr>(g_pmsTest); in SetUp() local58 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()
84 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable108 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(); variable160 EXPECT_EQ(1, runningLockMgr->GetValidRunningLockNum(runninglockInfo.type));479 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable501 auto backgroundLock = runningLockMgr->GetRunningLockInner(runninglockToken);600 auto runningLockMgr = g_powerService->GetRunningLockMgr(); variable[all …]
54 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump() local55 if (runningLockMgr == nullptr) { in Dump()58 runningLockMgr->DumpInfo(result); in Dump()72 auto runningLockMgr = pms->GetRunningLockMgr(); in Dump() local73 if (runningLockMgr == nullptr) { in Dump()76 runningLockMgr->DumpInfo(result); in Dump()
730 auto runningLockMgr = pms->GetRunningLockMgr(); in CheckRunningLock() local731 if (runningLockMgr == nullptr) { in CheckRunningLock()743 uint32_t count = runningLockMgr->GetValidRunningLockNum(*iter); in CheckRunningLock()