• Home
  • Raw
  • Download

Lines Matching refs:mDrmSessionManager

74         : mDrmSessionManager(new DrmSessionManager(new FakeProcessInfo())),  in DrmSessionManagerTest()
97 mDrmSessionManager->addSession(kTestPid1, mTestDrm1, mSessionId1); in addSession()
98 mDrmSessionManager->addSession(kTestPid2, mTestDrm2, mSessionId2); in addSession()
99 mDrmSessionManager->addSession(kTestPid2, mTestDrm2, mSessionId3); in addSession()
117 return mDrmSessionManager->mSessionMap; in sessionMap()
123 EXPECT_FALSE(mDrmSessionManager->getLowestPriority_l(&pid, &priority)); in testGetLowestPriority()
126 EXPECT_TRUE(mDrmSessionManager->getLowestPriority_l(&pid, &priority)); in testGetLowestPriority()
138 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
142 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
151 mDrmSessionManager->useSession(mSessionId2); in testGetLeastUsedSession()
152 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
157 sp<DrmSessionManager> mDrmSessionManager; member in android::DrmSessionManagerTest
172 mDrmSessionManager->useSession(mSessionId1); in TEST_F()
173 mDrmSessionManager->useSession(mSessionId3); in TEST_F()
185 mDrmSessionManager->removeSession(mSessionId2); in TEST_F()
204 mDrmSessionManager->addSession(kTestPid2, drm, sessionId); in TEST_F()
206 mDrmSessionManager->removeDrm(mTestDrm2); in TEST_F()
216 EXPECT_FALSE(mDrmSessionManager->reclaimSession(kTestPid1)); in TEST_F()
220 EXPECT_FALSE(mDrmSessionManager->reclaimSession(50)); in TEST_F()
222 EXPECT_TRUE(mDrmSessionManager->reclaimSession(10)); in TEST_F()
226 mDrmSessionManager->removeSession(mSessionId1); in TEST_F()
233 mDrmSessionManager->addSession(15, drm, sessionId); in TEST_F()
235 EXPECT_TRUE(mDrmSessionManager->reclaimSession(18)); in TEST_F()