Commit Graph

9292 Commits

Author SHA1 Message Date
Winson Chung
8a9100caae Merge "Tweaking layout to make two-task stacks to closer match design." into nyc-dev 2016-05-28 00:07:47 +00:00
Adrian Roos
e3e80bde12 Merge "Fix status bar autohide with DirectReply" into nyc-dev 2016-05-27 22:55:00 +00:00
Winson
399d21e37c Tweaking layout to make two-task stacks to closer match design.
- In the small-stack cases, set the initial state to top-align the
  back-most task.  In addition to offsetting the position, ensure that
  the dim for the back-most task is offset by this new position.
- Fixing issue with wrong return value when update insets.
- Fixing issue where tasks disappear after rotating while scrolling the
  stack, due to the scrollering setting the stack scroll to an invalid
  scroll position in the new layout in the new orientation.

Bug: 27859654
Change-Id: Ia4aaa3fe445032493c94a8dee7f6fea33bee36ec
2016-05-27 15:30:06 -07:00
Adrian Roos
e88f60b8bb Merge "NotificationStackScroller: Fix scrollTo for notification groups" into nyc-dev 2016-05-27 21:18:57 +00:00
Adrian Roos
06fe24341c Merge "Notification: Fix bug with sliding action list" into nyc-dev 2016-05-27 21:17:27 +00:00
Jorim Jaggi
a6c05d5151 Fix weirdness when home task forces rotation
- Make sure to retain the state when divider goes through a configuration
change in order to avoid that nothing happens when entering multi-window.
Save the state in DividerState and use a handler that's independant of the
attached state.
- Don't allow home task to dictate orientation unless the docked stack is
minimized. This caused a lot of weird bugs because when docking a task,
home stack gets moved to front, and if home task is front of stack, it
temporarily might dictate the rotation but later not anymore so this
causes two rapid configuration changes which may cause a lot of weirdness.

Change-Id: I6a2308af893cd8413ee8801e5b964f6ddc0abd51
Fixes: 28943853
2016-05-27 21:09:22 +00:00
Selim Cinek
2fba229166 Merge "Fixed a bug where a notification could be stuck in the overlay" into nyc-dev 2016-05-27 20:47:07 +00:00
Adrian Roos
5e47645f6d Fix status bar autohide with DirectReply
If a touch outside the status bar window is detected
we schedule autohiding the status bar - which is wrong
when that touch is due to touching the IME for DirectReply.

Bug: 28914905
Change-Id: Ic86612192368181f195fa54ac4f20edaf02af685
2016-05-27 12:07:37 -07:00
Selim Cinek
4f401f24c7 Merge "Fixed a few memory leaks in SystemUI" into nyc-dev 2016-05-27 18:58:56 +00:00
Selim Cinek
f55f1bcb94 Fixed a bug where a notification could be stuck in the overlay
Change-Id: Idf07b1948b9baeff095fbeccd417cdad1e81e7f8
Fixes: 28992452
2016-05-27 11:19:11 -07:00
Jae Seo
f8c504db7f Merge "PIP: Improve PIP control row's focus change animation in Recents" into nyc-dev 2016-05-27 17:23:58 +00:00
Jason Monk
4f620d423f Merge "QS: Handle detail scroll properly" into nyc-dev 2016-05-27 16:51:48 +00:00
TreeHugger Robot
cd9ea74659 Merge "add metrics for gestural notification expansions" into nyc-dev 2016-05-27 16:49:58 +00:00
Julia Reynolds
d8834773eb Announce upcoming tile state on click.
Change-Id: Ib804b5db13bbee07c6d45e8aa077cac60e28efb2
Fixes: 28964765
2016-05-27 11:01:55 -04:00
Jason Monk
0215802097 QS: Handle detail scroll properly
Add custom scrollview that ensures the touches can cause a scroll.

Change-Id: Ib18ac24ded11d06f59f582248964bd697652c192
Fixes: 28671167
2016-05-27 10:47:51 -04:00
Jaewan Kim
a9e0621f33 PIP: Improve PIP control row's focus change animation in Recents
This includes following changes for performance
1. Passes the key events directly between the windows instead of using
   dummy Views and OnFocusChangeListener to prevent main thread from
   handling unnecessary focus changes.
2. Limits the window size for PIP controls to reduce unnecessary draw.

Here's the test result. Test is performed with paused PIP video
1. 5 visible recents task
  Focus down: 48.14 fps -> 85.396 fps (+77.39%)
  Focus up: 24.67 fps -> 45.33 fps (+83.77%)
2. 3 visible recents task
  Focus down: 51.98 fps -> 132.72 fps (+155.34%)
  Focus up: 30.91 fps -> 53.38 fps (+72.69%)

Bug: 28042495
Change-Id: I363232176975b160e122748c9997ef4b46b73a28
2016-05-27 08:41:48 +00:00
TreeHugger Robot
386a947616 Merge "Prevent setting the launch task id when docking." into nyc-dev 2016-05-27 03:30:47 +00:00
Adrian Roos
a8e18ef911 Fix spurious crashes in StatusBarIconView
Fixes a crash that happens when we cannot look up a package's
resources for reasons.

Change-Id: I4884536a3eefa8fe82bd274925241f4c798e08e3
Fixes: 28982204
2016-05-26 17:57:25 -07:00
Selim Cinek
f1614a6ec2 Fixed a few memory leaks in SystemUI
Fist of all we made the statemap a weak hashmap in order never
to leak any views anymore.

Another leak could occur because predrawlisteners were added twice
but removal only removes one. A view was then leaked in case it was detached
before predraw.

Also fixed a leak when transforming the header because a state wasn't
nulled.

Change-Id: I2573a506c307196ef60c905dc823ea8a95e91a16
Fixes: 28945863
2016-05-26 17:52:03 -07:00
Winson
c4a038ad28 Prevent setting the launch task id when docking.
- In this case, recents is the last running task instead of the 
  previously fullscreen app (likely due to some preparation for the 
  docking), and we should not set the task to launch/cancel window 
  transitions for.

Bug: 28943422
Change-Id: I3c381d3fa33a69adb7d8b606633433a898841526
2016-05-26 23:51:40 +00:00
Adrian Roos
4a57967650 NotificationStackScroller: Fix scrollTo for notification groups
Change-Id: Iab101d7583e9849809058c96f0c480ea9b5cc0f5
Fixes: 28936844
2016-05-26 15:44:40 -07:00
Chris Wren
6abeeb9119 add metrics for gestural notification expansions
Bug: 28146482
Change-Id: If202846c0d235830c7b41d76b55bdcc21d0ab90d
2016-05-26 17:20:33 -04:00
Winson Chung
814358a24f Merge "Fixing crash in SysUI due to invalid group." into nyc-dev 2016-05-26 20:39:28 +00:00
Winson
8a3ef375ee Fixing crash in SysUI due to invalid group.
- Adding a null check for tasks that have already been removed, but may
  be launched.

Bug: 28890599
Change-Id: Idde322c737a5543e639e693fbe7615e720a12c1e
2016-05-26 19:57:44 +00:00
Winson
6c8217ab30 Defer calling the stack task removed callbacks.
- When updating a TaskStack, defer calling any callbacks until the stack
  is updated.  Otherwise, the handler may incorrectly check the size of
  the stack to be empty, which triggers Recents to go home.
- This CL also removes an erroneous double call to onStackTaskRemoved()
  when updating, one explicit call and the call that is made internally
  in removeTask().

Bug: 28941269
  

Change-Id: I37b93bd959a625096925a16a426269a0c79de4e7
2016-05-26 19:57:34 +00:00
Adrian Roos
bb73e9c65a Notification: Fix bug with sliding action list
Fixes a bug where the action bar was not where it
was supposed to be if the expanded notification
was smaller than the collapsed + action height.

Bug: 28767094
Change-Id: I30c0ae430d4d5f9e88a02f5143094e90cf31b620
2016-05-26 12:06:46 -07:00
Julia Reynolds
d52a81eeae Merge "Reset slider animator on density change" into nyc-dev 2016-05-26 18:46:10 +00:00
Julia Reynolds
5774cf08de Reset slider animator on density change
Change-Id: Iae7d32746c6ea2cabe7d0d58ff11a05d1722fce4
Fixes: 28626591
2016-05-26 13:43:38 -04:00
Julia Reynolds
2bf73e94c3 Merge "Importance slider updates." into nyc-dev 2016-05-26 16:50:58 +00:00
Jason Monk
72f19ff6f0 Merge "QS: Make hotspot go unavailable in airplane mode" into nyc-dev 2016-05-26 16:46:48 +00:00
TreeHugger Robot
0f97b8fcbd Merge "add metrics for notification and group expansion" into nyc-dev 2016-05-26 16:35:29 +00:00
Julia Reynolds
3aa969f68d Importance slider updates.
Icon & tint.

Bug: 28911161
Change-Id: Id8c3a4b79326eb5073a600de49ac14ae7223b398
2016-05-26 11:07:49 -04:00
Jason Monk
49a2796cdd QS: Make hotspot go unavailable in airplane mode
Put the hotspot tile in the unavailable state whenever airplane
mode is on.

Change-Id: I7a6eb54c2e89a7a9736c72d8e58ab58e7e82d0a6
Fixes: 28881032
2016-05-26 10:57:59 -04:00
Sid Soundararajan
caa611f88d Make content descriptions of task cards, the title description
Use the title description as content description for the task
card, this should be better for talkback.

BUG: 28594452
Change-Id: Idc97004f1370a35ea5328c4e9e46a72a9349c8f4
2016-05-25 17:08:12 -07:00
Sid Soundararajan
436da616c8 Merge "Alternate method for adding dismiss in talkback" into nyc-dev 2016-05-25 22:23:05 +00:00
Chris Wren
698b1706be add metrics for notification and group expansion
Bug: 28146482
Change-Id: Id7f71873ba33f85c1a1f2c48b47f78d40df46c0d
2016-05-25 17:08:17 -04:00
Mady Mellor
b6f640607b Merge "Fix clipping not being activated on children in groups" into nyc-dev 2016-05-25 20:22:42 +00:00
Sid Soundararajan
17d29b6d70 Alternate method for adding dismiss in talkback
This is an alternate solution. Not sure if this is better than
the current solution.

BUG: 28594452
Change-Id: I08b4ca8741ceb3491950ba779510b08775bd0ee7
2016-05-25 11:18:22 -07:00
Selim Cinek
6088cf67e8 Merge "Fixed a bug where the expand button was invisible" into nyc-dev 2016-05-25 18:14:57 +00:00
Jason Monk
c4b6e2a184 Merge "QS Edit: Fix up accessibility" into nyc-dev 2016-05-25 17:11:31 +00:00
Jason Monk
630436c9ed Merge "QS Edit: Hide black bar in landscape" into nyc-dev 2016-05-25 17:11:23 +00:00
Jason Monk
7e10e630b4 Merge "QS API: Handle return value from bindServiceAsUser" into nyc-dev 2016-05-25 17:11:15 +00:00
Jason Monk
d075b21a85 QS: Fix QS touch breaking
Seems not all of the QS container logic was inside the inflate
callback.

Change-Id: I78a8b40d1c181f5dac7127a5b5d20d45ae0f333e
Fixes: 28177371
2016-05-25 12:30:51 -04:00
Jason Monk
6d21e0d8d2 QS API: Handle return value from bindServiceAsUser
To avoid crashes better.

Change-Id: I72e74729fbc0b1400c21e1ebc165b565ecd13fba
Fixes: 28721139
2016-05-25 11:37:47 -04:00
Jason Monk
931f5464f5 QS Edit: Hide black bar in landscape
Change-Id: I954e5571c01945b697c6254c168c1830467ff7db
Fixes: 28924803
2016-05-25 11:19:04 -04:00
Jason Monk
ad5db2979b QS Edit: Fix up accessibility
Change-Id: I13d426d4ae447c7db074bc7165067870bd8cae5d
Fixes: 28913622
2016-05-25 10:54:43 -04:00
Selim Cinek
8fba3b395f Merge "Fixed a few battery issues in SystemUI" into nyc-dev 2016-05-25 00:30:46 +00:00
Selim Cinek
5f56d85552 Fixed a bug where the expand button was invisible
Since the view wasn't layouted yet it was layouting it wrongly

Change-Id: I62fcdde1eda457bab74765a290865b1749b08dac
Fixes: 28869354
2016-05-24 16:55:13 -07:00
Sid Soundararajan
a3cb77a9b4 Merge "Add support for dismissing in Talkback Mode" into nyc-dev 2016-05-24 22:46:27 +00:00
Mady Mellor
f229d406d0 Fix clipping not being activated on children in groups
Some views were not getting the call to reactivate clipping
this is because only the when the view was made visible
was it reset, views made invisible would be missed.

Fixes: 27364129
Change-Id: Ie6944569f432cd657f7f741c95c4067b346ea98b
2016-05-24 15:01:22 -07:00