Commit Graph

16342 Commits

Author SHA1 Message Date
Treehugger Robot
f22f8c702d Merge "Do not canonicalize overlay config test paths" am: e2ddd9d277 am: 4c656c86bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1725991

Change-Id: I5806544243cc7e849e2612c217d73a659e40412b
2021-06-04 17:50:31 +00:00
Treehugger Robot
e2ddd9d277 Merge "Do not canonicalize overlay config test paths" 2021-06-04 17:04:49 +00:00
Wu Ahan
a8631c1486 Merge changes from topic "unlock_jank_instrument" into sc-dev am: 924618b41c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14419588

Change-Id: Ie9e92295519be25bcdbaf889d0a16cfd40075a98
2021-06-04 05:38:13 +00:00
Wu Ahan
924618b41c Merge changes from topic "unlock_jank_instrument" into sc-dev
* changes:
  Instrument jank and latency of the unlock animation of lockscreen
  Support configuration as parameter while beginning the instrumentation
2021-06-04 04:19:38 +00:00
Joe Bolinger
9c613a484d Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev am: 896ac3e18f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823790

Change-Id: Ia43474de4d06c8809543f51d36c7198e445e0d3c
2021-06-04 00:17:25 +00:00
Joe Bolinger
896ac3e18f Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev 2021-06-04 00:12:40 +00:00
Joe Bolinger
9f685a9fa7 Fix feedback and animations for face to fingerprint fallback authentication.
Bug: 189164072
Test: atest com.android.systemui.biometrics com.android.server.biometrics
Change-Id: I7fe8085dc4a4994c591bb4be20309ffb46bb06e9
2021-06-03 14:41:29 -07:00
Jing Ji
700394acca Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev am: d1c9c0785c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804421

Change-Id: Idf5b8833ea8efa7496d6647300459a4410fca9bd
2021-06-03 21:29:21 +00:00
Jing Ji
d1c9c0785c Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev 2021-06-03 21:15:33 +00:00
Jeff DeCew
07952f728a Merge "Always highlight unread count" into sc-dev am: 834bf3a8e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805378

Change-Id: If94087c14df737d6cc60e7f5c4e0b7d5fc06c36e
2021-06-03 18:43:38 +00:00
Jeff DeCew
834bf3a8e0 Merge "Always highlight unread count" into sc-dev 2021-06-03 18:16:26 +00:00
Jeff DeCew
87e78d4d30 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev am: a39cdd1273
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805375

Change-Id: I29d07b8eb7d1c5952513476a3f2289691fbeb13d
2021-06-03 17:25:42 +00:00
Dmitri Plotnikov
002a897990 Merge "Store binder thread CPU times in the summary parcel" into sc-dev am: 80efce1f41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737123

Change-Id: Idc3e9c95d9634bf77394c54d99cd429f3bb0b726
2021-06-03 17:25:07 +00:00
Jeff DeCew
a39cdd1273 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev 2021-06-03 17:04:50 +00:00
Dmitri Plotnikov
80efce1f41 Merge "Store binder thread CPU times in the summary parcel" into sc-dev 2021-06-03 17:04:19 +00:00
Jeff DeCew
7f8bcb8add Always highlight unread count
Fixes: 188646708
Test: get unread count within a group
Change-Id: I41d67e5e488e0d3dbc3873d6d50d55ec4ab8c9f2
2021-06-03 11:50:28 -04:00
Jeff DeCew
e0fb0e6162 Remove redundant margin update, which caused infinite layout loop.
Fixes: 186217151
Fixes: 183970366
Test: altered build to always show feedback icons, then exhaustively tested conversation notifications.
Change-Id: I19a1428d7fcda35efc3d15b198c5b8d04a30d869
2021-06-03 10:57:25 -04:00
John Tsai
1feca3fd23 Merge "Revert "Release cblocks back to the free pool"" into sc-dev am: 5d1934f765
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14809870

Change-Id: I963556bc97384196c780b2f8bce8c5a869f53d7a
2021-06-03 02:33:21 +00:00
John Tsai
5d1934f765 Merge "Revert "Release cblocks back to the free pool"" into sc-dev 2021-06-03 02:13:03 +00:00
John Tsai
516cb2d025 Revert "Release cblocks back to the free pool"
This reverts commit e41b029d85.

Reason for revert: b/189985437

com.android.tradefed.targetprep.TargetSetupError[APK_INSTALLATION_FAILED|520001|DEPENDENCY_ISSUE]: Failed to install com.android.devicehealthchecks with ...

Change-Id: I06fe7d94f6dab474c74b093de8692f08d4031b62
2021-06-03 02:10:26 +00:00
Svetoslav Ganov
94893b35e0 Merge "Switch media fw permissions checks to AttributionSource" into sc-dev am: 1028eb2f62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14664152

Change-Id: I1403b08f25c663715fd0a99a40f484a4e7ecf410
2021-06-02 23:19:16 +00:00
Svetoslav Ganov
1028eb2f62 Merge "Switch media fw permissions checks to AttributionSource" into sc-dev 2021-06-02 23:07:22 +00:00
Jing Ji
e2c4bcbf13 Remove some system_server_wtf in proc stats tracking
As those could be valid cases

Bug: 18643865
Test: Manual
Change-Id: I3391af28d8fe59e84b27a32889a6f4a4eaa42dea
2021-06-02 15:03:26 -07:00
Ryan Mitchell
2c9685573f Do not canonicalize overlay config test paths
Some devices may not have certain partitions available and the
OverlayConfigTests use hardcoded paths to test OverlayConfig
functionality. This change ensures that the temporary directory
created to test OverlayConfig has all of the partitions defined in
PackagePartitions#SYSTEM_PARTITIONS within it.

Bug: 187020117
Bug: 187020675
Test: atest OverlayConfigTest
Change-Id: I511e24b7ccfe82e6e89ceea7107457439793ef77
2021-06-02 21:12:18 +00:00
Patrick Baumann
0fe981de59 Merge "Release cblocks back to the free pool" into sc-dev am: 81858ab41c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14736611

Change-Id: I3d4991f62de1a67103c7d4ebc367e5719654f619
2021-06-02 20:49:22 +00:00
Patrick Baumann
81858ab41c Merge "Release cblocks back to the free pool" into sc-dev 2021-06-02 20:35:15 +00:00
Song Hu
0e2a5da970 Merge "Add sharesheet logging for empty direct share row and app share prediction timeout." into sc-dev am: 2ab80e4562
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14788759

Change-Id: Iee0aa9612ec59c7f24e6c46fdc9b74c58c10d79f
2021-06-02 19:27:19 +00:00
Song Hu
2ab80e4562 Merge "Add sharesheet logging for empty direct share row and app share prediction timeout." into sc-dev 2021-06-02 19:03:16 +00:00
Song Hu
8b352b94c0 Add sharesheet logging for empty direct share row and app share
prediction timeout.

Bug: 189833783
Test: atest ChooserActivityTest & manual verification
Change-Id: Id24c6a2495b6a4f778b14028ee5ab975d88e9870
2021-06-02 09:22:44 -07:00
Ahan Wu
97f0fe2709 Instrument jank and latency of the unlock animation of lockscreen
Instrument jank and latency of unlock animation.

Bug: 169735612
Bug: 169735198
Bug: 169220953
Test: take trace to validate
Change-Id: I1721d7d3373f99b4aca618f86464d44ecd1e618e
2021-06-02 01:15:30 -08:00
Ahan Wu
c45abcf9db Support configuration as parameter while beginning the instrumentation
Support a custom configuration while beginning the instrumentation, also
support a custom tag for getting fine-grained CUJ in the trace.

Bug: 187495856
Test: take the trace, see the cuj section name.
Change-Id: Ife2554e0d7dbe4c01b7e4381a12a5f595e2f4364
2021-06-02 01:15:27 -08:00
Svet Ganov
2eebf92965 Switch media fw permissions checks to AttributionSource
Attribution source is the abstraction to capture the data
flows for private data across apps. Checking permissions
for an attribution source does this for all apps in the
chain that would receive the data as well as the relevant
app ops are checked/noted/started as needed.

Teach speech recognition service about attribution
chains. If an implementation does nothing the OS
would enforce permisisons and do blame as always.
This apporach leads to double blaming and doesn't
support attribition chains where app calls into
the default recognizer which calls into the on
device recognizer (this nests recursively). If the
implementer takes advantage of the attribution chain
mechanims the permissions for the entire chain are
checked at mic access time and all apps are blamed
only once.

Fixed a few bugs around finishing ops for attribution
chains. Also ensured that any app death in a started
attribution chain would lead to finishing the op for
this app

bug: 158792096

Test: (added tests for speech reco)
      atest CtsMediaTestCases
      atest CtsPermissionTestCases
      atest CtsPermission2TestCases
      atest CtsPermission3TestCases
      atest CtsPermission4TestCases
      atest CtsPermission5TestCases
      atest CtsAppOpsTestCases
      atest CtsAppOps2TestCases

Merged-In: Ic92c7adc14bd2d135ac13b96f17a1b393dd562e4

Change-Id: Ic92c7adc14bd2d135ac13b96f17a1b393dd562e4
2021-06-01 23:43:29 +00:00
Selim Cinek
4cee06e88d Merge "Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off." into sc-dev am: df773665d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737509

Change-Id: I0b7f14621a44df28b37c092796cbb0769fd9a359
2021-06-01 19:39:48 +00:00
Selim Cinek
df773665d0 Merge "Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off." into sc-dev 2021-06-01 18:00:10 +00:00
Matt Casey
ade3061502 Merge "Move ScrollView scroll capture to the center" into sc-dev am: 07056eaa46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14752211

Change-Id: I408633511dd52337984df3024bcc7b688f0ac58b
2021-06-01 14:13:45 +00:00
Todd Kennedy
e41b029d85 Release cblocks back to the free pool
Modern f2fs implementations starting in S support compression
natively within the file system. The data blocks of specific
installation artifacts [eg. .apk, .so, ...] can be compressed
at the file system level, making them look and act like any
other uncompressed file, but consuming a fraction of the space.

However, the unused space is not free'd automatically. Instead,
we must manually tell the file system to release the extra
blocks [the delta between the compressed and uncompressed block
counts] back to the free pool.

Because of how compression works within the file system, once
the blocks have been released, the file becomes read-only and
cannot be modified until the free'd blocks have again been
reserved from the free pool. For these installation artifacts,
that is not a concern.

Test: atest CtsAppSecurityHostTestCases:SplitTests
Test: atest CtsAppSecurityHostTestCases:IsolatedSplitsTests
Test: atest CtsAppSecurityHostTestCases:PkgInstallSignatureVerificationTest
Test: atest CtsLibnativehelperTestCases
Test: atest PackageManagerTests
Test: Manual. Boot the device and see cblocks for stub APKs are released
Test: Manual. Disable and re-enable stub APK and see cblocks are released
Bug: 188928405
Change-Id: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-28 02:59:47 +00:00
Treehugger Robot
9c8ba975b6 Merge "Revert "Use BinderDeathDispatcher for alarm listeners"" 2021-05-28 00:45:37 +00:00
Matt Casey
9e25d3b8b5 Move ScrollView scroll capture to the center
Avoid most floating content by centering the requested content within
the view instead of just scrolling so that it's visible.

See ag/14213766 for the corresponding RecyclerView change.

Bug: 189487659
Test: atest ScrollViewCaptureHelperTest, plus manual testing.
Change-Id: I194288cf9e568614ffd7c45b7d046a5b982829d6
2021-05-27 17:49:35 -04:00
Josh Tsuji
ee89a547f1 Adds the ScreenOffAnimationController, which fixes multiple issues with unlocked screen off.
This changes the screen off animation so that the controller directly animates the LightRevealScrim and the shade keyguard UI, rather then tying these to the dozeAmount. This makes it easier for us to manage/cancel these animations, such as during the camera launch gesture, since the various doze components update their state asynchronously.

This approach also means that instead of actually changing everything to KEYGUARD as soon as the power button is pressed, we actually just show the LightRevealScrim and the shade's AOD UI. This results in far less jank. We then actually show the keyguard once the animation finishes or is cancelled.

Bug: 169693662
Bug: 169739682
Bug: 181020504
Fixes: 185567665
Fixes: 189342687
Fixes: 185567665
Fixes: 183195436
Test: atest SystemUITests
Test: trigger screen off and cancel it
Test: trigger screen off and don't cancel it, make sure it wakes up fine
Test: disable 'power button locks instantly' and make sure it doesn't lock the device, both when the animation finishes or when it's cancelled
Test: press the power button twice in rapid succession
Test: press the power button twice in slower succession about 200ms apart (which triggers the camera onWakingUp vs onFinishedGoingToSleep)
Test: press the power button 5 times, make sure emergency gesture comes up
Test: disable AOD, observe no screen off animation and lock functionality works
Change-Id: I1c44304becdadfd37bab7fd81286a9702e5d6141
2021-05-27 16:26:22 -04:00
Treehugger Robot
fa5c128382 Merge "Add OWNERS" am: e4ea60d580 am: ed2ff28228
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1720190

Change-Id: I8040b35bc79f1faa208519cf109a36ad0948bc84
2021-05-26 23:48:44 +00:00
Dmitri Plotnikov
6132ed343f Store binder thread CPU times in the summary parcel
Bug: 189361771
Test: "adb dumpsys batterystats" before and after reboot
Change-Id: I3bdd8d716255812098ab594a89ebdd7455480e93
2021-05-26 16:42:16 -07:00
Todd Kennedy
769ea23166 Add OWNERS
Change-Id: Ia152457b8d86275b4b9e4e4c2fe55b0bd2667900
Mergec-In: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-26 21:22:35 +00:00
Dmitri Plotnikov
9f4f53eca5 Merge "Fix system service power calculation when measured energy is available" into sc-dev am: 16d1188b7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14726213

Change-Id: I0b0456218c6b53348f5c2951e9c65e5b76e974c1
2021-05-26 20:59:24 +00:00
Suprabh Shukla
616e234464 Revert "Use BinderDeathDispatcher for alarm listeners"
This reverts commit 715ecc2bac.

Reason for revert: Causes IAlarmListener objects to leak: b/189091551

Change-Id: I9008db537affb4041be36905c317bdcb5368edc9
Merged-In: I390d9bba37a4040b7e789e0ae04f9980fbed5c12
2021-05-26 20:56:43 +00:00
Jeff DeCew
4e19c0f201 Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev am: f294d0ba5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140988

Change-Id: Icaeb16f0e3fbb114c4de551e75adaa948c312ce6
2021-05-26 11:05:23 +00:00
Alison Cichowlas
ea34067bc5 Merge "Set RESULT_OK on exit via copy button." into sc-dev am: 7014d28df9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14670950

Change-Id: Idae04072caf9961880d522c22c23410475ee539f
2021-05-26 11:03:24 +00:00
Siim Sammul
6d47f7fb10 Change settings observer for other processes to not pass a userhandle.
This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14426680

Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
Merged-In: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
2021-05-26 10:45:16 +00:00
Dmitri Plotnikov
1643f794d0 Fix system service power calculation when measured energy is available
Bug: 188930285
Test: atest FrameworksCoreTests:SystemServicePowerCalculatorTest
Change-Id: Ic48bd627b8458cde18f812eb63cbc1e37496326d
2021-05-25 18:26:38 -07:00
Jeff DeCew
f294d0ba5f Merge "Resolve Notification.Colors once, instead of lazily." into sc-dev 2021-05-25 16:44:59 +00:00
Alison Cichowlas
7014d28df9 Merge "Set RESULT_OK on exit via copy button." into sc-dev 2021-05-25 15:04:25 +00:00