/frameworks/base/tools/aapt2/link/ |
H A D | TableMerger_test.cpp | 87 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 D | TableMerger.cpp | 294 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 D | Link.cpp | 307 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/include/ |
H A D | FwdLockEngine.h | 534 int fileDesc; member in class:android::FwdLockEngine::DecodeSession 538 fileDesc = -1; 543 fileDesc = fd;
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/common/ |
H A D | FwdLockGlue.c | 79 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/av/drm/libdrmframework/plugins/forward-lock/internal-format/decoder/ |
H A D | FwdLockFile.c | 59 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/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 72 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/base/core/jni/ |
H A D | android_util_Binder.cpp | 622 jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) argument 625 gParcelFileDescriptorOffsets.mClass, gParcelFileDescriptorOffsets.mConstructor, fileDesc);
|
H A D | android_util_AssetManager.cpp | 290 jobject fileDesc = jniCreateFileDescriptor(env, fd); local 291 if (fileDesc == NULL) { 296 return newParcelFileDescriptor(env, fileDesc);
|