Lines Matching refs:sessionId
83 status_t MockDrmPlugin::openSession(Vector<uint8_t> &sessionId) in openSession() argument
90 sessionId.appendArray((uint8_t *)&r, sizeof(long)); in openSession()
92 mSessions.add(sessionId); in openSession()
94 ALOGD("MockDrmPlugin::openSession() -> %s", vectorToString(sessionId).string()); in openSession()
98 status_t MockDrmPlugin::closeSession(Vector<uint8_t> const &sessionId) in closeSession() argument
101 ALOGD("MockDrmPlugin::closeSession(%s)", vectorToString(sessionId).string()); in closeSession()
102 ssize_t index = findSession(sessionId); in closeSession()
112 status_t MockDrmPlugin::getKeyRequest(Vector<uint8_t> const &sessionId, in getKeyRequest() argument
122 … vectorToString(sessionId).string(), vectorToString(initData).string(), mimeType.string(), in getKeyRequest()
125 ssize_t index = findSession(sessionId); in getKeyRequest()
185 status_t MockDrmPlugin::provideKeyResponse(Vector<uint8_t> const &sessionId, in provideKeyResponse() argument
191 vectorToString(sessionId).string(), vectorToString(response).string()); in provideKeyResponse()
192 ssize_t index = findSession(sessionId); in provideKeyResponse()
232 status_t MockDrmPlugin::restoreKeys(Vector<uint8_t> const &sessionId, in restoreKeys() argument
237 vectorToString(sessionId).string(), in restoreKeys()
239 ssize_t index = findSession(sessionId); in restoreKeys()
254 status_t MockDrmPlugin::queryKeyStatus(Vector<uint8_t> const &sessionId, in queryKeyStatus() argument
258 vectorToString(sessionId).string()); in queryKeyStatus()
260 ssize_t index = findSession(sessionId); in queryKeyStatus()
512 status_t MockDrmPlugin::setCipherAlgorithm(Vector<uint8_t> const &sessionId, in setCipherAlgorithm() argument
518 vectorToString(sessionId).string(), algorithm.string()); in setCipherAlgorithm()
520 ssize_t index = findSession(sessionId); in setCipherAlgorithm()
532 status_t MockDrmPlugin::setMacAlgorithm(Vector<uint8_t> const &sessionId, in setMacAlgorithm() argument
538 vectorToString(sessionId).string(), algorithm.string()); in setMacAlgorithm()
540 ssize_t index = findSession(sessionId); in setMacAlgorithm()
552 status_t MockDrmPlugin::encrypt(Vector<uint8_t> const &sessionId, in encrypt() argument
560 vectorToString(sessionId).string(), in encrypt()
565 ssize_t index = findSession(sessionId); in encrypt()
591 status_t MockDrmPlugin::decrypt(Vector<uint8_t> const &sessionId, in decrypt() argument
599 vectorToString(sessionId).string(), in decrypt()
604 ssize_t index = findSession(sessionId); in decrypt()
630 status_t MockDrmPlugin::sign(Vector<uint8_t> const &sessionId, in sign() argument
637 vectorToString(sessionId).string(), in sign()
641 ssize_t index = findSession(sessionId); in sign()
665 status_t MockDrmPlugin::verify(Vector<uint8_t> const &sessionId, in verify() argument
673 vectorToString(sessionId).string(), in verify()
678 ssize_t index = findSession(sessionId); in verify()
704 status_t MockDrmPlugin::signRSA(Vector<uint8_t> const &sessionId, in signRSA() argument
713 vectorToString(sessionId).string(), in signRSA()
723 mByteArrayProperties.add(String8("mock-sessionid"), sessionId); in signRSA()
731 ssize_t MockDrmPlugin::findSession(Vector<uint8_t> const &sessionId) const in findSession()
733 ALOGD("findSession: nsessions=%zu, size=%zu", mSessions.size(), sessionId.size()); in findSession()
735 if (memcmp(mSessions[i].array(), sessionId.array(), sessionId.size()) == 0) { in findSession()