Commit Graph

640958 Commits

Author SHA1 Message Date
Lyn Han
03e6e45085 Fix stack overflow from setOwnScrollY
Fixes: 186961122
Test: manual
Change-Id: I12eebfdfe5d6ed93be349957baf84fad4f725648
2021-05-04 15:02:11 -05:00
Sunny Goyal
1a62ef4056 Removing generalization from OneHandledAnimationController
Bug: 152086714
Test: Manual
Change-Id: I812c4c7163dc55a1e76b6423fd4fc9fce20f8a9a
2021-05-04 12:56:52 -07:00
Corina Grigoras
df2e7b8839 Merge "Revert "Restore file truncation where expected."" into sc-dev 2021-05-04 19:53:57 +00:00
Evan Laird
7302505c7d Use synchronize instead of Assert.isMainThread
DemoModeController tried to make sure adding callbacks always happened
on the main thread. But it's breaking some tests if it somehow gets
instantiated (lazily, by Dagger) on a background thread.

It should be fine to just use a couple of locks and call it a day, but
eventually it'd be better to fix that dagger problem...

Test: atest SystemUITests
Fixes: 170122983
Change-Id: Ieff52b268aec4194e932823353c739c1e0641acc
2021-05-04 15:43:34 -04:00
Josh Tsuji
d5158473b0 Force the volume seekbar to LTR, since it's rotated and will be upside-down in RTL if we don't.
The volume seekbar contains no text, so this is fine.

Fixes: 182833216
Test: change phone to hebrew, see that it's not upside down, get stuck figuring out how to get back to language settings, figure it out, switch to english, see that it's also not upside down
Change-Id: Iea6896ecb6f0796076330761a10140d5cee8bfbf
2021-05-04 19:38:52 +00:00
chaviw
80bb00b977 Capture layer and children when calling takeSurfaceControlScreenshot
When calling UiAutomationConnection.takeSurfaceControlScreenshot, it
should capture the requested SurfaceControl and its children. The
current code only captures the children. Therefore, call setChildrenOnly
with false to ensure it captures the parent, as well.

Test: ASurfaceControlTest
Bug: 185390632
Change-Id: I62707f808934177c8db05485ac28559982b8c607
2021-05-04 14:32:48 -05:00
Fabian Kozynski
cd7ecf7db2 Add chevron to tiles that expand instead of toggling.
Logic for side view:
* If the tile has a sideViewCustomDrawable, show that regardless of
State
* Else, if the tile is not Boolean or the state has forceExpandView, it
shows a chevron.
* Else, show nothing.

Test: atest com.android.systemui.qs
Test: manual
Fixes: 187057842
Change-Id: Ib9407914f4fbe5ac833b06008fc405435d0c45b0
2021-05-04 15:29:29 -04:00
Fabian Kozynski
9c8de7bdf1 Refactor QSTileView hierarchy
This CL collapses the hierarchy QSTileBaseView - QSTileView -
QSTileViewHorizontal into QSTileViewImpl. This can be done because now
there's a single type of view for the tiles. The benefit of this is that
we do not have to hack our way to undo things that are done in parent
classes. As part of this remove a lot of unnecessary files.

As part of this, bring some colors/sizes up to spec and make sure that
the sizes are reloaded in config changes.

Test: manual
Test: atest com.android.systemui.qs
Fixes: 187061459
Bug: 186057842
Change-Id: I63dbe8fa2b44833c11a486e84195e33e170c6f58
2021-05-04 15:28:01 -04:00
Sahana Rao
8f28e57780 Merge "Change hasRequestRawExternalStorageAccess() to return integer" into sc-dev 2021-05-04 19:19:17 +00:00
Lyn Han
e7f4edff9a Merge "Remove shade peek" into sc-dev 2021-05-04 19:17:01 +00:00
Ying Xu
b466835cfe Merge "Replace the no calling icon" into sc-dev 2021-05-04 19:10:02 +00:00
Kelvin Zhang
a48c18e3df Call apexd's API to allocate space before install non-AB package
When installing a non-AB package, if the OS comtains compressed apexes,
we need to allocate space for these apexes so that they can be properly
decompressed on the next reboot.

Test: adb shell cmd recovery install-package /data/ota_package.zip
Change-Id: Ia40d0614e0e724cfb17e91720ec88a15795bd8ee
2021-05-04 15:07:56 -04:00
Alina Zaidi
54c9d7e9cb Add null check in AppWidgetProvider#loadDescription before calling
CharSequence#toString()

Bug: 186789881
Test: Not needed for a null check.
Change-Id: I015ba5943ca3aa218048fe2d11ebd501b5ddab07
2021-05-04 19:07:36 +00:00
Heemin Seog
ca5c208082 Merge "Change generic container ids to be more specific" into sc-dev 2021-05-04 19:01:58 +00:00
Almaz Mingaleev
327db7857d Merge "Consider equivalent time zone IDs as equal in metrics." into sc-dev 2021-05-04 18:57:26 +00:00
Beth Thibodeau
98ba6e9810 Merge "Update media colors for dark mode" into sc-dev 2021-05-04 18:52:08 +00:00
Dave Mankoff
a759abbe4b Merge "Mkae SysUIPlugins its own gradle target." into sc-dev 2021-05-04 18:44:10 +00:00
Alex Buynytskyy
915f8bdaba Merge "Customer API feedback." into sc-dev 2021-05-04 18:37:19 +00:00
TreeHugger Robot
5f7a2017ef Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-05-04 18:30:52 +00:00
Fabian Kozynski
e998a27599 Merge "Show privacy chip in QQS" into sc-dev 2021-05-04 18:27:38 +00:00
Jing Ji
a08dcc7ccb Merge "Use ActivityManagerService global lock in dumpHeap" into sc-dev 2021-05-04 18:27:35 +00:00
Stanislav Zholnin
321827b7f9 Merge "Add extra documentation to DiscreteRegistry." into sc-dev 2021-05-04 18:21:07 +00:00
TreeHugger Robot
6dbd56f8cf Merge "Add support for manifest based opt-in for game modes" into sc-dev 2021-05-04 18:14:47 +00:00
Mady Mellor
0e8c1789f9 Merge "Don't auto expand the bubble when it's marked as priority" into sc-dev 2021-05-04 18:14:06 +00:00
Kohsuke Yatoh
19734ab0d7 Merge "Use FontManager Java API in tests." into sc-dev 2021-05-04 18:02:07 +00:00
Michał Brzeziński
d319fb0081 Merge "Fixing notifications background in split shade mode" into sc-dev 2021-05-04 17:57:25 +00:00
Matt Pietal
d5ea029ae6 Smartspace - Support Do Not Disturb
Add support for systemui to inform smartspace about do not disturb
settings. Address some minor spacing issues. Fix how smartspace loads
through dagger.

Fixes: 185970916
Test: atest KeyguardClockSwitchControllerTest
Change-Id: Id19244ceb45fb70a28d780fa5edefab35a5e42c4
2021-05-04 13:53:21 -04:00
John Reck
12bb4739d2 Don't animate invisible views
Bug: 184230269
Test: wasn't
Change-Id: Iec6eefedc2c82750ea721ae3d1184be1939066ef
2021-05-04 13:53:01 -04:00
Ryan Mitchell
556d84ca6c Merge "AAPT2: Only print last uses-sdk tag" into sc-dev 2021-05-04 17:47:50 +00:00
Andrei-Valentin Onea
1d995bb5e7 Merge "Remove non-updatable-* prefix from .txt files" into sc-dev 2021-05-04 17:46:15 +00:00
Evan Laird
994a35d5a6 Merge "Privacy chip (2/many)" into sc-dev 2021-05-04 17:42:33 +00:00
Daniel Sandler
6fe7874dcb Merge "SystemUI: Set usesPermissionFlags="neverForLocation"" into sc-dev 2021-05-04 17:42:29 +00:00
Lyn Han
317e3b44fd Appear notifications at min height instead of 0 height
Bug: 172289889
Test: manual
Change-Id: I6705c468c37eaab52e8be5eda0e27ea05d4788b7
2021-05-04 12:42:28 -05:00
Ryan Mitchell
ad49736def Merge "Add aapt to aapt2_artifacts" into sc-dev 2021-05-04 17:41:05 +00:00
Michael Wright
e3912446ec Create Java interface to SensorService.
This is in preparation for adding some system_server-only, non-binder
APIs, which mean we need to keep a handle to the actual class and not
just the binder interface.

Bug: 175793106
Test: boots, sensors work
Change-Id: I83dcaee53ac52e95aa238a8fa9b875caeeddc725
2021-05-04 18:33:30 +01:00
Beth Thibodeau
0c23fa42a8 Update media colors for dark mode
Media colors should be the same regardless of dark mode, and defining them
in styles lets us reference themed colors. Also removed color-related code
that wasn't necessary

Fixes: 186880803
Test: visual, toggle dark mode and change themes

Change-Id: If762cd27c6c9b3db9c31daf33b82850fd1e6e2f1
2021-05-04 13:11:10 -04:00
Mady Mellor
16529a2613 Merge "Bubbles: fix some issues with the pointer" into sc-dev 2021-05-04 16:47:23 +00:00
Zimuzo Ezeozue
4bd44ce7aa Merge "Reduce log severity for transcode fd conversion failure" into sc-dev 2021-05-04 16:28:49 +00:00
Kohsuke Yatoh
129c595177 Merge "Make UpdatableSystemFontTest device side test." into sc-dev 2021-05-04 16:26:37 +00:00
Josh Tsuji
ca0a24838a Ensure that revealAmount = 0 doesn't leave an oval on the right side of the screen.
This is done by animating the bounds to a height of 0, and fixing a bug where if the height was 0, we wouldn't draw anything (we should draw the end color in that case). This also fixes a bug where the scrim was not properly initialized.

Bug: 187072550
Test: manual
Change-Id: I3b1224d196cff6045624a527f488f394929f7423
2021-05-04 12:23:56 -04:00
Inseob Kim
0bc6f0f6be Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036 am: 77b8f5858f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587

Change-Id: I540e6e54f2a345372dd2e95a2eaeecb32afe747b
2021-05-04 16:21:02 +00:00
Fabian Kozynski
4e8ea21279 Change secondary label for Work mode tile
Test: manual
Fixes: 187155474
Change-Id: I5eade3390fba20ef0002b024a3dbc1eb25a868b5
2021-05-04 12:17:01 -04:00
Bernardo Rufino
9195a05cc8 Merge "Exempt the default browser from trampoline restrictions" into sc-dev 2021-05-04 16:15:24 +00:00
Fiona Campbell
304e35e30d Save display persistent data store
Fixes the fact that brightnesses weren't saved over reboots since it was previously save very infrequently.
Save persistent data store when device locks or sleeps.

Bug: 185440868

Test: manual
Change-Id: I5ddf142787f2f71d19ab37777dcea9eac1084d21
2021-05-04 17:09:33 +01:00
David Su
580522c0d9 Merge "Allow usage of SdkLevel in the framework/wifi services" into sc-dev 2021-05-04 16:08:44 +00:00
Inseob Kim
77b8f5858f Merge "Add an api for platform sepolicy version to vintf" am: 3ea60e26f5 am: 5c50929036
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1689587

Change-Id: I88e2475ed84a11cb88995dc1cc33c9398a217507
2021-05-04 15:59:50 +00:00
Lucas Dupin
ad070286d6 Add shade 10 to system palette
Fixes: 186851836
Test: manual
Test: atest SystemPalette
Change-Id: Ic594c7f9079703f4ab664871519a900c69e124bd
2021-05-04 08:53:21 -07:00
Julia Reynolds
2d880ae90a Merge "Update the conversation priority flow" into sc-dev 2021-05-04 15:41:59 +00:00
James.cf Lin
1cad8f9faf Remove the unnecessary RCS API RcsFeature#removeCapabilityExchangeImpl
Bug: 184602965
Test: atest -c CtsTelephonyTestCases:android.telephony.ims.cts.ImsServiceTest
Change-Id: Iec5fffecb9a2b8e1fb9ec47608e8316ae844037a
2021-05-04 23:40:18 +08:00
Michal Brzezinski
aaf780263a Fixing notifications background in split shade mode
Notification background was not showing up when going from lockscreen to
shade directly with swipe down. ScrimState is changed then and only in
SHADE_LOCKED notification scrim alpha should depend on interpolated
fraction

Fixes: 186864180
Test: manual
Change-Id: I75468a92a6d0dd27c32b2eb5c5b0f90e48a4ff67
2021-05-04 15:39:51 +00:00