Commit Graph

55300 Commits

Author SHA1 Message Date
Jeff DeCew
2a12cfadb4 Merge "New MediaStyle template:" into sc-dev 2021-03-23 02:14:06 +00:00
TreeHugger Robot
3219555346 Merge "Add a block list to IconManager" into sc-dev 2021-03-22 21:15:35 +00:00
Matt Casey
1d7bd5166c Merge "Remove AssistPreviewPanel when orb is not visible." into sc-dev 2021-03-22 18:53:10 +00:00
Matt Casey
76aabd7b3f Merge "Fix CropView sizing on full-width images" into sc-dev 2021-03-22 18:50:15 +00:00
Miranda Kephart
000b1d743a Merge "Allow swipe-dismiss in either direction" into sc-dev 2021-03-22 18:11:46 +00:00
Evan Laird
a725858e64 Add a block list to IconManager
Things are always a little wonky with the status bar icons, but
basically there is one (1) StatusBarIconController which funnels status
icon information to all IconManagers, of which there are typically three
(3) - Regular status bar, keyguard status bar, and quick settings

This CL implements a simple blockList at the IconManager level, so that
icons can be excluded for a given manager (and thus a given UI), and
blocks the following icons from keyguard and status bar: alarm, vibrate/mute

More can easily be added by adding them to the blocklist

Test: manual; atest SystemUITests
Bug: 177323724
Bug: 179830434
Change-Id: I01a9df748f92c086a6e86f1449cae8b4c9c092ca
2021-03-22 18:06:42 +00:00
Peter Kalauskas
b7c6619e19 Merge "Fix TalkBack selection after QS panel open" into sc-dev 2021-03-22 17:44:20 +00:00
TreeHugger Robot
f43e3cabec Merge "Update showing udfps keyguard affordance logic" into sc-dev 2021-03-22 17:07:31 +00:00
Anna Zappone
b7a2c8bd18 Merge "Implement 2x2 layout and text resizing" into sc-dev 2021-03-22 17:01:12 +00:00
Lucas Dupin
c1615dffe1 Merge "Update system palette APIs" into sc-dev 2021-03-22 16:57:17 +00:00
TreeHugger Robot
672f466713 Merge "Fix IntDefs" into sc-dev 2021-03-22 16:49:51 +00:00
Matt Casey
abe60b3500 Merge "Update long screenshot crop per mocks" into sc-dev 2021-03-22 15:50:19 +00:00
Jeff DeCew
ff165814e1 New MediaStyle template:
* Remove all media-specific color extraction and colorization logic
* Remove all 'large icon' gradienting logic
* Simplify base (headerless) style to use a LinearLayout instead of tweaking margins
* Make compact media layout a tweak of the base (headerless) layout
* Make big_media layout a tweak of the big_base layout
* Fix an unnecessary swooping animation that happened on expand
* Ensure RTL layout also works

Fixes: 172652345
Test: manual testing w/ updated notify2
Change-Id: I11c1494c0ac32aaf3e9d2010560cc8f1d8c50037
2021-03-22 11:13:08 -04:00
Anna Zappone
ac9e0f9162 Implement 2x2 layout and text resizing
Expand text to best-fit the layout by calculating maxLines for medium
and large layout.

Bug: 182377480
Test: PeopleSpaceUtils
Change-Id: I980ef776dfdf6e3007b8761ec7e1db3ec5fe5b7d
2021-03-22 15:00:16 +00:00
paulhu
3ce12e7b65 Fix CS external dependencies on SystemUI
- Use formal API getSystemService to get ConnectivityManager.
- Use formal API PackageManager#hasSystemFeature(
  PackageManager#FEATURE_TELEPHONY) to know whether device
  supports telephony.
- Use formal API TelephonyManager#isDataCapable() to know
  whether device has mobile ability.
- Replace NetworkCapabilities#equalsTransportTypes with
  comparing two NetworkCapabilities' transport types directly.
- Replace ConnectivityManager#INET_CONDITION_ACTION by listening
  onCapabilitiesChanged() network callback.

Bug: 183068713
Test: atest SystemUITests
Change-Id: I4a53223f36ea09a062a9ddea668a9d0662f0dbbc
2021-03-22 19:28:40 +08:00
Roshan Pius
2322c835cb NetworkControllerWifiTest: Fix unit test
WifiInfo.makeCopy(boolean) was changed to WifiInfo.makeCopy(long).

Bug: 156867433
Bug: 162602799
Test: Compiles
Change-Id: Idec6165f6cf9819c56513a65c6958f2390cddbfe
2021-03-21 17:56:42 +00:00
Lucas Dupin
6110d25881 Update system palette APIs
UX landed on a format where we have 2 neutral palettes, and 3 accent
palettes. It's the ideal format to play with elevation and hue rotation,
in order to have a more vibrant and less muddy UI.

Fixes: 181986389
Bug: 173553055
Test: atest SystemPalette
Test: atest ThemeOverlayControllerTest
Test: atest ThemeOverlayApplierTest
Test: atest DeviceDefaultThemeTest
Change-Id: I80d3f7d1cc92e97efcb40fe6dc9f09918321d273
2021-03-20 14:50:26 -07:00
Matt Casey
5cc47e5383 Fix CropView sizing on full-width images
Full width images happen when the long screenshot isn't particularly
long, typically an error case.

- Ensure that ImageView and CropView take up the whole space defined by
constraints.
- Set padding on ImageView, factor that padding into the image size
computation for CropView.

Bug: 183278746
Test: Validate correct crop bounds display on a full height and a full
      width long screenshot.
Change-Id: I0f71ddc051f8cf6d295a348fe3cae3cbe00e4077
2021-03-20 17:11:14 -04:00
Matt Casey
4062430f8b Update long screenshot crop per mocks
- Can crop on both axes (for alignment with markup)
- Updated handle drawing
- Vertical dragging is functionally the same, but horizontal dragging is
allowed if vertical hasn't triggered (intentionally giving priority to
vertical since that's the important function here).
- Lots of refactoring in CropView to allow for this without filling it
with switch statements.
- Only showing magnifier for vertical cropping (for now).
- Scrim the long screenshot image but nothing beyond that.
- Lessen scrim opacity

Bug: 180967468
Test: Manual testing
Change-Id: I85593414ab5aca12b365da34529d2033226b1cfb
2021-03-20 15:51:50 -04:00
TreeHugger Robot
563df99655 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-03-20 17:34:08 +00:00
Bill Yi
72ce1491e2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I50082aa0a66f1fdbcd1bc731892ec6111cd8e6b1
2021-03-20 13:24:30 +00:00
Matt Casey
6e67c50402 Merge "Layout and style updates for LongScreenshotActivity" into sc-dev 2021-03-19 23:36:09 +00:00
Peter Kalauskas
751a2c9abb Fix TalkBack selection after QS panel open
Test: Turn on TalkBack, select QS user-switcher icon
Bug: 182401372
Change-Id: I10e12530c9680a61022529817f1868b91b06039a
2021-03-19 15:46:13 -07:00
TreeHugger Robot
30d9c2d2de Merge "Add light reveal for auth from aod" into sc-dev 2021-03-19 21:50:55 +00:00
Beverly
4797761f1d Update showing udfps keyguard affordance logic
- Don't show if QS is expanded

Test: manual
Bug: 183112863
Bug: 175717712
Change-Id: I9836e391d32982613e7a04b4e97bc9f4d8bbf986
2021-03-19 20:45:28 +00:00
TreeHugger Robot
452d2916b9 Merge "Limit primary text color to notification shelf icons" into sc-dev 2021-03-19 20:15:02 +00:00
Matt Casey
b8090a0c40 Layout and style updates for LongScreenshotActivity
- Give save button accent color.
- Remove cancel button (may come back in another form later)
- Share button becomes and icon on the right.
- Edit button moves to the bottom, gets icon + text

Bug: 180967468
Test: Visual eval with light and dark themes
Change-Id: I19ccea06e7dbec47b26ffd0684ebb7e31bdfe8b4
2021-03-19 15:55:08 -04:00
Ying Xu
5a34763729 Merge "Use different slots for no_calling and call_strength icons" into sc-dev 2021-03-19 19:06:41 +00:00
Julia Reynolds
e363bcdbfa Merge "Be more specific about media statuses" into sc-dev 2021-03-19 19:01:23 +00:00
Miranda Kephart
bc2391efa3 Allow swipe-dismiss in either direction
Bug: 181037419
Fix: 181037419
Test: manual
Change-Id: I82cbf434c5ea20fef1100d4ee71cea90720b38b8
2021-03-19 14:56:31 -04:00
Fabian Kozynski
59a2e36b95 Fix IntDefs
Test: build sysui-studio
Bug: 152086714
Change-Id: I0053a7a44273533168bf5bab3d6cf266195bec58
2021-03-19 13:56:20 -04:00
Caitlin Cassidy
aeee47918a Merge "Convert SystemActions to Dagger." into sc-dev 2021-03-19 17:50:24 +00:00
Ady Abraham
97190e25e9 Merge changes from topic "eEarlyWakeup_remove" into sc-dev
* changes:
  rename ExplicitEarlyWakeup -> EarlyWakeup
  Remove ISurfaceComposer::eEarlyWakeup
2021-03-19 17:39:19 +00:00
TreeHugger Robot
15f8f2c5a0 Merge "Update DisabledUdpfsController logic" into sc-dev 2021-03-19 17:36:42 +00:00
Matt Casey
8f9f513c19 Remove AssistPreviewPanel when orb is not visible.
Extract orb logic into a separate controller.

Change-Id: Ibf820c894b1eca9935b1dc37fdd91a2486b54c6c
2021-03-19 13:35:42 -04:00
Beverly
1d82c1f393 Add light reveal for auth from aod
take #1 without any surface effects yet

Vid: https://drive.google.com/file/d/1QjPYUVcrKhroic4yE4rH7bJoUOLMa4TX/view?usp=sharing
Bug: 175717712
Test: manual
Change-Id: I4d1fc700fcf5d060a18b6c623b2b21d9b1298b4b
2021-03-19 17:35:19 +00:00
Sally Yuen
f463575980 Merge "Reduce Bright Colors feature name update" into sc-dev 2021-03-19 17:18:26 +00:00
Julia Reynolds
eb1698b1d3 Be more specific about media statuses
Test: atest ConversationStatusTest
Fixes: 183130972
Change-Id: I0d05619bface3ff633c3bf4c02f8b7bf01876fe8
2021-03-19 15:24:16 +00:00
TreeHugger Robot
6d9d999b50 Merge "Ensure dumpable tag is unique" into sc-dev 2021-03-19 15:18:31 +00:00
Lyn Han
3ed24d80a8 Limit primary text color to notification shelf icons
Leave status bar alone

Fixes: 182923900
Test: visual
Change-Id: Id936b883fefbb90005e3bbd808ed5e929110c3b7
2021-03-19 09:03:51 -05:00
Beverly
1faa1baaa6 Ensure dumpable tag is unique
By appending the current instance to its tag

Test: manual
Fixes: 183137150
Change-Id: I4734a18ea3d5f79c32653e70ebf9216c36594d9d
2021-03-19 09:23:16 -04:00
Fabian Kozynski
84db07434a Merge "Assume wifi is connected if the icon is says so" into sc-dev 2021-03-19 13:14:46 +00:00
Beverly
99782372df Update DisabledUdpfsController logic
Test: manual
Fixes: 183124321
Change-Id: Ic280f8126ea67a21e1427992da3ed67a251a388a
2021-03-19 12:33:56 +00:00
Flavio Fiszman
560acb653b Remove People Tile flag and clean up
Change-Id: Ia4d3f72933bd624fbc414354f8cdca7003737687
Test: manual
Bug: 170396074
2021-03-19 09:27:41 +00:00
Shan Huang
b2e08e976a Merge "Add the charging ripple effect, currently guarded by flag_charging_ripple." into sc-dev 2021-03-19 08:00:23 +00:00
Winson Chung
d3d61ffefe Merge changes from topic "shell_feature_interfaces_reland" into sc-dev
* changes:
  2/ Add mechanism to expose other features directly
  1/ Add mechanism to expose shell feature directly (for Pip)
2021-03-19 06:55:31 +00:00
jasonwshsu
37efae848a Set to accessibility floating menu mode when navigation mode is gestural
cherry picked from commit bc4516eb22

Bug: 173938894
Test: manual test
Change-Id: I2cbe690040a7e4ad15c1340a5ee146eb315b1d27
Merged-In: I2cbe690040a7e4ad15c1340a5ee146eb315b1d27
2021-03-19 13:41:02 +08:00
jasonwshsu
f20f7a11d2 Add the string for the accessibility floating menu tooltip
Cherry picked from commit 232aa33473

Bug: 182532449
Bug: 175365399
Test: build pass
Change-Id: Ie352b1f9274b7f63133d53a1cfe27f6deb4cf00a
Merged-In: Ie352b1f9274b7f63133d53a1cfe27f6deb4cf00a
2021-03-19 13:40:58 +08:00
jasonwshsu
e24d701f4c Handle the phone get booted case to show accessibility floating menu
* AccessibilityManager might not ready when the phone just got booted.

Cherry picked from commit bf0ab7163d

Bug: 173940864
Test: atest AccessibilityFloatingMenuControllerTest
Change-Id: I0339597cd53ca5daade427fef257bfddb3b86bd8
Merged-In: I0339597cd53ca5daade427fef257bfddb3b86bd8
2021-03-19 13:40:49 +08:00
jasonwshsu
5154c4cfae Handle the basic logic to show or hide accessibility floating menu
* AccessibilityFloatingMenuController will listen to the changes from AccessibilityButtonTargetsObserver and AccessibilityButtonModeObserver then handle the visibility of FloatingMenu
* Add abstract class SecureSettingsContentObserver to handle a registry of listeners of specific types and dispatch changes to child

Cherry picked from commit 523514fd24

Bug: 173940864
Test: atest AccessibilityButtonTargetsObserverTest AccessibilityButtonModeObserverTest AccessibilityFloatingMenuControllerTest
Change-Id: I07fded55340644bce84a3f17a7a4da950268d2d2
Merged-In: I07fded55340644bce84a3f17a7a4da950268d2d2
2021-03-19 13:40:45 +08:00