Commit Graph

19868 Commits

Author SHA1 Message Date
TreeHugger Robot
1eb124656d Merge "Fixed a bug where the increased height wasn't applied correctly" 2017-03-10 03:22:16 +00:00
Selim Cinek
10790672a9 Fixed a bug where the increased height wasn't applied correctly
The wrong value was used for the increased heads-up and the
increased contentViewHeight.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/NotificationinflaterTest.java
Change-Id: Ia72b2de890d89d4cffb40eaa653a62f426945451
2017-03-09 17:15:12 -08:00
TreeHugger Robot
eb6d731fc5 Merge "re-enable StatusBarTest tests" 2017-03-10 00:19:23 +00:00
TreeHugger Robot
b6c6eaf8d4 Merge "Updating expanded PiP menu." 2017-03-10 00:17:42 +00:00
Adrian Roos
7446235e7d Merge changes Ie17eedfd,Icb80843a,If1619c10,Iee23682a
* changes:
  AOD: Add wakelock for charging text while dozing
  AOD: Show charging status on AOD1
  AOD: Fix default for always-on setting
  Revert "Revert "AOD: Refactor always on configuration""
2017-03-09 23:25:56 +00:00
Chris Wren
fd57db6ead re-enable StatusBarTest tests
Also fix a broken test by passing the fake
logger deeper into the status bar.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I74dda6fbcf1e48d9723cd0e7f63eff4a5e561338
2017-03-09 17:51:19 -05:00
Winson Chung
e7a3d2225c Updating expanded PiP menu.
- Adding consistent scrim behind menu
- Tweaking icon/button sizes
- Updating the expand button depending on the current placement of the PiP
- Better centering of the expand button

Bug: 35358425
Test: Expand pip
Change-Id: I34575bb08d4815f51b6f14f8b0e25b20b9a97320
2017-03-09 14:46:05 -08:00
Adrian Roos
c1b50324a2 AOD: Add wakelock for charging text while dozing
Also refactors the WakeLocks in SystemUI.

Bug: 30876804
Bug: 35850304
Test: runtest systemui
Change-Id: Ie17eedfd266deb3aa46dabd701bc784330b2e030
2017-03-09 14:31:24 -08:00
Adrian Roos
5602189a6d AOD: Show charging status on AOD1
- Change PowerManager to not turn on display when on AOD
- Add charging icon to AOD1
- Add transient charging indication when plugged in

Bug: 30876804
Bug: 35850304
Test: runtest systemui; enable AOD, plug in phone, verify charging indicator shows, verify charging text shows and goes away after a few seconds
Change-Id: Icb80843a12c56c7e2abeca78115a366b4d508d4f
2017-03-09 14:31:24 -08:00
TreeHugger Robot
956d00cbe8 Merge "more testable MetricsLogger interface" 2017-03-09 21:55:47 +00:00
Adrian Roos
22a905eef1 AOD: Fix default for always-on setting
Change Ic35bd3c04d150fd3eb85d76db0043880b31a011f mistakenly
flipped the default to on. Change it back to off.

Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeConfigurationTest.java
Fixes: 36027947
Change-Id: If1619c10f8cc269f2dd852e166ac959e6c9c590a
2017-03-09 13:25:59 -08:00
Adrian Roos
0261fb2a19 Revert "Revert "AOD: Refactor always on configuration""
This reverts commit cdcc5c438949ce3d942c95204555680e080c17ed.

Bug: 36027947
Change-Id: Iee23682a9d82f930484c3f4c15d99f21a0f1bc36
2017-03-09 13:25:59 -08:00
TreeHugger Robot
af526ec9c3 Merge "Corrects the recents and home stacks position around docked state (1/2)" 2017-03-09 20:39:51 +00:00
Chris Wren
ef3199040f more testable MetricsLogger interface
Begin migration to non-static methods to allow easier mocking.
New clients should use the non-static methods.
Old clients that want to unit test metrics
should move to the new interface.

Bug: 35138327
Test: runtest --path frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarTest.java
Change-Id: I168f3787ee50ddde8aa2d42c05b2b816d1d3a30e
2017-03-09 14:41:10 -05:00
TreeHugger Robot
70c8e86808 Merge "Protect against crash while sysui is initing" 2017-03-09 17:36:59 +00:00
TreeHugger Robot
71b5526a9a Merge changes I7e9aea3c,I2d23aabf
* changes:
  Remove content description from QS pages
  Fix random clicks in QS
2017-03-09 16:32:13 +00:00
Julia Reynolds
40805b9fd1 Merge "A11y updates for new a11y stream." 2017-03-09 15:23:32 +00:00
TreeHugger Robot
35035f6066 Merge "Add version of @UiThreadTest that works at class level" 2017-03-09 03:00:43 +00:00
Selim Cinek
3660504f14 Merge "Fixed a bug where the scrim was distracting when pulling on HUN" 2017-03-08 21:52:59 +00:00
Matthew Ng
330757dffa Corrects the recents and home stacks position around docked state (1/2)
Since splitting home stack into home and recents, some problems where
the home stack would appear above when home stack is not visible. This
would cause home stack to be below docked stack and think home is
visible when it is not. Then docking an app would minimize the docked
stack and go into a wierd state when recents is resumed/launched.

When docked stack is used, it will verify that recents is created and
avoids seeing home stack as visible when below docked stack with at
least 1 stack in between. Whenever an app is docked, this will make sure
home stack is below recents.

This will fix some parts of the cts tests that use
"adb shell am stack move-task <taskId> 3 true" and avoid glitches with
the docked stack.

The following scenarios were tested:
- Boot and dock and app without starting recents
- Dock after launching an app (when recents already created)
- Toggle dock with "adb shell am stack move-task <taskId> 3 true" and
undocking multiple times
- Dock with long press recents

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests
Bug: 35351074, 35145587
Change-Id: I6ac25c64f7d1050ea2260631ff4c052fcca3f185
2017-03-08 11:47:36 -08:00
Selim Cinek
f72baf17fc Merge changes I6823a613,I7763b473
* changes:
  Fixed a bug where the low-priority header wasn't cleared
  Fixes an issue where the notification header could be invisible
2017-03-08 19:04:19 +00:00
Jason Monk
a41a9add3b Remove content description from QS pages
This info is surfaced by the page indicator so it isn't needed here.

Change-Id: I7e9aea3c6493592c1f33ecdf563542b44e3f9d2b
Fixes: 35255217
Test: Select QS panel background
2017-03-08 10:07:19 -05:00
Jason Monk
1fdde2da76 Fix random clicks in QS
The entire header was getting set as clickable because of old code
which would eat the clicks of the brightness slider (and other things)
when expanded.

Fixes: 35628944
Test: Trigger expandable update (like clear user_setup and set it)
      then click on brightness in QS

Change-Id: I2d23aabf6b8a5b05f3b2b93ee723ec145514ce5e
2017-03-08 09:41:17 -05:00
Jason Monk
ba3643290d Add version of @UiThreadTest that works at class level
Saves a bunch of lines of tagging every test with @UiThreadTest

Test: runtest systemui
Change-Id: Id565dbe6bf1ae3dd7b3b23c507d1b3c386a36974
2017-03-08 09:15:48 -05:00
Jason Monk
9f1422d04a Protect against crash while sysui is initing
Sometimes when switching users not all the views are there yet, but
we will get another layout callback once they are, and can update
our animators then.

Change-Id: I029839e5c69c8c441cf89b0536a90e223dc35180
Fixes: 35949496
Test: Switch users
2017-03-08 09:11:51 -05:00
Selim Cinek
ae76b4c2f7 Fixed a bug where the scrim was distracting when pulling on HUN
Test: add hun, pull down, observe no scrim jump
Change-Id: Iec2a12476ac1f728c76119653226d2ca5a9d4145
Fixes: 35968030
2017-03-07 17:07:13 -08:00
Selim Cinek
6fd06b5b80 Fixed a bug where the low-priority header wasn't cleared
For notification groups, the header could not be removed
properly leading to overlapping text.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/stack/NotificationChildrenContainerTest.java
Change-Id: I6823a6137655e9266e46eb33dc33c0ceaee1f45c
Fixes: 36006673
2017-03-07 17:06:15 -08:00
Selim Cinek
1826d98381 Fixes an issue where the notification header could be invisible
It's not actually necessary to set the visibility of the notification header
since it is actually in the ChildrenContainer which already handles the visiblity.
This existed from legacy times where it was outside of the viewgroup.
When animating the headers, this could actually lead to blank headers.

Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Change-Id: I7763b47340a347ed44fc9ce34a98f74c7e55ef8d
Fixes: 35993698
2017-03-07 15:27:09 -08:00
Adrian Roos
805dfb836a Merge "Revert "AOD: Refactor always on configuration"" 2017-03-07 20:53:25 +00:00
Adrian Roos
c45944b680 Revert "AOD: Refactor always on configuration"
This reverts commit 28d26a821f.

Bug: 36027947
Change-Id: I3d4c2e58b753120ff668a4594f60692abc6a3426
2017-03-07 20:21:47 +00:00
Julia Reynolds
7c502e0c76 A11y updates for new a11y stream.
- change content description on mute button
- remote mute a11y stream option

Test: manual
Change-Id: I5f043d803f4f00fcbd5ec58005076b6cf22940e6
Fixes: 34710523
2017-03-07 14:53:48 -05:00
TreeHugger Robot
7cae77b606 Merge changes Iefcaf262,I9c397d83
* changes:
  Fixed a bug where the expand icon could show but nothing happens
  Improved expand accessibility experience
2017-03-07 05:44:54 +00:00
TreeHugger Robot
25e98e3c92 Merge "Waiting for reinflating the notifications until the user switched" 2017-03-07 05:24:11 +00:00
Winson Chung
192b50d518 Merge "Small fixes and tweaks to PiP transition." 2017-03-07 05:02:17 +00:00
Winson Chung
f4284638c4 Merge "Update how PIP size is determined" 2017-03-07 05:01:23 +00:00
Winson Chung
6c83d23088 Merge "Initial changes to support expanded PiP" 2017-03-07 05:00:59 +00:00
TreeHugger Robot
4540811b4d Merge "AOD: Refactor always on configuration" 2017-03-07 04:40:30 +00:00
TreeHugger Robot
8729c7e2b7 Merge "Fixed a crash when creating a public notification group" 2017-03-07 02:01:07 +00:00
Winson Chung
baa7b721dc Small fixes and tweaks to PiP transition.
- Fixing case where default bounds did not account for ime height
- Ensuring that we using the animating/target bounds when calculating
  the new ime-offset bounds
- Tweaking transition interpolators and durations

Bug: 35396882
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ia22ea0008d834c47a3f26bf2e1f484c72fae8736
2017-03-06 16:39:40 -08:00
Mady Mellor
a7f69740b5 Update how PIP size is determined
- minSize = 108dp
- defaultSmallestEdge = max(23% of screen width, minSize)
- the shortest edge of the PIP should be minSize and the rest scales
  according to the aspect ratio
- rather than a default PIP size, use default aspect ratio
- adding expand button
- fitting actions to spec

Fixes: 35358504
Test: manually used test app to try different aspect ratios
Change-Id: Ib6890fb7824889b9edeea7efb5b9771e64fc1514
Signed-off-by: Winson Chung <winsonc@google.com>
2017-03-06 16:39:11 -08:00
Selim Cinek
2ffa02fcbb Fixed a crash when creating a public notification group
The method whether it was showing an icon was wrong

runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java
Fixes: 35981843

Change-Id: Ieffeb7480960586fc644e04baaa0c28e98df7736
2017-03-06 16:11:08 -08:00
TreeHugger Robot
bc3c410d05 Merge "AOD: Wake up fully on gestures by default" 2017-03-07 00:03:03 +00:00
Winson Chung
d2d909778c Initial changes to support expanded PiP
- Prior to this CL, the input consumer and size of the PiP was tightly
  coupled with the visibility of the menu, but with the expanded state,
  the PiP should still move while the menu is visible.

Bug: 35358488
Test: Click on the PiP to expand it

Change-Id: If52208f19af516b2455bde26855c80f44bc9021a
2017-03-06 13:41:48 -08:00
Adrian Roos
d84a080e94 AOD: Wake up fully on gestures by default
Fixes: 35909567
Bug: 30876804
Test: manual
Change-Id: Ie90c451ca3d8fe6ca62853fb3a555401dc322f00
2017-03-06 13:38:56 -08:00
TreeHugger Robot
d4bd7f1ee6 Merge "Removing check for launched-from package to expand PiP." 2017-03-06 18:46:07 +00:00
Bill Yi
7fab80002c Import translations. DO NOT MERGE
Change-Id: Id4a9d4c2e278304cbc4bb76cc59a266b9a6f693e
Auto-generated-cl: translation import
2017-03-06 04:46:32 -08:00
Jason Monk
e5b770e47d Updated QS UI
- Adds footer to QS which contains the date/alarm info
   and all touch targets (settings, edit, etc.)
 - Swaps out emergency + carrier text on cell tile for a
   standard CarrierText from lock screen in the header
   to make the header only contain status info.
 - Add dividing line
 - Work on animations

Test: runtest systemui
Change-Id: I97dfea1b1ea7006b53eb61ac3a1f942c64dd282d
2017-03-04 20:02:09 -05:00
Jason Monk
702e2ebf9f Add plugin API for individual QS tiles
This will allow prototyping of individual QS tiles and/or their
visual representation without having to write a plugin for the
entire panel. This will allow quick iteration on QS UI + dual
target tiles.

Test: Install plugin using new API
Change-Id: I05ca9d9f5a200a1dad2c3582251a36edb5cb9aba
2017-03-04 16:01:26 -05:00
Selim Cinek
9635cf3dee Fixed a bug where the expand icon could show but nothing happens
Test: add notification with an icon and short text, HUN
Change-Id: Iefcaf262c5147fd7f580fcf1369e66dc369efc99
Fixes: 27449651
2017-03-03 16:59:51 -08:00
Selim Cinek
c0ac4af13b Improved expand accessibility experience
The expand action is now on the notification itself
instead of the expand button, this way a user immediately
know if it is expanded.
It also improves the click feedback of the expand button

Test: add notifications, observe accessibility feedback
Change-Id: I9c397d839df52d5354d7ae16725ce3e595da19c7
Fixes: 32322410
Fixes: 35064589
2017-03-03 15:13:48 -08:00