Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c75 static FwdLockFile_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL }; variable
98 if (sessionPtrs[candidateSessionId] == NULL) { in FwdLockFile_AcquireSession()
99 sessionPtrs[candidateSessionId] = malloc(sizeof **sessionPtrs); in FwdLockFile_AcquireSession()
100 if (sessionPtrs[candidateSessionId] != NULL) { in FwdLockFile_AcquireSession()
101 sessionPtrs[candidateSessionId]->fileDesc = fileDesc; in FwdLockFile_AcquireSession()
102 sessionPtrs[candidateSessionId]->pContentType = NULL; in FwdLockFile_AcquireSession()
103 sessionPtrs[candidateSessionId]->pEncryptedSessionKey = NULL; in FwdLockFile_AcquireSession()
134 if (sessionPtrs[candidateSessionId] != NULL && in FwdLockFile_FindSession()
135 sessionPtrs[candidateSessionId]->fileDesc == fileDesc) { in FwdLockFile_FindSession()
155 assert(0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL); in FwdLockFile_ReleaseSession()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c159 static FwdLockConv_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL }; variable
199 if (sessionPtrs[i] == NULL) { in FwdLockConv_AcquireSession()
200 sessionPtrs[i] = malloc(sizeof *sessionPtrs[i]); in FwdLockConv_AcquireSession()
201 if (sessionPtrs[i] != NULL) { in FwdLockConv_AcquireSession()
219 return 0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL; in FwdLockConv_IsValidSession()
230 memset(sessionPtrs[sessionId], 0, sizeof *sessionPtrs[sessionId]); // Zero out key data. in FwdLockConv_ReleaseSession()
231 free(sessionPtrs[sessionId]); in FwdLockConv_ReleaseSession()
232 sessionPtrs[sessionId] = NULL; in FwdLockConv_ReleaseSession()
1120 FwdLockConv_Session_t *pSession = sessionPtrs[*pSessionId]; in FwdLockConv_OpenSession()
1177 FwdLockConv_Session_t *pSession = sessionPtrs[sessionId]; in FwdLockConv_ConvertData()
[all …]