Home
last modified time | relevance | path

Searched refs:fileDesc (Results 1 – 10 of 10) sorted by relevance

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
DFwdLockFile.c59 int fileDesc; member
89 static int FwdLockFile_AcquireSession(int fileDesc) { in FwdLockFile_AcquireSession() argument
91 if (fileDesc < 0) { in FwdLockFile_AcquireSession()
97 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_AcquireSession()
101 sessionPtrs[candidateSessionId]->fileDesc = fileDesc; in FwdLockFile_AcquireSession()
125 static int FwdLockFile_FindSession(int fileDesc) { in FwdLockFile_FindSession() argument
127 if (fileDesc < 0) { in FwdLockFile_FindSession()
133 int candidateSessionId = (fileDesc + i) % MAX_NUM_SESSIONS; in FwdLockFile_FindSession()
135 sessionPtrs[candidateSessionId]->fileDesc == fileDesc) { in FwdLockFile_FindSession()
258 int FwdLockFile_attach(int fileDesc) { in FwdLockFile_attach() argument
[all …]
DFwdLockFile.h36 int FwdLockFile_attach(int fileDesc);
48 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes);
60 off64_t FwdLockFile_lseek(int fileDesc, off64_t offset, int whence);
71 int FwdLockFile_detach(int fileDesc);
82 int FwdLockFile_close(int fileDesc);
91 int FwdLockFile_CheckDataIntegrity(int fileDesc);
100 int FwdLockFile_CheckHeaderIntegrity(int fileDesc);
109 int FwdLockFile_CheckIntegrity(int fileDesc);
119 const char *FwdLockFile_GetContentType(int fileDesc);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/
DFwdLockGlue.c79 int fileDesc = open(strKeyFilename, O_RDONLY); in FwdLockGlue_InitializeRoundKeys() local
80 if (fileDesc >= 0) { in FwdLockGlue_InitializeRoundKeys()
81 if (read(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { in FwdLockGlue_InitializeRoundKeys()
84 (void)close(fileDesc); in FwdLockGlue_InitializeRoundKeys()
88 fileDesc = open(strKeyFilename, O_CREAT | O_TRUNC | O_WRONLY, S_IRUSR); in FwdLockGlue_InitializeRoundKeys()
89 if (fileDesc >= 0) { in FwdLockGlue_InitializeRoundKeys()
90 if (write(fileDesc, keyEncryptionKey, KEY_SIZE) == KEY_SIZE) { in FwdLockGlue_InitializeRoundKeys()
93 (void)close(fileDesc); in FwdLockGlue_InitializeRoundKeys()
130 int fileDesc = open("/dev/urandom", O_RDONLY); in FwdLockGlue_GetRandomNumber() local
131 if (fileDesc >= 0) { in FwdLockGlue_GetRandomNumber()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
DFwdLockEngine.cpp72 FwdLockFile_detach(session->fileDesc); in ~FwdLockEngine()
73 ::close(session->fileDesc); in ~FwdLockEngine()
315 int fileDesc = dup(fd); in onGetOriginalMimeType() local
317 if (-1 < fileDesc) { in onGetOriginalMimeType()
318 if (FwdLockFile_attach(fileDesc) < 0) { in onGetOriginalMimeType()
319 close(fileDesc); in onGetOriginalMimeType()
322 const char* pMimeType = FwdLockFile_GetContentType(fileDesc); in onGetOriginalMimeType()
330 FwdLockFile_close(fileDesc); in onGetOriginalMimeType()
480 int fileDesc = -1; local
487 fileDesc = dup(fd);
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.h78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
102 typedef off64_t FwdLockConv_LSeekFunc_t(int fileDesc, off64_t offset, int whence);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h534 int fileDesc;
538 fileDesc = -1; in DecodeSession()
543 fileDesc = fd; in DecodeSession()
/frameworks/base/core/jni/
Dandroid_util_Binder.h31 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
Dandroid_util_Binder.cpp622 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) in newParcelFileDescriptor() argument
625 … gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc); in newParcelFileDescriptor()
Dandroid_util_AssetManager.cpp249 jobject fileDesc = jniCreateFileDescriptor(env, fd); in returnParcelFileDescriptor() local
250 if (fileDesc == NULL) { in returnParcelFileDescriptor()
255 return newParcelFileDescriptor(env, fileDesc); in returnParcelFileDescriptor()
/frameworks/base/core/java/com/android/internal/os/
DZygoteInit.java109 int fileDesc; in registerZygoteSocket() local
113 fileDesc = Integer.parseInt(env); in registerZygoteSocket()
120 fd.setInt$(fileDesc); in registerZygoteSocket()
124 "Error binding to local socket '" + fileDesc + "'", ex); in registerZygoteSocket()