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

/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/
H A DFwdLockFile.h30 * @param[in] fileDesc The file descriptor of an open Forward Lock file.
36 int FwdLockFile_attach(int fileDesc);
41 * @param[in] fileDesc The file descriptor of an open Forward Lock file.
48 ssize_t FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes);
53 * @param[in] fileDesc The file descriptor of an open Forward Lock file.
60 off64_t FwdLockFile_lseek(int fileDesc, off64_t offset, int whence);
65 * @param[in] fileDesc The file descriptor of an open Forward Lock file.
71 int FwdLockFile_detach(int fileDesc);
76 * @param[in] fileDesc The file descriptor of an open Forward Lock file.
82 int FwdLockFile_close(int fileDesc);
[all...]
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/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/base/core/jni/
H A Dandroid_util_Binder.h31 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
H A Dandroid_util_Binder.cpp630 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) argument
633 gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc);
H A Dandroid_util_AssetManager.cpp172 jobject fileDesc = jniCreateFileDescriptor(env, fd); local
173 if (fileDesc == NULL) {
178 return newParcelFileDescriptor(env, fileDesc);
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
H A DFwdLockConv.h71 * @param[in] fileDesc The file descriptor of a file opened for reading.
78 typedef ssize_t FwdLockConv_ReadFunc_t(int fileDesc, void *pBuffer, size_t numBytes);
83 * @param[in] fileDesc The file descriptor of a file opened for writing.
90 typedef ssize_t FwdLockConv_WriteFunc_t(int fileDesc, const void *pBuffer, size_t numBytes);
95 * @param[in] fileDesc The file descriptor of a file opened for writing.
102 typedef off64_t FwdLockConv_LSeekFunc_t(int fileDesc, off64_t offset, int whence);
/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/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/base/core/java/com/android/internal/os/
H A DZygoteInit.java159 int fileDesc;
162 fileDesc = Integer.parseInt(env);
170 createFileDescriptor(fileDesc));
173 "Error binding to local socket '" + fileDesc + "'", ex);

Completed in 127 milliseconds