Commit Graph

3120 Commits

Author SHA1 Message Date
Mariia Sandrikova
438644871b Merge "Freeze live wallpaper for letterbox background." into sc-v2-dev am: 809e26fc6a am: f12299be1a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15360874

Change-Id: Ife9a312b135e13f4159dbe865237eca87638d350
2021-07-30 15:09:52 +00:00
Mariia Sandrikova
809e26fc6a Merge "Freeze live wallpaper for letterbox background." into sc-v2-dev 2021-07-30 15:00:37 +00:00
Mariia Sandrikova
a829124577 Freeze live wallpaper for letterbox background.
With this change, WallpaperController sends "freeze" / "unfreeze" commands when the app window is letterboxed / not letterboxed indicating that:
- "freeze": a screenshot of the wallpaper is taken by WallpaperServices and put on top of the main surface while the wallpaper host is notified through onVisibilityChanged(false) callback that it's no longer visible.
- "unfreeze": a screenshot of the wallpaper is removed and the wallpaper host is notified through onVisibilityChanged(true) callback if the wallpaper is visible again (e.g., if transitioned from an app to the Home screen).

Logic isn't applied to static wallpapers.

When wallpaper size changes while being frozen, the screenshot is scaled and cropped to adjust to the new size.

Fix: 177884751
Test: Manual, atest WallpaperServiceTest, WallpaperServiceTests
Change-Id: If0300478cdccc07d226117e01ce3d43aa0b432a0
2021-07-30 12:58:34 +01:00
Jay Aliomer
c9a1208fb5 Merge "WallpaperService crashes becuase of a log statement" into sc-dev am: c2d9287c97
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15403905

Change-Id: I467a74c250473e45fe76db8ad5ee064b6328e1e9
2021-07-29 19:14:54 +00:00
Ahaan Ugale
342d24c807 Merge changes I212ad58c,Idf5dd82d into sc-dev am: 0e3d3b90ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15360457

Change-Id: I9175ddb251f30c0eaff0e3549e7bd31f28d40623
2021-07-28 18:24:20 +00:00
Jay Aliomer
00ae142e76 Merge "WallpaperService crashes becuase of a log statement" into sc-dev am: c2d9287c97 am: 95c07a21a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15403905

Change-Id: I1642ce0f2a8b54d4db12a5edb1e54029fa05c63d
2021-07-28 15:55:10 +00:00
Vishnu Nair
14217fe4a9 Merge "Wallpaper: Propagate transform hint from WM to BBQ surface" into sc-dev am: 2dfdf43732
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15372415

Change-Id: I757146bb57ea3cc9ac57ca159e444d004b481972
2021-07-28 14:59:27 +00:00
Jay Aliomer
959dd9c06a WallpaperService crashes becuase of a log statement
Log.wtf should have been Log.e and it is only an informative log

Fixes: 192327606
Test: WallpaperServiceTest
Change-Id: I2e13cf6f7f7abffbb8d3f28aeaa0605711085157
2021-07-27 21:06:03 +00:00
Tiger Huang
17ef2f52c6 Merge "Use InsetsVisibilities to carry requested visibilities" into sc-v2-dev am: 9052763843 am: 6b52c08bbf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15385730

Change-Id: I31b54ea52b0d977e0161458ba7e41c4b9578df9d
2021-07-27 06:48:21 +00:00
Tiger Huang
6b52c08bbf Merge "Use InsetsVisibilities to carry requested visibilities" into sc-v2-dev am: 9052763843
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15385730

Change-Id: Iac4fdec20890c2df0960488453c3ff7d2f801f8b
2021-07-27 06:34:28 +00:00
Tiger Huang
090c0cbcb0 Use InsetsVisibilities to carry requested visibilities
InsetsState contains much more information than visibilities, such as
display frame, display cutout, rounded corners, privacy indicator
bounds, and frames of of insets sources. The control target only needs
to send the requested visibilities to WMS, so it can be too heavy to use
InsetsState.

This CL introduces an new class, InsetsVisibilities, which only contains
which type has which visibility. So it uses less memory, and it is more
efficient on copying and checking the equality.

Fix: 194186241
Test: atest InsetsVisibilitiesTest WindowAddRemovePerfTest
            InsetsControllerTest RegisterStatusBarResultTest
            CommandQueueTest LightsOutNotifControllerTest
            ActivityRecordTests DisplayContentTests
            DisplayPolicyLayoutTests InsetsPolicyTest
            InsetsSourceProviderTest InsetsStateControllerTest
            WindowFrameTests WindowManagerServiceTests WindowStateTests
Change-Id: I86c1b26b4383bfa3b924726d580e5706e13ba735
2021-07-26 21:55:34 +08:00
Ahaan Ugale
7916020e2b Merge changes I212ad58c,Idf5dd82d into sc-dev am: 0e3d3b90ec am: 9c1d1a05fe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15360457

Change-Id: Ia0d660886263d62272b81315aa1cea05b70324f0
2021-07-24 07:23:39 +00:00
Ahaan Ugale
0e3d3b90ec Merge changes I212ad58c,Idf5dd82d into sc-dev
* changes:
  Provide the way to enable/disable debug mode for logging egressed data
  Set the Debug flag to false
2021-07-24 06:54:24 +00:00
Vishnu Nair
68e336e20f Merge "Wallpaper: Propagate transform hint from WM to BBQ surface" into sc-dev am: 2dfdf43732 am: b34e807057
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15372415

Change-Id: If82368b18aeb531ba4a8f5c41c2e121f44a3213e
2021-07-23 21:23:51 +00:00
Vishnu Nair
3fb3632d43 Wallpaper: Propagate transform hint from WM to BBQ surface
This allows the buffer producer to consume the transform hint
for the first frame.

Bug: 194425759
Test: Rotate static wallpaper and check transform sent to HWC for wallpaper layer
Change-Id: I7f688c35ea836f57e3443e03d584fa85e745c6f9
2021-07-23 09:54:02 -07:00
lpeter
2d28217de6 Set the Debug flag to false
Set the Debug flag to false, but we also reserve some logs
for clarifying the issue.

Bug: 177502877
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: Idf5dd82d8db27bb682b473eb4584e8b230073d08
2021-07-23 14:46:29 +08:00
Yuri Lin
678eeab732 Merge "Update DND/Priority Mode defaults for new users." 2021-07-15 14:18:36 +00:00
Yuri Lin
72e45ffe4d Update DND/Priority Mode defaults for new users.
The new default settings are that, by default:
- starred contacts are allowed through
- priority conversations are allowed through
- rather than suppressing all visual effects, only suppress full screen intents, lights, peek, ambient display, and everything when screen is off for older target sdks

Test: manually verified settings for a fresh user via factory reset
Bug: 190180868

Change-Id: I3efb4d8192a6699743bc8be1616074c5c65c26a7
2021-07-14 12:44:58 -04:00
Julia Reynolds
fd3862debf Merge "Ensure non null package" into sc-dev am: 77f42843ac am: 879b2a9581
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15273600

Change-Id: I46f4b4b311a751bb3e0c70d9fe77550c55c410f7
2021-07-14 14:06:15 +00:00
Julia Reynolds
77f42843ac Merge "Ensure non null package" into sc-dev 2021-07-14 13:44:53 +00:00
Julia Reynolds
b49cc8510d Ensure non null package
Switch most usages of rule.pkg over to rule.getPkg() except for
ones that render Settings UIs, where a null package implies the UI
should be shown differently

Test: atest; trigger DND with a rule created before we started storing pkg
from the creating app rather than inferring it
Fixes: 191827482

Change-Id: I8fce30077d9e457ab0402b913dc551e55de2ee8f
2021-07-13 17:02:04 -04:00
Joshua Baxter
45f3cc5240 Merge "docs: fix typo" into sc-dev am: 3035bfacb7 am: 54d82e3cf4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15264710

Change-Id: Ibbd4db0f14ce201e24d902c35c82cabbd2be7939
2021-07-13 18:22:31 +00:00
Joshua Baxter
37fb04a630 docs: fix typo
bug: 178232693

Change-Id: I28d5af80c56c0f4b7771691a6466fdc6f4ee55a9
2021-07-13 00:36:10 +00:00
Ahaan Ugale
878ceb38cd Merge "Check/note ops when delivering HotwordDetectedResult" into sc-dev am: e360fc69a7 am: 19c940f607
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15241921

Change-Id: I8d9e9d472412c113c349e6ba630949f1fd11abe3
2021-07-12 18:10:18 +00:00
Ahaan Ugale
c5e855a9d9 Check/note ops when delivering HotwordDetectedResult
This is partially a followup of
I80dabaf6ae0e781028dde16ead3321fbff319542 which removed these operations
from the SoundTrigger layer when the HotwordDetectionService is used.

Also fixes a race condition where the DSP event can go directly to the
Interactor if the DetectionService isn't connected.

Bug: 186164881
Test: atest HotwordDetectionServiceBasicTest
Test: manual - DSP and non-DSP
Change-Id: Iee3b00c6c08597ad1993fae677e9f8ae2f60744c
2021-07-12 17:42:24 +00:00
TreeHugger Robot
fd76d1da86 Merge "Update deprecated Preconditions.checkNotNull with Objects.requireNonNull." 2021-07-07 23:53:50 +00:00
Joanne Chung
044c1bc50d Update deprecated Preconditions.checkNotNull with Objects.requireNonNull.
Bug: 179352338
Test: manual
Test: atest CtsAutoFillServiceTestCases
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsTextClassifierTestCases
Test: atest CtsContentCaptureServiceTestCases

Change-Id: Id66bacddad4b9f9178326fd97d0cadc3f23a594c
2021-07-07 23:49:45 +00:00
TreeHugger Robot
efcacce0c6 Merge "Limit the max value for hotword offset and audio channel" into sc-dev am: dadd76619e am: 4fee595e35
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15207278

Change-Id: Ie85fc44761656e238d024ec58b3c645700de0708
2021-07-07 18:15:12 +00:00
lpeter
77fd9ff1fa Limit the max value for hotword offset and audio channel
Currently we limit the max value of hotword offset to 1 hour and
audio channel to 63.

Bug: 190688148
Bug: 192331590
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I38379b77c2ab5ceb6c3b84f94e415bfe9f4c54e8
2021-07-06 11:44:11 +08:00
TreeHugger Robot
3a6d3e8b23 Merge "Init HotwordDetectionSrvc identity earlier" into sc-dev am: aa2c737e51 am: bf00a4312b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15187288

Change-Id: I21147287d3c92efe7146cc9888a342175a470793
2021-07-03 05:11:50 +00:00
TreeHugger Robot
aa2c737e51 Merge "Init HotwordDetectionSrvc identity earlier" into sc-dev 2021-07-03 04:41:08 +00:00
Ahaan Ugale
cb8ebd1151 Init HotwordDetectionSrvc identity earlier
Grants mic access to the process as soon as it comes up, instead of
waiting for the initialization status callback.

Bug: 190011174
Test: manual - dsp and non-dsp; restarting while invoking the hotword
Test: atest CtsVoiceInteractionTestCases
Change-Id: I54e0b42868f663ae1c9edd9bcf4aaee2a13b827a
2021-07-02 19:06:06 -07:00
TreeHugger Robot
e32a777158 Merge "Logging the number of bits egressing from the hotword trusted process" into sc-dev am: 023fa14302 am: 840ed7bb10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15126534

Change-Id: I774bfed14b1f4cd43a895121cdd0d95d7add09c7
2021-07-02 08:19:18 +00:00
TreeHugger Robot
023fa14302 Merge "Logging the number of bits egressing from the hotword trusted process" into sc-dev 2021-07-02 07:48:25 +00:00
lpeter
53de9e92d7 Logging the number of bits egressing from the hotword trusted process
Bug: 192331590
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I08329643d94655f762787a7a49567e19bbbfbe9c
2021-07-02 12:20:27 +08:00
Adam He
9a1ccd51a5 Merge "Remove activity name from autofill metrics logger." into sc-dev am: c254f87c57 am: 8009df38cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15147190

Change-Id: If20dd5648b9cacd6232603aeaacb84586f298496
2021-07-01 19:08:49 +00:00
Adam He
c254f87c57 Merge "Remove activity name from autofill metrics logger." into sc-dev 2021-07-01 18:38:06 +00:00
Silin Huang
460ba40a4d Merge "Add a tile service meta-data for QuickAccessWalletServiceInfo that fetches a drawable for wallet tile." into sc-dev am: 516cd210f6 am: a74c519459
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15045436

Change-Id: If5a76aa12a67a9547d36f93b95d20845cbeeb64c
2021-07-01 13:57:49 +00:00
Ryan Mitchell
33f7a4771c Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: b3659d36b0 am: 30d3f5c8cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15156470

Change-Id: Iaccb9ef10405114fa3cc3456404759a8d49678ed
2021-07-01 13:53:36 +00:00
Silin Huang
3d9cf89d06 Add a tile service meta-data for QuickAccessWalletServiceInfo that
fetches a drawable for wallet tile.

The wallet tile will get the icon drawable from QAW client; if it
doesn't exist, fall back to the static icon in SysUI.

Test: manual
Bug: 190606984
Fixes: 190539096
Change-Id: I2d822ee34c8e4b27ae72e86186b0d78f2b52854f
2021-06-30 22:28:01 +00:00
Ryan Mitchell
b3659d36b0 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev
* changes:
  Revert^2 "Apply overlay changes with config change"
  Revert^3 "Deprecate Context#createApplicationContext"
2021-06-30 20:58:43 +00:00
Ryan Mitchell
350c2669d6 Revert^3 "Deprecate Context#createApplicationContext"
This reverts commit cb5a80ea57.

Reason for revert: Was not the cause of the test failure

Fixes: 186622527
Test: atest FrameworksCoreTests:ContextTest
Change-Id: I705854f080200f0465d94a7754e710f05a3ec92c
2021-06-30 15:53:45 +00:00
Adam He
4ed8a9b1c6 Remove activity name from autofill metrics logger.
Bug: 192370727
Test: atest CtsAutoFillServiceTestCases
Change-Id: I88765d5ef92ed9fb03bc5c3c161ddad22e297fd6
2021-06-29 15:52:34 -07:00
Paul Hobbs
bea71c4df6 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev am: 8d440c0566 am: 30c6c3da16
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15144638

Change-Id: I480ec5d23f070c8383ea121432a9dd6c563a9188
2021-06-29 21:06:36 +00:00
Paul Hobbs
8d440c0566 Merge changes from topic "revert-15058002-SNQUARIDWJ" into sc-dev
* changes:
  Revert^2 "Deprecate Context#createApplicationContext"
  Revert "Version LoadedApk cache using base code path"
  Revert "Apply overlay changes with config change"
2021-06-29 20:36:15 +00:00
Paul Hobbs
cb5a80ea57 Revert^2 "Deprecate Context#createApplicationContext"
Bug: 192242649

5a41b45a85

Change-Id: Idcebd68e0079e7e87de04ae25069b3a9ff72093c
2021-06-29 20:06:45 +00:00
TreeHugger Robot
b56bc05e84 Merge "Specify the wallpaper blast wrapper is a wallpaper window" into sc-dev am: 0954cfe651 am: d112d1a73e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15132873

Change-Id: I34447ccd2f735c2c6862d941a3af97bc656db772
2021-06-29 16:26:28 +00:00
TreeHugger Robot
0954cfe651 Merge "Specify the wallpaper blast wrapper is a wallpaper window" into sc-dev 2021-06-29 16:12:22 +00:00
Vishnu Nair
c59eff487b Specify the wallpaper blast wrapper is a wallpaper window
SurfaceFlinger scheduler keys off the window type to implement some
refresh rate selection logic. If a layer has window type wallpaper, then
the refresh rate vote is set to min. With Blast, the actual buffer will
arrive in a layer without the window type metadata. Fix this by
setting the metadata on the blast bbq layer as well.

Test: check if wallpaper runs at a lower refresh rate
Fixes: 191222072
Change-Id: I50058cf42fca155630354ea247d12511ebfe37a8
2021-06-28 23:41:58 +00:00
Ryan Mitchell
702a3e0710 Merge changes Icf81845d,Iea54abf3,I98656314 into sc-dev am: 5a532f6eed am: f55b43b332
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15058002

Change-Id: Ifd34e72963e196376f408eac4f195142575a4402
2021-06-27 06:52:58 +00:00