Home
last modified time | relevance | path

Searched refs:fileReader (Results 1 – 4 of 4) sorted by relevance

/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Ddocument.cc45 Status Document::Load(std::unique_ptr<FileReader> fileReader, const char* password, in Load() argument
53 if ((is_linearized = FPDFAvail_IsLinearized(fileReader->fpdf_avail_.get())) == PDF_LINEARIZED) { in Load()
54 fpdf_doc.reset(FPDFAvail_GetDocument(fileReader->fpdf_avail_.get(), password)); in Load()
56 fpdf_doc.reset(FPDF_LoadCustomDocument(fileReader.get(), password)); in Load()
64 std::move(fileReader), is_linearized, should_scale_for_print)); in Load()
69 fileReader->ReleaseFd(); in Load()
73 *requestedHeaderSize = fileReader->RequestedHeaderSize(); in Load()
76 *requestedFooterSize = fileReader->RequestedFooterSize(); in Load()
Dfile.cc109 FileReader* fileReader = static_cast<FileReader*>(pThis); in StaticIsDataAvailImpl() local
110 return fileReader->CanReadBlock(pos, size); in StaticIsDataAvailImpl()
116 FileReader* fileReader = static_cast<FileReader*>(param); in StaticGetBlockImpl() local
117 return fileReader->DoReadBlock(pos, buffer, size); in StaticGetBlockImpl()
121 FileReader* fileReader = static_cast<FileReader*>(pThis); in StaticAddSegmentImpl() local
122 fileReader->RequestBlock(pos, size); in StaticAddSegmentImpl()
Ddocument.h54 static Status Load(std::unique_ptr<FileReader> fileReader, const char* password,
Dpdf_document_jni.cc88 auto fileReader = std::make_unique<FileReader>(std::move(fd)); in Java_android_graphics_pdf_PdfDocumentProxy_createFromFd() local
89 size_t pdfSizeInBytes = fileReader->CompleteSize(); in Java_android_graphics_pdf_PdfDocumentProxy_createFromFd()
90 Status status = Document::Load(std::move(fileReader), password, in Java_android_graphics_pdf_PdfDocumentProxy_createFromFd()