Commit Graph

9749 Commits

Author SHA1 Message Date
TreeHugger Robot
1245bca3be Merge "Add name to conversation channels" 2020-01-21 22:34:35 +00:00
Lucas Dupin
c1df8667ea Merge "Expose blurs to SurfaceControl" 2020-01-21 21:55:13 +00:00
Miranda Kephart
cec4ff9940 Merge "Implement visual spec for screenshots corner flow" 2020-01-21 21:30:48 +00:00
Julia Reynolds
f2acd60356 Add name to conversation channels
When shortcut doesn't exist

Test: atest
Bug: 137397357
Change-Id: I27fd260a23e7546a4d437f1a8fd57edc2d990b06
2020-01-21 21:22:32 +00:00
Miranda Kephart
43c0296b5b Implement visual spec for screenshots corner flow
Bug: 147423001
Test: tested behavior both in old and new flows (no change to
notifications flow; visual changes to new flow)

Change-Id: If3a170c73609edb4f74db81b9109d83cc160b206
2020-01-21 15:17:16 -05:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
Lucas Dupin
991415e732 Expose blurs to SurfaceControl
SurfaceControl now has #setBackgroundBlurRadius, which receives a radius in pixels
pointing out how much the content behind the current window should be blurred.

Bug: 141640413
Test: visual; on power menu and shade
Test: adb shell dumpsys activity service com.android.systemui
Change-Id: I367f8a7199d5b37ad476d3c2bc02c8900f8c1f9e
2020-01-20 13:49:46 -08:00
TreeHugger Robot
77a699ba78 Merge "Import translations. DO NOT MERGE" 2020-01-20 20:02:31 +00:00
Charles Chen
eb0ebddc1a Merge "Split status bar window (1/N)" 2020-01-20 17:23:36 +00:00
Bill Yi
9fd7e4b2f1 Import translations. DO NOT MERGE
Change-Id: I40b1ea1843969b7c147df3875a12cef988895ec2
Auto-generated-cl: translation import
2020-01-19 10:10:21 -08:00
Jian-Yang Liu
452f8d67a1 Merge "Updated StatusBarIconController and StatusBarSignalPolicy to check icon blacklist from config value, config_statusBarIconBlacklist." 2020-01-17 18:20:54 +00:00
wilsonshih
e832194dd0 Split status bar window (1/N)
This is the first step to create another new window for status bar.

Small window => TYPE_STATUS_BAR: The bar on top of screen.
Large window => TYPE_NOTIFICATION_SHADE: Anything else.

Bug: 136993073
Test: build then flash
Test: atest WmTests SystemUITests
Test: atest RegisterStatusBarResultTest InsetsFlagsTest

Manual Test:
- Bouncer can show when leave showWhenLocked activity.
- StatusBar can show when comes HUN in fullscreen mode.
- StatusBar can play enter/leave animation in fullscreen mode.
- Able to drag notification panel when bubble/glow existing.
- Switch to market launcher, and run above tests.
- Drag notification panel from launcher several times and observe it
  works fine.

Change-Id: Id9f72cd0e21f01b50d57f02ea60f97c6460926b7
2020-01-17 15:33:56 +00:00
Sergey Nikolaienkov
3e2fee260e Fix sizes of audio recording indicator
Scale down audio recording indicator to the correct sizes

Change-Id: I605db58581a237dd4f393460586223e2cb9bef6d
Bug: 142228704
Test: make SystemUI, atest android.host.systemui.TvMicrophoneCaptureIndicatorTest
2020-01-16 18:50:07 +00:00
JianYang Liu
e8df04cc11 Updated StatusBarIconController and StatusBarSignalPolicy to check icon
blacklist from config value, config_statusBarIconBlacklist.

Bug: 118675475
Test: Manual
Change-Id: I44dd1d007d3f7b9b435eceb273ecf333aef7cef4
2020-01-16 18:47:06 +00:00
TreeHugger Robot
0b56225ecf Merge "Add screen recording QS tile" 2020-01-15 21:29:10 +00:00
Fabian Kozynski
d31226a0a6 Merge "Adding controllers for Controls" 2020-01-15 21:10:00 +00:00
TreeHugger Robot
458fbcba7f Merge "Add conversation-centric inline controls" 2020-01-15 19:09:53 +00:00
Fabian Kozynski
f10b6ab522 Adding controllers for Controls
This CL adds the following controllers for dealing with Controls in
SystemUI:

* ControlsController - Handles favorites and communication with other
controllers
* ControlsBindingController - Handles binding to the different services
and comunication with them.
* ControlsProviderLifecycleManager - Handles binding with one service
and forwards API calls to it.
* ControlsListingController - Handles finding and listing apps that
satisfy the service requirement

Additionally, this CL adds first versions of the management screen to
add or remove favorites. These are persisted.

To enable:
* adb shell settings put secure systemui.controls_available 1
* restart

To launch management activity:
* Enable controls
* adb shell am start
com.android.systemui/.controls.management.ControlsProviderSelectorActivity

Missing from this CL:
* Multi user support
* Documentation in the controller classes
* Graceful rebinding
* Throttling of Binder calls
* Better dumps

Test: atest com.android.systemui.controls
Test: manual testing of favorite management activities
Bug: 147732882

Change-Id: Ib4932b7f8fd3f2e3ee0ef1c28ddda1bec66c41e4
2020-01-15 10:27:32 -05:00
Julia Reynolds
12ba4cf7a8 Add conversation-centric inline controls
Round one - needs polish, and actions may be added or removed
in the future, and demote isn't working yet.

Bug: 137397357
Test: atest
Change-Id: Ia52598bec58fc54b8bde29168cd419a24d1e4dab
2020-01-15 10:20:29 -05:00
Miranda Kephart
ed32ca16d4 Merge "Add ScreenshotActionChip class" 2020-01-14 22:23:01 +00:00
Matt Pietal
c870f5a99a Merge "Controls - Add optional power menu layout" 2020-01-14 14:14:50 +00:00
Miranda Kephart
6b655af7fe Add ScreenshotActionChip class
Handles setting chip text and icon correctly.

Bug: 147423001
Test: manual

Change-Id: I4cdb7a0caf818e043951615a511be1a230b77c02
2020-01-13 17:16:55 -05:00
Automerger Merge Worker
09f33b6fba Merge "Change layout of ToggleAction for GlobalActionsDialog" am: edabed7fb7 am: 8c69f7b36c am: ba0bac5e95
Change-Id: I2dea44a3ed9f266b3dc1605747d44d9a7b370ec7
2020-01-13 19:38:02 +00:00
Automerger Merge Worker
ba0bac5e95 Merge "Change layout of ToggleAction for GlobalActionsDialog" am: edabed7fb7 am: 8c69f7b36c
Change-Id: Iadd8f83066f1c68da7884e0821921a85077b2116
2020-01-13 19:23:24 +00:00
Miranda Kephart
5848fb8f8d Merge "Fork GlobalScreenshot into notif vs corner flows" 2020-01-13 16:23:27 +00:00
Miranda Kephart
63e65a9626 Fork GlobalScreenshot into notif vs corner flows
Moves GlobalScreenshot into two different files: GlobalScreenshot
(with the new corner flow) and GlobalScreenshotLegacy (with the
previous notifications flow). This is to allow easier iteration on
the new flow; once it is fully tested, the notification/legacy
version will eventually be removed.

Bug: 137153302
Bug: 147423001
Test: tested old and new flows to ensure no user-visible changes; also
tested smart screenshots in old flow to ensure no behavior change
Change-Id: Ia776e2a7c2e8d0d298ea3e0f18f3419aa2b64415
2020-01-13 16:23:06 +00:00
Beth Thibodeau
77c2545dd9 Add screen recording QS tile
Currently defaults to no taps, no audio. This adds a 3s countdown before
actually launching the recording, which can be stopped from either the
notification or the tile.

Bug: 137153302
Test: manual
Change-Id: I0e194dc8d43d8834e07e1f6d8de90a2c703a4c3a
2020-01-10 15:05:49 -05:00
TreeHugger Robot
c20fe0ccae Merge "Fix crash and QQS session issues, visual updates" 2020-01-10 08:01:03 +00:00
Beth Thibodeau
899b595028 Fix crash and QQS session issues, visual updates
- Fix crash when null session token
- Only update QQS when it gets a different and active media session
- Fix crash when changing dark mode, due to QQS width/height calculated as 0
- Move QS carousel layout to xml
- Increase horizontal spacing for QQS player
- Tapping QQS player opens the app
- Use play button icon instead of restart icon when media session was ended

Fixes: 146897913
Fixes: 146561456
Test: manual, switch between two different sessions from QS and observe QQS
updates correctly

Change-Id: I5a93a2a9d7037572561a0479365c022013e05ec7
2020-01-09 15:36:19 -05:00
Dave Mankoff
af8163f77d Revert "Revert "Refactor PanelView and NotificationPanelView into Controllers.""
This reverts commit da13c3fd3d.

This includes a fix for the original issue - an NPE in
NotificationPanelView.

Bug: 147295216
Change-Id: Id1a71b0e30aada460a70d738c5451e21dd412a7a
Test: atest SystemUITests
2020-01-08 14:55:19 -05:00
Zhuoyao Zhang
b2c90b1e3c Merge "Revert "Refactor PanelView and NotificationPanelView into Controllers."" 2020-01-08 18:53:06 +00:00
Zhuoyao Zhang
da13c3fd3d Revert "Refactor PanelView and NotificationPanelView into Controllers."
Revert "NoticationPanelView now has a controller."

Revert submission 9930899-b141751146-npv-controller

Reason for revert: b/147295216
Reverted Changes:
I9a92cad63: Refactor PanelView and NotificationPanelView into ...
I454bc4790: NoticationPanelView now has a controller.

Change-Id: Iae9db40e9385e1b88bd2f5f162a5f6d53d91878d
2020-01-08 18:30:30 +00:00
TreeHugger Robot
5ba7d903a6 Merge changes Id007cc64,I94afce96
* changes:
  Minified people row
  Current user and work profile availability in peoplehub
2020-01-08 17:33:43 +00:00
Matt Pietal
fd3b6cb28c Controls - Add optional power menu layout
Begin to support additional power menu layout for controls. This moves
the global actions button to the top of window, and begins to add
support for a scrollable view. Very PoC. To enable:

adb shell settings put secure systemui.controls_available 1

Test: atest
Change-Id: Iaf493a6f3035db1a1859d94fb8a0487a1d4af8db
2020-01-08 12:28:19 -05:00
Steve Elliott
d991c048bc Minified people row
Bug: 146664602
Test: manual, atest
Change-Id: Id007cc64a6d37dea51bbdd5d70d7eac4df7556ac
2020-01-08 11:19:48 -05:00
TreeHugger Robot
c7ce0f2dde Merge changes from topic "aae_navbutton_refactor"
* changes:
  Move attrs_car from SysUI to attrs in CarSystemUI
  Merge CarFacetButton and CarNavigationButton into a single class and add test coverage
2020-01-07 17:54:22 +00:00
Dave Mankoff
59b9496c7b Refactor PanelView and NotificationPanelView into Controllers.
Bug: 141751146
Test: atest SystemUITests
Change-Id: I9a92cad636e30634ac5b1fa16121d320991492c2
2020-01-06 14:56:26 -05:00
Bill Yi
79cd97d3ca Import translations. DO NOT MERGE
Change-Id: Idcd6cf3fb55de36ded9c2a077f59792d97725e8d
Auto-generated-cl: translation import
2020-01-05 17:05:23 -08:00
TreeHugger Robot
7017d7f3f3 Merge "Import translations. DO NOT MERGE" 2020-01-02 08:38:56 +00:00
Bill Yi
05f430e8c7 Import translations. DO NOT MERGE
Change-Id: Ia80514e3eaa52873d6d4f690f7809c5c71cc4baf
Auto-generated-cl: translation import
2020-01-01 13:00:04 -08:00
TreeHugger Robot
7bc569e7e5 Merge "Add NotificationChannels back for TV variant." 2019-12-31 14:57:33 +00:00
Robin Lee
2a3451b2b3 Add NotificationChannels back for TV variant.
This allows PiP to post notifications properly again.

Bug: 147004007
Test: adb shell input keyevent WINDOW
Change-Id: Ifdce6addfeae854ecc2021946c5a6f8d818f23df
2019-12-30 19:20:29 +01:00
Narayan Kamath
1fe15700f7 SystemUI: Remove stray space at the end of a sentence.
In the interests of grammatical accuracy. Was also confusing
to the localization team.

Test: manual
Bug: 146821690
Change-Id: I1404423e29904052a899aa406adf17417be67914
2019-12-27 13:06:49 +00:00
Koji Fukui
5c010eebf2 Change layout of ToggleAction for GlobalActionsDialog
Layout of SinglePressAction was changed on Android 10, but ToggleAction
did not changed.
As a result, GlobalActionDialog menu is inconsistent layout when
ToggleAction is used.

We change to load the same layout resource for each Actions.
And show state of ToggleAction as single line.

Bug: 144680446
Change-Id: I75e07ea04450a2ecc91d5883711381deb72aa982
2019-12-24 17:47:33 +09:00
kwaky
54bef9dd11 Move attrs_car from SysUI to attrs in CarSystemUI
Bug: 146513202
Test: Build, Manual, and Unit Tests still passing
Change-Id: Idd6e58e27e6de909ba20481513112b9abd689571
2019-12-23 17:00:29 -08:00
kwaky
77d81dc6ac Merge CarFacetButton and CarNavigationButton into a single class and add test coverage
Test: Manual - Manually verified that navigation button functionalities are working as expected.
      Unit Tests
Bug: 145827784
Bug: 145604656

Change-Id: Ib8f837ba34afbb8d66092a8b851b93c50fa20b26
2019-12-23 16:58:17 -08:00
TreeHugger Robot
cbb570901c Merge "Change media projection permission dialog." 2019-12-19 12:38:27 +00:00
Automerger Merge Worker
153d0c36e7 Merge "Remove keyguard_indication_area_overlay" into qt-qpr1-dev am: ad00dc0482
Change-Id: Idc63743f4b924b9132062956f62e5ec4d62770af
2019-12-18 18:42:19 +00:00
Lucas Dupin
ad00dc0482 Merge "Remove keyguard_indication_area_overlay" into qt-qpr1-dev 2019-12-18 18:29:07 +00:00
Automerger Merge Worker
872b451e77 Battery Saver capitilized in tile am: 730fc5b2c9 am: 9315c09b30
Change-Id: I0777856e60828bd739737779b92b9fd1ac0363a3
2019-12-18 02:58:37 +00:00