History log of /frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5c091dc9449b583e18656a8850a61f557dfcc945 20-Jul-2017 Steven Moreland <smoreland@google.com> Merge "frameworks/base: use proper nativehelper headers"
am: 826eafd958

Change-Id: I36f10ff4d963284a313f1cc5b368f82549a4adb2
2279b2534272282a5b5152723235da397e49195c 19-Jul-2017 Steven Moreland <smoreland@google.com> frameworks/base: use proper nativehelper headers

libnativehelper exports headers under nativehelper. These were
available before incorrectly as global headers in order to give
access to jni.h.

Test: modules using frameworks/base find headers
Bug: 63762847
Change-Id: I0f9f231acdebe460f279135462f43d3e32eff64d
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
173215d1b20b70908a9d1807f1372bd95b7ad5f1 12-Jan-2017 Mark Salyzyn <salyzyn@google.com> resolve merge conflicts of ec7e2a164c37 to master

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I49c6e41b79061e2b3c0352e3ac8fa5ebb152b6f5
96bf5985d5a360568832fd26b6d5b44236c9343e 29-Sep-2016 Mark Salyzyn <salyzyn@google.com> Replace cutils/log.h and log/logger.h with android/log.h or log/log.h
(part deux)

Test: compile
Bug: 26552300
Bug: 31289077
Change-Id: I7417936c4d3666608fccfe51a312c90ecefba2fb
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
fa4c311438dc174df7acac822a9aa91ae91e9879 24-Oct-2016 Mark Salyzyn <salyzyn@google.com> Merge "PdfEditor: define LOG_TAG" am: a3bb8e3cc7 am: 9c0ea2d1cd am: 5aad37e70c
am: 5be5a41170

Change-Id: Ia7ee2481592d3df55c3fda94cc1abfb4ea4a95cc
9c0ea2d1cd63ec0ee197108d41b83153056baba6 24-Oct-2016 Mark Salyzyn <salyzyn@google.com> Merge "PdfEditor: define LOG_TAG"
am: a3bb8e3cc7

Change-Id: Ide63ebe4228d7b7af05e20202baafdebf9699150
121ab7001b3d818f7e7cf3cd4a95bcb3453b44e2 07-Oct-2016 Mark Salyzyn <salyzyn@google.com> PdfEditor: define LOG_TAG

general cleanup of logging

Test: compile
Bug: 31992412
Change-Id: Ie2ec5a223bbb92e902bf6914100281b6d84500e3
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
366262dc7854ba54f64905df8d275358be41edf5 12-May-2016 Philip P. Moltmann <moltmann@google.com> Only have a single call into pdfium at a time.

Pdfium is not thread safe and uses global variables, hence no
parallel call pdfium is safe

Fixes: 28705066
Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
(cherry picked from commit 0768a7dc450caf4c873c5b0883a75135536e1546)
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
12328c0fd190c7baddb5f412c48005371672dc55 10-Jun-2016 Philip P. Moltmann <moltmann@google.com> Handle Pdfium errors

... and factor out common code from PdfEditor and PdfRenderer to
PdfUtils.h

Change-Id: If193579d8fccb55a3c2a7e1fa3c935ce410a17c2
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
61a530742f70e59d7fbd7c35a22292176ca554fa 31-May-2016 Philip P. Moltmann <moltmann@google.com> Use SkMatrix to compute pdf transformation.

Bug: 28051413
Change-Id: Id17db12801a33955426d7e01d0af950b1c6468cf
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
0768a7dc450caf4c873c5b0883a75135536e1546 12-May-2016 Philip P. Moltmann <moltmann@google.com> Only have a single call into pdfium at a time.

Pdfium is not thread safe and uses global variables, hence no
parallel call pdfium is safe

Fixes: 28705066
Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
be2e7121872afe2f561f20c4660da854c31e1b66 27-Apr-2016 Philip P. Moltmann <moltmann@google.com> Syncronize pdfium initialization between users.

Only initalize pdfium once per process and only destroy it once all
users are gone.

Bug: 28387883, 28370309, 28388184
Change-Id: I41e8f6da247a7cfab5fb9d159c047293719192c3
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
79bd8d48ad69c39834291809fe78ea478d067b68 07-Mar-2016 Philip P. Moltmann <moltmann@google.com> PDFium interface changed, hence adjust the adapter jni code.

Bug: 27564090
Change-Id: I983398a90438062ecc9c7ebc0ad325777fa8aaff
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
b57dd722f1dc0663417da37d3a82f8283ad3c982 24-Sep-2015 Elliott Hughes <enh@google.com> resolved conflicts for a884d81e to stage-aosp-master

Change-Id: Ice485967fa96f13786024b6939b826638e906ff0
76f6a86de25e1bf74717e047e55fd44b089673f3 19-Sep-2015 Daniel Micay <danielmicay@gmail.com> constify JNINativeMethod function pointer tables

Change-Id: I4036c924958221cbc644724f8eb01c5de3cd7954
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
fbd02886559e7ca2b619ed0d9bff76b10cdb23c3 04-Jun-2015 Svet Ganov <svetoslavganov@google.com> Update the pdfium library - framework

Change-Id: I4880e9310c02c6e26d4560fb8515f2ce51c597f4
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
71487eb0ceb2b7dea02649e78d99bb5952f5eaef 19-Nov-2014 Mike Reed <reed@google.com> Merge frameworks/base changes from master-skia to master.

Adaptations to changes in Skia upstream since Oct 2014.
(https://code.google.com/p/skia/issues/detail?id=2377)

cbb922d use new roundOut signature
77082de Call SkColorTable::readColors().
5456ab1 Handle the result of SkMatrix::asAffine.
25cfc78 Remove dependence on SK_LEGACY_PICTURE_SIZE_API.

BUG:18468293

Change-Id: I5a4d274e854298843891410b1ffd5e24f038b88a
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
7d13d9db1ef90063cb542ccd6554042a6a3263b7 21-Nov-2014 Andreas Gampe <agampe@google.com> resolved conflicts for merge of 3fc5e3ca to lmp-mr1-dev-plus-aosp

Change-Id: Id8286e5a4381315a6060251a8055b0f1d1a96019
ed6b9dff563c5e22f040ff37e12c0d771e0478ae 21-Nov-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Consistency in core/jni

Make consistent use of core_jni_helpers for registration.

Translate some #ifdefs into const bools.

Change-Id: I37639aa053dd50f003a552cbd8550dddecc811c5
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
3a091b79978caa9b5d58ae19f693279e5a717c2a 21-Nov-2014 Dan Albert <danalbert@google.com> resolved conflicts for merge of 8e0cfe7c to lmp-mr1-dev-plus-aosp

Change-Id: I068d2a0fb118d4e2b4c1e546bebfcbc2cb120d36
46d8444631b4b1253a76bfcc78a29d26014d022f 19-Nov-2014 Dan Albert <danalbert@google.com> Fix clang warnings in core/jni.

There are a few bugs in here too (mostly people expecting + to
concatenate C strings) :(

Change-Id: I0a243c05c4ea8b56e84896f37814d0fbea4c39d5
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
b380d7eeee2ea73bcd2bfdf0b0b3339ab93ff75c 19-Nov-2014 Chih-hung Hsieh <chh@google.com> am b1e4e89b: Merge "Fix incorrect usage of bool"

* commit 'b1e4e89b86ee12335fa1398a6b2bc0a0604599de':
Fix incorrect usage of bool
92ddfcfff5cec32456e2d1e0d96671f1eb0e2986 17-Nov-2014 Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> Fix incorrect usage of bool

A bool can't be < 0

Change-Id: Ie94ffadcb38c95214d1105c02610e59b4b2872b2
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
f4e341d99c4c29cb6cc7380829a316cf4847f3df 14-Nov-2014 Andreas Gampe <agampe@google.com> Frameworks/base: Mask pdfium warning

Mask out warnings from external/.

Change-Id: I371e1346925c7eb5cdc9c4dcffab41ff0c6ddd63
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
fce84f035c35606c5707e735f503f7bdcfd5b2a1 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> Crash apps that print malformed or password protected PDFs.

If apps are writing malformed content (typically not a PDF file) or if the
PDF content they provide to the print system is password protected, are now
crashed as both of these are app bugs.

bug:17636435

Change-Id: Ifce6a3199e587448dd38f6a84290a965c24b698b
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
bec22beb99b279d381f720d761ca75fe3e7414dc 25-Sep-2014 Svetoslav <svetoslavganov@google.com> Save to a PDF file should look like print preview.

When rendering a PDF file for print preview we take into account
the selected print options such as paper size, orientation, etc
without modifying the document. To print we send the doc in its
original form and the print options so the print service can apply
the necessary transforms in addition to the optional custom options
it supports. When saving to PDF we have to actually change the
document as we act as a print service.

bug:13545980

Change-Id: Icdcecf962bec6ff742cc6015df5af9d9086ce760
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp
62ce332c141cf7bc7200c4c87d63e395874fc3ec 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Trim unnecessary pages when printing.

A user may request a subset of the document's pages to be printed.
In this case the expectation is that the resulting document does
not include not selected pages. While print serivices can do the
trimming themselves or the printer may do so, moving, potantually
many, redundant pages is inefficient. The real problem is when
saving to a PDF file where the saved file must not have the pages
the user did not select. This change adds shredding of undesired
pages from the PDF before saving it or passing it to a print service.
:
bug:17285994

Change-Id: I7deba535af99457bea3c118202314f0f3812e809
/frameworks/base/core/jni/android/graphics/pdf/PdfEditor.cpp