Commit Graph

18154 Commits

Author SHA1 Message Date
TreeHugger Robot
5585ad36b0 Merge "Defer the instrument of AOD transition per doze amount" 2022-02-17 12:42:59 +00:00
Ady Abraham
171380fd37 Merge "Correct JankData.PREDICTION_ERROR meaning" 2022-02-17 02:12:43 +00:00
Abodunrinwa Toki
62599cbdcc Merge "Ensure that TextViewActivityTest still pass for the new system toolbar." 2022-02-17 01:10:21 +00:00
Steve Elliott
ba790ec0e9 Merge "Defer MessagingGroup#recycle until bind completes" 2022-02-16 17:26:15 +00:00
BK Choi
1ccbddadfb Merge "Fix the infinite loop bug for AndroidFuture.ThenCombine." 2022-02-16 16:01:46 +00:00
Oli Lan
9807b6350f Merge "Increase default user icon size." 2022-02-16 15:50:00 +00:00
Ahan Wu
c60451d094 Defer the instrument of AOD transition per doze amount
When the doze changes, StatusBar#updateDozing will be invoked at the
first frame, usually make the following one be regarded as janky,
but it is unperceptible by the users, so ignore it.

Bug: 201987244
Test: Capture the trace manually
Change-Id: Iac739d23eb0fdc988bd52076bdccca4665e28d18
2022-02-16 19:55:24 +08:00
Marcin Oczeretko
b548b1a38d Merge "Change PerfettoTrigger throttling to be per trigger name" 2022-02-16 11:40:46 +00:00
Ady Abraham
e4a9000b03 Correct JankData.PREDICTION_ERROR meaning
JankData.PREDICTION_ERROR is asserted when SF vsync calculation
is incorrect and should be attributed to SF missed frames.

Bug: 211763914
Test: SF unit tests
Change-Id: I332480ad1017c220501ed938319f8b2fbfe22826
2022-02-15 15:06:45 -08:00
Nicolò Mazzucato
fc5f85a892 Merge "Avoid binder transaction to WM for lock orientation" 2022-02-15 22:09:40 +00:00
Marcin Oczeretko
6c5c8abcd8 Change PerfettoTrigger throttling to be per trigger name
This is to allow us to collect more representative traces even if one of
the triggers is invoked more frequently than other.

Increased the throttling to be 5min per trigger name

Bug: 213920740
Test: manual - flashed and checked logcat
Change-Id: I078c640cc1e72c4ce8641b047fc90eb13bc8f2a4
2022-02-15 15:43:27 +00:00
Nicolo' Mazzucato
8fa312bb67 Avoid binder transaction to WM for lock orientation
When rotation happened during a change of screen (e.g. on foldable devices), getRotationLockOrientation was blocked by a wm binder call to get the display size. wm was holding the lock while changing display power state. This cl removes this dependency.

Bug: 197515205
Test: Manual
Change-Id: I950e80289ea0f385bcaedf052d393ac7a23a14c6
2022-02-15 12:33:44 +01:00
Steve Elliott
2a68270c76 Defer MessagingGroup#recycle until bind completes
There is a "race condition" where a MessagingGroup is recycled while the
contents of that group are being used elsewhere in the
ConversationLayout, namely in the "image message container" used to show
the most recent image message in the collapsed state.

This state isn't cleared until later in the bind() process, which
unfortunately depends on the groups being updated. For that reason, we
defer all synchronous calls to recycle() until the end of bind(), which
will ensure that the old groups are still around as long as necessary.

Fixes: 212689920
Test: manual
Change-Id: Idef815d54690544615512bd2bd1006f172403e18
2022-02-15 00:18:13 -05:00
Badhri Jagan Sridharan
9c80283f83 Convert @UsbDataStatus into bit field flags.
getUsbDataStatus now returns bit field values of @UsbDataStatus.

Also renaming from USB_DATA_STATUS_* to DATA_STATUS_* based on
review comments.

Bug: 216640242
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I96ade3dd7041a4094e57907069a872909a62e72f
2022-02-15 03:17:46 +00:00
Evan Rosky
33cfda6944 Merge "Add ability for sysui/featureflags to restart android" 2022-02-14 20:49:12 +00:00
Felipe Leme
865dc828f5 Merge "Final (?!?!?!) improvements on Activity.dump()" 2022-02-14 19:28:29 +00:00
bkchoi
052cba1feb Fix the infinite loop bug for AndroidFuture.ThenCombine.
The bug was found and fixed in
android.car.util.concurrent.AndroidFuture. The same fix is being
duplicated from commit 9dcaf6862035676b2574e92cb72cba67ff0a879b.

Bug: 218377773

Test: atest com.android.internal.infra.AndroidFutureTest

Change-Id: I1e13d512a449a7330c74ed06f6afd90e3c4f9493
2022-02-14 10:30:33 -08:00
Felipe Leme
bca61d7f66 Final (?!?!?!) improvements on Activity.dump()
- Fix handle of special args (they were not called unless the app
  targeted T).
- Lazy-adds some dumpables to Activity (so the list of dumpables
  is not created until dump() is called).

Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --list-dumpables
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest

Bug: 149254050

Change-Id: Id25d115d4aef8ab16ceb3d035c134c637e16dadd
2022-02-14 09:20:51 -08:00
Caitlin Cassidy
89e1907bba Merge "[Nearby Media Devices] Add a SystemApi to get information about nearby media devices from external clients." 2022-02-14 12:59:24 +00:00
TreeHugger Robot
5a290d0b4d Merge "Remove KeyValuePair logging" 2022-02-12 03:53:38 +00:00
Evan Rosky
bd36a8115c Add ability for sysui/featureflags to restart android
When setting flags/sysprops, full reboot is overkill.
This adds a way to just restart system_server.

Bug: 219067621
Test: Call API and verify that it restarts
Change-Id: I67aecbc6ec0570fbaf36165034648ab39da57940
2022-02-11 15:42:16 -08:00
TreeHugger Robot
c16349a69d Merge "Revert "Query only necessary columns in ChooserActivity.extractF..."" 2022-02-11 21:35:54 +00:00
Caitlin Cassidy
ba6b756d0e [Nearby Media Devices] Add a SystemApi to get information about nearby
media devices from external clients.

Bug: 216313420
Test: CTS included in same topic
Test: atest NearbyMediaDevicesManagerTest
Change-Id: Ic5f26d3048a3475dbd232c913bb00bee46339b0a
2022-02-11 20:59:43 +00:00
Hai Zhang
454c526e5e Revert "Query only necessary columns in ChooserActivity.extractF..."
Revert submission 16791148-chooseractivity-queryresolver

Reason for revert: b/218994001
Reverted Changes:
I91bbd3971:Query only necessary columns in ChooserActivity.ex...
I2ab9c6f03:Query only necessary columns in ChooserActivity.ex...

Fixes: 16850551
Change-Id: Idbc6270bb0dc1f2402c44d111bdcebe8a25f28c2
2022-02-11 18:08:16 +00:00
TreeHugger Robot
f7d49172b1 Merge "Recycle obtained TypedArrays" 2022-02-11 15:48:52 +00:00
Oli Lan
b50567218e Increase default user icon size.
This increases the size of the default user icon to 190dp.

A new method convertToBitmapAtUserIconSize is added to UserIcons to
allow bitmaps of this size to be easily obtained. The existing
method convertToBitmap uses the intrinsic size of the drawable, which
is only 48dp as standard.

Bug: 218838295
Test: visual inspection of user icon for owner and new users
Test: atest UserIconsTest
Change-Id: I5cbf110731f4c944bb1d3af63b5a0fcb5ab50f16
2022-02-11 13:25:32 +00:00
Tej Singh
8bf391e405 Remove KeyValuePair logging
Test: m
Test: use device and make sure no KVP atoms are logged
Bug: 218956185
Change-Id: I7abfaaa78581d6d8945640e77578f8698282ad10
2022-02-10 22:24:57 -08:00
Caitlin Cassidy
dc5dff8698 Merge "[Media TTT] Add app icon and name to the receiver SystemApi." 2022-02-10 21:35:27 +00:00
Hai Zhang
cedebbc921 Merge "Query only necessary columns in ChooserActivity.extractFileInfo()." 2022-02-10 19:11:26 +00:00
Alan Viverette
7d1188244c Merge "Migrate frameworks/base javadocs references to androidx" 2022-02-10 18:02:28 +00:00
Nikolas Havrikov
1859e347b4 Recycle obtained TypedArrays
Bug: 218835043
Test: make
Change-Id: Ibe4a9593a574159497b300a98be4af196ee110fe
2022-02-10 15:05:24 +01:00
Alan Viverette
406e0f6553 Migrate frameworks/base javadocs references to androidx
Does not remove Support Library artifacts from docs classpath (ApiDocs.bp)
because they are still used in development/samples, which is not as easy
to migrate as javadoc.

Bug: 158779503
Test: make docs
Exempt-From-Owner-Approval: Mass find/replace for androidx migration
Change-Id: Icf7f53ec36a0e970413352e2ebf40ce9d60ed17e
2022-02-09 22:25:14 +00:00
Florian Mayer
385071800e Merge "[MTE] Respect persist.arm64.memtag.default for system server." 2022-02-09 21:24:20 +00:00
Lee Shombert
0be2f8b9c7 Merge "Add a binder cache to ILockSettings#getCredentialType" 2022-02-09 21:18:50 +00:00
Dmitri Plotnikov
1383532e04 Merge "Remove BatteryStatsHelper and BatterySipper" 2022-02-09 18:32:08 +00:00
Dmitri Plotnikov
81a193fc81 Merge "Move mobile stats calculations from BatteryStatsHelper to BatteryStats" 2022-02-09 18:31:53 +00:00
Abodunrinwa Toki
02416de354 Ensure that TextViewActivityTest still pass for the new system toolbar.
The tests pass for both the old (local) and system toolbars.

Bug: 190031097
Test: atest android.widget.TextViewActivityTes
Change-Id: I1542d966d363c4a8bd2ac9465c982b82019472d7
2022-02-09 17:40:56 +00:00
Caitlin Cassidy
27378ee368 [Media TTT] Add app icon and name to the receiver SystemApi.
We typically get the app icon and name using
`context.packageManager.getApplicationIcon(mediaRoute2Info.packageName)`.
However, this may not work on the receiver device if the receiver
doesn't have the app installed.

The API will allow the caller to provide the app icon and name directly
so that we can ensure the chip on the receiver device is displaying the
necessary app information.

Bug: 216318437
Bug: 217418566
Test: atest MediaTttChipControllerReceiverTest
Test: CTS tests updated in different CL in same topic
Change-Id: Ib5150355a08ae389b218500b235b4bd9c686f919
2022-02-09 17:35:54 +00:00
Yinglei Wang
e7e3dd676c Merge changes from topic "ime"
* changes:
  Add accessibilitySessions to InputBindResult
  Add FLAG_INPUT_METHOD_EDITOR to a11y
  Allow a11y services to enter text via the path IMEs use
2022-02-09 15:42:22 +00:00
Ken Chen
768a91bdb6 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e am: 18a04ccda5 am: d13163b7a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: I4297024c839b705eac3787e93ef23529e2670563
2022-02-09 10:41:15 +00:00
Ken Chen
d13163b7a5 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e am: 18a04ccda5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: Iee69ac1cace716b3fa457518db7c97b9a7731285
2022-02-09 10:24:30 +00:00
Ken Chen
18a04ccda5 Merge "Add system_server to net_admin group" am: f584f880ab am: 0cd6e77d0e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978086

Change-Id: Ied6448fb2f73d8867463357d6eacc7fbe00ddaea
2022-02-09 10:12:53 +00:00
Ken Chen
f584f880ab Merge "Add system_server to net_admin group" 2022-02-09 09:42:29 +00:00
Jeff Chang
4436955d35 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: 9c5c42ad03 am: 0281b203d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16743243

Change-Id: I9833001187073a9a148690e34c0960fc687a6022
2022-02-09 09:26:33 +00:00
Jeff Chang
0281b203d8 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: 9c5c42ad03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16743243

Change-Id: I36a91c0de0d6a072f930277c0f235177b7822d33
2022-02-09 09:09:08 +00:00
Jeff Chang
aa0349bc78 [RESTRICT AUTOMERGE] Add hide-non-system-overlay flag for HarmfulAppWarningActivity am: f36b7b9f80
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16742068

Change-Id: I32f44bfc27e8086a2937112851989c1160877b39
2022-02-09 08:45:52 +00:00
Jean Chalard
993c5e1003 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5 am: aac1b3a307
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Iab6157c17d9f4c6554ba65296443eec42dd21e71
2022-02-09 06:57:05 +00:00
Jean Chalard
aac1b3a307 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e am: 1f929d9bd5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: Ie35764f5a4d7f9c1d3765a73331687450bbdbaf5
2022-02-09 06:56:37 +00:00
Jean Chalard
1f929d9bd5 Merge "Allow VPN apps to ask for running the validation checks" am: cbb2fa2f00 am: 64ba50411e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1962928

Change-Id: I8dcb813cfe589411da7345bc2c4308e9f149b275
2022-02-09 06:38:31 +00:00
Dmitri Plotnikov
58fff8488b Remove BatteryStatsHelper and BatterySipper
These classes have been superseded by BatteryUsageStats

Bug: 217618527
Test: presubmit
Change-Id: Ia562365031048ad5b541dd08196e04e53e7cc547
2022-02-09 06:26:59 +00:00