11601 Commits

Author SHA1 Message Date
Jeff Sharkey
22c3f90639 am 628d2606: Merge "Move ringtone redirection to MediaPlayer." into lmp-mr1-dev
* commit '628d2606f757da7b6734c7cd438535069f77b065':
  Move ringtone redirection to MediaPlayer.
2014-11-13 23:50:16 +00: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
1a68ba6b85 am 338bc5a4: Merge "Zen: Update condition text for current condition." into lmp-mr1-dev
* commit '338bc5a41854d40dfb35ec2865024d3b2737a864':
  Zen: Update condition text for current condition.
2014-11-13 20:26:11 +00: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
c1bb86200d am a77a37c4: Merge "Fix doze jank by removing a fullscreen layer of overdraw" into lmp-mr1-dev
* commit 'a77a37c48a00744d6a753172516a2c7f5f2a9004':
  Fix doze jank by removing a fullscreen layer of overdraw
2014-11-13 17:05:12 +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
76c234c8df am d0d23c80: Merge "Fix wrong states when waking up from doze via touch" into lmp-mr1-dev
* commit 'd0d23c80dae34a126c8024748554a5d07bf3291c':
  Fix wrong states when waking up from doze via touch
2014-11-13 16:50:53 +00: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
Geoff Mendal
2ebf761ebe Merge "Import translations. DO NOT MERGE" into lmp-mr1-ub-dev 2014-11-13 09:51:10 +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
9976cdbfa3 Import translations. DO NOT MERGE
Change-Id: I2427bb3c070b9d0d69a2488970a3e74260800190
Auto-generated-cl: translation import
2014-11-12 23:24:32 -08: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
Geoff Mendal
b3f447e9ca Merge "Import translations. DO NOT MERGE" into lmp-mr1-ub-dev 2014-11-12 17:07:48 +00:00
Geoff Mendal
cfefab71b1 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-11-12 17:07:10 +00:00
Geoff Mendal
c2651d82e8 Import translations. DO NOT MERGE
Change-Id: Iaba356a3700ef7b49150ea1331273c1b6e9ca5b9
Auto-generated-cl: translation import
2014-11-12 08:59:14 -08: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
1419db40f7 am 89444a38: Merge "Solved notification overlay issue once and for all" into lmp-mr1-dev
* commit '89444a380d85f8961a4a900734590571375b4f3f':
  Solved notification overlay issue once and for all
2014-11-12 16:29:24 +00:00
Selim Cinek
087c96f8c9 am 04675730: Merge "Improved the dismiss all animation" into lmp-mr1-dev
* commit '046757300c0a9b2043ff71e49bc3be50d5279443':
  Improved the dismiss all animation
2014-11-12 16:29:19 +00: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
a89c8fe7ee am 9852ecd6: Merge "Fixed a bug where the clearable flag was set inconsistently" into lmp-mr1-dev
* commit '9852ecd6378be67c36010b415cffbc852e6a265f':
  Fixed a bug where the clearable flag was set inconsistently
2014-11-12 16:16:14 +00:00
Selim Cinek
5b560f57a9 am 29685c2f: Merge "Added dissapear animation to pattern and pin input" into lmp-mr1-dev
* commit '29685c2fde7b3c3cc57994e61915321902b16246':
  Added dissapear animation to pattern and pin input
2014-11-12 16:16:09 +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
bd70ed1de2 am a816a075: Merge "Improve lockscreen launch animations" into lmp-mr1-dev
* commit 'a816a075066b7f90635d81918a7af9bc7a76e47f':
  Improve lockscreen launch animations
2014-11-12 15:51:56 +00:00
Jorim Jaggi
4c3133a2d1 am cb326240: Merge "Correctly handle launch animations for affordances" into lmp-mr1-dev
* commit 'cb3262403420417f355aacde93e0e43493e510f6':
  Correctly handle launch animations for affordances
2014-11-12 15:51:51 +00:00
Jorim Jaggi
d04f864cae am b9eedce2: Merge "Fix lockscreen launch animations once and for all" into lmp-mr1-dev
* commit 'b9eedce21a460ad26175391e6c9c9e3ca369bafb':
  Fix lockscreen launch animations once and for all
2014-11-12 15:51:46 +00: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
1314e9a259 Merge "Adding null checks for unset stack. (Bug 18329447)" into lmp-mr1-dev
automerge: 4ff2526

* commit '4ff2526ef8d168d3c591f1a19de4dca76745c157':
  Adding null checks for unset stack. (Bug 18329447)
2014-11-12 01:20:15 +00:00
Winson Chung
6a601c9ee8 Merge "Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)" into lmp-mr1-dev
automerge: 147de3a

* commit '147de3a9766e205af068d1462beaea7a4a9fb9bc':
  Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)
2014-11-12 01:16:47 +00:00
Junda Liu
5716ebe50d Merge "Add HIDE_CARRIER_NETWORK_SETTINGS global setting." into lmp-mr1-dev
automerge: 2eb5a5f

* commit '2eb5a5f727d4692b70b68cb4b1b7e31bf74f13a4':
  Add HIDE_CARRIER_NETWORK_SETTINGS global setting.
2014-11-12 01:14:00 +00: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
Chris Wren
56c1037767 am aeca1baf: Merge "Add event logs when we launch fullscreen notications." into lmp-mr1-dev
* commit 'aeca1baf656ac5197db345db6b890a5c5e4719b0':
  Add event logs when we launch fullscreen notications.
2014-11-11 20:26:19 +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
Jorim Jaggi
8334c66666 am 12174a7d: Merge "Cancel lockscreen/shade gestures when orientation changes" into lmp-mr1-dev
* commit '12174a7d2940299ee0f951905bcbcc55ea724eae':
  Cancel lockscreen/shade gestures when orientation changes
2014-11-10 22:54:11 +00:00
Jorim Jaggi
aea80f40d8 Cancel lockscreen/shade gestures when orientation changes
Bug: 18293929
Change-Id: Ifbf91c42fa9e68aa688ca4c390fcc24a358212a9
2014-11-10 22:42:30 +01:00
Jorim Jaggi
105ff07310 Merge "Fix Keyguard affordances for RTL" into lmp-mr1-dev
automerge: f4a15d4

* commit 'f4a15d438acad20cc46fa2fbec0aa1e5cf85b4ff':
  Fix Keyguard affordances for RTL
2014-11-10 19:05:37 +00:00
Jorim Jaggi
f4a15d438a Merge "Fix Keyguard affordances for RTL" into lmp-mr1-dev 2014-11-10 18:31:55 +00:00