Commit Graph

1651 Commits

Author SHA1 Message Date
TreeHugger Robot
13b13f0816 Merge "Remove qs_footer_dialog_network_logging_icon_alpha" 2017-03-15 15:47:03 +00:00
Robin Lee
5760fd9b9c Remove qs_footer_dialog_network_logging_icon_alpha
This washes out the network logging icon in the network monitoring
dialog, making it look strange compared to the dark VPN key.

Fix: 35620542
Test: inspection of dialog
Change-Id: I72bc6337b88b16235dab7b48d11efee4410ede5e
2017-03-15 14:06:59 +00:00
Sid Soundararajan
7616234117 Merge "RecentsTV : Remove all Recents TV Code" 2017-03-13 17:44:55 +00:00
Bartosz Fabianowski
820c73d986 Update enterprise disclosure strings
This updates the disclosure shown on the Keyguard screen for managed
devices to the final strings.

Bug: 32692748
Test: Manual

Change-Id: If70be667274937812a4dcb0d1c97586f15136e1c
2017-03-11 04:33:18 +01:00
Phil Weaver
f00cd14f17 Basic accessibility support for picture-in-picture
Exposing actions from the PIP InputConsumer to accessibility,
stripping all actions from a covered PIP app, and adding the
InputConsumer's actions on the PIP app's root view.

We were also using an "undefined" accessibility ID to mean
three different things: a root view, a host view of a virtual
view hierarchy, and a truly undefined view. I've introduced
new values for cases where the id could be defined.

Also gathering all window IDs into one place to reduce the
chance of collisions.

Bug: 34773134
Test: In progress. Current cts passes.
Change-Id: I97269741a292cf406272bf02359c76c396f84640
2017-03-10 15:35:30 -08:00
TreeHugger Robot
b6c6eaf8d4 Merge "Updating expanded PiP menu." 2017-03-10 00:17:42 +00: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
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
Sid Soundararajan
0e88d32b96 RecentsTV : Remove all Recents TV Code
This patch will remove the Recents TV Code from SystemUI.

Test: To test this removes the Recents Feature and has no
side effects, try to launch recents with long-press HOME. This
should result in launching the phone version of recents.

BUG: 36035359
Change-Id: I9026b480968575ce08e1ce344512f168fdc5fe87
2017-03-08 16:19:04 -08: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
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
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
58be7a675b Add colorError
Remove scatered references to old error color and replace them with
references to new colorError

Test: make & visual
Change-Id: Icca8cd790db351c3dfce2197f2046879d062a2c0
2017-02-24 14:57:27 -05:00
Jaewan Kim
dc29875ac0 PIP: Address the comment from the previous CL
This address the comments from the following CL

8af250efae PIP: Use resource to maintain settings class list to shift
PIP to left

Test: Manual test
Change-Id: Ib7cae7ba019018375e9c1e51f1a0ef7d91447d52
2017-02-24 10:51:50 +09:00
Jaewan Kim
5faf303931 Merge "PIP: Use resource to maintain settings class list to shift PIP to left" 2017-02-24 00:29:03 +00:00
Jaewan Kim
8af250efae PIP: Use resource to maintain settings class list to shift PIP to left
Bug: 31322754
Test: manual test
Change-Id: Ic36c2437409d8d1fcddd71087eda754f1a8752e1
2017-02-23 14:32:28 +09:00
TreeHugger Robot
8f1a1dd0fc Merge "Don't show the percentage twice when charging." 2017-02-22 21:11:34 +00:00
Selim Cinek
160bf4cbac Merge "Making the notification always center horizonally" 2017-02-21 22:05:21 +00:00
Dan Sandler
df14c20be4 Don't show the percentage twice when charging.
The old percentage textview is now gone from the layout.
When the device is charging (but the user doesn't have
percentage display turned on all the time) use the new
percentage built-in to BatteryMeterView.

Bug: 35521962
Test: visual
Change-Id: I91f3350f6203fd007f003ca260ac0ed78e29b771
2017-02-21 16:17:09 -05:00
Julia Reynolds
027c7499d0 Move volume dialog expander
Bug: 33760714
Bug: 32727078
Test: manual
Change-Id: I06934bf140483957b734d5b1b20e3c7c6b7b4497
2017-02-17 22:18:49 +00:00
Selim Cinek
9e87cba5a9 Making the notification always center horizonally
The notification panel always center horizontal, since
it could lead to an offcenter notification sometimes.
Also applying the gravity correctly.

Change-Id: I2056dae0dfc1e4625e7903511464dc3edd8ac3f5
Fixes: 27566718
Test: rotate, observe HUN location after rotation
2017-02-17 13:29:54 -08:00
Jason Monk
324b8867e4 Add ongoing notification for instant apps
Show a BTW notification when instant app is top of either of the
stacks.

Bug: 35152138
Test: Open ephemeral app, look at notifications.
Change-Id: Id992dd893a6632e9b95948a9e11167762f42bc49
2017-02-16 17:20:02 -05:00
TreeHugger Robot
040e425b49 Merge changes Ia33ab1ab,I1d01ab5d
* changes:
  AOD: Add toggle for waking up instead of ambient display on sensors
  AOD: Refactor DozeMachine to allow waking up
2017-02-16 02:28:23 +00:00
TreeHugger Robot
8d6a617069 Merge "Removing PiP from SysUI tuner." 2017-02-16 02:23:03 +00:00
TreeHugger Robot
1fad70afd3 Merge "Various QS fixes and cleanup" 2017-02-16 01:05:48 +00:00
Winson Chung
6e35ee1ff5 Removing PiP from SysUI tuner.
Bug: 35143109
Test: Go to tuner, observe
Change-Id: I5c4eadc33a303e7bf7d99aa772296405d39ee251
2017-02-15 16:32:45 -08:00
Adrian Roos
7a1654e8e4 AOD: Add toggle for waking up instead of ambient display on sensors
Bug: 30876804
Test: Open SysUI tuner -> Ambient Display -> Toggle wake up on sensors setting, verify that double tap and lift wake up phone instead of triggering ambient display.
Change-Id: Ia33ab1ab5ed532f239262d70e00dac3fec0330e2
2017-02-16 01:21:13 +01:00
Jason Monk
f13413e2f3 Various QS fixes and cleanup
Test: runtest systemui
Change-Id: If87f58f2af00b23c5e1a8e38a63a6a63d903002c
2017-02-15 17:48:27 -05:00
Jason Monk
790442e4cd Tuner updates
Some UX updates to the tuner to feel better and align with settings
UX patterns.

Test: visual
Change-Id: I9c57194b9649c61e0d6d3f9e21a51d9c4a5c1286
2017-02-15 13:35:00 -05:00
Selim Cinek
87ed69bd6b Heads-up notifications of increased height behave better
In the shade, the heads-up version when their height is
increased now behave better and the notification shows more
then a single message as well.

Test: add heads-up for messaging style notification while shade is expanded
Bug: 34469375
Change-Id: Ia3475eec5b4474aae950ef0eb84afb28689245ae
2017-02-13 13:51:37 -08:00
Geoffrey Pitsch
df44b606f3 Updated Inline Notification Controls
Removed old xml resources, strings, dimens, etc
Different behavior when sent from the default channel.
Display how many notification categories are used by the app.
Group label when channel is associated with group.
Add package icon.
Fix tap-away-to-save behavior

Test: runtest systemui
Change-Id: Ib41a536a5c4e7c7747a2453eddc3b4b4b99ffa7a
2017-02-10 13:24:54 -05:00
TreeHugger Robot
ba89ed754f Merge "Move the logic of batteryMeterDrawable to settingslib" 2017-02-08 10:14:28 +00:00
jackqdyulei
597b10f6db Move the logic of batteryMeterDrawable to settingslib
In Settings, we also need a BatteryMeterDrawable to show battery meter,
that's why I move it to settingslib.

In this cl, what I have changed is listed below:
1. Create BatteryMeterDrawableLib that contains logic of battery
drawing.
2. Still Keep the battery control logic in systemui.
3. Remove hardcoded battery color by using the color state lists.
4. Move some tests to settingslib

Bug: 34771849
Test: make SettingsLibTests

Change-Id: I39c0f0e31ca5e1b958467298db1d0590d16c9f6d
2017-02-07 17:27:00 -08:00
Jiaquan He
41b8a3af18 2D Recents: Fix the thumbnail radius. am: 083c6fbbd0
am: 5207be100b

Change-Id: Ic2912d940a877730165a8188ca39ada17ebfa540
2017-02-08 01:02:05 +00:00
Jiaquan He
5207be100b 2D Recents: Fix the thumbnail radius.
am: 083c6fbbd0

Change-Id: I93ff98979bcffa0c3724807ec9caac8f39025fa6
2017-02-08 00:06:22 +00:00
Winson Chung
cd161864a3 Merge changes I3ef361bd,I89a5184c
* changes:
  Refactor PiP logic in preparation for expanded state.
  Modifying RemoteAction callback to PendingIntent.
2017-02-07 21:18:15 +00:00
Winson Chung
2a82fe587b Refactor PiP logic in preparation for expanded state.
- #1: Move logic for handling IME size changes into SysUI, and only rely
      on PinnedStackController to provide bounds when first entering
      PiP and on rotation
- #2: Doing #1 allows us to move PipMotionHelper to SysUI completely, which
      lets us aggregate the animation calls out of PipTouchHandler
- #3: Add proper callbacks to the listeners when the movement bounds
      changed from config change, ime change, or aspect ratio change. This
      allows SysUI to calculate the associated movement bounds for the
      expanded state, and we can then remove the corresponding WM call.
      It also means that SysUI is the only thing that needs to know about
      the expanded state.
- #4: Fix issue where TV was getting the default bounds, not taking the
      aspect ratio when the PiP was entered into account.  Doing #3
      allows us to report the right bounds.
- #5: Remove dead code related to edge snapping/minimizing now that they
      are on by default and associated tuner setting, and controller
      callbacks

Test: android.server.cts.ActivityManagerPinnedStackTests (all existing tests pass)

Change-Id: I3ef361bdf8d44094b4c0a11c70ba4db7d697fdec
Signed-off-by: Winson Chung <winsonc@google.com>
2017-02-07 08:26:36 -08:00
Casey Burkhardt
048c2bc19a Initial implementation of Nav Bar Accessibility Button
This allows an AccessibilityService to set a flag in its
AccessibilityServiceInfo that triggers the navigation bar to show an
Accessibility Button and observe callbacks when the button is clicked
or there are changes in the visibility of the navigation bar.

Test: Manual (Created a sample AccessibilityService) + CTS
Bug:29231271
Change-Id: I03d653d85bc37df28ed71d8bba94b7c75fe56e43
2017-02-06 12:56:08 -08:00
Selim Cinek
4f3463290b Merge "Increased the collapsed size of messaging notifications" 2017-02-02 23:59:08 +00:00
TreeHugger Robot
de3f962e8a Merge "Update the drag to dismiss UI to be closer to design" 2017-02-02 21:40:19 +00:00
Geoffrey Pitsch
580f32d7b0 Merge "SystemUI uses Builder API with NotificationChannel" 2017-02-02 20:25:48 +00:00
Mady Mellor
d4e40fb097 Update the drag to dismiss UI to be closer to design
Rather than a circular target for drag to dismiss, there is text / icon
as well as a gradient. As the PIP approaches the text / icon they grow
in size. If the PIP is released overtop of the text / icon, it is
dismissed.

Test: Using PIP test app, have a PIP, drag it to dismiss target area.
Change-Id: I339ad14e144dfd61f0e990ba4d2559642a47b141
2017-02-02 11:08:26 -08:00
Anthony Chen
b3f0849c3e Merge "Refactor notification to allow for overlay by Android Auto." 2017-02-02 18:09:43 +00:00
Geoffrey Pitsch
1dc93bc407 SystemUI uses Builder API with NotificationChannel
Some changes to channels based on UX feedback.

Test: runtest systemui
Change-Id: I1b2f661ba145d6926035f992231dc3c2f8cbf844
2017-02-02 11:12:05 -05:00
Jason Monk
2db4619153 QS: Remove circles and add lines
- Remove circles from icons.
 - Add lines to indicate tiles with dual tap targets.
 - Change default order

Test: visual
Change-Id: I1eb02641757a76ddf3e3876182f7b2503161bc9e
2017-02-01 17:22:51 -05:00
Anthony Chen
3cb3ad9998 Refactor notification to allow for overlay by Android Auto.
Android Auto requires different styling for notifications. In
particular:

- Background of scrim to be a different color
- Notification shade should always be full width
- No quick settings
- User switcher always visible
- Card styling, such as rounded corners and more spacing between items.
- Notification shade to be triggered from a button on the navigation
  bar.

Refactored different areas of the framework to allow for this. This
mostly means extending notification code and overriding methods where
appropriate.

Test: manually tested
Bug: 33487455
Change-Id: Ifcea70e121c1cbbeb057bb6ce8d351336ae41554
2017-02-01 10:05:07 -08:00
Selim Cinek
7d1009b3bd Increased the collapsed size of messaging notifications
Messaging notifications now get an increased boost in size,
since those are usually important to the user.

Test: existing tests pass
Bug: 34469375
Change-Id: Idfc2d2403b04c4c2d17b821e3ccbbbd48d31654d
2017-01-31 10:26:03 -08:00
TreeHugger Robot
1df8f1ea95 Merge "Reverts ag/1803954 and ag/1828349 and left only split custom action" 2017-01-28 01:13:25 +00:00
Matthew Ng
32acecc073 Reverts ag/1803954 and ag/1828349 and left only split custom action
Test: manual - used Talkback
Fixes: 29360763
Change-Id: I50a5fd8fb438cba045ab4e86b4495af8a8fdf8f3
2017-01-27 15:23:45 -08:00
Jiaquan He
083c6fbbd0 2D Recents: Fix the thumbnail radius.
Changes the task thumbnail radius to 4dp.

Test: Checked that Recents task thumbnail radius is changed to 4dp on
local sw600dp device.
Bug: 32101881
Bug: 34746192

Change-Id: I1e950d305ed5edf7da577a8f05cf6005b4405205
2017-01-27 11:09:07 -08:00