Commit Graph

659414 Commits

Author SHA1 Message Date
Suprabh Shukla
ef0d4a69ed Merge "Listening to package broadcast on all users" into sc-v2-dev 2022-03-17 21:25:00 +00:00
Yuri Lin
2a54e74ec3 Merge "Small improvements to matchesCallFilter functionality" into sc-v2-dev 2022-03-17 17:03:07 +00:00
Felipe Leme
bc8c3fd68b Merge "Changes TimingsTraceLog and TimingsTraceAndSlog to be less spammy." into sc-v2-dev 2022-03-17 14:55:48 +00:00
Chris Li
c48dfe548b Merge "[DO NOT MERGE] ActivityEmbedding: hide embedded TaskFragment between adjacent TFs" into sc-v2-dev 2022-03-17 14:26:59 +00:00
Chris Li
906689084a [DO NOT MERGE] ActivityEmbedding: hide embedded TaskFragment between
adjacent TFs

An old secondary TaskFragment can be in middle of the primary and new
secondary TaskFragments. We don't want to show it even if it has a
different bounds from the new secondary.

Fix: 215467839
Test: atest SplitActivityLifecycleTest
Change-Id: I85dccdc4a931eda7d53c91d288ad19b6ef865dc9
2022-03-17 12:05:38 +00:00
Chris Li
53c2f64d1e Merge "ActivityEmbedding: launch into the same side container" into sc-v2-dev 2022-03-17 10:33:42 +00:00
Jason Chang
5581402d22 Merge "[DO NOT MERGE] Fix unexpectedly NPE on CF when calling mDevice.getProductName()" into sc-v2-dev 2022-03-17 08:40:20 +00:00
Chris Li
4f7c64085f Merge "Offset animation layer for TaskFragment open/close" into sc-v2-dev 2022-03-17 07:09:34 +00:00
Jason Chang
50a858875e [DO NOT MERGE] Fix unexpectedly NPE on CF when calling
mDevice.getProductName()

Move the mDevice.getProductName() into mDevice NPE check condition.

Bug: 224685744
Bug: 224627240

Test: manually install NeutronPlayer to test usb audio device
permission warning dialog sentence.
Test: atest SystemUITests
Test: atest com.android.systemui.usb
.UsbPermissionActivityTest#testHideNonSystemOverlay

Change-Id: Ic5fecc1e98072eda6dcc48a3adc669ef731a4c9c
2022-03-17 14:48:19 +08:00
Suprabh Shukla
da731460df Listening to package broadcast on all users
When a package is added or removed on a secondary user, the broadcast
was not being processed, leading to inconsistent state, like lingering
defunt alarms and stale exact alarm candidates.

Test: atest FrameworksMockingServicesTests:com.android.server.alarm

Bug: 218868406
Change-Id: I1f1b9a5b8f63d6564c9e121bee7d6d6d697b471d
Merged-In: I1f1b9a5b8f63d6564c9e121bee7d6d6d697b471d
(cherry picked from commit 6c9df302ae)
2022-03-16 22:43:21 +00:00
Elliott Hughes
3acea60275 Merge "Revert "Disable pointer authentication in app processes."" into sc-v2-dev 2022-03-16 20:41:07 +00:00
Yuri Lin
62a8ebb5a8 Small improvements to matchesCallFilter functionality
Check both NORMALIZED_NUMBER and NUMBER for a phone call contact, in case one or the other is populated but not both, for more phone number coverage.

Use Uri.decode instead of URLDecoder as it seems simpler and more directly relevant.

Bug: 183924362
Test: NotificationManagerTest, ValidateNotificationPeopleTest, ZenModeFilteringTest
Change-Id: I29c39bf1e3d7dc69cc1f83854a23f6b33a6eac58
Merged-In: I29c39bf1e3d7dc69cc1f83854a23f6b33a6eac58
(cherry picked from commit b9290319b6)
2022-03-16 15:57:46 +00:00
Yuri Lin
c69d39d72e Merge "Look up phone numbers associated with a NotificationRecord's contact URI." into sc-v2-dev 2022-03-16 14:59:31 +00:00
TreeHugger Robot
7cc0fa7a5c [automerger skipped] Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into rvc-dev am: b52cedd04b am: b359403e39 -s ours am: ba634e4a67 -s ours am: 3d4721836e -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I82df76b08eee892b313ce99642aedf4ead85b0f5
2022-03-16 11:55:43 +00:00
Jeff Chang
e850eabe67 [automerger skipped] [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: 7221a25a03 am: bf71c0255c -s ours am: eb8a1d4be9 -s ours am: f049970f9c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I47202db2250cb8ef901f54c9dceb1041f857c114
2022-03-16 11:55:39 +00:00
TreeHugger Robot
3d4721836e [automerger skipped] Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into rvc-dev am: b52cedd04b am: b359403e39 -s ours am: ba634e4a67 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I18eb35713934dcdb5314d3df10df6609c876f31c
2022-03-16 11:31:52 +00:00
Jeff Chang
f049970f9c [automerger skipped] [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: 7221a25a03 am: bf71c0255c -s ours am: eb8a1d4be9 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I533d5cfedb65b16deffee56c42626d58ca00f4ed
2022-03-16 11:31:50 +00:00
TreeHugger Robot
ba634e4a67 [automerger skipped] Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into rvc-dev am: b52cedd04b am: b359403e39 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: Id7e1b57f5baaaca3fec0a4c8d891ed004eace514
2022-03-16 11:07:06 +00:00
Jeff Chang
eb8a1d4be9 [automerger skipped] [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: 7221a25a03 am: bf71c0255c -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I6773afbe3093d1d900b029c63975cd715bfd2aab
2022-03-16 11:06:44 +00:00
TreeHugger Robot
b359403e39 Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into rvc-dev am: b52cedd04b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I12c5cc50e904965db8d84f89c00dc3c02f29ccdc
2022-03-16 10:43:04 +00:00
Jeff Chang
bf71c0255c [RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity am: 7221a25a03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16961349

Change-Id: I84aedd95be01bec2daf057af34d31c9220e8a27c
2022-03-16 10:42:48 +00:00
TreeHugger Robot
b52cedd04b Merge "[RESTRICT AUTOMERGE]Only allow system and same app to apply relinquishTaskIdentity" into rvc-dev 2022-03-16 10:16:14 +00:00
Chris Li
06617390e3 Offset animation layer for TaskFragment open/close
It is possible to have a fullscreen closing TF between two resume TFs
(this can happen when closing the fullscreen TF results the bottom
activity open a new activity into split). In that case, we don't want
the fullscreen TF to hide the activity below it during cross fade
animation.

Fix: 214175523
Test: manually verify with Settings
Change-Id: I4350114d800442308c9c53f474ba60542c8a86e5
(cherry picked from commit c562f322b2)
2022-03-16 03:52:16 +00:00
Chris Li
d530d65cfa ActivityEmbedding: launch into the same side container
When primary activity launches a new intent with a split rule with same
presentation (split ratio), we can launch the new activity to the
existing secondary container.

Bug: 216492188
Test: manual
Change-Id: Iad6d238c6dfb009402376a725136be6c6fdab98c
(cherry picked from commit 449fceaa1c)
2022-03-16 03:36:57 +00:00
Elliott Hughes
e1e5773026 Revert "Disable pointer authentication in app processes."
Revert "Disable pointer authentication in app processes."

Revert "[automerged blank] Disable pointer authentication in app..."

Revert submission 16712509-sc-dev-I3030c47be9d02a27505bd4775c1982a20755758c-sc-v2-dev

Reason for revert: PAC has shipped with S, and we're going with app compat outreach rather than regressing security.
Reverted Changes:
I3030c47be:Disable pointer authentication in app processes.
I3030c47be:Disable pointer authentication in app processes.
I84a696428:[automerged blank] Disable pointer authentication ...
Ibc52deaf3:[automerged blank] Disable pointer authentication ...

Change-Id: I7ebdfce99ef6387415eb21cd216344b8eaf64b61
2022-03-16 02:35:10 +00:00
Eric Laurent
5cbb4d7d27 Merge "Audio: SpatializerHelper: fix native audio server death handling" into sc-v2-dev 2022-03-15 19:18:06 +00:00
Matt Pietal
1824214857 [automerger skipped] [automerge] [DO NOT MERGE] Ignore flaky tests 2p: 5c85eadaa8 am: ce5e3337bd -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17159706

Change-Id: Ica04a6ad38fd4c1579adc150a9c9cb9550e79684
2022-03-15 18:02:03 +00:00
TreeHugger Robot
d50e5886fe Merge "Defer MessagingMessage#recycle until bind ends" into sc-v2-dev 2022-03-15 17:48:49 +00:00
Yuri Lin
4e3be68019 Look up phone numbers associated with a NotificationRecord's contact URI.
Then, when a call comes in, store the additional phone numbers in the NotificationRecord (if any) in the repeat callers map.

This allows us to store those phone numbers in the repeat callers data to confirm whether future calls from that contact's phone are considered "repeat" when a caller passes in the phone number. This matches on any number that belongs to the contact, and not just the one used to give in the phone call (as contact lookup seems not to distinguish).

Bug: 183924362
Bug: 203806689
Test: ValidateNotificationPeopleTest; NotificationRecordTest; ZenModeFilteringTest; manually confirmed that the phone rings audibly when repeat callers is allowed and a contact calls

Change-Id: I83cc7fc036a3962d2468557d41b546f40a3cfbcf
Merged-In: I83cc7fc036a3962d2468557d41b546f40a3cfbcf
(cherry picked from commit fa8fd0d917)
2022-03-15 17:10:04 +00:00
TreeHugger Robot
da1701ce29 Merge "Keyguard - Treat messsages to lock with priority" into sc-v2-dev 2022-03-15 16:38:21 +00:00
Eric Laurent
99c61c6bd1 Audio: SpatializerHelper: fix native audio server death handling
Make sure that the native spatializer interface reference
if cleared when the native audio server dies so that is is properly
re-created by SpatializerHelper.init().

Bug: 224701940
Test: enable spatial audio and kill native audio server
Change-Id: Ib409e35f6aee9c149d6a998878f53209d74c54ad
2022-03-15 08:48:58 +00:00
TreeHugger Robot
adc12a6263 Merge "DO NOT MERGE Restrict PHONE_CALL ops based on TelecomService" into sc-v2-dev 2022-03-14 23:41:44 +00:00
Steve Elliott
3c52f4881d Defer MessagingMessage#recycle until bind ends
See ag/17158486 for context.

Fixes: 216202070
Test: manual
Change-Id: I924f917fbf757d2c3866fcd60de2fbfccae2eb6a
Merged-In: I924f917fbf757d2c3866fcd60de2fbfccae2eb6a
(cherry picked from commit 88f4dbce89)
2022-03-14 19:05:46 +00:00
Diego Vela
a4b205e2a5 Merge changes from topic "wm-config-change-fix" into sc-v2-dev
* changes:
  DO NOT MERGE Listen for config changes when updating features.
  DO NOT MERGE Add LifecycleCallback adapter.
  DO NOT MERGE Merge state producer and feature producer.
  DO NOT MERGE Remove DisplayFeature from common package.
2022-03-14 17:52:20 +00:00
TreeHugger Robot
037cc9fb09 Merge "Defer MessagingGroup#recycle until bind completes" into sc-v2-dev 2022-03-14 17:23:58 +00:00
Jason Chang
e45fc7fcaf Merge "[DO NOT MERGE] Change USB audio device permission warning dialog for both Direct USB Access and AoC Offload feature" into sc-v2-dev 2022-03-14 16:23:43 +00:00
Wei Sheng Shih
652e10d6b6 Merge "Revert "Fixes cannot leave dozing when dismiss keyguard"" into sc-v2-dev 2022-03-14 14:05:32 +00:00
Riddle Hsu
e55e1952c0 Merge "Isolate count of visible window from mirror of uid state" into sc-v2-dev 2022-03-14 13:08:16 +00:00
Jason Chang
cce76716f7 [DO NOT MERGE] Change USB audio device permission warning dialog
for both Direct USB Access and AoC Offload feature

According to USB audio warning dialog message conditions matrix, add
a UsbAudioWarningDialogMessage to handle the conditions.

Bug: 199034378
Bug: 222434773

Test: manually install NeutronPlayer to test usb audio device
permission warning dialog sentence.
Test: manually modify each audio api condition to test each sentence
correntness.

Change-Id: I5d670f7835a38e83b7d0d3955e966dba3b7f7664
2022-03-14 14:21:48 +08:00
Riddle Hsu
4d2f0f9178 Isolate count of visible window from mirror of uid state
The onUidActive/onUidInactive are called from AMS. The timing of
invocation may be somewhat indeterministic with WM.

For example: (it should be extreme corner case)
A process was died and restarted to show a window, but the uid
inactive/active are a bit late to notify. That causes the count
to be cleared.

If the count of visible window is cleared, the caller will be
considered as a background caller and may be unable to start activity.

So this change makes the count only depend on the state of window.

Fix: 222252947
Test: WindowStateTests#testHasActiveVisibleWindow
Change-Id: I2ac3e0ac777145bcf74819be7ffedaec80acb556
2022-03-11 06:49:06 +00:00
Winson Chung
98524bb5ff Merge "Consider the recents component activities/windows when dumping visible" into sc-v2-dev 2022-03-11 05:21:39 +00:00
TreeHugger Robot
498b5fc6d5 Merge "DO NOT MERGE add android.car.permission.CONTROL_CAR_APP_LAUNCH permission" into sc-v2-dev 2022-03-11 05:08:35 +00:00
priyank
f7b9a4dd28 DO NOT MERGE add android.car.permission.CONTROL_CAR_APP_LAUNCH permission
This file has been moved to a different location in "tm-dev" Hence, DO NOT MERGE
Bug: 194334719
Test: Manual
Change-Id: I6b25e4ea1d14051902b53d6542b346d55646b16c
2022-03-11 00:03:35 +00:00
Winson Chung
43301fec55 Consider the recents component activities/windows when dumping visible
- The Launcher currently manages gesture nav, so often a bug report
  taken with better bug will prevent the launcher state from being
  recorded as a part of the BR.  This ensures that both the activity
  dump and the window hierarchy is saved even if it is not visible

Bug: 223509022
Bug: 223498680
Test: dumpsys activity -v all, cmd window dump-visible-window-views
      while Launcher is not visible
Change-Id: I06c5eaf4a82368996c734cd245803b3d7c4e7d71
Merged-In: I06c5eaf4a82368996c734cd245803b3d7c4e7d71
(cherry picked from commit 154a763558)
2022-03-10 22:47:26 +00:00
Jordan Demeulenaere
2e314e8639 Merge "Fix dialog exit animation" into sc-v2-dev 2022-03-10 21:59:15 +00:00
Steve Elliott
654c615cf9 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: 216202070
Test: manual
Change-Id: Idef815d54690544615512bd2bd1006f172403e18
(cherry picked from commit 2a68270c76)
2022-03-10 20:19:43 +00:00
Matt Pietal
ce5e3337bd [automerge] [DO NOT MERGE] Ignore flaky tests 2p: 5c85eadaa8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17159706

Change-Id: Ia0867ce4a3efe2dfa89c606ccf0a2544ac9be097
2022-03-10 19:17:11 +00:00
Matt Pietal
5c85eadaa8 [DO NOT MERGE] Ignore flaky tests
Until a better fix can be found.

Fixes: 223385977
Test: atest KeyguardViewMediatorTest
Change-Id: I9579f5e0fa15a40d8977919029e9d72bdb981b69
2022-03-10 19:17:02 +00:00
Lucas Dupin
68afc54a39 Fix StatusBar test
Runnable was not being applied

Test: atest StatusBarTest
Fixes: 216532410
Fixes: 223731528
Change-Id: If5ce110b506b6b4229dd6ea5a39542369742bc51
Merged-In: If5ce110b506b6b4229dd6ea5a39542369742bc51
(cherry picked from commit 79f9dd01e0)
2022-03-10 16:32:08 +00:00
Matt Pietal
256b5f08a8 Keyguard - Treat messsages to lock with priority
When switching users and attempting to lock the device, the sysui main
thread becomes overwhelmed with events, creating a significant lag
between the time a message is posted and processed on the main
thread. This can be dangerous when these events are critical for
security, such as calls coming from PhoneWindowManager#lockNow() that
call KeyguardViewMediator#doKeyguardTimeout(). On older devices with
slower CPUs and less memory, the delay in processing can be
significant (15 - 30s).

The result of not prioritizing these events leads to a window of time
where a guest user can switch back to the owner, and gain access to
the owner's homescreen without needing to unlock the device with the
owner's credentials.

As a mitigation, prioritize two events originating in two specific
methods to make sure the device locks as soon as possible as well as
have the system server preemptively update its local cache.

Bug: 151095871
Test: Very manual race condition - follow steps listed in bug
Change-Id: I7585a0a5eeb308e0e32a4f77f581556d883b5cda
Merged-In: I7585a0a5eeb308e0e32a4f77f581556d883b5cda
(cherry picked from commit 28c53ab8bc)
(cherry picked from commit f8023c9829)
2022-03-10 15:15:13 +00:00