5829 Commits

Author SHA1 Message Date
Michael Jurka
9b0b59e6d1 More background protection in Recents for status bar
Bug: 11255407
2013-11-04 16:11:11 +01:00
Michael Jurka
3e7495b260 Merge "Fix crashes for images that are not PNG or JPEG" into klp-dev 2013-11-02 17:05:19 +00:00
Victoria Lease
1d80e977da Compose singleLine & textAllCaps transforms
TextView only supports a single TransformationMethod per TextView, and
singleLine and textAllCaps are both implemented as
TransformationMethods. Composing both operations into a single
TransformationMethod gives us all-caps text (if requested by
kg_use_all_caps) on a single line.

Bug: 11421105
Change-Id: I069721b887ea90b8daf2af2cf82081319e499962
2013-11-01 16:44:08 -07:00
Jim Miller
6b0afaddae Fix flash caused by frame resize code
This fixes a problem where the frame would resize mid-animation because
the widget frame was being always being resized.

The issue was caused by having an extra fadeOutChallenge() in
onPageSwitching().   The fix is to remove this and handle this case
special for warping in onPageEndWarp()

Fixes bug 11190745

Change-Id: I6dbda4d09c77e3923887f8d41efb2215e1afb1b9
2013-11-01 15:03:04 -07:00
Adam Cohen
c548134362 Merge "Fix weird page snap bug when long pressing on music controls (issue 11420449)" into klp-dev 2013-11-01 18:48:42 +00:00
John Spurlock
b7824a9475 Merge "Manage keyguard nav elements using transitions." into klp-dev 2013-11-01 18:48:00 +00:00
John Spurlock
56d007b998 Manage keyguard nav elements using transitions.
Move the logic for managing dimming the navigation bar
elements on the lockscreen into BarTransitions.

Replace search light + camera assets with new
versions at full brightness, and apply 50% dimming
at runtime, including the IME dismiss button.

Remove unused StatusBarManager _NOP hints.

Improve choreography between camera button +
password security (w/ IME).  Fix a few found bugs
in PagedView.

Improve password security unlock transition, manually
fade in back along with the rest of the icons.

Bug:11221659
Change-Id: Ifd1f8c9f400d90542f0ca858b9a4deacabbd518a
2013-11-01 11:33:48 -04:00
Baligh Uddin
3f4c6bb5ab Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:35:42 +00:00
Baligh Uddin
50bdac61a1 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:35:02 +00:00
Baligh Uddin
2bc2574e60 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-11-01 14:34:40 +00:00
Michael Jurka
b2552648ce Fix crashes for images that are not PNG or JPEG
Bug: 11342816

Change-Id: Ib8bbd30c1cc2d4f984af889895fb78412a1ab004
2013-11-01 13:31:14 +01:00
Adam Cohen
3f1c3c7436 Fix weird page snap bug when long pressing on music controls (issue 11420449)
Change-Id: Ie789d74c03656b93f26b9afef16356862f1982a8
2013-10-31 18:41:59 -07:00
Jim Miller
43ef1c8c34 Merge "Remove deprecated API calls to KeyguardManager from statusbar" into klp-dev 2013-10-31 22:22:58 +00:00
Svetoslav
6ce161d176 Merge "Cancel current work in PrintDocumentAdatper if printing is cancelled." into klp-dev 2013-10-31 21:42:06 +00:00
Jim Miller
a999d463c1 Remove deprecated API calls to KeyguardManager from statusbar
Fixes bug 11448304

Change-Id: I3049a20d9320af0425d7a8f08d5aa208e470e292
2013-10-31 14:32:29 -07:00
Svetoslav
d270cb9264 Cancel current work in PrintDocumentAdatper if printing is cancelled.
Layout and write may take some time during which the user can
cancel printing. Currently we wait for the last operation,
being write or layout, to complete before closing the print
dialog. Now in such a scenario we request a cancellation of
the ongoing operation.

bug:11329523

Change-Id: Ia9d747163cc73509369a86c8b5afc83b7ee54859
2013-10-31 14:30:58 -07:00
Jason Monk
86f5a1499b Merge "Change PacProxySelector to return unresolved addr" into klp-dev 2013-10-31 18:43:53 +00:00
John Spurlock
a0bc738f46 Merge "Move coalescing to callback, optimize KeyguardStatusView." into klp-dev 2013-10-31 18:41:08 +00:00
Jason Monk
179d6e8e20 Change PacProxySelector to return unresolved addr
This was found by a bug in Firefox where it expects the addresses from a
ProxySelector to be unresolved.  Since ProxySelectorImpl returns unresolved
addresses the PAC version should as well to avoid breaking apps.

The ProxyServer also needed to be updated to reflect this change as it was
expecting a resolved InetSocketAddress.

Bug: 11443853
Change-Id: I3a4e9e248d22d7808603c147660df708e01cdf82
2013-10-31 14:17:48 -04:00
John Spurlock
b207ea9609 Merge "Update ic_qs_ime assets to standard brightness." into klp-dev 2013-10-31 17:36:06 +00:00
John Spurlock
385a63d56a Move coalescing to callback, optimize KeyguardStatusView.
Move the recent keyguard hidden coalescing down to the callback
level.  The lifetime of each callback can be short, make sure
they see visibility changes at least once for each change local
to their lifetime.

KeyguardStatusView.refresh() is called multiple times, and instances
are recreated often.  This results in expensive computations
filling the sysui/keyguard ui queue, adding to overall sluggishness.
Traceview points to DateFormat.getBestDateTimePattern as the
main culprit.

As of this change, refresh() will only call the expensive date pattern
computations when absolutely necessary, resulting in better
performance turning the screen off/on.

Bug:11221659
Bug:11447043
Change-Id: I3d4105af7db608803b82d8ef0ff141e42c154257
2013-10-31 10:49:50 -04:00
Jim Miller
8a26b43cd8 Fix glitch with switching users from QuickSettings
Since keyguard and systemui were merged into the same process to save
memory, they share the same Looper and graphics context.  As a result,
there's no way to allow concurrent animation while keyguard inflates.
The workaround is to add a slight delay to allow the animation to finish.

Workaround for bug 11046339

Change-Id: I355ca4fb325312bae87d587acfb12b475ecdeba4
2013-10-30 15:23:46 -07:00
Craig Mautner
6dc499c6da Merge "Save and restore media metadata." into klp-dev 2013-10-30 21:05:59 +00:00
Craig Mautner
8334192974 Save and restore media metadata.
Do not lose media information when configuration changes. Also, do not
wipe out that saved information when the RemoteController is
reconstructed.

Fixes bug 11293859.

Change-Id: Id9e539367bfda2cc6833dc61c922c57ae45dd7b7
2013-10-30 10:33:01 -07:00
Baligh Uddin
1fada0a012 Import translations. DO NOT MERGE
Change-Id: Ife16f0c4467fe5d8cd8e8f9908448c100e01e9ca
Auto-generated-cl: translation import
2013-10-30 09:34:05 -07:00
Baligh Uddin
88c5345964 Import translations. DO NOT MERGE
Change-Id: Ic406ab6515206bfd57a79d866f503dcd4f8cd288
Auto-generated-cl: translation import
2013-10-30 08:55:24 -07:00
Baligh Uddin
f1228e3550 Import translations. DO NOT MERGE
Change-Id: I6275ae5da91b961e11974efd80e6b4947bd44972
Auto-generated-cl: translation import
2013-10-30 08:53:01 -07:00
Michael Jurka
7b215cb922 Make wallpaper cropper more robust
- don't crash if image passed to wallpaper picker
is invalid
- close input streams correctly

Bug: 11413915
Bug: 11380658
Bug: 11362731
2013-10-30 14:54:21 +01:00
John Spurlock
c0156b82fd Update ic_qs_ime assets to standard brightness.
Bug:11412369
Change-Id: I582f4dfc28eb7453d67c5fe9c1b90a38ad756666
2013-10-30 09:35:22 -04:00
Jim Miller
65a788585b Add an intermediate dimens resource for 540dp device.
A 540dp device causes keyguard to select SlidingChallengeLayout
and a height of 400dp which isn't enough space for the security
area.  This fix adds an intermediate value to grow the security
area slightly.

Fixes bug 11344424

Change-Id: I35c979f619c593b604e4bf45afd3e591329229e4
2013-10-29 16:31:58 -07:00
John Spurlock
927d854ff4 Merge "Optimize sysui ui queue during keyguard unlock." into klp-dev 2013-10-29 20:55:04 +00:00
Jeff Sharkey
7fbba1622a Merge "Suppress OperationCanceledException logging." into klp-dev 2013-10-29 20:46:39 +00:00
John Spurlock
1b5bd6b68a Merge "Update QS settings icon, remove unused location icon." into klp-dev 2013-10-29 20:21:50 +00:00
Jeff Sharkey
33819318f6 Suppress OperationCanceledException logging.
These exceptions are normal when an app has cancelled an outstanding
thumbnail request.

Bug: 11385378
Change-Id: I8aed5721b447cda5baf447ac7afd627aa1062863
2013-10-29 11:56:37 -07:00
Jeff Sharkey
19949b9d3d Merge "Guard against missing document columns." into klp-dev 2013-10-29 18:53:41 +00:00
Jeff Sharkey
5d321d472d Guard against missing document columns.
When filtering and sorting, guard against missing columns to avoid
crashing entire app.

Bug: 11377065
Change-Id: I04f035c918d743bcc84592f05e3ef9ad0ebfadce
2013-10-29 11:48:30 -07:00
John Spurlock
e7c285725d Optimize sysui ui queue during keyguard unlock.
Target the two biggest offenders:
 - Coalesce keyguard setHidden(false) calls during unlock.
 - Make sysui->WM call async.

Found during investigation into b/11221659.

Bug: 11221659
Change-Id: Icab48376bc356a933e0f9940bc2f924e2e77ab22
2013-10-29 14:27:41 -04:00
Chris Wren
6af85cc2c6 show duration instead of remaining time.
Bug: 11351406
Change-Id: I1238408c439f9cd12382d9a0889321bbb75618d3
2013-10-29 13:19:54 -04:00
Chris Wren
cab6965b19 reduce garbage generation in KeyguardTransportControlView.
Bug: 11243508
Change-Id: I8315c27faf935d2465b3ce9e958e6edee00a4d4d
2013-10-29 13:04:00 -04:00
Michael Jurka
2b5297a400 Merge "Load wallpaper images on a bg thread" into klp-dev 2013-10-29 11:41:47 +00:00
Svetoslav
714ba34556 Merge "Complete implementation of the advanced print options." into klp-dev 2013-10-28 22:07:03 +00:00
Baligh Uddin
170735d460 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-28 19:34:13 +00:00
Baligh Uddin
9b16d1313f Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-28 19:33:31 +00:00
Svetoslav
b4fda13476 Complete implementation of the advanced print options.
1. Implemented the advanced printer options integration. Now a print service
    may declare an advanced print options activity which may be launched by
    the user if the current printer supports advanced print options. These options
    are visible only to the print service that added them and it is the only party
    that will interpret the options.

2. Fixed a couple of bugs in the saved print jobs parsing. One was that if there
    are more than one page range, a half of the print job properties was not
    properly parsed. The other was that the media size constructor was using
    incorrect argument order, thus creating a media size with wring width.

3. Fixed and edge case where old print jobs and their docs can get stuck in
    the spooler. If the app did not write the requested pages we were not showing
    an error message, rather just finish the activity without canceling the print
    job and this print job is stuck in the spooler. Now we show an error message
    and the user may retry, cancel. If the user cancels the print job is also
    cancelled, thus no leftover in the spooler.

4. Fixed the background color of the print dialog to meet UX spec.

bug:11241800

Change-Id: I352440bc86aec824a805883fc9579d96a06d11e6
2013-10-28 11:44:07 -07:00
Baligh Uddin
97ea6a0648 Import translations. DO NOT MERGE
Change-Id: I1ef363e676ff75e85aece9789cdb7c86b55281d3
Auto-generated-cl: translation import
2013-10-28 10:45:56 -07:00
Baligh Uddin
4aef4ca530 Import translations. DO NOT MERGE
Change-Id: I74c7510762c6c2591784ea2997695449f8aa2e53
Auto-generated-cl: translation import
2013-10-28 09:19:49 -07:00
John Spurlock
1aff28640b Update QS settings icon, remove unused location icon.
Bug:11412369
Change-Id: Icdd34a1cffe438e5e9d3ffe268578abb57200525
2013-10-28 10:37:43 -04:00
Michael Jurka
5271ea16c1 Load wallpaper images on a bg thread
Bug: 11134758
2013-10-28 14:42:48 +01:00
Jeff Sharkey
db5ef12500 Use inotify to update DocumentsUI.
While user is actively looking at a directory, subscribe to inotify
events and notify of content changes to trigger requeries.  Reference
count the observers, since multiple cursors are regularly open during
requeries.

Fix leaking cursors on activity rotation; crazy loader ID generation
is no longer needed.

Bug: 10999396
Change-Id: Iddeb08a056fee80c93df8499874705bcd213a1e2
2013-10-25 17:51:04 -07:00
Jeff Sharkey
96c620595b Extra to always show advanced devices.
Also always lower-case extension to extract MIME type correctly,
we may want to fix in MimeUtils at some point.

Bug: 11354402
Change-Id: I77d0c06a663cd0c4320c41553ff1980b6f9a7778
2013-10-25 16:30:54 -07:00