5852 Commits

Author SHA1 Message Date
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
Svetoslav Ganov
2a40da558b Merge "Update the documentaton of the android.print package." into klp-dev 2013-10-25 20:48:45 +00:00
John Spurlock
4a7f3adaf0 Merge "Optimize system bar background drawable." into klp-dev 2013-10-25 20:33:35 +00:00
John Spurlock
f3b5b37b14 Merge "Reset our status bar window fade color on screen off." into klp-dev 2013-10-25 20:25:08 +00:00
Jim Miller
5357f8fd24 Merge "Remove '?' icon in layout for "Forgot pattern" button" into klp-dev 2013-10-25 20:08:40 +00:00
Svetoslav Ganov
4d4c66dd38 Update the documentaton of the android.print package.
bug:10551786
bug:10551697
bug:10705082
bug:10741641
bug:11318976
bug:10550979
bug:10551761

Change-Id: I46ceb66a69b6d32d6b417356178f67f2e25e891a
2013-10-25 11:33:34 -07:00
John Spurlock
c19418e3f5 Reset our status bar window fade color on screen off.
Previously, turning the screen off with the panel expanded would
run one time through panelExpansionChanged, leaving the background
in an intermediate state.

This has probably been around for a while, only uncovered now
that we can see it (if the status bar is translucent).

Bug:11357145
Change-Id: I55b768696c8791f82265a61d2c0f665503ad8bb0
2013-10-25 14:25:09 -04:00
Wink Saville
604cfc2de9 Merge "Enhance pin/puk support" into klp-dev 2013-10-25 16:40:55 +00:00
Jeff Sharkey
be41624863 Merge "Remove persisted stacks when app removed/cleared." into klp-dev 2013-10-24 22:32:58 +00:00
Jeff Sharkey
5ecfb557b1 Merge "Long-press on GET_CONTENT app shows its details." into klp-dev 2013-10-24 18:23:17 +00:00
Jeff Sharkey
c832ef0d43 Merge "Show spinner while waiting for mutations." into klp-dev 2013-10-24 18:23:11 +00:00
Jeff Sharkey
758f97e46d Remove persisted stacks when app removed/cleared.
When an app's data is cleared, or it's uninstalled, remove any
persisted stacks.

Bug: 11355566
Change-Id: I4e5cf0ec710591ad62f1ad52c2e358616631af41
2013-10-24 11:22:20 -07:00
Daniel Sandler
9279d45b8d DessertCase memory improvements
- reuse intermediate bitmaps when loading resources
  - only use hardware layers on views that are animating

Bug: 11269977
Change-Id: I39ad7aff16468632da47448404416404f3b54cc4
2013-10-24 17:27:33 +00:00
Baligh Uddin
da13330d9b Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-24 02:27:01 +00:00
Baligh Uddin
154fd0b2a2 Import translations. DO NOT MERGE
Change-Id: Ia0ce87e181ca1c425b1a4ea2427b267c9e5d1cf0
Auto-generated-cl: translation import
2013-10-23 17:59:26 -07:00
Baligh Uddin
ef9d04a2b6 Import translations. DO NOT MERGE
Change-Id: If44c0d3258a9b125cfc1afe930af8f6524200ffd
Auto-generated-cl: translation import
2013-10-23 17:08:47 -07:00
Jeff Sharkey
c24bbd4ce5 Long-press on GET_CONTENT app shows its details.
Matches ResolverActivity behavior.

Bug: 11319259
Change-Id: Id7f2a73b225e4cfd9bdef3b1c7cecb77d9bd2b90
2013-10-23 16:05:56 -07:00
Jeff Sharkey
04d45a0bdd Show spinner while waiting for mutations.
When mutation operations are waiting for a storage backend, show a
spinner in place of the save button.

Bug: 11333249
Change-Id: I2b620b4532ad977a2b60d4bdc5caa55f89021456
2013-10-23 15:48:05 -07:00
Wink Saville
b896b9f742 Enhance pin/puk support
Add supplyPinReportResult & supplyPukReportResult that
returns the result code and attempts remaining.

Display "Attempts remaining" in Keyguard

Bug: 9928717
Change-Id: Ibad0635dd1375fabce11ba2b7b9f95f8868489e6
2013-10-23 15:44:26 -07:00
Chet Haase
c9d8e38317 Merge "Fix leak with transitions when views get removed" into klp-dev 2013-10-23 19:17:10 +00:00
Jeff Sharkey
871cb5d53f Merge "Update roots when data cleared, refresh UI." into klp-dev 2013-10-23 18:09:54 +00:00
Jeff Sharkey
a9a6007c0d Merge "Treat document thumbnails as preemptable." into klp-dev 2013-10-23 18:09:40 +00:00
Victoria Lease
5eb3e07c5d Merge "add accessibility string for location quicksetting" into klp-dev 2013-10-23 17:56:54 +00:00
Jeff Sharkey
46de7b5024 Update roots when data cleared, refresh UI.
Data cleared usually means accounts went away, so kick off roots
refresh.  Also update any visible UI after a refresh finishes.

Bug: 10899793
Change-Id: Id68c80b5e635e358cfd75f4961ce13cd1c7c5f82
2013-10-23 09:59:06 -07:00
Jeff Sharkey
b3d42635aa Treat document thumbnails as preemptable.
When a more important request comes along, preempt all outstanding
thumbnail requests.

Bug: 11317901
Change-Id: I164fc8d804bb9c471e6da3f8127228043b3ca482
2013-10-23 09:23:13 -07:00
Jim Miller
ca71f48e03 Remove '?' icon in layout for "Forgot pattern" button
Fixes bug 11234297

Change-Id: I5fbb54997b7a2bcf29b3a98b10a2ba4e908283ef
2013-10-22 16:29:17 -07:00
Chet Haase
df32aa8715 Fix leak with transitions when views get removed
Transitions, when started, add an OnPreDrawListener to the current
ViewTreeObserver (which is global to the view hierarchy). This listener
is removed when the listener is called.

It is possible to add this listener and then remove the view from
the hierarchy before the listener is called. This could result in
either the listener not getting called at all (since there was no
drawing event) or (in the case of this bug) the listener getting called
when the sceneRoot had no AttachInfo (which is the case when that
root has been removed from the hierarchy). This results in the listener
trying to remove itself from a *different* ViewTreeObserver than the one
it added itself to, leaving the actual listener still sitting on a list
of listeners in that original VTO. This can result in a growing list of
listeners and a growing amount of work that gets done on every frame.
It can also lead to a serious memory leak, since the objects referred to
by the transition may be non-trivial (as in the case of this bug).

The fix is to add another mechanism for the listener to get removed.
Specifically, we now listen for detach events on the sceneRoot. If that
view gets detached before the listener is called, then we have a chance to
remove it from the correct VTO before the AttachInfo becomes null.

Issue #11307391 keyguard is slow after updating to krt16c and playing music

Change-Id: I108413ea2f18f5351df0a11d4ae56fec0b4aa154
2013-10-22 16:27:56 -07:00
Baligh Uddin
f56d8694f2 Merge "Import translations. DO NOT MERGE" into klp-dev 2013-10-22 19:48:05 +00:00