Searched defs:fileDesc (Results 1 - 6 of 6) sorted by relevance

/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
H A DFwdLockEngine.h534 int fileDesc; member in class:android::FwdLockEngine::DecodeSession
538 fileDesc = -1;
543 fileDesc = fd;
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
H A DFwdLockGlue.c79 int fileDesc = open(strKeyFilename, O_RDONLY); local
80 if (fileDesc >= 0) {
81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) {
84 (void)close(fileDesc);
88 fileDesc = open(strKeyFilename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR);
89 if (fileDesc >= 0) {
90 if (write(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) {
93 (void)close(fileDesc);
130 int fileDesc = open("/dev/urandom", O_RDONLY); local
131 if (fileDesc >
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.c59 int fileDesc; member in struct:FwdLockFile_Session
85 * @param[in] fileDesc A file descriptor.
89 static int FwdLockFile_AcquireSession(int fileDesc) { argument
91 if (fileDesc < 0) {
97 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS;
101 sessionPtrs[candidateSessionId]->fileDesc = fileDesc;
121 * @param[in] fileDesc A file descriptor.
125 static int FwdLockFile_FindSession(int fileDesc) { argument
127 if (fileDesc <
255 FwdLockFile_attach(int fileDesc) argument
296 FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes) argument
313 FwdLockFile_lseek(int fileDesc, off64_t offset, int whence) argument
352 FwdLockFile_detach(int fileDesc) argument
362 FwdLockFile_close(int fileDesc) argument
366 FwdLockFile_CheckDataIntegrity(int fileDesc) argument
407 FwdLockFile_CheckHeaderIntegrity(int fileDesc) argument
430 FwdLockFile_CheckIntegrity(int fileDesc) argument
434 FwdLockFile_GetContentType(int fileDesc) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp72 FwdLockFile_detach(session->fileDesc);
73 ::close(session->fileDesc);
315 int fileDesc = dup(fd); local
317 if (-1 < fileDesc) {
318 if (FwdLockFile_attach(fileDesc) < 0) {
321 const char* pMimeType = FwdLockFile_GetContentType(fileDesc);
329 FwdLockFile_close(fileDesc);
479 int fileDesc = -1; local
486 fileDesc = dup(fd);
492 if (-1 < fileDesc
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp172 jobject fileDesc = jniCreateFileDescriptor(env, fd); local
173 if (fileDesc == NULL) {
178 return newParcelFileDescriptor(env, fileDesc);
H A Dandroid_util_Binder.cpp630 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) argument
633 gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc);

Completed in 57 milliseconds