Searched refs:fileDesc (Results 1 - 14 of 14) 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 <
258 FwdLockFile_attach(int fileDesc) argument
299 FwdLockFile_read(int fileDesc, void *pBuffer, size_t numBytes) argument
316 FwdLockFile_lseek(int fileDesc, off64_t offset, int whence) argument
355 FwdLockFile_detach(int fileDesc) argument
365 FwdLockFile_close(int fileDesc) argument
369 FwdLockFile_CheckDataIntegrity(int fileDesc) argument
410 FwdLockFile_CheckHeaderIntegrity(int fileDesc) argument
433 FwdLockFile_CheckIntegrity(int fileDesc) argument
437 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.cpp622 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) argument
625 gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc);
H A Dandroid_util_AssetManager.cpp290 jobject fileDesc = jniCreateFileDescriptor(env, fd); local
291 if (fileDesc == NULL) {
296 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/base/tools/aapt2/link/
H A DTableMerger.h90 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);
H A DTableMerger.cpp294 bool TableMerger::mergeFileImpl(const ResourceFile& fileDesc, io::IFile* file, bool overlay) { argument
296 std::u16string path = util::utf8ToUtf16(ResourceUtils::buildResourceFileName(fileDesc,
300 fileRef->setSource(fileDesc.source);
303 ResourceTablePackage* pkg = table.createPackage(fileDesc.name.package, 0x0);
304 pkg->findOrCreateType(fileDesc.name.type)
305 ->findOrCreateEntry(fileDesc.name.entry)
306 ->findOrCreateValue(fileDesc.config, {})
313 bool TableMerger::mergeFile(const ResourceFile& fileDesc, io::IFile* file) { argument
314 return mergeFileImpl(fileDesc, file, false /* overlay */);
317 bool TableMerger::mergeFileOverlay(const ResourceFile& fileDesc, i argument
[all...]
H A DTableMerger_test.cpp87 ResourceFile fileDesc; local
88 fileDesc.config = test::parseConfigOrDie("hdpi-v4");
89 fileDesc.name = test::parseNameOrDie(u"@layout/main");
90 fileDesc.source = Source("res/layout-hdpi/main.xml");
93 ASSERT_TRUE(merger.mergeFile(fileDesc, &testFile));
108 ResourceFile fileDesc; local
109 fileDesc.name = test::parseNameOrDie(u"@xml/foo");
113 ASSERT_TRUE(merger.mergeFile(fileDesc, &fileA));
114 ASSERT_TRUE(merger.mergeFileOverlay(fileDesc, &fileB));
H A DLink.cpp307 bool linkAndVersionXmlFile(const ResourceEntry* entry, const ResourceFile& fileDesc,
329 const ResourceFile& fileDesc,
359 outFileOp->xmlToFlatten->file = fileDesc;
461 ResourceFile fileDesc; local
462 fileDesc.config = configValue->config;
463 fileDesc.name = ResourceName(pkg->name, type->type, entry->name);
464 fileDesc.source = fileRef->getSource();
465 if (!linkAndVersionXmlFile(entry.get(), fileDesc, file, table, &fileOp)) {
946 bool mergeCompiledFile(io::IFile* file, ResourceFile* fileDesc, bool override) { argument
954 result = mTableMerger->mergeFileOverlay(*fileDesc, fil
328 linkAndVersionXmlFile(const ResourceEntry* entry, const ResourceFile& fileDesc, io::IFile* file, ResourceTable* table, FileOperation* outFileOp) argument
[all...]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/
H A DFwdLockEngine.cpp72 FwdLockFile_detach(session->fileDesc);
73 ::close(session->fileDesc);
320 int fileDesc = dup(fd); local
322 if (-1 < fileDesc) {
323 if (FwdLockFile_attach(fileDesc) < 0) {
324 close(fileDesc);
327 const char* pMimeType = FwdLockFile_GetContentType(fileDesc);
335 FwdLockFile_close(fileDesc);
485 int fileDesc = -1; local
492 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.java121 int fileDesc;
125 fileDesc = Integer.parseInt(env);
132 fd.setInt$(fileDesc);
136 "Error binding to local socket '" + fileDesc + "'", ex);

Completed in 99 milliseconds