114891 Commits

Author SHA1 Message Date
Christopher Tate
0fe85a9492 Make sure to maintain privilege when downgrading bundled apps
When reparsing because the data-volume update has been removed, be sure
to apply privilege when the bundled fallback APK should be allowed it.

Bug 10958159

Change-Id: Ibad52a5644606b27f4ebc5d5d7c1a671283b0752
2013-10-06 10:18:06 -07:00
Svetoslav Ganov
56ddf1ffa5 Polish print dialog accessibility.
bug:10983508

Change-Id: I7391e06b661caac18d04ae279639ff447701f151
2013-10-05 19:56:19 -07:00
Svetoslav Ganov
24c686b8b5 Update all printers activity's empty state and avoid selected printer flicker.
1. Updated the empty state of the all printers activity to show no printers message
   if the user is searching and there are no matches and a searching for printers
   message if the user is not filtering the printers list.

2. Adding the fake PDF printer after the historical printers are loaded to avoid the case
   where we select the PDF printer and immediately after that the most used printer is
   selected resulting in an undesirable UI flicker.

3. Fixed a bug where if the most used printer which is initially considered unavailable
   is reported by the print service as available but the UI is not properly updated
   leaving the user in no way to click on the print button.

bug: 10983508

Change-Id: I60fdb7761332850fd5b9ffc0cb572a6213024dba
2013-10-05 19:18:08 -07:00
Jim Miller
158fbd3ab8 Fix bug where pebble app triggers accessibility mode in navbar camera
Apparently the Pebble application uses accessibility.  This was
triggering the navbar to resort to accessibility mode for launching
the camera.  The fix is to also require touch exploration to be
enabled.

Fixes bug 11061505

Change-Id: I2245bd37eef9e68911862ce86147b1343816f1a4
2013-10-05 19:01:00 -07:00
Svetoslav Ganov
264c566a7f Update the empty state for the "all printers activity"
The empty state is now showing searching for printers hint if
the user is not searching, otherwise the empty state's hint is
a searching for printers message.

bug:10983508

Change-Id: I3df79c167546998c8055d9ff85efa8b460a15e48
2013-10-05 12:58:22 -07:00
Svetoslav Ganov
0ea7d1e869 Update the "add print service" dialog as per UX spec.
The dialog button is now the last item in the adapter if the
search for print service settings is not empty and resolves
to an intent.

bug:10983508

Change-Id: I348e1ede1097d6f3b78c72e871bf3097b99004b6
2013-10-05 11:56:01 -07:00
Dianne Hackborn
4d03fe6420 Fix issue #11086275: Thumbnail only created once for top activity
If the last screenshot activity is resumed, we need to always capture
a new screenshot, because it can change at any time.

On the other hand, never create a thumbnail for tasks that have set
themselves to not show on the recent tasks lists, since we have no
use for them.

Change-Id: I38523afc966c125da93339e0100da950119cdf99
2013-10-05 10:26:23 -07:00
Craig Mautner
93529a475e Resume user where they left off.
Remember which stack was in front when the user changes. Restore that
stack when the user changes back. Remove user state when user is
deleted.

Fixes bug 11068986.

Change-Id: I18dfbc35a0c2e21e7a4024227cbfc5ba1208b3a3
2013-10-04 20:55:39 -07:00
Craig Mautner
9c85c201a2 Evaluate task on top of home when task is brought to front.
Localize the point where it is determined whether a task should sit on
top of home or return to the task below it.

Fixes bug 11080913.

Change-Id: I79d1ea9722c867d6b550ddfcd1db35517a79cd90
2013-10-04 20:11:26 -07:00
Christopher Tate
d159674890 Notify that ASEC containers are being unmounted during upgrades
When an apk is installed on ordinary unmountable media, a broadcast
is sent when the OS wants to unmount it so that interested parties
can cleanly close any files they have open to read that apk's
resources or similar.  We now send that broadcast when we are
about to unmount the ASEC fs container that holds a forward-locked
apk as well, so that e.g. Home knows to release the resources that
it was using for widget hosting or similar.

Bug 7703848

Change-Id: I71aefdb4086c7b73a128f89c15d192a2b92d09a8
2013-10-04 18:05:39 -07:00
Svetoslav
06aecf1bcb am 9dd0b996: am fd65373d: Merge "Print UI tweaks." into klp-dev
* commit '9dd0b996f93413ac44b5d8195f11b29af34663e2':
  Print UI tweaks.
2013-10-04 18:05:14 -07:00
Svetoslav
9dd0b996f9 am fd65373d: Merge "Print UI tweaks." into klp-dev
* commit 'fd65373dd7ba9e613f95dbf87988811c43a11518':
  Print UI tweaks.
2013-10-04 18:02:25 -07:00
Victoria Lease
e820087359 am 0d5a719d: am b088c9e0: Merge "reset mShapingPaint\'s SkTypeface before we use it" into klp-dev
* commit '0d5a719dc7f2ca8726f670af3c5b9fdee614ab07':
  reset mShapingPaint's SkTypeface before we use it
2013-10-04 18:01:45 -07:00
Svetoslav
fd65373dd7 Merge "Print UI tweaks." into klp-dev 2013-10-05 01:00:33 +00:00
Victoria Lease
0d5a719dc7 am b088c9e0: Merge "reset mShapingPaint\'s SkTypeface before we use it" into klp-dev
* commit 'b088c9e0dd2d66a181b9cfbf7f9ba8e27bde0922':
  reset mShapingPaint's SkTypeface before we use it
2013-10-04 17:58:48 -07:00
Victoria Lease
b088c9e0dd Merge "reset mShapingPaint's SkTypeface before we use it" into klp-dev 2013-10-05 00:55:52 +00:00
Jean-Michel Trivi
f108cdd9ee Also rely on enabled notification listeners for RemoteController registration
Registration of a RemoteController may succeed only if:
 - the caller has the MEDIA_CONTENT_CONTROL permission,
 - or if the RemoteController.OnClientUpdateListener it
   registers if one of the enabled notification listeners.

For using the "enabled notification listener" functionality,
 the CL involved:
 - making OnClientUpdateListener an interface so a 3rd-party
   application may have its implementation extend
   NotificationListenerService, which is required for a
   listener to be enabled by the user.
 - add the concept of "enabled" status in an
   IRemoteControlDisplay, so a RemoteController (which
   encapsulates the IRemoteControlDisplay implementation)
   may be registered, but later temporarily disabled by
   the user, as a result of a user action in the security
   settings, or a user switch.
 - making MediaFocusControl, the component tied to
   AudioService, monitor changes in enabled notification
   listeners, and act upon enable/disable changes.

Bug 8209392

Change-Id: Ia8dfa2156c65668b2b0d4ae92048005912652d84
2013-10-04 17:50:44 -07:00
Svetoslav
5ab717f21a Print UI tweaks.
1. The refresh button in a print notification was using
   wrong asset.

2. If the page count is unknown, just not show the page
   count instead unknown.

bug:10983508

Change-Id: I15f1fcbff60fe1f30d37868864da41550bb14487
2013-10-04 17:50:31 -07:00
Victoria Lease
8450a6ef8b reset mShapingPaint's SkTypeface before we use it
Harfbuzz works in TTF glyph-space, but most of Skia works in
fallback glyph-space. shapeFontRun() helpfully calculates the
baseGlyphCount needed to convert between the two, but leaves
mShapingPaint's SkTypeface set to the specific TTF being shaped
rather than the original SkTypeface that was requested. Needless
to say, this causes all manner of horrific malady when glyph
indices are calculated in one glyph-index-space and then applied
to another.

To fix this issue, I reset mShapingPaint's SkTypeface when done
with the Harfbuzz shaping operation so that the baseGlyphCount only
gets applied once.

Change-Id: Ia886f89d667634e15e5fc8d7af443c9d1ba89622
2013-10-04 17:33:35 -07:00
Svetoslav
133c1faf8c am 67d7af51: am 19565ad1: Merge "Small print API tweaks" into klp-dev
* commit '67d7af514c2a393cbe886ebf5527a0dc45817cfb':
  Small print API tweaks
2013-10-04 16:51:58 -07:00
Jim Miller
bb93ee731c am d479396d: am ed887bff: Merge "Replace searchlight asset with new new asset" into klp-dev
* commit 'd479396d2d3cc6470c5774863827ccc9cb3133e1':
  Replace searchlight asset with new new asset
2013-10-04 16:51:52 -07:00
Svetoslav
67d7af514c am 19565ad1: Merge "Small print API tweaks" into klp-dev
* commit '19565ad1a19bf8e400d04a3a64cf6455ddca81ca':
  Small print API tweaks
2013-10-04 16:49:58 -07:00
Jim Miller
d479396d2d am ed887bff: Merge "Replace searchlight asset with new new asset" into klp-dev
* commit 'ed887bff6e3ae0aee562022135e3d927a327bd2a':
  Replace searchlight asset with new new asset
2013-10-04 16:49:55 -07:00
Svetoslav
19565ad1a1 Merge "Small print API tweaks" into klp-dev 2013-10-04 23:48:37 +00:00
Jim Miller
ed887bff6e Merge "Replace searchlight asset with new new asset" into klp-dev 2013-10-04 23:48:24 +00:00
Dianne Hackborn
9844d299af Fix issue #11050678: Large memory leak in ActivityStack
Clear thumbnails from tasks that are removed from the recent tasks list.

Change-Id: I581d5baac9b5a3e046a654eb8448ff877dd2f120
2013-10-04 16:44:22 -07:00
Jim Miller
93cc6106be Replace searchlight asset with new new asset
Fixes bug 11030712

Change-Id: I8361c74e344ec3f9c7176635face84af2d754973
2013-10-04 16:41:34 -07:00
Chet Haase
5c44b36b2a am 3980ae47: am 845d9192: Merge "Enable transitions in lockscreen media controller" into klp-dev
* commit '3980ae478b290bc472f20289b67b6719439b12fa':
  Enable transitions in lockscreen media controller
2013-10-04 16:34:14 -07:00
Chet Haase
3980ae478b am 845d9192: Merge "Enable transitions in lockscreen media controller" into klp-dev
* commit '845d9192d7bc822f3c3dc30643d66f7d66249566':
  Enable transitions in lockscreen media controller
2013-10-04 16:30:22 -07:00
Eino-Ville Talvala
3afc7f15c6 am 9edb7741: am 4c76fdd8: Merge "Fix build." into klp-dev
* commit '9edb77412e2f82540627c993f9ddf024726cc386':
  Fix build.
2013-10-04 16:30:22 -07:00
Eino-Ville Talvala
9edb77412e am 4c76fdd8: Merge "Fix build." into klp-dev
* commit '4c76fdd8f213f4aa37a58b3d6f625c6d4269f619':
  Fix build.
2013-10-04 16:26:43 -07:00
Scott Main
856441e72f am 920de6c6: am 332408f8: update version number for doc stamp
* commit '920de6c63270e4879c6249bf8c87e1ca2d248931':
  update version number for doc stamp
2013-10-04 16:26:41 -07:00
Chet Haase
845d9192d7 Merge "Enable transitions in lockscreen media controller" into klp-dev 2013-10-04 23:26:37 +00:00
Scott Main
920de6c632 am 332408f8: update version number for doc stamp
* commit '332408f86290bc02090d69f3a4b08ed959d93b62':
  update version number for doc stamp
2013-10-04 16:23:16 -07:00
Eino-Ville Talvala
4c76fdd8f2 Merge "Fix build." into klp-dev 2013-10-04 23:21:55 +00:00
Svetoslav
b450d0d4d7 Small print API tweaks
1. Removed an unused public constant

2. Hide PrintFileDocumentAdapter which makes doing the wring
   thing easy.

3. We allow a print service to set a tag of a print job which is
   an arbitrary string it only knows how to interpret. Typically,
   this is the id of a remote print job. This tag was visible to
   applications which is wrong - this is data that should be
   private to the print service. Now the print service is the
   only one to see that.

bug:11084635

Change-Id: I763ea9ff0fdf647805bc36e1737d72263090714d
2013-10-04 16:21:12 -07:00
Scott Main
332408f862 update version number for doc stamp
Change-Id: I881510209a56204a464df082840d2dde56312303
2013-10-04 16:17:50 -07:00
Eino-Ville Talvala
227c09f998 Fix build.
Change-Id: I1c3537d936fd467014b966179f5ed2a8c6a696da
2013-10-04 16:14:38 -07:00
Baligh Uddin
93f1b969a6 am bafa437f: (-s ours) am 29268255: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit 'bafa437ff51ed23204992c5cb29bb69fbc78a22c':
  Import translations. DO NOT MERGE
2013-10-04 16:03:08 -07:00
Baligh Uddin
badfa7148a am 673b0fe2: (-s ours) am 15800b79: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '673b0fe2820c9d00874386acc2aed3f9e847641d':
  Import translations. DO NOT MERGE
2013-10-04 16:03:04 -07:00
Baligh Uddin
bafa437ff5 am 29268255: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '29268255078f05f2441311de94f903e18747e323':
  Import translations. DO NOT MERGE
2013-10-04 16:00:41 -07:00
Baligh Uddin
da9e802f9c am 70d87e14: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-ub-dev
* commit '70d87e1408e9a94451b10da8ba0ddc11143b1050':
  Import translations. DO NOT MERGE
2013-10-04 15:59:19 -07:00
Baligh Uddin
673b0fe282 am 15800b79: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-dev
* commit '15800b793b9cc0aa412b87a4dedd5770f583d1cf':
  Import translations. DO NOT MERGE
2013-10-04 15:57:12 -07:00
Baligh Uddin
70d87e1408 Merge "Import translations. DO NOT MERGE" into klp-ub-dev 2013-10-04 22:55:43 +00:00
Baligh Uddin
2a2d9d2fc4 am 8084b108: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-ub-dev
* commit '8084b10887bc3a1d0de10e745c08dd7abf978c3d':
  Import translations. DO NOT MERGE
2013-10-04 15:55:41 -07:00
Baligh Uddin
2926825507 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-04 22:55:38 +00:00
Baligh Uddin
8084b10887 Merge "Import translations. DO NOT MERGE" into klp-ub-dev 2013-10-04 22:53:10 +00:00
Baligh Uddin
15800b793b Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-04 22:53:07 +00:00
Eino-Ville Talvala
eef7e31c2d am 079320a2: am 3f48f6aa: Merge "Camera2: Verbosity is verboten." into klp-dev
* commit '079320a2adb2654c6aa008ae7f369c538434abfa':
  Camera2: Verbosity is verboten.
2013-10-04 15:33:06 -07:00
Eino-Ville Talvala
079320a2ad am 3f48f6aa: Merge "Camera2: Verbosity is verboten." into klp-dev
* commit '3f48f6aa6c3723a4143a4505520136d5b682a696':
  Camera2: Verbosity is verboten.
2013-10-04 15:30:58 -07:00