• Home
  • Raw
  • Download

Lines Matching refs:sessionId

47 static String8 GetSessionIdString(const Vector<uint8_t> &sessionId) {  in GetSessionIdString()  argument
49 for (size_t i = 0; i < sessionId.size(); ++i) { in GetSessionIdString()
50 sessionIdStr.appendFormat("%u ", sessionId[i]); in GetSessionIdString()
63 const Vector<uint8_t> &sessionId, int64_t value) { in toResourceVec() argument
69 toStdVec<>(sessionId), value}; in toResourceVec()
128 const std::shared_ptr<IResourceManagerClient>& drm, const Vector<uint8_t> &sessionId) { in addSession() argument
131 GetSessionIdString(sessionId).string()); in addSession()
139 mSessionMap[toStdVec(sessionId)] = (SessionInfo){pid, uid, clientId}; in addSession()
140 mService->addResource(pid, uid, clientId++, drm, toResourceVec(sessionId, INT64_MAX)); in addSession()
143 void DrmSessionManager::useSession(const Vector<uint8_t> &sessionId) { in useSession() argument
144 ALOGV("useSession(%s)", GetSessionIdString(sessionId).string()); in useSession()
147 auto it = mSessionMap.find(toStdVec(sessionId)); in useSession()
153 mService->addResource(info.pid, info.uid, info.clientId, NULL, toResourceVec(sessionId, -1)); in useSession()
156 void DrmSessionManager::removeSession(const Vector<uint8_t> &sessionId) { in removeSession() argument
157 ALOGV("removeSession(%s)", GetSessionIdString(sessionId).string()); in removeSession()
160 auto it = mSessionMap.find(toStdVec(sessionId)); in removeSession()
196 bool DrmSessionManager::containsSession(const Vector<uint8_t>& sessionId) const { in containsSession()
198 return mSessionMap.count(toStdVec(sessionId)); in containsSession()