Commit Graph

781408 Commits

Author SHA1 Message Date
Evan Laird
c6393850e4 Disable NetworkControllerImpl's demo mode based on flag
Turns off handling of `-e mobile ...` commands from
`DemoModeController` if the new status bar mobile icon pipeline is
enabled.

This will be a requirement to transfer demo mode to the new pipeline

Bug: 249790009
Test: manual; enable demo mode and flag `606`, and send mobile demo
commands

Change-Id: I6beaccc56d2c2b816c2983c3822f0e15b022efe5
2022-12-02 12:52:25 -05:00
Mateusz Cicheński
77f5aecbb2 Merge "Don't move PiP towards a corner after user manually moved it." into tm-qpr-dev 2022-12-02 17:51:48 +00:00
Evan Laird
5f941ad1b1 Add DATA_UNKNOWN to the data state parsing
Test: atest MobileConnectionRepositoryTest
Bug: 249790009
Fixes: 260182454
Change-Id: Ice240ec2168dc9d470c1145709c7633a2738a9c6
2022-12-02 12:50:46 -05:00
Nicolo' Mazzucato
a799f1040a Show side fingerprint sensor on bouncer also for small screens
This sets config_show_sidefps_hint_on_bouncer to true as default, and removes the large screen override.

Bug: 260195934
Test: Current tests && verified manually
Change-Id: Icc92a0915f229e716e653e742173181caad050da
2022-12-02 17:42:24 +00:00
Peter Kalauskas
262e8c820d Merge changes from topic "trace-columbus-b253489562" into tm-qpr-dev
* changes:
  Guard against possible exception when tracing
  TraceUtils updates, new helper for runnables
2022-12-02 16:52:42 +00:00
Beverly
d6cd8d5c02 Update FP listening right after POWER_PRESSED err
Instead of delaying 500ms

Test: atest KeyguardUpdateMonitorTest
Test: Attempt to authenticate with SideFPS right
after pressing the power button => observe FP can
authenticate
Fixes: 259172472

Change-Id: I7f07c549628a21a92ddfac0d0679d0f054ad1dda
2022-12-02 16:15:47 +00:00
Brad Hinegardner
1a38ab1cc0 Merge "When in guest mode, see "Exit guest" in user switcher" into tm-qpr-dev 2022-12-02 16:07:54 +00:00
Riddle Hsu
607c7a1914 Reduce operations in postApplyAnimation for shell transition
This is a partial alternative solution of [1] to avoid black background
(no wallpaper target) when turning on screen with a translucent activity
which is occluding keyguard while AOD is disabled.

[1]: Ifc3ce28424fe87b1e0a0a2af07bdad559575ebec

Now instead of always recomputing wallpaper target after committing
visibility, the update hint only needs to be set when there is a
translucent occluding activity.

Also use usingShellTransitions to skip some legacy animation checks
that shell transition doesn't care.

Bug: 260059642
Test: Enable shell transition. Disable AOD
      KeyguardTests#testDialogShowWhenLockedActivity
      KeyguardTests#testTranslucentShowWhenLockedActivity
Test: Transition latency of OpenAppMicrobenchmark
Change-Id: Ic3c704f0579690c51f7188a26c5256dc3e74e1f7
2022-12-02 23:56:27 +08:00
Alejandro Nijamkin
5587e154c9 Adds icon support to fake quick affordance client.
This is needed for tests in ag/20601630

Bug: 254858701
Test: N/A - this is testing
Change-Id: Ibe86233511078f7c2d32cd8abb8ba97afedbcb79
2022-12-02 07:36:58 -08:00
Marcello Galhardo
b877a2de53 Merge "Use UnreleasedFlag instead of SysPropBooleanFlag." into tm-qpr-dev 2022-12-02 15:06:31 +00:00
Caitlin Shkuratov
1322828e59 Merge "[SB Refactor] Make some wifi pipeline classes into interfaces." into tm-qpr-dev 2022-12-02 14:46:54 +00:00
David Saff
78f5ef56e1 Merge "Clear TestableLoopers in SysuiTestCase" into tm-qpr-dev 2022-12-02 14:38:01 +00:00
Michael Mikhail
bb1f34c1b7 Merge "Modify tablet recommendation card dimensions" into tm-qpr-dev 2022-12-02 14:29:07 +00:00
András Kurucz
ae41b142e8 Merge "Fix rendering issue after cancelling Notifications inside a group" into tm-qpr-dev 2022-12-02 14:20:34 +00:00
Santos Cordon
65f9addcdd Do not send updates for disabled displays.
If a display is disabled, do not share it outside of
DisplayManagerService.

This will help by not creating any unnecessary updates for displays that
are disabled, and also not informing Applications of displays that they
are unable to use.

Also fixing a concurrency issue with DMS.handleLogicalDisplaySwapped
which became apparent with this CL. Deferring the runnable with a
Handler.post() caused the display-state-OFF update to happen after a newer
change to turn the display ON.  This caused the device to startup into a
black screen. Removed the unnecessary call (since the displays are now
made to both go into the "transition" state) to update the state and
removed a lot of the redundant code with handleLogicalDisplayChange()
which was called at the end of the method anyway.

Bug: 221071695
Test: atest com.server.android.display
Test: Manually verify display layouts still successfully change, and
      also confirm logs no longer hand excessive add/remove
      display notifications.
Change-Id: I003fd91567630a447cf030b6fb83e5cb1041bcb5
Merged-In: I003fd91567630a447cf030b6fb83e5cb1041bcb5
2022-12-02 14:14:47 +00:00
Yein Jo
7b8e527134 Move surface effects package to AnimationLib.
in order to share surface effects between launcher and sysui, the
package has been moved to the AnimationLib, which is visible to launcher
as well.

fyi the corresponding tests remain in the SystemUiLib module.
technically they should be moved to AnimationLib together, but those
tests are dependant on SystemUI testing frameworks (e.g. SysuiTestCase,
FakeExecutor, etc.). because of this, some of the variables are marked
as VisibleForTesting.

Bug: 249536060
Test: MultiRippleControllerTest MultiRippleViewTest RippleAnimationTest RippleViewTest TurbulenceNoiseControllerTest TurbulenceNoiseViewTest
Change-Id: I37cdc7cf9064d4d8f02afe72ad16b1cc3df95b6c
2022-12-02 13:59:48 +00:00
Will Osborn
4c736a0964 Fix tabletop autorotate freezing the device in portrait
Test: locally tested in multiple configurations
Bug: 260549749
Change-Id: I43e87c35c9bca0bf6b27ae6db74d34996e227c58
2022-12-02 13:29:46 +00:00
TreeHugger Robot
5932f31d58 Merge "Only collapse stack on shade state change" into tm-qpr-dev 2022-12-02 12:30:58 +00:00
TreeHugger Robot
6c1d781c7d Merge "Refine SystemUI plugin and animation deps" into tm-qpr-dev 2022-12-02 12:03:36 +00:00
TreeHugger Robot
120867a3c9 Merge "Fix NPE in DialogLaunchAnimator" into tm-qpr-dev 2022-12-02 10:58:56 +00:00
Jordan Demeulenaere
52c7bc24e2 Merge changes Ia3b1ae8f,Ie87220a7 into tm-qpr-dev
* changes:
  Clean-up FooterActionsViewModelTest
  Introduce TestScope.collectLastValue(Flow)
2022-12-02 09:30:12 +00:00
Ivan Chiang
48c42fda80 Hotword: Add metrics for Audio Egress
Bug: 249269473
Test: statsd_testdrive 434
Change-Id: Ia84489dcef1cc96f8fc61a44ccac34d433658bc9
Merged-In: Ia84489dcef1cc96f8fc61a44ccac34d433658bc9
2022-12-02 09:23:27 +00:00
Jerry Chang
4476d91918 Merge "Revert "Fix win mode issues for unresizable apps"" into tm-qpr-dev 2022-12-02 09:15:11 +00:00
Mark Punzalan
714691fc46 Rename HotwordAudioStreamManager and add Javadoc
"Manager" is a little vague and "Copier" is clearer with the class's
purpose.

Bug: 258323047
Test: None with this change; simple refactoring
Change-Id: I43a24b27983838e0ef9798eef2f45d1d4b1c9ac8
Merged-In: I43a24b27983838e0ef9798eef2f45d1d4b1c9ac8
2022-12-02 08:52:08 +00:00
Mark Punzalan
53007b4d5b Remove dependency on Identity in HotwordAudioStreamManager
android.media.permission.Identity is not needed for AppOpsManager calls
and is an unnecessary coupling.

Bug: 258323047
Test: None with this change; pure refactoring
Change-Id: I1c70f95a73e36c2793e87116b426d55ce359b74b
Merged-In: I1c70f95a73e36c2793e87116b426d55ce359b74b
2022-12-02 08:51:37 +00:00
Mark Punzalan
27c97de8ae Allow setting buffer length for HotwordAudioStreamManager
A HotwordDetectionService can specify a buffer length for each
HotwordAudioStream in the HotwordDetectedResult by adding an int in the
HotwordAudioStream's metadata PersistableBundle, with the key
HotwordAudioStream.KEY_AUDIO_STREAM_COPY_BUFFER_LENGTH_BYTES.

If the value is not specified or is an invalid value, the default buffer
length is 2,560 bytes.

Bug: 257509629
Test: Manually with test app, verified with logs
Test: atest CtsVoiceInteractionTestCases
Change-Id: I28c7f21bdf7c00b62c9cc6c29153d79ce9d85286
Merged-In: I28c7f21bdf7c00b62c9cc6c29153d79ce9d85286
2022-12-02 08:51:14 +00:00
Vinit Nayak
70092b090e Cleanup removal of taskbarSize from calculation
* See ag/20617554 for more context

Bug: 261110474
Test: FullscreenDrawParamsTest passes
Change-Id: Id13e811a0966bdcc17fc282303fe98a8b7290dbf
2022-12-01 21:25:03 -08:00
Chris Li
62f0464d29 Provide startBounds for closing container with legacy transition
Before, we only provide startBounds when the animation target is
MODE_CHANGING, with which we won't know the start bounds for target that
is closing while resizing.

Now, we provide startBounds for all targets, so that we can use it to
provide seamless animation when the target is closing while resizing.

Also make sure the closing container's surface is in the start bounds
before the animation starts to avoid any flicker.

Bug: 241043533
Test: Verify with switching between split and stack.
Change-Id: I4d8e1ee44d418249dcb434425c7ab3d63a429bad
2022-12-02 05:01:02 +00:00
Aaron Liu
8b5178beac Fix fatal exception in FakeBroadcastReceiver.
It seems like an exception is thrown because ArraySet is not
thread-safe.

Use a synchronized hash set for the receivers.

Fixes: 261099639
Test: atest KeyguardQuickAffordanceProviderTest
Change-Id: I39c43bb2d5dbdc6705b5dec4b362d75189c136d9
2022-12-01 19:06:54 -08:00
Chris Poultney
61152bc812 Add home/lock screen argument to remaining methods that require one
After merge into master, @hide annotations will be removed and CTS tests
added.

Bug: 253481667
Test: will be added in master
Change-Id: Ia8bb930c72113c510ed7c4eb70738083c0662151
2022-12-02 03:01:48 +00:00
Jerry Chang
86d092aa7e Merge "Consolidate leaving split screen to pip mode behavior" into tm-qpr-dev 2022-12-02 01:58:06 +00:00
Florence Yang
3635082c95 Color Change Animation for AnimatableClockView
Creating a simple color fade animation for when theme or region
sampling changes the color of the clock. This replaces the use of
animateAppearOnLockscreen() for those cases by creating a specific animation that only deals with color.

Fixes: 259282866
Test: manual
Change-Id: I279b5e01025a0f7bf5815599ea786a1ab68c06ef
2022-12-02 01:51:38 +00:00
TreeHugger Robot
921aac6f4d Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-02 00:50:40 +00:00
TreeHugger Robot
1bca812fce Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-02 00:50:40 +00:00
TreeHugger Robot
931de51433 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-12-02 00:50:40 +00:00
John Wu
5e6409d64f Disable intent filter enforcement in startActivityFromRecents
Due to the fact that the resolved type of an intent is not available
during startActivityFromRecents, the intent might not match the intent
filter, making the activity un-launchable if the enforcement is enabled.

The solution in this commit is a nasty hack for T; a proper fix should
be implemented in master.

Bug: 240373119
Test: atest CtsContentTestCases:PackageManagerTest
Change-Id: Ic88c728373d86dfddd6198600a05c696112048da
2022-12-02 00:10:49 +00:00
Mateusz Cicheński
76d2b200ae Don't move PiP towards a corner after user manually moved it.
With keep clear areas flag on, PiP will gravitate towards one of the
bottom corners of the screen if possible. However, once a user moves
PiP manually, it will only continue to avoid occluding keep clear
areas, but no longer move downwards. This also happens if user resized
the window.

This can be disabled by turning the newly introduced sysprop flag.

Bug: 258529269
Test: manually

Change-Id: Ieaa292c54762d5cd005bcdf7eab48d6082e5c3a9
2022-12-01 22:51:44 +00:00
TreeHugger Robot
e354477990 Merge "Prevent touch event dispatch on the top edge when collapsed" into tm-qpr-dev 2022-12-01 22:30:29 +00:00
Rahul Banerjee
f1ab4bc832 Merge "Enable SysUI Predictive Back in teamfood." into tm-qpr-dev 2022-12-01 22:05:34 +00:00
Peter Kalauskas
ab2c6aa021 Guard against possible exception when tracing
Trace.beginSection() throws an IllegalArgumentException if section name
is longer than 127 chars. Therefore, it shouldn't be used anytime a
string name is generated at runtime. Instead, replace with equivalent
call to Trace.traceBegin().

Also, guard against StringBuilder GC garbage while tracing.

Test: manual
Bug: 257075630
Change-Id: Ia3477dc98b7d87f6fcd0c4f2e0aaad976f2203a2
2022-12-01 21:40:56 +00:00
Jack Yu
eee35ec5e0 Merge "Add carrier config to include LTE bands when calculating NR advaanced threshold" into tm-qpr-dev 2022-12-01 21:40:10 +00:00
Hawkwood Glazier
31c241cb3f Merge "Fix clock being too low in AOD" into tm-qpr-dev 2022-12-01 21:38:56 +00:00
Peter Kalauskas
46917e5336 TraceUtils updates, new helper for runnables
Modify TraceUtils' traceSection to use traceBegin instead of
beginSection because beginSection will crash at run-time if the string
is longer than 127 chars.

Also, guard against StringBuilder GC garbage while tracing.

Test: manual
Bug: 257075630
Change-Id: I74cb5687a206f5d7ab8eb570cf24715d7e671df1
2022-12-01 21:38:29 +00:00
Yuri Lin
8c52651070 [automerger skipped] Merge "Use rule package name in addAutomaticZenRule; specify "android" for all system apps" into qt-dev am: e0ddfb666d am: fb7e019e1d -s ours am: a5b0e8c2e7 -s ours am: 853c9d7bb5 -s ours am: 713824873b -s ours am: 616553ab89 -s ours am: a988aef9b8 -s ours am: 90a0e26194 -s ours am: 3fbbfbec3f -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 7e58ab94f9 is already in history

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

Change-Id: Idc7cf3da5ac7653f82b003adb3b10910ac7b1942
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 21:25:41 +00:00
Maryam Dehaini
9fcbcb0762 Merge "Rename WindowDecorModelView to reflect purposes" into tm-qpr-dev 2022-12-01 21:17:36 +00:00
Yuri Lin
3fbbfbec3f [automerger skipped] Merge "Use rule package name in addAutomaticZenRule; specify "android" for all system apps" into qt-dev am: e0ddfb666d am: fb7e019e1d -s ours am: a5b0e8c2e7 -s ours am: 853c9d7bb5 -s ours am: 713824873b -s ours am: 616553ab89 -s ours am: a988aef9b8 -s ours am: 90a0e26194 -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 7e58ab94f9 is already in history

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

Change-Id: I96bd5031b032590d4658c7dc632199f549e9a393
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 20:58:40 +00:00
Yuri Lin
68236776c3 [automerger skipped] Merge "Use rule package name in addAutomaticZenRule; specify "android" for all system apps" into rvc-dev am: 177cff5975 -s ours am: b44e95c6a0 -s ours am: 4c144d569e -s ours am: 64c4cbbcb7 -s ours am: 55f0d8adf1 -s ours am: 2e55c7c46f -s ours am: 4ced543a5d -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 b5ec639ba2 is already in history

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

Change-Id: Ibc0e8fae99ad2404bfc8b1f9d8ce76ff55c16379
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 20:22:25 +00:00
Yuri Lin
4281577517 [automerger skipped] Use rule package name in addAutomaticZenRule; specify "android" for all system apps am: 7e58ab94f9 -s ours am: fd9c2777f6 -s ours am: 2a1d293135 -s ours am: cf47b7b163 -s ours am: 21436e4d0a -s ours am: 4b7ee95b74 -s ours am: 23ed76a793 -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 b5ec639ba2 is already in history

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

Change-Id: I6e211454bf4c4fac2950a94f89b4a697b5791214
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 20:22:12 +00:00
Yuri Lin
d6916b94da [automerger skipped] Merge "Use rule package name in addAutomaticZenRule; specify "android" for all system apps" into rvc-qpr-dev am: e0b757e653 -s ours am: b7fb1dd4d7 -s ours am: 62dec4d801 -s ours am: e37c182f25 -s ours am: 2fe7dc1b8a -s ours am: 7ca3ad47aa -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 6e34748bdc is already in history

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

Change-Id: Iff9246ea11562571ad02eb1ab6def1fae45faf14
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 20:21:44 +00:00
Yuri Lin
c3c1f60ff7 [automerger skipped] Use rule package name in addAutomaticZenRule; specify "android" for all system apps am: b5ec639ba2 -s ours am: def2138262 -s ours am: 63474cc8cf -s ours am: 624a590544 -s ours am: d322fcae35 -s ours am: f4feacd99f -s ours
am skip reason: Merged-In I0c4c705cfe5fc875151958957daaf8657fbc21a7 with SHA-1 6e34748bdc is already in history

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

Change-Id: I61541ed5f4047e4990bafb1d86c0e70c55b0daed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-01 20:21:40 +00:00