Home
last modified time | relevance | path

Searched refs:mDrmSessionManager (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/mediadrm/tests/
DDrmSessionManager_test.cpp74 : 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()
[all …]
/frameworks/av/media/libmediaplayerservice/tests/
DDrmSessionManager_test.cpp78 : mDrmSessionManager(new DrmSessionManager(new FakeProcessInfo())), in DrmSessionManagerTest()
101 mDrmSessionManager->addSession(kTestPid1, mTestDrm1, mSessionId1); in addSession()
102 mDrmSessionManager->addSession(kTestPid2, mTestDrm2, mSessionId2); in addSession()
103 mDrmSessionManager->addSession(kTestPid2, mTestDrm2, mSessionId3); in addSession()
121 return mDrmSessionManager->mSessionMap; in sessionMap()
127 EXPECT_FALSE(mDrmSessionManager->getLowestPriority_l(&pid, &priority)); in testGetLowestPriority()
130 EXPECT_TRUE(mDrmSessionManager->getLowestPriority_l(&pid, &priority)); in testGetLowestPriority()
142 EXPECT_FALSE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
146 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid1, &drm, &sessionId)); in testGetLeastUsedSession()
150 EXPECT_TRUE(mDrmSessionManager->getLeastUsedSession_l(kTestPid2, &drm, &sessionId)); in testGetLeastUsedSession()
[all …]