755764 Commits

Author SHA1 Message Date
Jernej Virag
ba5392ca14 Add code OWNERS to test OWNERS for internal widgets
This should prevent long review times because test ownership doesn't match code ownership.

Test: n/a
Change-Id: I59812d77db671ee39906df009a918f2881259eab
2022-03-31 15:10:53 +00:00
Lee Shombert
b53dad8cb0 Merge "Put a binder cache on DevicePolicyManager APIs" into tm-dev 2022-03-31 15:09:47 +00:00
Fabian Kozynski
fc72cdfdb3 Move broadcast receiver for showing security dialog
Move the logic completely into QSSecurityFooter, so we don't need to
keep track on where it's attached.

Also, start removing NEW_FOOTER flag uses

Bug: 220344583
Test: atest SystemUITests
Test: manual
Change-Id: Ibbf0212311ecd3afd512131a9b0960a4cbacceb7
2022-03-31 11:07:47 -04:00
Neil Fuller
a2b92f89ec Merge "Add Shell permission to support manual testing" 2022-03-31 15:01:35 +00:00
Prabir Pradhan
603fea1fab Remove injectInputAfterTransactionsApplied from WMS
Since we already have IWindowManager#syncInputTransactions, we can
remove the need to have an input injection API in the window manager
interface.

Bug: 227356680
Test: presubmit
Change-Id: I730d05eec85978d8813e0924ddb4dba26922ea9f
2022-03-31 15:01:15 +00:00
Nick Ning
42079ccc3f Merge "Refactor common dream complication attributes in style." into tm-dev 2022-03-31 14:55:34 +00:00
Beth Thibodeau
9628692e6c Merge "Add logging for media controls" into tm-dev 2022-03-31 14:36:38 +00:00
Songchun Fan
58f33528ff Merge changes from topic "DistractingPackageHelper_tm-dev" into tm-dev
* changes:
  Add DistractingPackageHelperTest
  Introduce DistractingPackageHelper
2022-03-31 14:35:44 +00:00
Songchun Fan
2e9d7c9822 Merge "[AppsFilter] read-only interface for snapshots" into tm-dev 2022-03-31 14:35:02 +00:00
Matt Gilbride
336b6a1577 Merge "Add attribution tags to FingerprintService" into tm-dev 2022-03-31 14:24:03 +00:00
Josh Tsuji
8c13b43b85 Merge "Fix shouldControlUnlockedScreenOff." into tm-dev 2022-03-31 14:14:30 +00:00
TYM Tsai
e6ae224102 Merge "Make TextView do not show IME when fill dialog popup" into tm-dev 2022-03-31 14:09:17 +00:00
Pratyush More
530587fb9e Merge "Enhance Javadoc for LocaleManager#setApplicationLocales." into tm-dev 2022-03-31 14:05:23 +00:00
Beverly Tai
a545b2b7b4 Merge "On UDFPS auth success, fade out the dwell ripple" into tm-dev 2022-03-31 13:52:38 +00:00
Josh Tsuji
95afc78e03 Merge "Don't short-circuit setting StatusBarState if the upcoming state differs." into tm-dev 2022-03-31 13:42:57 +00:00
Julia Reynolds
168a0e7fec Fix race condition when removing auto-summaries
Ensure that updating the ongoing flag and canceling the
summary are handled on the same handler, so the summary
isn't accidentally canceled and then re-added

Test: NotificationManagerServiceTest
Fixes: 221343569
Change-Id: I80400aceca5e1c8c777b7770c9a1bebb84fb643d
2022-03-31 09:40:53 -04:00
Adrian Roos
fe61c9af90 VirtualDisplayTest: Rethrow runOnUiThread exceptions on test thread
Catches and rethrows exceptions on the test thread to
avoid taking down the entire instrumentation test when
tests fail.

Bug: 223843046
Test: atest VirtualDisplayTest
Change-Id: I78b6777ff3cabc532cd73390cc5b4c23f64ae127
2022-03-31 15:40:23 +02:00
Vadim Caen
ff898c6407 Ensure no animation is run except for HOME
... and directly reset the animation state for other cases.

Fixes: 222769294
Test: BackAnimationControllerTest#verifyAnimationFinishes
Change-Id: If04885065076ef7e3c15f5cce2c1d040bd92b494
2022-03-31 15:27:23 +02:00
Christian Göllner
9f3785aeb3 ScrimControllerTest: add more test cases for the alpha interpolation of the scrims
Bug: 227146048
Test: ScrimControllerTest
Change-Id: Ic23f2ed739453f2134ff9e630ba4f44732da2fcf
2022-03-31 15:20:34 +02:00
Kate Montgomery
924b02bb03 Merge "Update show system experiment behavior." into tm-dev 2022-03-31 13:00:01 +00:00
Ming-Shin Lu
710a8ae8aa Merge "Fix seeing a weird window animation above TaskFragment transition" into tm-dev 2022-03-31 12:54:25 +00:00
Edgar Wang
f531535036 Update ActivityEmbeddingUtils
- Provide base Intent in the two-pane Settings API.
  By returning an Intent with ComponentName, this makes it easier
  to embed the Intent into a SaferPendingIntent.
- Only support API for scv2 platform.
- Update BuildCompatUtils to support isAtLeastSV2 and isAtLeastT.

Bug: 227563999
Test: rebuild
Change-Id: Ib054c5c37e29d43662bcf9b0d86ecbee7c2b921d
2022-03-31 12:17:17 +00:00
Jernej Virag
0c36369480 Merge "Fix handling of negative size request for Bitmaps in LocalImageResolver" into tm-dev 2022-03-31 11:29:01 +00:00
TreeHugger Robot
6c937bea00 Merge "Transfer remote animation option from an intercepted activity." into tm-dev 2022-03-31 11:28:10 +00:00
Lais Andrade
bc491a649c Fix VibratorManager cmd for on-off waveforms
The VibrationEffect.WaveformBuilder.addSustain does not accept zero
duration sustain periods, so adding an extra check to the
VibratorManager ShellCommand implementation to handle on-off patterns
with zero entries.

Bug: 224930189
Test: manual
Change-Id: Ie1b8f15a0e7b029ebf78a2affce1c12455f08418
2022-03-31 11:10:09 +00:00
Nick Chameyev
3f12009a16 Migrate unfold animation to Shell transitions [Part 1]
Adds a trigger to DisplayContent that creates
unfold transition before applying the display size
and marks it as ready when the sizes are applied.

Adds a placeholder animation for fullscreen tasks.

Bug: 204925795
Test: enable shell transitions, open an app, unfold =>
 check that app surface is animated
Change-Id: Ia88178a7c7849a99c17b4d18117a05b2a0fb8b7f
2022-03-31 10:38:56 +00:00
Yi-Yo Chiang
c88a3d9be4 DSU service: Log insufficient storage space error
Log a specialized error message if installation task
failed due to insufficient storage space.
This helps the user to disgnose the source of error.

Bug: 200002443
Test: start DSU task and check logcat
Change-Id: Iabb3e0325ae99c343978ca6c35ab8378f20e0527
2022-03-31 18:38:00 +08:00
TreeHugger Robot
9519e3c94a Merge "Fix VirtualDisplayTest failures" into tm-dev 2022-03-31 08:57:14 +00:00
SongFerng Wang
a2a4b30ffd Merge "Add "Broadcast" button at output switcher" into tm-dev 2022-03-31 08:52:27 +00:00
Pablo Gamito
033ac7f454 Merge changes from topic "presubmit-am-0ceaf5de4b364feeaa00d2d1e8e8414b" into tm-dev
* changes:
  Revert "Revert "Use new T activity transitions in legacy""
  Remove edge extension surface onAnimationLeashLost
2022-03-31 08:46:59 +00:00
Kriti Dang
c5a4e1ab7c Merge "Update xdpi/ydio according to config_maxUIWidth" into tm-dev 2022-03-31 08:22:18 +00:00
Christian Göllner
39921c5b4a Merge "Split shade: fix QS/Media briefly showing on AOD when locking the screen" into tm-dev 2022-03-31 08:09:08 +00:00
Nathalie Le Clair
28ab303d91 Only invoke listener once physical address becomes known
Test: atest
Bug: 205082572
Change-Id: I46fb8cfe2825c2c26207b79965fbbace41fc7793
2022-03-31 08:00:21 +00:00
Nathalie Le Clair
900536cf9a Don't remove devices on onHotplug()
This CL affects TV panels and Audio Systems only.
Before HdmiCecNetwork existed: devices were removed when
HotplugDetectionAction detected a hotplug out, and TIF was informed.
Before this CL: devices were removed from the CEC network onHotplug,
but the listener to inform TIF wasn't invoked. This was causing
multiple issues.
After: on TV panels and Audio Systems, only remove devices when
HotplugDetectionAction detects a hotplug out,
just like before HdmiCecNetwork existed.

Test: atest
Bug:213417037

Change-Id: I4181b4650b70101da44fd205e4df9eb566f74496
2022-03-31 07:59:51 +00:00
Nathalie Le Clair
69229e31fe Assign local device portId 0
Before, the local device on a TV would be assigned an invalid portId,
which was causing the local device to be removed from the HdmiCecNetwork
in some instances.

Bug: 213423171
Test: atest HdmiCecNetworkTest
Change-Id: I99e1ca1d54a74682c0737deb2ad2163f7db5e0db
2022-03-31 07:59:21 +00:00
Yan Han
6304e44df4 Set device type on first message received
When receiving the first message from a new device, deduce its device
type from its logical address if possible and store it in the network.

Bug: 205082572
Test: atest HdmiCecNetworkTest
Change-Id: I66b0969347e7d292f8222efb250156e0421e60ca
2022-03-31 07:58:53 +00:00
Robert Horvath
3f31afd1cf Merge "Don't poke user activity when dream ends" into tm-dev 2022-03-31 07:32:45 +00:00
Jing Ji
f7260037b7 Merge "Update the bg app notification language per UX spec" into tm-dev 2022-03-31 07:13:25 +00:00
Tony Huang
cfeb154a1b Reduce flicker when resize animation
When resize split, split decor use fade in animation but bottom
larger than bounds area is black, it will make color change from
black to decor background color and it just like flicker.

To avoid this, we should add back using of am#setSplitScreenResizing
which could make black backgound to color similar to app content
background. And it should also reduce flicker while snap divider to
dismiss split.

Bug: 220985951
Bug: 221178408
Test: manual
Test: pass existing tests
Change-Id: I961a4d3ab4f3552fd5ace4b3a6742afa980f073c
2022-03-31 14:47:44 +08:00
Louis Chang
97c8cee1a3 Merge "Add an API to disable/restore doze settings" into tm-dev 2022-03-31 06:41:05 +00:00
Arthur Hung
f13bfa6c0a Merge "Remove focus if no window and current focus is valid" into tm-dev 2022-03-31 06:33:37 +00:00
Riddle Hsu
25319431be Merge "Make sure display config is updated when cutout is changed" into tm-dev 2022-03-31 06:31:36 +00:00
Jacky Kao
6f4f706150 Don't allow an external service to be an A11y service
When some applications create an external service and register this service
to be an A11y service, then this service can kill the system and restart
it continuously.
This is a security vulnerability and we add not allow an external service
to register as an A11y service to fix it.

Bug: 216115176
Test: a11y CTS & unit tests
Change-Id: If75b9c300df73e98be92d6c14d69301cc377b205
2022-03-31 06:23:13 +00:00
Bill Yi
cdf778f5ab Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4b3b6b7d40b98975f06367a08bfa4aefef17c96a
2022-03-31 06:02:08 +00:00
Bill Yi
8b34273152 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6067e7c91e0ab13e94979b9625e1af09b3489c71
2022-03-31 05:36:16 +00:00
Treehugger Robot
9b93e341f4 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb am: edbb1a9687
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: I23340c062bd74fc987a18e621b9a646b5aea52d2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 05:12:59 +00:00
Bill Yi
0bee6375a4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I945bc9ec29b645a823a9b5abb3de22a6afda87c5
2022-03-31 05:09:27 +00:00
Treehugger Robot
edbb1a9687 Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94 am: e34c026cbb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: Ibf50e24133b3c74cb61f59c665262703a5ad6727
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:58:11 +00:00
Treehugger Robot
e34c026cbb Merge "Update OWNERS file to reflect ownership in capability related files" am: c32215ee94
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2030804

Change-Id: I61888a847d8c75f1e9d87f42a1ba7029026454ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-31 04:42:10 +00:00
Eric Biggers
88a2a7e5c9 EntropyMixer: ensure new seed file is as good as old one
Generate the new seed by hashing the old seed together with some bytes
from /dev/urandom, rather than just using the bytes from /dev/urandom
alone.  This ensures that the new seed doesn't contain less entropy than
the old one, and follows the latest recommended best practices.

While doing this, also clean up various other things:

- Start using AtomicFile to update the seed file so that it won't be
  corrupted if the system crashes while it is being updated.
- Eliminate the RandomBlock class, as it isn't very useful.
- Send all the device-specific information to /dev/urandom in one write.
- Improve comments, variable names, and method names.
- Improve log messages, e.g. don't log a warning on every first boot.
- Improve the unit test.
- Use @VisibleForTesting rather than an ad-hoc comment.

Bug: 226608458
Test: atest EntropyMixerTest
Test: checked for expected log messages
Change-Id: Ief9485536cff50c07d4d920fa32e21dbde6dd245
2022-03-31 04:21:55 +00:00