History log of /frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bdace63d5bda8a3f19300b52064a0f77bc5d3754 14-Jun-2017 Philip P. Moltmann <moltmann@google.com> Select the right pages to scrap

The code before overwrote some data the outside code expected to not be
modified which resulted in the scrapped pages to be offset.

Test: - cts-tradefed run cts-dev -m Print
- Tried to repro case in the bug
Bug: 62296301

Change-Id: If3f250dbca43125bbbe9faadc5183a6dbaa69481
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java
f7a5b4fb30792789d9e436bb5107f1a6d743d49c 16-Mar-2017 Philip P. Moltmann <moltmann@google.com> Handle corrupted files when cutting out pages

Before the print spooler crashes, now we crash the printing app.

Bonus: Renamed and documented fields as I could never remeber what they
mean.

Test: Added new (disabled) test to CTS print tests that emulated the
scenario
Bug: 35350768
Change-Id: I41c094960d96f46d274e9f87381bcda5274d5612
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java
c6c319e9889874a1babafa4301dabe193737ebd9 01-Apr-2016 Philip P. Moltmann <moltmann@google.com> Print Activity: Use a single (re-implemented) parsing logig for page ranges.

- Support unbounded ranges, e.g. 4- == 4-pageCount and -2 == 1-2
- Do not allow reverse ranges, i.e. 7-3 is not allowed anymore
- restrict characters that can be typed into field
- force numeric keyboard

- Fix bug that we update the selected pages even if the page ranges are
invalid

Fixes: 13126748
Change-Id: I515d9346ceb152a41b7260792c5dd9bd91b27cab
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java
525a66b2bb5abf844aff2109bdc9ed819566bece 15-Jun-2014 Svet Ganov <svetoslavganov@google.com> Adding print preview.

This change adds the pring preview part of the new print UX. The
UI has two parts, the top section is the print options and the
bottom section print preview with a list of pages. The user can
interact only with one of them. When print options are expanded
they cover the preview content and a scrim is laid out on top of
the preview. Tapping the scrim collapses the print options. When
the user types in page ranges and closes the options to look at
the preview, the latter is updated to show only these pages. In
the list of pages the user can further prune pages by deselecting
them.

Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java
a798c0a984f29f7180883a61839f68d2cbf0c6ce 15-May-2014 Svetoslav <svetoslavganov@google.com> Refactor printing

Change-Id: I19850154ef2798afff511e4490a268ce38e8cbae
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/PageRangeUtils.java