595 Commits

Author SHA1 Message Date
Svet Ganov
43212264dd Fix edit text error state in the print UI.
If the user input in the print UI is invalid we show an error icon
next to it. The design requires no error message being shown in a
popup but TextView does show the popup all the time.

bug:16966145

Change-Id: I7aa1ec8093bc76e2f440bcb243609e92e049786b
2014-09-11 10:35:26 -07:00
Svetoslav
212a8bf326 am a6b5869f: Merge "Fix a crash in print spooler." into lmp-dev
* commit 'a6b5869f409f9674ef046e8f997e5f97b71b794a':
  Fix a crash in print spooler.
2014-09-10 23:10:46 +00:00
Svetoslav
993137dcdc am 930f4fe4: Merge "Accessibilty support for the print UI." into lmp-dev
* commit '930f4fe4cb27f9363d177848f4f832b4a79d2819':
  Accessibilty support for the print UI.
2014-09-10 23:10:41 +00:00
Svetoslav
e03ddd0bcc Merge "Fix a crash in print spooler." into lmp-dev 2014-09-10 23:00:42 +00:00
Svetoslav
c65510a7bc Merge "Accessibilty support for the print UI." into lmp-dev 2014-09-10 22:59:50 +00:00
Svetoslav
3ef8e203c8 Fix a crash in print spooler.
1. Leftover code was setting the state to configuring
   before initialization is complete.

2. We were not cancelling the print job if cancelled
   when initializing.

3. The remote print document was cancelled even if
   doing nothing.

bug:17451600

Change-Id: I79a80b723af8537da260012470748b4e8831fd9e
2014-09-10 15:00:11 -07:00
Svetoslav
689ae852ea am 0f2e085d: Merge "RTL support for print UI." into lmp-dev
* commit '0f2e085da75d003a2f3b7490dda9b9ac2aef58ba':
  RTL support for print UI.
2014-09-10 20:14:36 +00:00
Svetoslav
cfb3fb16db am d327046d: Merge "Fix page spacing in preview list." into lmp-dev
* commit 'd327046d05f6823e5ad3ee2ee81bf3531f23bbdc':
  Fix page spacing in preview list.
2014-09-10 20:14:32 +00:00
Svetoslav
fc81bfe3fb Merge "RTL support for print UI." into lmp-dev 2014-09-10 20:06:18 +00:00
Svetoslav
e652b02d45 Accessibilty support for the print UI.
bug:15816751

Change-Id: I5dcdbdd0357843b870ddd47d7c41cfba114d194c
2014-09-10 11:54:37 -07:00
Svetoslav
3ab1ec0549 RTL support for print UI.
bug:16966145

Change-Id: I488d11f1941545630d52eea4c4d48c43667c6067
2014-09-09 21:30:35 -07:00
Svetoslav
dfa3e7c6fd Fix page spacing in preview list.
bug:16966145

Change-Id: I2c4bde3a50ee0fc202fc169a63d4eeeb43c5f4ae
2014-09-09 19:04:51 -07:00
Svetoslav
08dd15e1f4 am 3f49b128: Merge "Trim unnecessary pages when printing." into lmp-dev
* commit '3f49b128bc94c1b1e66decf96d46a83bcdb9a62b':
  Trim unnecessary pages when printing.
2014-09-09 22:19:44 +00:00
Svetoslav
62ce332c14 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
2014-09-09 09:38:07 -07:00
Svetoslav
ca9dde9932 am 3b42928c: Merge "Print spooler UI polish and bug fixes." into lmp-dev
* commit '3b42928c318d2732d75bb9c0ed7b864c47a265a2':
  Print spooler UI polish and bug fixes.
2014-09-05 22:45:40 +00:00
Svetoslav
6552bf3da6 Print spooler UI polish and bug fixes.
1. Added an empty state for pages that are being rendered.

2. Fixed a NPA on a binder thread when destoroying the
   remote print adapter.

3. Fixed a rare crash when the print activity gets an
   activity class callback while initializing.

4. Changed the preview pages on phone in land to four.

5. Fixed a flicker from a list of pages to an empty state
   and then back to the list of pages.

bug:15704969
bug:16966145

Change-Id: I0eea2f30a102d8fefcbf90187fa6d8612fb19434

Conflicts:
	packages/PrintSpooler/src/com/android/printspooler/widget/PageContentView.java
2014-09-05 15:21:50 -07:00
Svetoslav
5cf8b4b751 am f1a858c7: Fix broken aidl
* commit 'f1a858c7887ba8af0cf991fd6fa8a1f72e069ff1':
  Fix broken aidl
2014-09-05 17:29:23 +00:00
Svetoslav
d0c362de1c Fix broken aidl
Change-Id: I2187abd75b4f60e790b747a492ad610592f2ef53
2014-09-05 10:19:39 -07:00
Svetoslav
6fadd4436b am 4c8c9ac0: Merge "Update FrameStats API per api-council request." into lmp-dev
* commit '4c8c9ac06fc213d9bc9d82c39d55f425fee5b429':
  Update FrameStats API per api-council request.
2014-09-05 17:13:29 +00:00
Svetoslav
53dcd394aa Update FrameStats API per api-council request.
bug:17390382

Change-Id: I50518834569f4d0ec394709294537256f03530e0
2014-09-05 10:07:02 -07:00
Prabhakar Thirumoorthy
94e1134448 am bbc5508d: Merge "Add a missing dependency on a shared JNI library" into lmp-dev
* commit 'bbc5508df13852f2e95bedaedc3fba9b202f9a67':
  Add a missing dependency on a shared JNI library
2014-09-04 20:42:14 +00:00
Svetoslav
d97bf6920b Add a missing dependency on a shared JNI library
bug:17389508

Change-Id: I38e1ad7daf991f37458eac391b472eb3816d7838
2014-09-04 12:37:52 -07:00
Brian Carlstrom
7dfd690888 am 12799b2f: Used LOCAL_SHARED_LIBRARIES for proper dependencies
* commit '12799b2f1a8db1171ff1dd8db99d8de72574738a':
  Used LOCAL_SHARED_LIBRARIES for proper dependencies
2014-09-04 17:05:27 +00:00
Brian Carlstrom
191cbad91f Used LOCAL_SHARED_LIBRARIES for proper dependencies
bug:15938254
Change-Id: I710f689e8bcad66988ef3aa0aa189b185c8ad662
2014-09-04 09:52:31 -07:00
Svet Ganov
4b5facda2f am 26aa29dd: Merge "Switching to raw byte copy of bitmaps for print preview." into lmp-dev
* commit '26aa29ddc7c818ff1272b687aeb2412701155bf3':
  Switching to raw byte copy of bitmaps for print preview.
2014-09-03 23:41:53 +00:00
Svet Ganov
def58cbffc Merge "Switching to raw byte copy of bitmaps for print preview." into lmp-dev 2014-09-03 23:33:30 +00:00
Svetoslav
c7afa4104e am c07c5902: Merge "Fix some print UI issues." into lmp-dev
* commit 'c07c5902d70dd411839810d42d3ed747da52333c':
  Fix some print UI issues.
2014-09-03 23:27:25 +00:00
Svetoslav
8c07e8d2a3 Merge "Fix some print UI issues." into lmp-dev 2014-09-03 23:18:30 +00:00
Svetoslav
9622365dd6 am de985e74: Merge "Update print chooser drop down width." into lmp-dev
* commit 'de985e7411fb4ca0b17c7273856392a043a4ea08':
  Update print chooser drop down width.
2014-09-03 22:50:15 +00:00
Svetoslav
baa5bccb19 Merge "Update print chooser drop down width." into lmp-dev 2014-09-03 22:46:30 +00:00
Svetoslav
e04dcca593 Update print chooser drop down width.
bug:16324744

Change-Id: I1f0b79ae5da06de97ca80a800537d815ce59bf41
2014-09-03 15:02:14 -07:00
Svetoslav
a1b3bb9f73 am 87263510: Merge "Unregister from the remote renderer only if bound." into lmp-dev
* commit '87263510e60bb163dc85152405217538797646e8':
  Unregister from the remote renderer only if bound.
2014-09-03 21:50:54 +00:00
Svetoslav
9e795e19c7 Unregister from the remote renderer only if bound.
bug:8213791

Change-Id: Ia9efa33331437c4db447acf0c510d4cb4932a593
2014-09-03 14:34:01 -07:00
Svet Ganov
df6444931b Switching to raw byte copy of bitmaps for print preview.
Using compression and decompression for moving bitmap data
acorss processes is slow as compression is expensive. This
change switches to using direct streaming of the bitmap
data.

bug:15938254

Change-Id: I78bc450031ee60ada4c3b66f14586a73c72ce34f
2014-09-03 12:34:23 -07:00
Svetoslav
6f249835a4 Fix some print UI issues.
1. Fixed a crash when orientation changes and the content
   is scrolled due to wrong size bitmap being requested.

2. Closed a file dscriptior that was being left open.

3. Clearing the bitmap before passing it to the renderer to
   ensure it is white for pixels not touched when rendering.

4. Removed debug logs.

5. Switched to the correct layout manager for RecyclerView.

bug:16966145

Change-Id: I8ab9d22635c93cac5ff85c6f4b5d82e58cd8df5c
2014-09-03 12:29:53 -07:00
Svet Ganov
825b432151 am 668b4765: Merge "Move print rendering in an isolated process." into lmp-dev
* commit '668b4765de3e97d69aaebb3bd58fe23eb800264d':
  Move print rendering in an isolated process.
2014-09-02 22:03:58 +00:00
Svet Ganov
561b893174 Merge "Move print rendering in an isolated process." into lmp-dev 2014-09-02 21:51:47 +00:00
Svet Ganov
13f542cabd Move print rendering in an isolated process.
Security review of the PDF rendering code revealed that it is
not sercure. Therefore, this code must be run in a sandbox.
This change moves the rendering code in an isolated process.

bug:16897933

Change-Id: I711ce42a56892db1837950137bfaa79e1d61a7c4
2014-09-02 11:40:44 -07:00
Svetoslav
2d3cac2128 am 6a353ad0: Merge "Print UI polish." into lmp-dev
* commit '6a353ad0caaaf634804c18467838a5804c2abe06':
  Print UI polish.
2014-08-29 03:35:20 +00:00
Svetoslav
c404cacd3a Print UI polish.
1. Fixed an issue where input focus is given to the copies
   edit text every other time we expand the options UI. We
   want focus there only if the user touches the control.

   bug:16966145

2. Fixed the all printers list view to have item dividers
   reaching the left and right ends of the list view.

   bug:17288761

3. Fixed an issue where the user can deselect all pages
   which is not only an invalid state but also causes a crash.

   bug:17286198

4. Tweaked the minimal size of the preview in landscape on
   phone to better accomodate the page.

   bug:17288904

5. Fixed a regression introduced by a change from the UI folks.

Change-Id: Ida7dad7eea413295a840028060810b2619c616e8
2014-08-27 18:46:23 -07:00
Svetoslav
0e23dd870a am f25081e0: Merge "Fix a crash in PrintSpooler." into lmp-dev
* commit 'f25081e063e495bf53ac0f5e1ea41b10231145e3':
  Fix a crash in PrintSpooler.
2014-08-27 03:01:03 +00:00
Svetoslav
9c9888b8c5 Fix a crash in PrintSpooler.
If the user cancels printing we cancel the current
pring operation in the RemotePrintDocument which is
a state machine enforcing valid state transitions.
A valid transition was not allowed: finishing after
canceled.

bug:17182301

Change-Id: Iccf3a78d7dc736a64bf5c44941a8f8064dcd0ec3
2014-08-26 15:19:56 -07:00
Alan Viverette
042a0cee90 am 20862a7f: Merge "Update material colors" into lmp-dev
* commit '20862a7fe43f05b12a6f95515ab08ae0bffb1bae':
  Update material colors
2014-08-25 23:23:33 +00:00
Alan Viverette
a1fe772bd7 Update material colors
BUG: 17212898
Change-Id: Ic0806db57e88d5143b4241e419970ffeb2468d50
2014-08-25 16:15:06 -07:00
Baligh Uddin
4879a5c9e2 Import translations. DO NOT MERGE
Change-Id: Ic42db2aebb4777ec9a7107851b5479d0b25e048f
Auto-generated-cl: translation import
2014-08-24 09:21:39 -07:00
Svetoslav
c3c5ad6fdf am 0ab2d34b: Merge "Using default system icon for print spooler" into lmp-dev
* commit '0ab2d34bb6a182fc15994c3e212ea458a5f048f7':
  Using default system icon for print spooler
2014-08-21 02:02:52 +00:00
Svetoslav
748b9a1638 am d5f8a500: Merge "Update the "More options" button in printing." into lmp-dev
* commit 'd5f8a5008cf56e33b5bd99ed8ef80179691e0966':
  Update the "More options" button in printing.
2014-08-21 02:02:44 +00:00
Svetoslav
49cbfcc10c Merge "Using default system icon for print spooler" into lmp-dev 2014-08-21 00:11:43 +00:00
Svetoslav
fed7173306 Using default system icon for print spooler
bug:16568027

Change-Id: I87c7e7d60864b6d28899210bb400e56e21bf43f8
2014-08-20 20:28:22 +00:00
Svetoslav
3c238245eb Update the "More options" button in printing.
The "More options" button needed changes to match the
new UX spec. Also fixed some identation issues as well
as a missing marging in the erorr UI.

bug:16301066

Change-Id: I29f0d41915d1816d754f2c6288a7387aafeba2c2
2014-08-20 19:57:16 +00:00