Home | History | Annotate | Download | only in functional

Lines Matching defs:sessionId

51 using ::android::hardware::drm::V1_0::SessionId;
167 SessionId openSession();
168 SessionId openSession(SecurityLevel level);
169 void closeSession(const SessionId& sessionId);
170 hidl_vec<uint8_t> loadKeys(const SessionId& sessionId, const KeyType& type);
273 SessionId DrmHalClearkeyTest::openSession() {
274 SessionId sessionId;
277 [&sessionId](Status status, const SessionId& id) {
280 sessionId = id;
283 return sessionId;
289 SessionId DrmHalClearkeyTest::openSession(SecurityLevel level) {
290 SessionId sessionId;
293 [&sessionId](Status status, const SessionId& id) {
296 sessionId = id;
299 return sessionId;
306 void DrmHalClearkeyTest::closeSession(const SessionId& sessionId) {
307 EXPECT_TRUE(drmPlugin->closeSession(sessionId).isOk());
316 const SessionId& sessionId, const KeyType& type = KeyType::STREAMING) {
350 sessionId, initData, mimeType, type, optionalParameters,
361 sessionId, knownKeyResponse,
376 [&](Status status, const SessionId& /* id */) {
386 auto sessionId = openSession();
387 loadKeys(sessionId);
388 closeSession(sessionId);
392 * A get key request should fail if no sessionId is provided
395 SessionId invalidSessionId;
413 auto sessionId = openSession();
419 sessionId, initData, mimeType, KeyType::OFFLINE, optionalParameters,
426 closeSession(sessionId);
480 SessionId session = openSession();
509 SessionId session = openSession();
534 SessionId session = openSession(SecurityLevel::SW_SECURE_CRYPTO);
546 * when requesting the security level for an invalid sessionId
549 SessionId session;
561 SessionId sessionId = openSession();
563 closeSession(sessionId);
565 EXPECT_EQ(Status::ERROR_DRM_SESSION_NOT_OPENED, drmPlugin->closeSession(sessionId));
611 auto sessionId = openSession();
612 loadKeys(sessionId);
613 closeSession(sessionId);
661 auto sessionId = openSession();
662 loadKeys(sessionId);
663 closeSession(sessionId);
710 auto sessionId = openSession();
711 loadKeys(sessionId);
712 closeSession(sessionId);
771 auto sessionId = openSession();
772 loadKeys(sessionId);
773 closeSession(sessionId);
815 auto sessionId = openSession();
816 loadKeys(sessionId);
817 closeSession(sessionId);
842 auto sessionId = openSession();
843 loadKeys(sessionId);
844 closeSession(sessionId);