Lines Matching refs:sessionId
37 static String8 GetSessionIdString(const Vector<uint8_t> &sessionId) { in GetSessionIdString() argument
39 for (size_t i = 0; i < sessionId.size(); ++i) { in GetSessionIdString()
40 sessionIdStr.appendFormat("%u ", sessionId[i]); in GetSessionIdString()
55 static Vector<MediaResource> toResourceVec(const Vector<uint8_t> &sessionId) { in toResourceVec() argument
58 resources.push_back(MediaResource(MediaResource::kDrmSession, toStdVec(sessionId), UINT64_MAX)); in toResourceVec()
122 const sp<IResourceManagerClient>& drm, const Vector<uint8_t> &sessionId) { in addSession() argument
125 GetSessionIdString(sessionId).string()); in addSession()
133 mSessionMap[toStdVec(sessionId)] = (SessionInfo){pid, uid, clientId}; in addSession()
134 mService->addResource(pid, uid, clientId, drm, toResourceVec(sessionId)); in addSession()
137 void DrmSessionManager::useSession(const Vector<uint8_t> &sessionId) { in useSession() argument
138 ALOGV("useSession(%s)", GetSessionIdString(sessionId).string()); in useSession()
141 auto it = mSessionMap.find(toStdVec(sessionId)); in useSession()
147 mService->addResource(info.pid, info.uid, info.clientId, NULL, toResourceVec(sessionId)); in useSession()
150 void DrmSessionManager::removeSession(const Vector<uint8_t> &sessionId) { in removeSession() argument
151 ALOGV("removeSession(%s)", GetSessionIdString(sessionId).string()); in removeSession()
154 auto it = mSessionMap.find(toStdVec(sessionId)); in removeSession()
160 mService->removeResource(info.pid, info.clientId, toResourceVec(sessionId)); in removeSession()
187 bool DrmSessionManager::containsSession(const Vector<uint8_t>& sessionId) const { in containsSession()
189 return mSessionMap.count(toStdVec(sessionId)); in containsSession()