Home
last modified time | relevance | path

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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c39 #define MAX_NUM_SESSIONS 128 macro
75 static FwdLockFile_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL };
96 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockFile_AcquireSession()
97 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_AcquireSession()
110 if (i == MAX_NUM_SESSIONS) { in FwdLockFile_AcquireSession()
132 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockFile_FindSession()
133 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_FindSession()
141 if (i == MAX_NUM_SESSIONS) { in FwdLockFile_FindSession()
155 assert(0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL); in FwdLockFile_ReleaseSession()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c37 #define MAX_NUM_SESSIONS 32 macro
159 static FwdLockConv_Session_t *sessionPtrs[MAX_NUM_SESSIONS] = { NULL };
198 for (i = 0; i < MAX_NUM_SESSIONS; ++i) { in FwdLockConv_AcquireSession()
219 return 0 <= sessionId && sessionId < MAX_NUM_SESSIONS && sessionPtrs[sessionId] != NULL; in FwdLockConv_IsValidSession()