5369 Commits

Author SHA1 Message Date
Svetoslav Ganov
d26d4898fc Print spooler security and some new print service facing APIs.
1. Updated the security mode of the print spooler. Now the spooler
   is not signed with the system key, it is not a privileged app so if
   it gets compromised (PDF rendering is a potential attack vector)
   it cannot access dangerous permissions. Also only the system
   can bind to the spooler.

2. Added APIs for asking a print service to start and stop tracking
   a given printer. This is need for the case when the user selects
   the printer and the print service should do a best effort to keep
   the system updated for the current state of the printer.

3. Added APIs for putting a print job in a blocked state. A print
   service would report the print job as blocked if for some reason
   the printer cannot proceed, e.g. 99 pages are printed but there
   is no paper for the last one. The user has to add more paper
   and the print service can resume the job.

4. Changed the read/write APIs to use ParcelFileDescriptor instead
   of FileDescriptor since the latter does not have a clean API for
   detaching the wrapped Linux file descriptor when one wants to
   push it to native.

5. Added API for getting the size of the printed document so the
   print service can avoid handling big filed over cellular network
   or ask the user if needed.

6. Now the print services that are preinstalled on the system image
   are automatically enabled.

Change-Id: Ia06c311d3d21cabb9e1368f13928e11cd0030918
2013-08-29 15:39:44 -07:00
John Spurlock
57117d0a8d am 47a41af5: am e87bc32e: Merge "More SystemUI asset updates." into klp-dev
* commit '47a41af51030fc6c504c9a3ee250ddf7a8c5f5ba':
  More SystemUI asset updates.
2013-08-29 11:08:37 -07:00
John Spurlock
47a41af510 am e87bc32e: Merge "More SystemUI asset updates." into klp-dev
* commit 'e87bc32e6d6991b1de72e914f268efc276837e47':
  More SystemUI asset updates.
2013-08-29 11:05:48 -07:00
John Spurlock
fc3c06ef21 More SystemUI asset updates.
White close handles, a few missed xx items.

Bug:10502089
Change-Id: I788f3698249e72c3df3d039c68b438998db1b978
2013-08-29 13:56:31 -04:00
Baligh Uddin
c882eb73e6 Merge "Import translations. DO NOT MERGE" 2013-08-29 14:49:42 +00:00
Baligh Uddin
1b0a22285d Import translations. DO NOT MERGE
Change-Id: I47a12de30bcf92829bbfa2a84e42715bb779ceef
Auto-generated-cl: translation import
2013-08-28 23:27:16 -07:00
Jeff Sharkey
98486543cc am 6607275b: am 9fd81a90: Merge "Stronger DocumentsProvider contract." into klp-dev
* commit '6607275b3a99b28f4176f8f8cc87f46c5ed051db':
  Stronger DocumentsProvider contract.
2013-08-28 21:35:17 -07:00
Jeff Sharkey
6607275b3a am 9fd81a90: Merge "Stronger DocumentsProvider contract." into klp-dev
* commit '9fd81a9008d5c8dd33272b6a451d89fa2fa1841e':
  Stronger DocumentsProvider contract.
2013-08-28 21:32:08 -07:00
Jeff Sharkey
9fd81a9008 Merge "Stronger DocumentsProvider contract." into klp-dev 2013-08-29 04:27:02 +00:00
Jeff Sharkey
aeb16e2435 Stronger DocumentsProvider contract.
Using a contract class requires that a provider implement it exactly
with little help. This change introduces a DocumentsProvider abstract
class that provides a client-side implementation of the contract that
greatly reduces developer burden, and improves correctness.

This also moves to first-class DocumentRoot objects, and moves calls
with complex side effects to be ContentProvider.call() invocations,
offering more granular permission control over Uri operations that
shouldn't be available through Uri grants.

This new design also relaxes the requirement that root information be
burned into every Uri.  Migrate ExternalDocumentsProvider and
DocumentsUI to adopt new API.

Bug: 10497206
Change-Id: I6f2b3f519bfd62a9d693223ea5628a971ce2e743
2013-08-28 20:49:42 -07:00
Baligh Uddin
bdeefadd71 Merge "Import translations. DO NOT MERGE" 2013-08-29 03:06:25 +00:00
Baligh Uddin
e450d55f32 Merge "Import translations. DO NOT MERGE" 2013-08-29 03:06:15 +00:00
Baligh Uddin
166853e6c9 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-29 03:06:07 +00:00
Baligh Uddin
2825bce193 Merge "Import translations. DO NOT MERGE" 2013-08-29 03:05:41 +00:00
Baligh Uddin
6bf888ddc2 Merge "Import translations. DO NOT MERGE" 2013-08-29 03:05:00 +00:00
Baligh Uddin
cf9ceef72f Merge "Import translations. DO NOT MERGE" 2013-08-29 03:04:36 +00:00
Baligh Uddin
42ca28e97a Merge "Import translations. DO NOT MERGE" 2013-08-29 03:04:21 +00:00
Baligh Uddin
5c77627077 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-08-29 03:04:13 +00:00
Baligh Uddin
911854db33 Merge "Import translations. DO NOT MERGE" 2013-08-29 03:03:48 +00:00
Baligh Uddin
b7b43f89ca Import translations. DO NOT MERGE
Change-Id: I2d9b9480f24eed9e6ec962222d212bbfb1179cde
Auto-generated-cl: translation import
2013-08-28 18:40:09 -07:00
Baligh Uddin
d691402f86 Import translations. DO NOT MERGE
Change-Id: I9e30ea7a2bb8951c38cd86979b939f75d19d85d4
Auto-generated-cl: translation import
2013-08-28 18:38:29 -07:00
Baligh Uddin
612db0a007 Import translations. DO NOT MERGE
Change-Id: I665172800a06d780b92a5db2ab549980c87e8524
Auto-generated-cl: translation import
2013-08-28 18:35:58 -07:00
Baligh Uddin
b5445c815e Import translations. DO NOT MERGE
Change-Id: I2ae3c5acea8bc6736dc896c9a51647894a5f3175
Auto-generated-cl: translation import
2013-08-28 18:34:39 -07:00
Baligh Uddin
27b7534f8e Import translations. DO NOT MERGE
Change-Id: I6b9b8488aabcd5c903c1fa32b66b04d9b29101ac
Auto-generated-cl: translation import
2013-08-28 18:32:51 -07:00
Baligh Uddin
1aa207398e Import translations. DO NOT MERGE
Change-Id: I6c791fa210df4aea49e2b0ffaaf852ae6fc90cb1
Auto-generated-cl: translation import
2013-08-28 18:09:00 -07:00
Baligh Uddin
e04db0e6c7 Import translations. DO NOT MERGE
Change-Id: I3cd8e76785b3e1da0e3470f16d7a41d2245ce868
Auto-generated-cl: translation import
2013-08-28 18:07:09 -07:00
Baligh Uddin
62ee6fab65 Import translations. DO NOT MERGE
Change-Id: Ic6b1048f4afaa520fea602ec4367de5e192186bd
Auto-generated-cl: translation import
2013-08-28 18:05:47 -07:00
Jim Miller
2ec4ff435b Attempt to fix missing clock bug
This attempts to fix a bug where the clock wasn't being added
when widgets are disabled.

Fixes bug 10473246

Change-Id: I63f4c04778da938b6fa1bc74de3fa0463412da0f
2013-08-28 17:41:16 -07:00
Baligh Uddin
c8994d0a61 Import translations. DO NOT MERGE
Change-Id: I828f3e217a2a004ff6af8ca4fad760f44024205a
Auto-generated-cl: translation import
2013-08-28 17:30:22 -07:00
Sandeep Siddhartha
431e7f5c50 am 088e9046: am 720959cc: Merge "Start using the Hotword recognition APIs" into klp-dev
* commit '088e904680876306aa4bb2c8e80abb67dc76aeb3':
  Start using the Hotword recognition APIs
2013-08-28 17:00:43 -07:00
Sandeep Siddhartha
088e904680 am 720959cc: Merge "Start using the Hotword recognition APIs" into klp-dev
* commit '720959cc7f9fffb45a57b928c66a045bfc256a7c':
  Start using the Hotword recognition APIs
2013-08-28 16:57:34 -07:00
Sandeep Siddhartha
42c3e02c52 Start using the Hotword recognition APIs
- Gets rid of all assumptions about the hotword service
- Fixes bug where the hotword detection would keep running accidentally
  even when the screen got turned off

Change-Id: Ie86c1a4f4343bdf7e61f7c21114fd3b287bd5401
2013-08-28 23:40:32 +00:00
John Spurlock
369a88f80f am d896a407: am f016a912: Merge "Ensure IME windows always appear north of the nav bar." into klp-dev
* commit 'd896a407a37790ff5757cb02f6661ba504e65ff8':
  Ensure IME windows always appear north of the nav bar.
2013-08-28 14:06:57 -07:00
John Spurlock
d896a407a3 am f016a912: Merge "Ensure IME windows always appear north of the nav bar." into klp-dev
* commit 'f016a91247d591fd77e82383a84ae41606e30edd':
  Ensure IME windows always appear north of the nav bar.
2013-08-28 12:34:02 -07:00
John Spurlock
f016a91247 Merge "Ensure IME windows always appear north of the nav bar." into klp-dev 2013-08-28 19:32:06 +00:00
John Spurlock
d4e6575c4f Ensure IME windows always appear north of the nav bar.
Even if the bars are transparent / invisible.

Refactor the PSB bar mode override logic to take the IME hint into
account.  Bars are overriden to opaque when hint is showing.

Initialize bar state to showing, fix bug that would mark state
as hidden pre-show (on shell restart).

Bug:10505132
Bug:9499956
Change-Id: I21e830e90c7e9812b4192ca65c3c0cd7a6b72798
2013-08-28 14:20:22 -04:00
John Spurlock
4315b3edb8 am 03049719: am d20aeab0: Merge "SystemUI asset update post ux asset merge." into klp-dev
* commit '03049719de65995c00937de6ab35e14271b145ee':
  SystemUI asset update post ux asset merge.
2013-08-28 06:30:29 -07:00
John Spurlock
03049719de am d20aeab0: Merge "SystemUI asset update post ux asset merge." into klp-dev
* commit 'd20aeab028bae53b46a707119e57a50c073337c2':
  SystemUI asset update post ux asset merge.
2013-08-28 06:28:23 -07:00
John Spurlock
d20aeab028 Merge "SystemUI asset update post ux asset merge." into klp-dev 2013-08-28 13:26:01 +00:00
Daniel Sandler
2d2ab9eb4e am 7c4ae8b3: am f31da76a: Merge "Remove period from "No service."" into klp-dev
* commit '7c4ae8b3d9b0ca1e71b80a7151e0c2bda2ff0a72':
  Remove period from "No service."
2013-08-28 06:05:19 -07:00
Daniel Sandler
7c4ae8b3d9 am f31da76a: Merge "Remove period from "No service."" into klp-dev
* commit 'f31da76a3a36c75eafa7078a90d982c0e6916b41':
  Remove period from "No service."
2013-08-28 06:03:17 -07:00
John Spurlock
0d1376811c SystemUI asset update post ux asset merge.
Bug:10502089
Change-Id: I88b0b4a17018766bccb99426f8f270214c883427
2013-08-28 09:02:40 -04:00
Daniel Sandler
f31da76a3a Merge "Remove period from "No service."" into klp-dev 2013-08-28 13:01:21 +00:00
Daniel Sandler
52a1923592 Remove period from "No service."
Bug: 10460869
Change-Id: I57b030518c9cfec367da21e39af7a001a565daa4
2013-08-28 08:42:14 -04:00
Baligh Uddin
6e5543ccba Merge "Import translations. DO NOT MERGE" 2013-08-28 03:16:49 +00:00
Baligh Uddin
086e3ed72a Merge "Import translations. DO NOT MERGE" 2013-08-28 02:33:51 +00:00
John Spurlock
0ad6b3935a am fee8a471: am ae73139f: Merge "Remove unreferenced assets from SystemUI." into klp-dev
* commit 'fee8a471650ea53efa80e45e3e26e8c2abf870b8':
  Remove unreferenced assets from SystemUI.
2013-08-27 18:32:59 -07:00
John Spurlock
fee8a47165 am ae73139f: Merge "Remove unreferenced assets from SystemUI." into klp-dev
* commit 'ae73139f37a34cb4cc51255cc15cd19fbc11416a':
  Remove unreferenced assets from SystemUI.
2013-08-27 18:31:34 -07:00
John Spurlock
ae73139f37 Merge "Remove unreferenced assets from SystemUI." into klp-dev 2013-08-28 01:26:13 +00:00
Baligh Uddin
00bcd87091 Merge "Import translations. DO NOT MERGE" 2013-08-28 00:46:15 +00:00