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()
320 int fileDesc = dup(fd); in onGetOriginalMimeType() local
322 if (-1 < fileDesc) { in onGetOriginalMimeType()
323 if (FwdLockFile_attach(fileDesc) < 0) { in onGetOriginalMimeType()
324 close(fileDesc); in onGetOriginalMimeType()
327 const char* pMimeType = FwdLockFile_GetContentType(fileDesc); in onGetOriginalMimeType()
335 FwdLockFile_close(fileDesc); in onGetOriginalMimeType()
487 int fileDesc = -1; local
494 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.cpp796 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) in newParcelFileDescriptor() argument
799 … gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc); in newParcelFileDescriptor()
/frameworks/base/core/java/com/android/internal/os/
DZygote.java924 int fileDesc; in createManagedSocketFromInitSocket() local
929 fileDesc = Integer.parseInt(env); in createManagedSocketFromInitSocket()
936 fd.setInt$(fileDesc); in createManagedSocketFromInitSocket()
940 "Error building socket from file descriptor: " + fileDesc, ex); in createManagedSocketFromInitSocket()
/frameworks/base/tools/aapt2/link/
DTableMerger.h75 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file);