Commit Graph

18487 Commits

Author SHA1 Message Date
Jernej Virag
a027bec760 Merge changes from topic "large-icons-tm" into tm-dev am: c515a0aed9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17104643

Change-Id: I0bf98385f90d557d4c5752d5f368cf19a6c84658
2022-03-15 07:52:55 +00:00
Jernej Virag
c515a0aed9 Merge changes from topic "large-icons-tm" into tm-dev
* changes:
  Size restrict right notification icon size
  Downscale large bitmaps in CachingIconView
  Support downscaling of Drawable icons in LocalImageResolver
2022-03-15 07:36:11 +00:00
Michael Wachenschwanz
3f53035561 Merge "Smear ModemActivityInfo across multiple stats" into tm-dev 2022-03-15 01:26:33 +00:00
Eric Biggers
e945bd62d6 Merge changes from topic "remove-fde" into tm-dev
* changes:
  Remove unused FDE methods from StorageManager
  Stop checking FDE password cache
  Remove checks for FDE in 'adb backup'
2022-03-14 23:03:22 +00:00
Rob Carr
9f33e09f0a Merge "WMS/ViewRoot: Prepare for Async BLAST Sync [1/N]" into tm-dev am: 6caacdcf72
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17100717

Change-Id: Ib978f36892c86f7a5544aefd39a61654fc0ebfd5
2022-03-14 23:03:08 +00:00
Rob Carr
6caacdcf72 Merge "WMS/ViewRoot: Prepare for Async BLAST Sync [1/N]" into tm-dev 2022-03-14 22:48:21 +00:00
Michael Wachenschwanz
be79640cb0 Smear ModemActivityInfo across multiple stats
If ModemActivityInfo is available on a device, smear the provided
transmit and received times across RadioAccessTechnology and frequency
(for NR RAT).

Bug: 207697945
Test: atest BatteryStatsNoteTest
Change-Id: Ifb4e30dc3fa5ac5dd4824a87a7a86c4a0d14d019
(cherry picked from commit e85ac3239e)
2022-03-14 15:16:15 -07:00
Jernej Virag
104e6492b2 Downscale large bitmaps in CachingIconView
CachingIconView is used to displayed (smallish) icons in Notifications. Those can accidentally be made very large if big resources are used.
This makes CachingIconView use LocalImageResolver to load those images with limited size. This fixes large memory use of notification header icons.

Bug: 210690571
Bug: 218845090

Test: Manually on small and large Pixel device with Notification tester APK
      Added Unit Tests to cover this case.
Change-Id: If3d871e788608c1702461d563673560fa18fc53f
2022-03-14 21:51:15 +00:00
Jernej Virag
f450d3c054 Support downscaling of Drawable icons in LocalImageResolver
LocalImageResolver only enforced downscaling for Uri-based Icons at this point. This still allowed app developers to provide large bitmaps as a resource or as a bitmap payload itself. This change also verifies these new types of bitmaps.
Also adds an external size parameter to image resolver so different widgets can use it - right now the upper limit was hardcoded in pixels.

Bug:218845090
Bug:210690571

Test: Manually on device - tested on Raven and new Pixel with multiple
                       notification sizes via notification test apk.
      Unit tests
Change-Id: I504694cb27953bc7950669b1b48f90d2e9c6a68d
2022-03-14 21:51:14 +00:00
Dmitri Plotnikov
e703085f29 Merge "Track CACHED procstate in BatteryStats" into tm-dev am: b79d6441df
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17162687

Change-Id: I4152bee2564a95d25910eaabfaa73ac3f550554a
2022-03-14 20:16:23 +00:00
Dmitri Plotnikov
b79d6441df Merge "Track CACHED procstate in BatteryStats" into tm-dev 2022-03-14 19:42:07 +00:00
TreeHugger Robot
0f837c966b Merge "Defer MessagingMessage#recycle until bind ends" into tm-dev am: ec74b17af9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17160577

Change-Id: I6f9c504aa36aa9a99ec6c1fcd657118f659b3c88
2022-03-14 15:35:43 +00:00
TreeHugger Robot
ec74b17af9 Merge "Defer MessagingMessage#recycle until bind ends" into tm-dev 2022-03-14 15:25:15 +00:00
Andrei-Valentin Onea
f0b2f49a87 Merge "Use apex name when querying privapp allowlists" into tm-dev am: ba30e36310
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17155047

Change-Id: I4e645d59a122a26dae577e9b31de2f9283589fa1
2022-03-14 15:15:29 +00:00
Andrei-Valentin Onea
ba30e36310 Merge "Use apex name when querying privapp allowlists" into tm-dev 2022-03-14 15:11:28 +00:00
Robert Carr
027b59d90a WMS/ViewRoot: Prepare for Async BLAST Sync [1/N]
We would like to make relayoutWindow a non-blocking call,
and of course why not, who likes blocking. However it functions
as a critical path of BLASTSync. To understand why examine the
Guarantee described in BLASTSync.md.

In order to implement this guarantee we need to know
“Which frame has the client finished drawing” when it calls
finishDrawing. The current answer to this question is
“The frame reflecting the state observed in the last call
to relayoutWindow”. The comments on mPending and mCurrentDrawHandlers
also have a lot more context on how this works currently. Since
relayoutWindow has a critical section, it also ensures that changes
to syncable state and preparation of sync will be observed atomically
(since they are both observed over relayoutWindow, which is always
called before any frame drawing updated syncable state).

We design a new protocol described in BLASTSync.md, which uses a seqId
to track which call to finishDrawing reflects which syncable state.
We implement this seqId based system. Unfortunately the WindowManager
doesn’t quite conform to the requirements specified by the protocol,
and a follow up CL ensures that syncable state changes will
always be sent with the seqId.

This CL simply adds the protocol specification and makes some required
interface changes. It can be seen to be a no-op.

Bug: 161810301
Bug: 175861051
Bug: 175861127
Bug: 200285149
Change-Id: If2dea07121fe7de5d2524c5b63678dddf955d4b7
2022-03-14 08:08:40 -07:00
Dmitri Plotnikov
c311349874 Track CACHED procstate in BatteryStats
Bug: 216361629
Test: atest FrameworksCoreTests:BatteryStatsTests

Change-Id: If3ada99a009d09db07f38be1ffb62e86c637e1a3
2022-03-10 17:26:11 -08:00
Rambo Wang
58e76a792e Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" into tm-dev am: 01da996576
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17124493

Change-Id: I2e81cfbbac53828b9cef15399cc318a9817bfee0
2022-03-10 23:54:12 +00:00
Dmitri Plotnikov
886e2fe0f5 Merge "Exclude SDK Sandbox virtual UID from BatteryUsageStats" into tm-dev am: 1f90015283
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17088443

Change-Id: If93fa29ffc54d12506df2b84083da06850c7880e
2022-03-10 23:52:47 +00:00
Rambo Wang
01da996576 Merge "Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener" into tm-dev 2022-03-10 23:26:08 +00:00
Dmitri Plotnikov
1f90015283 Merge "Exclude SDK Sandbox virtual UID from BatteryUsageStats" into tm-dev 2022-03-10 23:25:00 +00:00
Eric Biggers
6ab6ad829e Stop checking FDE password cache
Now that FDE is no longer supported, checking the FDE password cache
will never accomplish anything.  Remove this check from Keyguard, and
remove the supporting code from LockSettingsService.

Bug: 208476087
Change-Id: If1bb80dfcc015aeea19916a88c89a4067e6ada32
(cherry picked from commit e9b69111b2)
Merged-In: If1bb80dfcc015aeea19916a88c89a4067e6ada32
2022-03-10 23:04:38 +00:00
Steve Elliott
88f4dbce89 Defer MessagingMessage#recycle until bind ends
See ag/17158486 for context.

Fixes: 216202070
Test: manual
Change-Id: I924f917fbf757d2c3866fcd60de2fbfccae2eb6a
2022-03-10 16:18:43 -05:00
Julia Tuttle
f5d211c8ce Merge "Make IStatusBarService.clearInlineReplyUriPermissions oneway" into tm-dev am: 835b4f7d63
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17144161

Change-Id: I4cc77fb73b0de97e291d6ac031d06c7e0a6cd6f4
2022-03-10 21:05:31 +00:00
Fabian Kozynski
aed7ff46ca Merge changes from topics "172251878", "presubmit-am-7890421506ee474b9057d3c5d333e341" into tm-dev am: 82b2876457
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17124902

Change-Id: Ida0f9d3874fd53c4da4ac75c81d633598a1a68ce
2022-03-10 20:44:09 +00:00
Dmitri Plotnikov
347638ee5c Merge "Fold SDK Sandbox UID battery stats into parent UID stats" into tm-dev am: 27df8ca365
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17039352

Change-Id: Ic04cf8ebe7105e2074ac148e743ac6e1946b05e4
2022-03-10 20:36:42 +00:00
Derek Jedral
184a1e1e21 Merge "Change LockPatternUtils to return empty list" into tm-dev am: e20b057da5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17128134

Change-Id: I3d81fa5569281c55cb87522484a9d3b46b487ddc
2022-03-10 20:34:47 +00:00
TreeHugger Robot
dca99afb31 Merge "Add a few TODOs for removing getSfInstance" into tm-dev am: 4827ea25a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17084523

Change-Id: I9eb553f66d45556622dee94d55099c8c40988322
2022-03-10 20:33:57 +00:00
TreeHugger Robot
e260fdb2b7 Merge "Introduce a flag to enable shell caption" into tm-dev am: 771ed53fc2 am: 164ca72e0b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17045911

Change-Id: I75e7ff1a6a9ce87aec680606314a6dea97e3d2cf
2022-03-10 20:06:53 +00:00
Rambo Wang
b66e3e3aa8 Introduce CarrierPrivilegesCallback to replace CarrierPrivilegesListener
Add new interface in CarrierPrivilegesCallback to notify the registrants
that carrier service for current user has changed.

Reshape the parameters of onCarrierPrivilegesChanged callback with
both Set instead of List/Array.

CarrierPrivilegesListener is deprecated. Once all clients have migrated
to CarrierPrivilegesCallback, it will be throughly cleaned up.

Bug: 216549778
Test: atest CarrierPrivilegesTrackerTest CarrierServiceTest
Test: atest WifiCarrierInfoManagerTest TelephonyRegistryManagerTest
Test: atest TelephonySubscriptionTrackerTest

Change-Id: I195a99ec6508c7fe3398908bfca632d8446ab29c
2022-03-10 12:00:14 -08:00
Julia Tuttle
835b4f7d63 Merge "Make IStatusBarService.clearInlineReplyUriPermissions oneway" into tm-dev 2022-03-10 19:40:01 +00:00
Fabian Kozynski
82b2876457 Merge changes from topics "172251878", "presubmit-am-7890421506ee474b9057d3c5d333e341" into tm-dev
* changes:
  CompatChange to use hidden API in TileService
  Fix loopers in TileServices
2022-03-10 19:09:25 +00:00
Dmitri Plotnikov
64d4b30850 Exclude SDK Sandbox virtual UID from BatteryUsageStats
Bug: 219077358
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: I42e73348f787841677ce63e8cb2be98a0b8e53e2
2022-03-10 18:18:11 +00:00
Dmitri Plotnikov
27df8ca365 Merge "Fold SDK Sandbox UID battery stats into parent UID stats" into tm-dev 2022-03-10 18:17:38 +00:00
Derek Jedral
e20b057da5 Merge "Change LockPatternUtils to return empty list" into tm-dev 2022-03-10 17:36:21 +00:00
TreeHugger Robot
4827ea25a2 Merge "Add a few TODOs for removing getSfInstance" into tm-dev 2022-03-10 17:28:32 +00:00
Fabian Kozynski
af6c54c109 CompatChange to use hidden API in TileService
This adds a new hidden API in StatusBarManager for active
TileService#requestListeningState. That way, we can verify that the
calling package is the same as the one belonging to the tile.
This is enforced using CompatChange for apps that target T+.

Test: atest StatusBarManagerServiceTest
Test: atest TileServicesTest
Test: atest CtsSystemUiHostTestCases
Test: sample app targetting T
Fixes: 172251878

Change-Id: Ic9b8aca55dcfc2b32b018a5308f19e49a933c4c9
2022-03-10 16:47:27 +00:00
Andrei Onea
37389f61c1 Use apex name when querying privapp allowlists
Per-apex allowlists are stored based on their path, which corresponds
to the apex name and *not* the apex package name. These are the same for
AOSP targets, but for Google specific ones, the apex package name
*typically* is of the form com.google.android.* instead of com.android.*.

Test: m
Bug: 190375768
Change-Id: Iba36509285bd75db294e369088a23b73458f3a8b
2022-03-10 13:27:13 +00:00
TreeHugger Robot
771ed53fc2 Merge "Introduce a flag to enable shell caption" into tm-dev 2022-03-10 09:34:19 +00:00
Yunfan Chen
40c0b8bdb9 Introduce a flag to enable shell caption
A new interface in WindowManagerProxy was introduced to let the shell be
able to set insets with a given frame. The interface won't work for
caption as we applied special logic to assemble the caption frame with
the attached task frame. To make it work with caption insets, we need to
disable all the special logics to make use of the shell interface.

A flag CAPTION_ON_SHELL is introduced to disable the calling path and
enable the above client owned logic. Turn the flag to true when the
caption is moved to shell.

Test: InsetsControllerTest, WindowContainerInsetsSourceProviderTest
Bug: 189998209
Change-Id: I989b319001a118d1f1ff8e34761b39ee18fde335
2022-03-10 16:06:22 +09:00
Sarup Dalwani
bf3f189a34 Merge "Renaming isCredentialSharedWithParent to isCredentialSharableWithParent" into tm-dev 2022-03-10 05:59:57 +00:00
Dmitri Plotnikov
70a3d9e8a4 Fold SDK Sandbox UID battery stats into parent UID stats
Bug: 219077358
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Id1a9ed5865b62bfce6de0bfdefe1528973fd5c3c
2022-03-09 23:54:59 +00:00
Julia Tuttle
4ce8da6789 Make IStatusBarService.clearInlineReplyUriPermissions oneway
Bug: 221201054
Test: tbd
Change-Id: Ib766e7d366b9fb4312b7414cabd59b9ffcb3c6df
2022-03-09 16:38:59 -05:00
TreeHugger Robot
1eb0847ff9 Merge "Make LockPatternView dot hit area circular." into tm-dev am: 68c8926a12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16978906

Change-Id: Id090406079db969ef5719b258c96f6cbb87be963
2022-03-09 18:34:58 +00:00
Aleksandr Litovchenko
15aafa78c9 Make LockPatternView dot hit area circular.
Dot hit area is rectangular. Make it circular to be able to increase the area and preserve diagonal connections.
Cover with tests to ensure that touches handled correctly.

Bug: 204870856
Bug: 215183631
Tests: LockPatternViewTest and manualy on watch and phone
Change-Id: I7d7b539afcdd4d86cb8f828030a2f4866963f8aa
2022-03-09 11:50:49 +00:00
Wu Ahan
766eca41a9 Merge "Add CUJ constants for SUW jank insturmentation" into tm-dev am: b6acbe6ce0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17055967

Change-Id: I441072097ca2b3797ddc0c516b010b42b2ed9e83
2022-03-09 10:34:20 +00:00
Wu Ahan
b6acbe6ce0 Merge "Add CUJ constants for SUW jank insturmentation" into tm-dev 2022-03-09 10:07:42 +00:00
Eric Biggers
031a23fa87 Stop trying to update FDE password from LockSettingsService
Since FDE is no longer supported, updating the FDE password never does
anything.  Stop trying to do so.  Remove updateEncryptionPassword() from
ILockSettings, since its only caller outside of LockSettingsService
itself was in LockPatternUtils, and the previous CL removed that caller.

Bug: 208476087
Change-Id: I46c2a472177836f0c9084e4c3b4ed2e6c0ab61d5
(cherry picked from commit 3762ada110)
Merged-In: I46c2a472177836f0c9084e4c3b4ed2e6c0ab61d5
2022-03-09 03:13:13 +00:00
Eric Biggers
50cfdac9ba Remove clearEncryptionPassword() from LockPatternUtils
Remove this method which cleared the FDE password, since is no longer
used.  It was only being used by the accessibility settings in the
Settings app, and that caller was removed by http://ag/16624515.

Bug: 208476087
Change-Id: If0c75774555d3503f21857e66cce527c5edfa586
(cherry picked from commit 8e265a9fd3)
Merged-In: If0c75774555d3503f21857e66cce527c5edfa586
2022-03-09 03:12:59 +00:00
Eric Biggers
87d60042aa Merge "Stop trying to get/set fields in FDE footer" into tm-dev 2022-03-09 03:08:05 +00:00