Commit Graph

24717 Commits

Author SHA1 Message Date
Bill Yi
908b52840c Import translations. DO NOT MERGE
Change-Id: I8457b08b667801127c2bb943639a4ea2ff86de05
Auto-generated-cl: translation import
2018-01-17 23:19:59 -08:00
TreeHugger Robot
e5e7844bb9 Merge "Fix NPE when registering gesture support" 2018-01-17 21:52:31 +00:00
Julia Reynolds
d8b49d3908 Merge "Volume dialog redesign" 2018-01-17 18:14:58 +00:00
Brad Stenning
e8a7568bbd Fix NPE when registering gesture support
Car implementation does no support gestures thus this installs a null
object pattern version of the gesture plug in.
This is a temp solution while the class hierarchy is being refactored.

Bug: 72094006

Test: deploy and check
Change-Id: I7cbca3d77546d62e3e78d8c73faa8ef5cd8803f0
2018-01-17 10:02:21 -08:00
TreeHugger Robot
52c3685613 Merge "Temporary affordance for blocking helper" 2018-01-17 17:22:31 +00:00
TreeHugger Robot
dd7edac551 Merge "Add support for secondary text in QS" 2018-01-17 16:33:25 +00:00
Petr Cermak
ed7429c529 Implement SmartReplyView
SmartReplyView creates and manages smart reply buttons in a
notification.

One-pager:  http://go/1p-smart-reply
PRD:        http://go/srn-prd
Mocks:      http://go/p-notifications
Design doc: http://go/srn-design

Screenshot: https://screenshot.googleplex.com/GT9NGckkFKB.png

Bug: 67765414
Test: Viewed a notification with mock smart replies
Change-Id: I6d90776571a559a2542aa35fa11e6a21969179c0
2018-01-17 14:22:47 +00:00
Julia Reynolds
0a22856a2a Volume dialog redesign
Bug: 63096355
Test: manual, change volume with buttons and by touching the slider in
each orientation
Change-Id: I949425ca09c98f8826da5e29a2a479a74acdcf34
2018-01-17 09:09:10 -05:00
Lucas Dupin
4272f44f3f Add battery to AOD
Showing battery percentage in AOD in the keyguard
indication area when also randomizing the text field
position to avoid burn-in.

Removed charging indication from KeyguardStatusView
since now it's always visible in the indication area.

Bug: 64155983
Test: flash taimen, look at AOD
Test: flash walleye, look at AOD
Test: unplug device, look at message
Test: wait for change in battery level in AOD
Change-Id: I6110d47d155e95e838cb901ab0928f0512454ab5
2018-01-17 01:21:11 +00:00
TreeHugger Robot
87b4ceeca7 Merge "Make QS rounding match notifications" 2018-01-16 23:48:52 +00:00
TreeHugger Robot
182b3f994b Merge "Fix a couple PIP related issues." 2018-01-16 22:55:17 +00:00
Jason Monk
c17b7d9143 Add support for secondary text in QS
Test: visual
Bug: 70799372
Change-Id: I64b1d050807e69f1755604e0baff94b89c9aeb2b
2018-01-16 22:11:25 +00:00
Jason Monk
8a514cb414 Make QS rounding match notifications
Test: visual
Bug: 70799006
Change-Id: Iae9bba222e7d34c520df2b673e6d346a44ebcc0e
2018-01-16 22:05:17 +00:00
TreeHugger Robot
aea5cfe8c3 Merge "Beginning implementation of quickscrub (1/3)" 2018-01-16 21:59:43 +00:00
Jason Monk
1b41a2f941 Merge "Bring back the QS circles" 2018-01-16 21:27:28 +00:00
TreeHugger Robot
4fe3599987 Merge "New Face Match icon" 2018-01-16 21:11:26 +00:00
Lucas Dupin
a2a7a40cfc Fix issue where SmartSpace color could be wrong in AOD
Test: visual
Fixes: 71599239
Change-Id: I5f4b8af78ae2034f4f8ebfbc42ffea5694c6a425
2018-01-16 21:10:03 +00:00
TreeHugger Robot
020b579dd4 Merge "DisplayCutout: LayoutInDisplayCutoutMode API" 2018-01-16 19:58:17 +00:00
TreeHugger Robot
c48b83bb5e Merge "Don't show album art on AOD" 2018-01-16 19:56:42 +00:00
Winson Chung
2a35e6db84 Fix a couple PIP related issues.
- Only show settings button when in the full PIP menu (71709327)
- Fix issue with PIP not moving with keyboard due to new callback order
  (71584422)
- Make home button consistent with recents button when in an activity
  over the lockscreen (64137485).  When you tap home, it will now prompt
  you to unlock before going home (and auto-entering PIP if the app
  supports it)

Bug: 71709327
Bug: 71584422
Bug: 64137485

Test: Manual, ensure that pip shifts with keyboard and verify that it
      launches into PIP from show-over-lockscreen activity

Change-Id: I9122b7e20a5bfe82b32c8b576bd4fa11b5659c31
2018-01-16 11:39:08 -08:00
Lucas Dupin
334f954714 New Face Match icon
Change-Id: Iac256cdd7b4a5f9f7f04365400381f892933eff4
Fixes: 72046152
Test: visual, unlock using Face Match
2018-01-16 11:24:46 -08:00
Adrian Roos
fa02da6250 DisplayCutout: LayoutInDisplayCutoutMode API
Replace the FLAG2_LAYOUT_IN_DISPLAY_CUTOUT flag with a
dedicated layoutInDisplayCutout field; given the change
in behavior of SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN with respect
to the display cutout, apps that request this now also need
a way to request the same behavior as FLAG_FULLSCREEN.

Broadly, there's three categories of apps:

1) Apps that want to make dedicated use of the cutout
   area -> no letterbox ever

2a) Apps that hide the status bar, but don't expect the
    cutout to be there cutting into their content
    -> we want those to get letterboxed

 b) Some apps may only be transiently fullscreen, but always
    want to get letterboxed
     -> we want those to get letterboxed even if not currently
        fullscreen

3) Apps that never go fullscreen, and just draw the status
   bar background in the cutout area (i.e. the most common type
   of app)
   -> these need to get letterboxed whenever the cutout and
      status bar don't coincide (under our current guidelines
      that's only in fullscreen and landscape)

To cover each use case, we have:

ALWAYS: Always allow the app to draw into the cutout, never letterbox it; covers 1
NEVER: Never allow the app to draw into the cutout, always letterbox it; covers 2a and 2b
DEFAULT: Allow the app to draw into the cutout if that area is covered by the status bar
         anyways. This does the right thing for most existing apps (2a and 3).

Bug: 65689439
Test: atest PhoneWindowManagerLayoutTest
Change-Id: Ib8d551251e9be4ef9d580ca2151bf40a9678acae
2018-01-16 17:56:32 +01:00
Salvador Martinez
6644e252cd Merge "Refactor code to support overridden low battery warning" 2018-01-16 16:29:33 +00:00
TreeHugger Robot
d406ccab42 Merge "Fix wake up regression" 2018-01-16 16:21:45 +00:00
Lucas Dupin
055d5f4ac4 Fix wake up regression
Change-Id: I424410eb6c25209a20d21962af36fb7acd801015
Fixes: 71543966
Test: python external/chromium-trace/systrace.py sched gfx view wm -a com.android.systemui
2018-01-15 23:20:06 -08:00
Jason Monk
cb2307cb5c Bring back the QS circles
Test: visual
Bug: 70798861
Change-Id: I1a68c98cf3d507171223970918fd9cb20d880b66
2018-01-15 14:19:45 -05:00
TreeHugger Robot
7ac85a3b87 Merge "DisplayCutout: Move emulation into resource overlay" 2018-01-15 15:58:49 +00:00
Adrian Roos
30f5321310 DisplayCutout: Move emulation into resource overlay
Bug: 65689439
Test: atest PhoneWindowManagerLayoutTest
Test: adb shell cmd overlay enable com.android.internal.display.cutout.emulation && adb shell stop && adb shell start
Change-Id: I7a319c28da53f78f884556cf176e01321b9c6b55
2018-01-15 14:44:41 +01:00
Lucas Dupin
d11e77d324 Don't show album art on AOD
Fixes: 71767554
Test: Set AOD wallpaper, play media, look at AOD
Change-Id: I8f53b1738cc18ecf07c69cfa193d80c6729593e0
2018-01-13 17:52:18 -08:00
Dan Sandler
1d958f8c35 Temporary affordance for blocking helper
When a notification is flagged by NoMan as USER_SENTIMENT_NEGATIVE (odd,
since this is actually the system's sentiment), a small  icon will
appear that directs you to the notification settings.

Eventually the icon will be removed, and the settings (reworded to
explain that you seem not to like this kind of notification) will be
left behind in the shade.

Bug: 63095540
Test: runtest systemui
Change-Id: I8b815cd035e9730bbbf1d4a1be17db9d494111ed
2018-01-13 15:34:57 +00:00
Lucas Dupin
e1daf52b92 Merge "Allow custom keyguard "prompt reason"" 2018-01-13 01:13:26 +00:00
TreeHugger Robot
2d38a44938 Merge "Screenshot global actions item." 2018-01-13 00:34:42 +00:00
Alison Cichowlas
a2cd19e3d1 Screenshot global actions item.
Refactor TakeScreenshot code out of PhoneWindowManager;
add power menu item for Screenshot.

Test: runtest systemui

Change-Id: Ie8602386cd59f8fd991369d2117f7c4d76f65e41
2018-01-12 17:30:41 -05:00
TreeHugger Robot
d4f6cecae3 Merge "Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ... the feedback from API council" 2018-01-12 22:26:03 +00:00
Tony Mak
bece85dd0e Rename trySetQuietModeEnabled to requestQuietModeEnabled as per ...
the feedback from API council

trySetQuietModeEnabled will be kept for a while until next
Launcher prebuilt is dropped.

FIXES: 71818127

Test: Build

Change-Id: I3d4fd64862c7d924b8da630522a30a3899676b4b
2018-01-12 22:25:32 +00:00
Matthew Ng
a8f2426df6 Beginning implementation of quickscrub (1/3)
When enabled via launcher, the home button is able to be be pulled to
the right side to send events to launcher via binder calls of when the
quick scrub operation starts, ends and progress changes between each
interval. Launcher will use this information to determine how the
recents apps are laid out with vibration feedback.

When the home button is pulled and released under 150ms, quick switch
will occur. A binder call will tell launcher to switch to the previous
app used.

While quick scrub or switch is active, launcher will not get any nav
bar motion events, only events for quick scrub and switch.

Bug: 67957962
Bug: 70180755
Test: enable new experience via launcher settings
Change-Id: I344f5d67f259ff454205ea4d2e95140f783d3b5c
2018-01-12 12:24:03 -08:00
TreeHugger Robot
1c90ab5cfa Merge "Keep PowerUI low-battery logic in sync with BatteryService." 2018-01-12 19:54:55 +00:00
Jason Monk
459fee3b0f Follow some slice refactors
Test: make
Bug: 68378561
Change-Id: Ifcf2b426f4984d8dda257b55e59d6da7e8d38237
2018-01-12 09:22:38 -05:00
Makoto Onuki
4a9036bfd9 Keep PowerUI low-battery logic in sync with BatteryService.
BatteryService has been updated already.

Bug: 71707409
Test: Manual test with dumpsys activity service com.android.systemui/.SystemUIService

Change-Id: I5a54a209b4929bf70a665e3b539a63d06eca61d4
2018-01-11 15:41:19 -08:00
Mike Digman
d9ca4189c1 Merge "Add rotate suggestion button by default to left side of navbar" 2018-01-11 22:44:41 +00:00
Lucas Dupin
c80c67e7bc Allow custom keyguard "prompt reason"
Adds the possibility of presenting a custom message on
the keyboard if you're trying to dismiss the keyguard.

This is particularly useful when you're showing the
bouncer because custom authentication (SmarLock)
failed.

Test: launch FLAG_SHOW_WHEN_LOCKED activity and
      call KeyguardManager#requestDismissKeyguard
Fixes: 63940122
Change-Id: I0d88c0e59521887efa56d74874062b2b14970e4e
2018-01-11 13:15:31 -08:00
Mike Digman
7d09277f99 Add rotate suggestion button by default to left side of navbar
Icons, animations are preliminary
Test: manual

Change-Id: If8a6942c1e78f6cfb5aae6d78e6acfa2b0bb6566
2018-01-11 12:10:32 -08:00
Lucas Dupin
606c532dca Merge "Allow custom keyguard transient message" 2018-01-11 17:23:59 +00:00
Salvador Martinez
f9e4750af7 Refactor code to support overridden low battery warning
This adds support for enabling the hybrid notification using data
from Device Health Services.

Test: SystemUITests
Bug: 27567513
Change-Id: I5fae3d85f2d4956210bb067ff7c8b14146c8c89c
2018-01-11 09:14:56 -08:00
TreeHugger Robot
d396b28c20 Merge "Dispatch DisplayCutout from DisplayAdapter" 2018-01-11 16:36:31 +00:00
Adrian Roos
1cf585059c Dispatch DisplayCutout from DisplayAdapter
Adds a config resource to configure the main display's cutout and
dispatches it from the LocalDisplayAdapter.

WindowManager's DisplayContent then transforms it to match the current
rotation.

Also fixes an issue in EmulatedDisplayCutout where the Path was never
reset and changes the color to black. Also fixes the RoundedCorners
overlay such that it can layout within the cutout area.

Test: atest CoordinateTransformsTest DisplayContentTests
Bug: 65689439
Change-Id: If39c8ea3cb55c761517f270dcca292682c0918ad
2018-01-11 15:43:05 +01:00
TreeHugger Robot
2fccc244ed Merge "Import translations. DO NOT MERGE" 2018-01-11 08:43:18 +00:00
TreeHugger Robot
e6050a4a0f Merge changes from topic "messaging_people"
* changes:
  Clipping to the top roundness when scrolling
  Made the notification side paddings consistent
  Changing messaging style and overall visual adoption
  Improved the MessagingStyle API with Person
  Added People to the Notification API
2018-01-11 03:07:09 +00:00
Bill Yi
7a93af6c89 Import translations. DO NOT MERGE
Change-Id: I8582d5451340ebcfcee3abca079ed01d07f3a4cf
Auto-generated-cl: translation import
2018-01-10 17:39:49 -08:00
TreeHugger Robot
1b3adf9470 Merge "Inline noti blocking is now in the form of a question" 2018-01-10 23:49:14 +00:00