Commit Graph

3462 Commits

Author SHA1 Message Date
Vania Desmonda
8746d0d126 Merge "Prevent duplicate calls to updateSurface() and recursive call to updateSurfaceDimming()." into tm-dev am: eb0f10153f am: 53ef3d382a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18343949

Change-Id: I0f8a40774abedaa762b4adbfe476f1f9ecf05fc9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 09:00:43 +00:00
TreeHugger Robot
0c0231e1c6 Merge "Inform Assistant when security exception occurs during onDetected" into tm-dev am: d5cd970e0c am: 16d458b618
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18179574

Change-Id: Ic514a20d9c5a948110e3af82757efd21d92f3ea1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 08:50:09 +00:00
Vania Desmonda
eb0f10153f Merge "Prevent duplicate calls to updateSurface() and recursive call to updateSurfaceDimming()." into tm-dev 2022-05-13 07:01:18 +00:00
TreeHugger Robot
d5cd970e0c Merge "Inform Assistant when security exception occurs during onDetected" into tm-dev 2022-05-13 03:19:48 +00:00
Vania Desmonda
41af1e31d3 Prevent duplicate calls to updateSurface() and recursive call to
updateSurfaceDimming().

Reduce jank by removing notifyColorsChanged() on updateSurface() which
caused notifyColorsChanged() to be called multiple times successively.

Test: manual, atest WallpaperManagerTest
Bug: 229715857
Change-Id: I552a6956648250cd36787b7ddd79758422ea7f68
2022-05-12 14:09:34 +00:00
Peter Li
e6bbe4660e Inform Assistant when security exception occurs during onDetected
By the behavior, the interactor of assistant needs to call the
startRecognition function again after hotword event is triggered.
Otherwise it will not receive the result of detection.

Currently when security exception occurs during onDetected, we
won't inform the interactor of assistant about the hotword event.
It will cause the interactor still to wait the hotword event and
doesn't call startRecognition function again.

After syncing with assistant, we should use onError() callback
to inform interactor.

The behavior of onError() in the interactor:
For both of DSP and Software, assistant will call startRecognition
function.

The behavior of onRejected() in the interactor:
Only for DSP, assistant will call startRecognition function.
For Software, assistant doesn't expect to get onRejected()

Bug: 230738063
Test: atest HotwordDetectionServiceBasicTest
Change-Id: I3083fd5a4a78ad9d2f35acd7fa1a4f2036cf64de
Merged-In: Ideb210d4364d4c48c747d66268d77a2f5b017186
2022-05-12 09:50:08 +00:00
Vania Desmonda
806432c913 Merge "Revert "Avoid calling updateSurface twice when dimming is applied."" into tm-dev am: 05aa78241d am: 965cae5878
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18231745

Change-Id: I96c0e969c1a894706602b145464315db53228188
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-11 20:50:12 +00:00
Vania Desmonda
05aa78241d Merge "Revert "Avoid calling updateSurface twice when dimming is applied."" into tm-dev 2022-05-11 10:10:54 +00:00
Vania Desmonda
ceb55ed11b Revert "Avoid calling updateSurface twice when dimming is applied."
This reverts commit 9c4b4e14a0.

Reason for revert: Causes increased memory as reported in b/231834913

Change-Id: I95884e6f8b8416a6b8c85637dab5540f09eb89e1
2022-05-10 08:05:22 +00:00
Scottie Biddle
1c374ee44d Merge "Move CtsQuickAccessWalletTestCases to presubmit-large." into tm-dev am: c6b20b66d5 am: cbb7ca5b49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18187228

Change-Id: I5327e021fb5fc7722c6dd0544db20e78b2f65ba0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06 20:18:43 +00:00
Scottie Biddle
d5db263384 Move CtsQuickAccessWalletTestCases to presubmit-large.
One of the tests contained therein takes more than a minute to run, so these belong in presubmit-large

Change-Id: I2f216badf1e79fc7339098bad0157f76cc2fd73f
Test: atest CtsQuickAccessWalletTestCases
Fixes: 225066814
2022-05-06 16:24:11 +00:00
Darrell Shi
8176ed8b17 Add WM transit types for dream activity.
This change adds two WM transit types for opening and closing dream
activities, which allows the system to define transition in and out of
dreams, that are currently being overriden by other transitions.

Set the priority to be just below keyguard transit. The keyguard
occlude/unocclude already correctly handles the dream open/close
animation.

Bug: 222507937
Bug: 220311554
Test: atest WmTests:AppTransitionControllerTest
Test: manually on device by entering and exiting dreams over keyguard,
launcher, and settings. observed animation and relevant types of WM logs.

Change-Id: Iedfa279d56cd9d4c4679cb3b697ee74a98ef727b
2022-05-04 17:13:52 +00:00
Vania Desmonda
bc99f623d4 Merge "Avoid calling updateSurface twice when dimming is applied." into tm-dev 2022-05-04 09:43:53 +00:00
Bryce Lee
493062c55e Merge "Unbind from dream overlay in onUnbind." into tm-dev 2022-04-28 21:57:18 +00:00
Bryce Lee
1da50a201b Unbind from dream overlay in onUnbind.
If a dream is unbound before finish, unbinding from the overlay service
will not occur before onDestroy. This will result in an exception from
unbinding from a non registered service. This change ensures the dream
service unbinds from the overlay service when unbound.

Test: atest DreamManagerServiceTests#testForceStopStubbornDream
Fixed: 229824204
Change-Id: Id708b9119c5498bf9632b21a539c3ca7f5506737
2022-04-28 17:57:38 +00:00
TreeHugger Robot
a74842fe07 Merge "Make GameSessionTrampolineActivity invisible" into tm-dev 2022-04-28 04:32:39 +00:00
David Samuelson
eeebac455b Merge "Ensure GameSessionTrampolineActivity launches intent once." into tm-dev 2022-04-27 22:22:59 +00:00
shannonchen
7b2c3db83a Make GameSessionTrampolineActivity invisible
This change adds a new theme to prevent
GameSessionTrampolineActivity from displaying
any UI, which in turn delegates the
decision of whether or not to show things
like the system bars to the delegate
activity. This change also disables
transition animations for the trampoline
activity, to prevent them from causing
flickering.

Bug: 229757156
Test: manual testing using GMS dashboard
Change-Id: I82e0ede2e9f0b334fd01e958eab0736042119e84
2022-04-27 20:13:57 +00:00
Tyler Lacey
c85e97a7a1 Merge "Use Window Context for SurfaceControlViewHost." into tm-dev 2022-04-27 17:46:28 +00:00
Ahaan Ugale
44e14e72b6 Merge "Allow IVoiceInteractionSessionListener to listen for window vis changes" into tm-dev 2022-04-27 17:03:31 +00:00
Vania Desmonda
9c4b4e14a0 Avoid calling updateSurface twice when dimming is applied.
Test: manual, atest WallpaperManagerServiceTest
Bug: 229715857
Change-Id: Ib8c4939fea503ee71bf71a95dc71f10fd2956614
2022-04-27 11:20:19 +01:00
Winson Chung
06fb230d6d Allow IVoiceInteractionSessionListener to listen for window vis changes
- The listener currently tracks session shown/hidden, but doesn't track
  the visibility of the session window which can change on the client
  side without the server knowing. In some cases, it's useful for SysUI
  to be able to track the visibility of the session window to show/hide
  bars appropriately.

Bug: 222308557
Test: Manual, launch the assistant and verify the calls are made
Change-Id: I9b4bb27c9497b2a828616caf72eaf345b072c294
2022-04-23 05:56:27 +00:00
Simranjit Kohli
727ee17577 Merge "[Autofill Crash]: Fix NPE in AutofillManager." into tm-dev 2022-04-21 14:04:00 +00:00
Simranjit Kohli
1b57e4cc4c [Autofill Crash]: Fix NPE in AutofillManager.
Bug: 227192989
Test: atest android.autofillservice.cts.dropdown.AuthenticationTest#testFillResponseAuthServiceHasNoDataWithEmptyResponse
Change-Id: If56d690882e8d4ad0dba1534f127478089c4d04f
2022-04-20 18:10:23 -07:00
David Samuelson
37db6025c6 Ensure GameSessionTrampolineActivity launches intent once.
Test: Manually & passes newly added GameSessionTrampolineActivityTest
Bug: 229394334
Bug: 202414447
Bug: 202417255

Change-Id: I15ea072805439531fc89ee4f3038acc57f8c49ea
2022-04-20 18:23:48 +00:00
Lucas Silva
b6918681db Merge "Cleanup dream preview complication." into tm-dev 2022-04-20 16:17:50 +00:00
Tyler Lacey
1f1f7c604f Use Window Context for SurfaceControlViewHost.
This change is needed so that views will receive configuration
changes via link View#onConfigurationChanged.

Bug: 228343237
Test: Manual testing

Change-Id: Iccc09babb910867e0cd8b21ed750d67e87b944f9
2022-04-19 15:22:22 -04:00
Peter Li
f11f969973 Extend the timeout of update state
Bug: 207717787
Change-Id: Iaeea0917ce4aa363cd5889379580aa77c05b43bf
Test: atest HotwordDetectionServiceBasicTest
2022-04-19 17:37:19 +08:00
Lucas Dupin
16d2613662 Merge "Invalidate empty pages at the start of wallpaper" into tm-dev 2022-04-14 23:29:00 +00:00
Jay Aliomer
72c1ca86aa Invalidate empty pages at the start of wallpaper
Fixes: 222632463
Test: pick colorful wallpaper and use one page only with widget
Change-Id: Ie20786e0ad72926e029bc34ec379426af3001428
2022-04-14 16:05:00 -04:00
Lucas Silva
9f23e051e4 Accessibility: Set the title of the dream activity to the label of the
current dream.

Fixed: 228274765
Test: locally on device
Change-Id: I95f77ccd5b58b2162946731e274cf55f26162e12
(cherry picked from commit 894e25c3a7)
2022-04-14 17:50:04 +00:00
Lucas Silva
0b0ff3ddd9 Cleanup dream preview complication.
Fixed: 229089441
Bug: 226986434
Test: locally on device
Change-Id: I5f42fff23826505ca18f7b365371b433e32d2d20
2022-04-13 14:45:32 +00:00
Fabian Kozynski
0549cf1251 Don't crash TileService app when systemui crashes
Prevent the host app from crashing if systemui crashes while binding to
it. Instead, just return null and let the new systemui process bind
again, as the service will be unbound.

Test: atest FrameworksCoreTests:TileServiceTest
Test: manual, tiles still work
Fixes: 168756844
Change-Id: I70e0e8a223a84874415f7e649106398a5e039097
2022-04-11 14:10:21 -04:00
Bryce Lee
410b5a6f98 Unbind from overlay before checking attached.
Currently, DreamService#finish exits early if the window is not
attached. The unbind from the dream overlay service follows this
condition. As a result, it is possible that the service is not
unbound if the window was never attached. This changelist addresses
This potential connection leak by having the unbind precede the
check.

Fixed: 227498355
Test: manual
Change-Id: I7a73258cea5219bea96f4de3b90b4b5a66478fde
2022-04-04 14:57:13 -07:00
Jack Yu
2f0440e4fe Merge "Updated the owners" am: c22f798040 am: d7659e6014 am: 0d9d376b45
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052239

Change-Id: I2b0f3ca4b76ca656dde769ae1b26a9fe6a83d870
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 06:06:57 +00:00
Jack Yu
d7659e6014 Merge "Updated the owners" am: c22f798040
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2052239

Change-Id: Icf59b227d3b37ba84874d9452b16762b47603649
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-04 05:40:33 +00:00
TreeHugger Robot
20514d4e5e Merge "Add tracing to wallpaper local colors" into tm-dev 2022-04-01 17:30:41 +00:00
Jack Yu
7750d9fa9f Updated the owners
Updated the owners to the latest telephony and
telecomm team members.

Test: Build
Bug: None
Change-Id: I3a456b168ec24199413e42c5fa615ecf285af79b
2022-04-01 16:46:46 +00:00
Jay Aliomer
43cd27258f Add tracing to wallpaper local colors
Bug: 221495444
Test: N/A
Change-Id: Ia72308eef6bfa08523dd6cb7653b047cade86f7b
2022-04-01 10:07:27 -04:00
Simran Basi
ab7ee498bc Merge "Delete attribute useTargetActivityForQuickAccess." into tm-dev 2022-03-31 18:26:52 +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
Scottie Biddle
e30d9986f1 Delete attribute useTargetActivityForQuickAccess.
In practice, the value of this xml attribute is always going to a
function of  whether or not getTargetActivityPendingIntent() is null--
when a QuickAccessWalletService sends us a PendingIntent, we will use
that instead of the SystemUI card switcher activity.

If the PendingIntent is null, we then fall back to our old behavior:
* If the wallet is not currently showing any cards, launch the activity
  specified by getWalletIntent() (this is hardcoded in XML metadata).
    * If the wallet is currently showing cards, launch the SysUI
      switcher activity.

Test: atest CtsQuickAccessWalletTestCases --retry-any-failure
Test: atest QuickAccessWalletControllerTest
Fixes: 218860062
Change-Id: I62f7ca507ebce29b03d6ce76bccaa6d736720a86
Merged-In: I4cfaa5b6035499c47a0ed8b1a4a5f3e1f0f50860
2022-03-30 23:28:49 +00:00
Yuri Lin
f4853ae012 Write ZenPolicy conversation settings out to XML
because apparently we weren't doing that before

Bug: 223453030
Test: ZenModeConfigTest
Change-Id: Ied8f9120881d04987d38b8dc6364f864331a29f0
2022-03-28 16:04:49 +00:00
Tiger Huang
5b19a1584a Merge "Send InsetsState to the client via IWindow#resized" into tm-dev 2022-03-26 03:50:44 +00:00
Sharon Su
affee4a5e1 Merge "Update WallpaperEffectsGeneration api, including annotations on data classes and allow the same uid process to call returnCinematicResponse API." into tm-dev 2022-03-25 17:05:09 +00:00
Ayush Sharma
9f080a0345 Fix security hole in GateKeeperResponse am: 5d2176df69 am: 25356fba35 am: 936c9f03ea
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17343385

Change-Id: I22d92503039e830328e6a22a724aeb1286730108
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 13:06:56 +00:00
Ayush Sharma
936c9f03ea Fix security hole in GateKeeperResponse am: 5d2176df69 am: 25356fba35
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17343385

Change-Id: I440c492f0199a89f61356c21cc0f0be8d0649199
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 12:54:22 +00:00
Ayush Sharma
25356fba35 Fix security hole in GateKeeperResponse am: 5d2176df69
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17343385

Change-Id: Iaa20c957e0944a9ce72c1584d93c352d7ffeee40
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-25 12:35:07 +00:00
Tiger Huang
bc1d8093db Send InsetsState to the client via IWindow#resized
In some cases, the InsetsState and the window frame can be changed at
the same time (such as orientation changed). Reporting them separately
might produce incorrect insets.

When the window layout is moved to the client, it uses the configuration
and the InsetsState to compute the window frame. They need to be
reported together as well.

Bug: 161810301
Bug: 160732586
Test: atest ActivityRecordTests WindowStateTests
Test: Add logs to check if we dispatch the correct insets to apps while
      rotating the display.
Change-Id: I5c9f628eda40932def97c5caf968cb62db128e80
2022-03-25 12:39:18 +08:00
TreeHugger Robot
bb497479ab Merge "Update the GrantTrustResult to remove static factory method." into tm-dev 2022-03-25 03:52:11 +00:00