/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
D | FwdLockFile.c | 59 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 …]
|
D | FwdLockFile.h | 36 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/ |
D | FwdLockGlue.c | 79 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/ |
D | FwdLockEngine.cpp | 72 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() 485 int fileDesc = -1; local 492 fileDesc = dup(fd); [all …]
|
/frameworks/base/tools/aapt2/link/ |
D | TableMerger.cpp | 294 bool TableMerger::mergeFileImpl(const ResourceFile& fileDesc, io::IFile* file, bool overlay) { in mergeFileImpl() argument 296 std::u16string path = util::utf8ToUtf16(ResourceUtils::buildResourceFileName(fileDesc, in mergeFileImpl() 300 fileRef->setSource(fileDesc.source); in mergeFileImpl() 303 ResourceTablePackage* pkg = table.createPackage(fileDesc.name.package, 0x0); in mergeFileImpl() 304 pkg->findOrCreateType(fileDesc.name.type) in mergeFileImpl() 305 ->findOrCreateEntry(fileDesc.name.entry) in mergeFileImpl() 306 ->findOrCreateValue(fileDesc.config, {}) in mergeFileImpl() 313 bool TableMerger::mergeFile(const ResourceFile& fileDesc, io::IFile* file) { in mergeFile() argument 314 return mergeFileImpl(fileDesc, file, false /* overlay */); in mergeFile() 317 bool TableMerger::mergeFileOverlay(const ResourceFile& fileDesc, io::IFile* file) { in mergeFileOverlay() argument [all …]
|
D | TableMerger_test.cpp | 87 ResourceFile fileDesc; in TEST_F() local 88 fileDesc.config = test::parseConfigOrDie("hdpi-v4"); in TEST_F() 89 fileDesc.name = test::parseNameOrDie(u"@layout/main"); in TEST_F() 90 fileDesc.source = Source("res/layout-hdpi/main.xml"); in TEST_F() 93 ASSERT_TRUE(merger.mergeFile(fileDesc, &testFile)); in TEST_F() 108 ResourceFile fileDesc; in TEST_F() local 109 fileDesc.name = test::parseNameOrDie(u"@xml/foo"); in TEST_F() 113 ASSERT_TRUE(merger.mergeFile(fileDesc, &fileA)); in TEST_F() 114 ASSERT_TRUE(merger.mergeFileOverlay(fileDesc, &fileB)); in TEST_F()
|
D | TableMerger.h | 90 bool mergeFile(const ResourceFile& fileDesc, io::IFile* file); 95 bool mergeFileOverlay(const ResourceFile& fileDesc, io::IFile* file); 109 bool mergeFileImpl(const ResourceFile& fileDesc, io::IFile* file, bool overlay);
|
D | Link.cpp | 307 bool linkAndVersionXmlFile(const ResourceEntry* entry, const ResourceFile& fileDesc, 329 const ResourceFile& fileDesc, in linkAndVersionXmlFile() argument 359 outFileOp->xmlToFlatten->file = fileDesc; in linkAndVersionXmlFile() 461 ResourceFile fileDesc; in flatten() local 462 fileDesc.config = configValue->config; in flatten() 463 fileDesc.name = ResourceName(pkg->name, type->type, entry->name); in flatten() 464 fileDesc.source = fileRef->getSource(); in flatten() 465 if (!linkAndVersionXmlFile(entry.get(), fileDesc, file, table, &fileOp)) { in flatten() 946 bool mergeCompiledFile(io::IFile* file, ResourceFile* fileDesc, bool override) { in mergeCompiledFile() argument 954 result = mTableMerger->mergeFileOverlay(*fileDesc, file); in mergeCompiledFile() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
D | FwdLockConv.h | 78 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/ |
D | FwdLockEngine.h | 534 int fileDesc; 538 fileDesc = -1; in DecodeSession() 543 fileDesc = fd; in DecodeSession()
|
/frameworks/base/core/jni/ |
D | android_util_Binder.h | 31 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
|
D | android_util_Binder.cpp | 622 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) in newParcelFileDescriptor() argument 625 … gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc); in newParcelFileDescriptor()
|
D | android_util_AssetManager.cpp | 290 jobject fileDesc = jniCreateFileDescriptor(env, fd); in returnParcelFileDescriptor() local 291 if (fileDesc == NULL) { in returnParcelFileDescriptor() 296 return newParcelFileDescriptor(env, fileDesc); in returnParcelFileDescriptor()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | ZygoteInit.java | 121 int fileDesc; in registerZygoteSocket() local 125 fileDesc = Integer.parseInt(env); in registerZygoteSocket() 132 fd.setInt$(fileDesc); in registerZygoteSocket() 136 "Error binding to local socket '" + fileDesc + "'", ex); in registerZygoteSocket()
|