11487 Commits

Author SHA1 Message Date
Jim Miller
cd75f59f8c Merge "Fix deadlock caused by synchronous setOccluded() method in keyguard" into lmp-mr1-dev 2014-11-17 19:29:01 +00:00
Jorim Jaggi
abcb0590cd Don't play hint animation when touching to wake up
Bug: 18146441
Change-Id: Ie7e17a26c70d4fb0dd94787cce9e5baa0d775bde
2014-11-17 19:15:22 +01:00
Adrian Roos
8c8d8b1012 Merge "Only keep user switcher bitmaps if needed" into lmp-mr1-dev 2014-11-17 17:33:50 +00:00
Adrian Roos
cba0faadbe Only keep user switcher bitmaps if needed
Only keeps icons if the user switcher is accessible. On phones, this
is any time quick settings is expanded. On tablets, this would be whenever
the keyguard shows. Reloading them on each screen off transition seems too
wasteful however, so we keep them in-memory all the time on tablets.

Bug: 18350670
Change-Id: I416beb82156787e61ee1f59b6726fd702f135f68
2014-11-17 18:08:16 +01:00
Adrian Roos
a1b32c47f5 Merge "Reduce user icon RAM usage" into lmp-mr1-dev 2014-11-17 16:43:51 +00:00
Adrian Roos
2b154a9ec3 Reduce user icon RAM usage
Reduces the size of the icon in UserInfoController. Also
prevents UserSwitcherController from being instantiated if user
switching is not available.

Bug: 18350670
Change-Id: I38fbf28fad87e5c0d999ab6e3764f93269a95e05
2014-11-17 15:58:25 +00:00
John Spurlock
99cc4d2ed1 Merge "Sysui: Align projection permission dialog checkbox." into lmp-mr1-dev 2014-11-17 15:10:55 +00:00
John Spurlock
9ac580f0f3 Merge "QS: Update detail item keyline." into lmp-mr1-dev 2014-11-17 15:10:24 +00:00
Adrian Roos
61a848dd2e Merge "Fix Bitmap leaks in ImageWallpaper" into lmp-mr1-dev 2014-11-17 13:50:59 +00:00
Selim Cinek
a7651b8705 Merge "Increases the falsing threshold when for the keyguard affordances" into lmp-mr1-dev 2014-11-17 12:54:56 +00:00
John Spurlock
37e68bdb9c Sysui: Align projection permission dialog checkbox.
Bug: 18392920
Change-Id: Ic74ce8c79c99d91b5493a0b0607cda356f727407
2014-11-16 13:05:59 -05:00
Jim Miller
96afb6f03b Fix deadlock caused by synchronous setOccluded() method in keyguard
This fixes a deadlock where WindowManagerService can call into
KeyguardService.setOccluded() while holding a lock. As soon as keyguard
receives the call, it immediately needs to check permission and calls
back into the system service which is waiting for the lock to be
released. Boom!

The fix does a quick check of the calling UID and allows the call
if coming from the System UID, thus bypassing the need for a
binder call to checkPermission().

Fixes bug 18362246

Change-Id: Iab4be8a885f330fb2a62ee7e3579966e1447f8b0
2014-11-14 18:24:27 -08:00
Geoff Mendal
9004fe9a55 Import translations. DO NOT MERGE
Change-Id: I629815c2db7019af69cf0660de6f791b2d8105cd
Auto-generated-cl: translation import
2014-11-14 15:52:54 -08:00
Winson Chung
1c903b4e11 Merge "Fixing regression in screen pinning button visibility. (Bug 18390050)" into lmp-mr1-dev 2014-11-14 23:30:37 +00:00
John Spurlock
96e7f0ed1a Volume: Move "Muted by" string from sysui to frameworks.
To enable sharing with Settings.

Bug: 17461563
Change-Id: Icdb5f85eb4bcaa1ead7d77c1460e06ad3f0604d5
2014-11-14 14:38:03 -05:00
Winson Chung
86677c9a51 Fixing regression in screen pinning button visibility. (Bug 18390050) 2014-11-14 11:30:53 -08:00
Winson Chung
189457c931 Merge "Fixing crash in querying the task stack from a fresh load plan. (Bug 18371946)" into lmp-mr1-dev 2014-11-14 17:32:30 +00:00
Jason Monk
53e52e5211 Merge "SysUI: Add basic test coverage for signal levels" into lmp-mr1-dev 2014-11-14 14:50:05 +00:00
Winson Chung
90d5136ebd Fixing crash in querying the task stack from a fresh load plan. (Bug 18371946) 2014-11-13 14:30:26 -08:00
Jeff Sharkey
628d2606f7 Merge "Move ringtone redirection to MediaPlayer." into lmp-mr1-dev 2014-11-13 22:16:15 +00:00
Jeff Sharkey
3b566b8470 Move ringtone redirection to MediaPlayer.
Way back in API 1 we defined Settings.System.DEFAULT_NOTIFICATION_URI
which redirects through SettingsProvider before finally ariving at
the real underlying ContentProvider, usually MediaStore.

With new SELinux rules, we're no longer allowing the system_server
to hold open FDs to shared storage devices, which causes these
proxied openFile() calls to fail.

To work around this, teach MediaPlayer to resolve the final ringtone
Uri without going through the system.

Bug: 18226181
Change-Id: I40c68617c952c0bb3e939e5084f5b68a35e31ae3
2014-11-13 13:52:41 -08:00
John Spurlock
c8117e3151 QS: Update detail item keyline.
The keylines have changed, the item detail text should align
with the default notification template.

Change-Id: I098c9b7831f1e8eda3e5567edba58e6c19a6ca2f
2014-11-13 15:36:16 -05:00
John Spurlock
338bc5a418 Merge "Zen: Update condition text for current condition." into lmp-mr1-dev 2014-11-13 20:20:25 +00:00
Jorim Jaggi
048af1f727 Fix doze jank by removing a fullscreen layer of overdraw
Move all doze related stuff into DozeScrimController, and combine
both alpha values from the regular ScrimController and
DozeScrimController before applying it to a view. Move the black
background from NotificationPanelView to DozeScrimController, which
saves a fullscreen layer of overdraw during the transition.

Bug: 18238168
Change-Id: Ifb133bf4a0f8255f5c2f5e205509af339cac8c8f
2014-11-13 17:54:21 +01:00
Jorim Jaggi
68b83a784a Fix wrong states when waking up from doze via touch
Bug: 18337222
Change-Id: I1cdc213a798ddac18b09accbbc31c59aa2a2d6fc
2014-11-13 17:09:29 +01:00
John Spurlock
25c3421c5e Zen: Update condition text for current condition.
If the provider sends us an updated summary (or other text)
for the currently selected exit condition, update the UI and
persisted condition.

Update the downtime condition text (end time/line2 + summary)
when the next alarm changes (if downtime = none).

Also, clear the fired-alarm cache on time or time-zone resets.

Bug: 16373455
Change-Id: Ib38c52104a281fcc04a89612b643a219fd82b40b
2014-11-13 11:03:10 -05:00
Adrian Roos
2acaeda423 Fix Bitmap leaks in ImageWallpaper
Bug: 18350603
Change-Id: I42ec057cd287955dcf3c382c237806fd9d6666a7
2014-11-13 15:46:17 +00:00
Geoff Mendal
f030e66f9d Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-11-13 09:43:51 +00:00
Geoff Mendal
0df377c7a6 Import translations. DO NOT MERGE
Change-Id: Ib3433ab22465ba880832eb10196bbab2472a7884
Auto-generated-cl: translation import
2014-11-12 23:20:52 -08:00
Jason Monk
f13b4b39f2 SysUI: Add basic test coverage for signal levels
Add some tests that verify for varios wifi, and mobile signal
strengths and types that the correct icons are sent out in the
callbacks. Still in prep for MSIM refactoring.

Bug: 18222975
Change-Id: I477bf9a90e5c32fb1cba9c150ec6314f4b707108
2014-11-12 15:42:15 -05:00
Selim Cinek
1dc406505c Increases the falsing threshold when for the keyguard affordances
The minimum amount has been increased by 20dp and in addition the
Motion is cancelled whenever a POINTER_DOWN occurs, which should
help a lot with falsing.

Bug: 18298401
Change-Id: I04b1f30fd2555c08209224f4e84c610ecd7a33f1
2014-11-12 18:24:58 +01:00
Geoff Mendal
cfefab71b1 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-11-12 17:07:10 +00:00
Geoff Mendal
3830c60b9c Import translations. DO NOT MERGE
Change-Id: I629a49e626a3121f8df33574952162672c943341
Auto-generated-cl: translation import
2014-11-12 08:55:50 -08:00
Selim Cinek
89444a380d Merge "Solved notification overlay issue once and for all" into lmp-mr1-dev 2014-11-12 16:27:28 +00:00
Selim Cinek
046757300c Merge "Improved the dismiss all animation" into lmp-mr1-dev 2014-11-12 16:26:22 +00:00
Selim Cinek
9852ecd637 Merge "Fixed a bug where the clearable flag was set inconsistently" into lmp-mr1-dev 2014-11-12 16:13:07 +00:00
Selim Cinek
29685c2fde Merge "Added dissapear animation to pattern and pin input" into lmp-mr1-dev 2014-11-12 16:12:13 +00:00
Selim Cinek
f336f4c13a Solved notification overlay issue once and for all
But...
Once and for all!

Bug: 18314177
Change-Id: I484bea7d9f183d749fcdfba899d40292245f353d
2014-11-12 17:02:04 +01:00
Jorim Jaggi
f8d77da969 Improve lockscreen launch animations
- Add a timeout so if WindowManager "forgets" to tell that the
activity has drawn, we still unlock after 3 seconds, so the user
is not completely stuck.

- Use the screen height instead of the window height for the
translation animation.

- Don't run the animation if the attached window is not null. The
animation from the attached window will influence the transformation
as well, so there is no need to run an additional animation in this
case (apps with SurfaceView's had broken unlock transitions because
of this).

- If the starting window needs to go away while the unlock transition
is running, modify the existing animation such that it fades out in
the same transition.

Bug: 15991916
Change-Id: Ia5dfa31e1bc0d5745fe228e1daf08e268733b6f1
2014-11-12 15:02:33 +01:00
Jorim Jaggi
d6f440e0ff Correctly handle launch animations for affordances
Bug: 15991916
Change-Id: I019d28b960bc74f3c0f05081bea4a303b16df204
2014-11-12 15:02:19 +01:00
Jorim Jaggi
44f60cca7b Fix lockscreen launch animations once and for all
In SysUI, make sure not to dismiss Keyguard multiple times when just
waiting for a deferred dismissal, so WindowManager doesn't get
multiple calls to keyguardGoingAway.

Change heuristics how notifying Keyguard about activity drawn works.
Always notify Keyguard after executing an app transition, and notify
it also when not doing a transition after a startActivity call.

For that to work, update AppWindowToken.startingDisplayed also when
the window is displayed, but force hidden because of Keyguard.

Further, handle the case correctly when a window gets added during
the Keyguard exit animation by overriding the start time for the
animation of that new window. Also don't apply a transition animation
for a window when executing keyguard exit animation, so by removing
a starting window we don't break this animation.

Last but not least, tell Keyguard to start exiting immediately if
animations for exiting are disabled, like when going to phone/camera
on lockscreen. Before, we always had a delay of 1 second because we
waited for the timeout.

Bug: 1599196
Bug: 18272544
Change-Id: I596b2489f814b934abd256e16079d3d3f326e209
2014-11-12 15:02:05 +01:00
Selim Cinek
f9c0e8f02f Added dissapear animation to pattern and pin input
Bug: 18232017
Change-Id: I062d55b0870ccaad6093b672f5076c3f80c10f94
2014-11-12 14:48:48 +01:00
Winson Chung
4ff2526ef8 Merge "Adding null checks for unset stack. (Bug 18329447)" into lmp-mr1-dev 2014-11-12 00:35:37 +00:00
Winson Chung
4ee0eb3c46 Adding null checks for unset stack. (Bug 18329447) 2014-11-11 16:11:52 -08:00
Winson Chung
147de3a976 Merge "Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)" into lmp-mr1-dev 2014-11-12 00:10:55 +00:00
Winson Chung
a91c293be2 Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)
This change ensures that only the number of visible thumbnails and task icons are
loaded to minimize the delay required when initializing the stack without the 
cache.  In addition, this change reduces the number of times that the task stack
is recomposed when launching recents (in addition to the number of calls to 
getRecentTasks()).

There is also a fix to a regression where the exit trigger is not run when the
task stack view is empty.

Change-Id: I75834ff3c57c0e5dad6252b982f71c6e740071f2
2014-11-11 16:10:05 -08:00
Junda Liu
2eb5a5f727 Merge "Add HIDE_CARRIER_NETWORK_SETTINGS global setting." into lmp-mr1-dev 2014-11-12 00:05:20 +00:00
Selim Cinek
a37774f098 Fixed a bug where the clearable flag was set inconsistently
This could lead to undismissable notifications.

Bug: 17758698
Change-Id: I60ccbe24686c5b8bc46bfb52e590cef71ed7a190
2014-11-11 19:16:18 +01:00
Chris Wren
223c66b681 Add event logs when we launch fullscreen notications.
When the heads up does not trigger on enqueue, and also when a heads up
is escalated to a fullscreen on a screen event.

Bug: 16644299
Change-Id: Iec7f7ddb966b46171d0e7d1ee52daf5847a7c9da
2014-11-11 18:11:25 +00:00
Selim Cinek
7d5f374dda Improved the dismiss all animation
Added an AVD to the icon and changed the order
to be from bottom to the top.

Bug: 17903685
Bug: 17007783
Change-Id: Ia1509e2d4e02c87782285e05b7b7fb6a11854f95
2014-11-11 17:10:38 +01:00