Home
last modified time | relevance | path

Searched refs:fileDesc (Results 1 – 12 of 12) 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.cpp74 FwdLockFile_detach(session->fileDesc); in ~FwdLockEngine()
75 ::close(session->fileDesc); in ~FwdLockEngine()
322 int fileDesc = dup(fd); in onGetOriginalMimeType() local
324 if (-1 < fileDesc) { in onGetOriginalMimeType()
325 if (FwdLockFile_attach(fileDesc) < 0) { in onGetOriginalMimeType()
326 close(fileDesc); in onGetOriginalMimeType()
329 const char* pMimeType = FwdLockFile_GetContentType(fileDesc); in onGetOriginalMimeType()
337 FwdLockFile_close(fileDesc); in onGetOriginalMimeType()
489 int fileDesc = -1; local
496 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/base/native/graphics/jni/fuzz/
Dfuzz_imagedecoder.cpp38 int32_t fileDesc = open(testFd, O_RDWR | O_CREAT | O_TRUNC); in init() local
39 write(fileDesc, data, size); in init()
40 AImageDecoder_createFromFd(fileDesc, &decoder); in init()
41 close(fileDesc); in init()
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/
DFwdLockEngine.h533 int fileDesc;
537 fileDesc = -1; in DecodeSession()
542 fileDesc = fd; in DecodeSession()
/frameworks/base/core/jni/
Dandroid_util_Binder.h41 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
Dandroid_util_Binder.cpp876 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) in newParcelFileDescriptor() argument
879 … gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc); in newParcelFileDescriptor()
/frameworks/base/tools/aapt2/link/
DTableMerger.h78 bool MergeFile(const ResourceFile& fileDesc, bool overlay, io::IFile* file);
/frameworks/base/core/java/com/android/internal/os/
DZygote.java1139 int fileDesc; in createManagedSocketFromInitSocket() local
1144 fileDesc = Integer.parseInt(env); in createManagedSocketFromInitSocket()
1151 fd.setInt$(fileDesc); in createManagedSocketFromInitSocket()
1155 "Error building socket from file descriptor: " + fileDesc, ex); in createManagedSocketFromInitSocket()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java4018 final String[] fileDesc = arg.split(":"); in processArgForStdin() local
4025 if (fileDesc.length < 2) { in processArgForStdin()
4029 name = fileDesc[0]; in processArgForStdin()
4030 sizeBytes = Long.parseUnsignedLong(fileDesc[1]); in processArgForStdin()
4033 if (fileDesc.length > 2 && !TextUtils.isEmpty(fileDesc[2])) { in processArgForStdin()
4034 fileId = fileDesc[2]; in processArgForStdin()
4036 if (fileDesc.length > 3) { in processArgForStdin()
4037 signature = Base64.getDecoder().decode(fileDesc[3]); in processArgForStdin()
4039 if (fileDesc.length > 4) { in processArgForStdin()
4040 streamingVersion = Integer.parseUnsignedInt(fileDesc[4]); in processArgForStdin()