7309 Commits

Author SHA1 Message Date
Winson Chung
a1e4bf9b6c Merge "Fixing crash when ActivityManager does not have a proper thumbnail" 2014-03-17 01:54:26 +00:00
Winson Chung
0662038bcb Merge "Simplifying memory management, use Task Keys as resource cache keys." 2014-03-17 01:54:04 +00:00
Winson Chung
7124390f9d Fixing crash when ActivityManager does not have a proper thumbnail
- Fixing issue with hw layers ref count not properly being incremented and decremented
- Preventing message handler from keeping a strong ref to the RecentsService
2014-03-14 17:52:47 -07:00
Winson Chung
04dfe0d26b Simplifying memory management, use Task Keys as resource cache keys.
- Attempts to load non-topmost task thumbnails from cache
- Ensuring that we release all references to the activity from the bg loader
- Removes background loading debug flag
- Moving callbacks into their respective classes
- cleaning up some callbacks when data is loaded in the bg

Change-Id: Ibb968349d08084922d5b28e432b76a165bf20d6b
2014-03-14 16:53:45 -07:00
Winson Chung
050b39bd5f Merge "Fixing memory leaks related to Tasks holding onto their callbacks." 2014-03-14 20:34:27 +00:00
Selim Cinek
20b37400eb Merge "Fixed a crash when an image with an odd width/height was selected" 2014-03-14 17:50:12 +00:00
Selim Cinek
912e0df89c Fixed a crash when an image with an odd width/height was selected
Due to an internal rounding in the renderer, the calculations
for the cropping area could be slightly offset, getting out
of the image boundaries. I sanitized the rect by ensuring they
are inside the image.

Bug: 12174629
Change-Id: Icc37790732ddd479631b898b23c05501d2dcd5be
2014-03-14 18:48:03 +01:00
Winson Chung
4d7b092a86 Fixing memory leaks related to Tasks holding onto their callbacks.
- Switching to SwipeHelper
2014-03-13 17:14:17 -07:00
Baligh Uddin
df385f2b4c Merge "Import translations. DO NOT MERGE" 2014-03-13 16:22:45 +00:00
Kenny Guy
4979ff9f28 Merge "Show notifications from related users." 2014-03-13 11:57:55 +00:00
John Spurlock
3424c41e4e Merge "Move zen-mode systemui affordance to quick settings." 2014-03-12 23:06:00 +00:00
John Spurlock
d389ff7d89 Move zen-mode systemui affordance to quick settings.
Remove the gesture-based invocation from the notifcation
panel, create a new QS tile to display current state.

Clicking the tile reveals an interstitial dialog for
confirmation of mode changes.

Change-Id: I6760ce3f097d5dcfd0af5177287dbf4ff632b47e
2014-03-12 17:26:09 -04:00
Kenny Guy
3a7c4a5669 Show notifications from related users.
When filtering notifications for user include those for users that
are related to the current user.
Pipe through user id so we know which user the notification is for.

Change-Id: I4e2657c23bd7b611d450be5a1f9457824bc062cb
2014-03-12 19:51:03 +00:00
Dan Sandler
a07605fcd7 Merge "Insulate SystemUI from IDs in inflated notification views." 2014-03-12 17:18:43 +00:00
Baligh Uddin
8c68173234 Import translations. DO NOT MERGE
Change-Id: I3d7d91a2d618011ef9c0b7f746e76f9f4de16afc
Auto-generated-cl: translation import
2014-03-12 09:48:44 -07:00
Dan Sandler
6d94aa7a4e Insulate SystemUI from IDs in inflated notification views.
We use the hidden View.setIsRootNamespace() in the same way
that AppWidgetHostView does: to block recursive ID search
traversals from traveling into notification views, which
might have children with IDs that collide with SystemUI's
own views. (Views inside notifications can still be located
by ID, but you need to start your search inside the
inflated notification row.)

Bug: 13421971
Change-Id: If8b81b9d0ed4b0eb6fa1e028275caa0b932f5759
2014-03-12 00:53:21 -04:00
Winson Chung
303e1ff1fe Initial changes for recents.
Change-Id: Ide2c202b4a5b25410f0f32bd0a81ccf817ede38f
2014-03-11 12:03:08 -07:00
Baligh Uddin
d75a745f85 Merge "Import translations. DO NOT MERGE" 2014-03-11 17:33:18 +00:00
Baligh Uddin
7026d47ac7 Import translations. DO NOT MERGE
Change-Id: I80c4b6560d759272c7f605df5ff8fbef8b36486d
Auto-generated-cl: translation import
2014-03-10 13:14:43 -07:00
Adrian Roos
75fc592847 Merge "Fix bug that allowed avoiding lockout if too many wrong patterns are entered." 2014-03-10 20:07:00 +00:00
Adrian Roos
7c11f8b465 Fix bug that allowed avoiding lockout if too many wrong patterns are entered.
Bug: 13302967
Change-Id: I78404acd700c338e58270471ba307dad9a6884d6
2014-03-10 17:00:11 +01:00
John Spurlock
668fd22690 Merge "Tweaks to zen mode shade UI." 2014-03-07 18:54:06 +00:00
John Spurlock
679fca5504 Tweaks to zen mode shade UI.
Haptic feedback when shade is unlatched, and don't commit to expansion
until gesture up.

Bug:13359710
Change-Id: I128afc15c01478f643400da8b96679fcf1c89bf2
2014-03-07 13:38:09 -05:00
Jorim Jaggi
2d171a5bce Merge "Change appearance of notifications to light theme." 2014-03-07 14:07:07 +00:00
Jorim Jaggi
39fa59fc49 Change appearance of notifications to light theme.
Change-Id: Ic15e96582d6b46b4dc195b1c7c0cef38f25f0d38
2014-03-07 14:34:17 +01:00
John Spurlock
6dd48a4e54 Merge "Separate power warnings UI from state calculation." 2014-03-07 13:28:58 +00:00
Alan Viverette
858a0405ec Add icons for display adjustment quick settings
BUG: 13028934
Change-Id: I437abc48ad34364995b37c504019f7a4871c8031
2014-03-06 18:36:43 -08:00
John Spurlock
ed452c5f84 Separate power warnings UI from state calculation.
Move the existing dialog-based implementation into another class.

Bug:13329308
Change-Id: I87beac1593fd4eea2ea8a498381f7fcc289e0bc0
2014-03-06 17:18:30 -05:00
Baligh Uddin
c61f089c2d Import translations. DO NOT MERGE
Change-Id: I2f2a00a4ac7687920c35b86f1e26a3848c489e60
Auto-generated-cl: translation import
2014-03-05 10:38:50 -08:00
Chris Wren
00ba32cdc8 Merge "add missing tablet asset for heads up" 2014-03-03 19:19:59 +00:00
Chris Wren
ee39eb59b1 add missing tablet asset for heads up
Bug: 13280212
Change-Id: I8af2ba7dd2efba6bcb55e0e7d65dae49850aed06
2014-03-03 14:13:06 -05:00
John Spurlock
756fa2ab9f Handle non-exact measure passes in ZenModeView.
Bug:13245581
Change-Id: I2c5f6632fde6559849e6f429d66c4d28d4d3a890
2014-03-03 13:38:01 -05:00
Adrian Roos
6d22d75cba Keyguard Analytics: Remove unused constant.
Change-Id: I6fce6640e391d5f78468212aac7d14a8a6170115
2014-03-03 17:53:44 +01:00
Adrian Roos
58b58fe68b Add session analytics to Keyguard.
On eng and userdebug builds, adds the possibility to track touch and sensor events on the Keyguard.

Change-Id: I9ff9fe5545cb9b7e6833a6af0b5a97a6c204dbd2
2014-03-03 17:09:27 +01:00
Chris Wren
1cdd7dda61 enable heads up notifications
Bug: 13208692
Change-Id: I3682ecb30c6997c578b76a578b79a8d13a6e6323
2014-03-03 10:15:53 -05:00
Chris Wren
10d82dfbfb rename heads up global setting: base part
Bug: 13208692
Change-Id: Ia020e4d63552ab4b8cbb8a37622c36776800a790
2014-03-03 10:15:53 -05:00
John Spurlock
454a038470 Merge "Wire up SystemUI zen mode config to new settings panel." 2014-02-28 23:05:49 +00:00
John Spurlock
de547008d1 Wire up SystemUI zen mode config to new settings panel.
Change-Id: I949b31be0b31c02ab736799f9080601fb0fd79d1
2014-02-28 17:50:39 -05:00
Chris Wren
7bd2412332 add a setting for the heads up: base part
also fix a crash if the feature is disabled and then enabled
while a heads up is active.

Bug: 13208692
Change-Id: I6847f7a5f275aee2f608de0237dab0e45c39b33f
2014-02-28 17:37:51 -05:00
Chris Wren
9f6a372ca0 Merge "create a synthetic 2U heads up notification" 2014-02-28 16:28:53 +00:00
Chris Wren
595c2c58d5 Merge "use ticker text as a criterion for heads up" 2014-02-28 16:28:39 +00:00
Chris Wren
8fd39ec46b create a synthetic 2U heads up notification
combine the 1U with the action buttons to make a mid-sized notification
bounded to 128dp by the system ui
used for the heads up

Bug: 13208692
Change-Id: I382bb0bd1ce73f35295f05ca2606195986cff1d3
2014-02-28 11:20:11 -05:00
John Spurlock
110e5b10d7 Disable zen mode UI until provisioned.
Change-Id: Ib7fb9a793176ec38c4958dba7ee546ee1f47fba1
2014-02-27 13:09:35 -05:00
John Spurlock
dfae159bb8 Merge "Introduce zen mode." 2014-02-27 17:29:55 +00:00
John Spurlock
e677d7113f Introduce zen mode.
- New global zen mode setting with three values:
   ZEN_MODE_OFF, ZEN_MODE_LIMITED, ZEN_MODE_FULL
 - Status bar icon (on lhs)  when in _LIMITED / _FULL
 - Rules are hardcoded for now:
   _LIMITED = intercept all notifications except calls/alarms
   _FULL = intercept everything
 - UI affordance in shade to set mode
 - Only one exit condition: "Until you delete this"
 - Intercepted notifications:
   - appear darker in the shade
   - do not cause sound/vibration
   - do not fire fullScreenIntents
   - do not contribute an icon to the status bar

Change-Id: Ic36c95982b483432006bf9dab102a31370382aa9
2014-02-27 11:53:30 -05:00
Chris Wren
22ae46efdd use ticker text as a criterion for heads up
Bug: 13208692
Change-Id: I83831c059cb4582b16ce877af58be9fb3a5bec8d
2014-02-27 11:38:22 -05:00
Chris Wren
9924e13037 improvements to heads up interface
remove shadow
quick hack to open shade from HUN
over status bar instead of under and below it
dismiss by pushing up
tablets: shadow remains on left, right, and bottom

Bug: 13208692
Change-Id: Ie3abb762fb1388be68353c7e3111fe4708ab8110
2014-02-27 11:38:21 -05:00
Baligh Uddin
00941b1f3b Import translations. DO NOT MERGE
Change-Id: I3c777c8e830dd7339e4b5e235756bf10a49a0627
Auto-generated-cl: translation import
2014-02-26 09:12:17 -08:00
Jim Miller
cfa68b977c Disable simple keyguard when notifications enabled.
Enabling notifications on keyguard tripped keyguard into simple
mode which isn't ready for prime-time.  Disabled with variable.

Fixes bug 13172958

Change-Id: Ia281b06d754cd62455010f9e31c0ee81e4937977
2014-02-25 15:36:13 -08:00
Dan Sandler
2b733f85e2 Merge "Fix boot crash on devices defaulting to landscape." 2014-02-25 18:59:31 +00:00