Commit Graph

3783 Commits

Author SHA1 Message Date
Yasin Kilicdere
c07866af39 Merge "Add traces to WallpaperManagerService and WallpaperService." into tm-qpr-dev am: e9bad1ca98 am: 454de9ddfc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20426606

Change-Id: Ia0f04ab5a1b1d1645178eb75eb6801ac861324fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 18:54:50 +00:00
Yasin Kilicdere
454de9ddfc Merge "Add traces to WallpaperManagerService and WallpaperService." into tm-qpr-dev am: e9bad1ca98
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20426606

Change-Id: I1a6ef0769c04f63473ad633105a8bdb113fa4314
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 18:40:38 +00:00
Yasin Kilicdere
e9bad1ca98 Merge "Add traces to WallpaperManagerService and WallpaperService." into tm-qpr-dev 2022-11-10 17:57:36 +00:00
Fabian Kozynski
e3f805ebbc Merge changes I61922e99,I656b81fe into tm-qpr-dev am: 7515e83e2b am: 4936de71d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20385077

Change-Id: Icf5b60138b2ab55d347dfbbd5b336c799d7e4560
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 15:29:38 +00:00
Fabian Kozynski
4936de71d1 Merge changes I61922e99,I656b81fe into tm-qpr-dev am: 7515e83e2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20385077

Change-Id: I895b9b802137f19bfc50c42ccdec2945fcd85b81
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-10 14:56:32 +00:00
Fabian Kozynski
7515e83e2b Merge changes I61922e99,I656b81fe into tm-qpr-dev
* changes:
  Add code for collecting panel activity component
  Add meta data for panel
2022-11-10 14:25:02 +00:00
Lucas Silva
4759b06cc1 Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev am: 3dad16a68c am: 973b3adce7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20313650

Change-Id: Ic27a3d830d0825e3319da167843392152801b551
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 22:31:22 +00:00
Lucas Silva
973b3adce7 Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev am: 3dad16a68c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20313650

Change-Id: I6be560ab366bd8bbb6ece691c7e7fbe1af31a358
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 21:43:15 +00:00
Will Leshner
95ba64e23f Implement alternate power button behavior for dreams. am: bffe18bf28
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20132039

Change-Id: I906067a2d0763943e95f57149543eb59146f83e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-09 21:42:55 +00:00
Lucas Silva
3dad16a68c Merge changes Ifece2dc6,Id0c37612 into tm-qpr-dev
* changes:
  Push active dream component to WindowManager instead of pulling.
  Implement alternate power button behavior for dreams.
2022-11-09 21:26:27 +00:00
Yasin Kilicdere
487e0c2ae6 Add traces to WallpaperManagerService and WallpaperService.
These trace logs are needed to analyse the performance impact of
switching wallpapers while switching between Android users.

Bug: 256604395
Test: N/A
Change-Id: Ie1ed4100a675f4a5ca00c084ebd299212590d427
2022-11-09 18:16:06 +00:00
TreeHugger Robot
ca1f1e2934 Merge "Tidy up changes before API change" 2022-11-08 21:05:24 +00:00
Neil Fuller
9429d4dcf7 Tidy up changes before API change
Extract non-API changes to make the API change commit smaller / more
focused. These changes are mostly naming, comment and some improved
validation. There's some toString() / parsing toString() changes and
associated tests for manual testing support used in later commits.

Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Test: atest core/tests/coretests/src/android/service/timezone/
Bug: 236624675
Change-Id: I8f74e4bd0ad1a34b593afdf89b3e4840420a5d10
2022-11-08 14:05:56 +00:00
Mark Punzalan
8e71589cb9 Merge "Copy data in HotwordAudioStream ParcelFileDescriptors" 2022-11-07 21:47:00 +00:00
Lucas Silva
a057442725 Push active dream component to WindowManager instead of pulling.
Instead of pulling the active dream component, we push the component
when a dream is started. This ensures that the active component remains
in sync with the currently active dream.

Bug: 246091760
Test: flashed device and verified dreams are working correctly
Change-Id: Ifece2dc62486b74794f0d333d19bec2ab3bc9229
2022-11-07 20:41:10 +00:00
Fabian Kozynski
927f5c687b Add meta data for panel
Test: build
Bug: 257283506
Change-Id: I656b81fe3faef442c5780985495dad900a1dab57
2022-11-07 11:08:18 -05:00
TreeHugger Robot
acf5ee3db1 Merge "Disallow to create the same kind of detector at the same time." 2022-11-04 13:07:20 +00:00
TreeHugger Robot
7273e4b03b Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev am: d35150f907
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20308987

Change-Id: I87b31354db0a112cb2481e1d1654d2e5ca1a7c95
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-03 04:59:14 +00:00
TreeHugger Robot
d35150f907 Merge "Inform Assistant visible activity when the stage of activity lifecycle is invoked." into tm-qpr-dev 2022-11-03 04:11:11 +00:00
Reema Bajwa
f7de5d9144 Merge "Add remote credential entry to GET and CREATE responses Test: Built & deployed locally Bug: 253155223" 2022-11-02 18:43:40 +00:00
TYM Tsai
98e013f664 Merge "Reset Autofill dialog if the content is changed" 2022-11-01 22:17:38 +00:00
Reema Bajwa
eadd7d351d Add remote credential entry to GET and CREATE responses
Test: Built & deployed locally
Bug: 253155223

Change-Id: I11e8210af107d725520f8cb4ecc86acb09048842
2022-11-01 18:16:36 +00:00
Will Leshner
bffe18bf28 Implement alternate power button behavior for dreams.
This change implements a power button behavior that prioritizes entering
a dream on press, rather than turning off the screen.

Bug: 245961904
Test: Manually as follows:

Make sure config_shortPressOnPowerBehavior is set to
SHORT_PRESS_POWER_DREAM_OR_SLEEP.

1. Set screensaver to dock then dock device. Make sure tapping power
   button when screen on goes to dream. Make sure tapping power button
   when screen off goes to dream. Make sure tapping power button while
   dreaming turns display off.
2. Set screensaver to charge then plug in device. Make sure tapping
   power button when screen on goes to dream. Make sure tapping power
   button when screen off goes to dream. Make sure tapping power button
   while dreaming turns display off.
3. Set screensaver to charge or dock and perform the same tests as
   above.
4. Set screensaver to dock and then undock device. Make sure tapping
   power button does not start dreaming.

Note that the device may charge while docked, so setting screensaver to
charge may act the same when docked or charging.

Merged-In: I9b6859b4933839841b76b832f275dcc14313f192
Change-Id: Id0c37612b866111ed265ac282963611429bfb36b
2022-11-01 10:16:43 -07:00
Peter Li
eedc06b463 Inform Assistant visible activity when the stage of activity lifecycle is invoked.
By the original design, we register the activity event in the
ActivityManagerService. After getting the activity event, we will
query current visible activities and report them to Assistant.
Assistant will start to get direct actions of those visible
activities. But sometimes they can not get the direct actions
due to the stage of activity lifecycle before onStart().

We change the logic to make sure that the stage of visible
activity that we reported to the Assistant is after onStart().

Bug: 235296082
Test: atest VoiceInteractionSessionVisibleActivityTest
Test: atest android.app.activity.ActivityThreadClientTest
Test: atest android.view.DisplayTest
Test: atest android.window.ConfigurationHelperTest
Test: atest android.window.SizeConfigurationBucketsTest
Change-Id: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
(cherry picked from commit 29bb3a3428)
Merged-In: Ie439ff3706dab35e875c1eb995a67fa73aec4d76
2022-11-01 09:19:51 +00:00
TreeHugger Robot
59231384d2 Merge "Add logs for wallpaper set completion" into tm-qpr-dev am: e91f8da432 am: b0a9462be1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20291664

Change-Id: Ieb7a673f14580c72fc9f22455bf00c998b4340b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 05:55:18 +00:00
TreeHugger Robot
b0a9462be1 Merge "Add logs for wallpaper set completion" into tm-qpr-dev am: e91f8da432
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20291664

Change-Id: Ie291947b6c9cfa2c449065be03b47e1b97d87454
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-01 05:24:29 +00:00
TreeHugger Robot
e91f8da432 Merge "Add logs for wallpaper set completion" into tm-qpr-dev 2022-11-01 04:50:02 +00:00
Reema Bajwa
f4f11c1efa Merge "Changes to Provider API Test: Locally built & deployed" 2022-10-31 22:15:38 +00:00
Mark Punzalan
924ea41799 Copy data in HotwordAudioStream ParcelFileDescriptors
Bug: 244595867
Test: TODO - Manual E2E test for now, CTS tests later
Change-Id: I02050cc39146e93e9dca1f3db6e0b5b894e85dd6
2022-10-31 22:01:38 +00:00
Reema Bajwa
d1b50f78b6 Changes to Provider API
Test: Locally built & deployed

Change-Id: I5d81f5a4d9c9283a39c0f4851a66ff5104c3bc8e
2022-10-30 18:44:22 +00:00
lpeter
a57d4fa933 Disallow to create the same kind of detector at the same time.
There are two kinds of detectors, one is AlwaysOnHotwordDetector,
the other is SoftwareHotwordDetector. We don't allow to create
multiple AlwaysOnHotwordDetectors at the same time or create
multiple SoftwareHotwordDetectors at the same time.

Test: atest CtsVoiceInteractionTestCases
Bug: 193232191
Bug: 243598246
Change-Id: I849a2219bba329761f05719307c0a9247026da2a
2022-10-29 03:13:24 +00:00
Reema Bajwa
4dc3bfb1d8 Merge "Add basic piping for providers and ux Test: Built & deployed locally Bug: 253155340" 2022-10-28 19:34:15 +00:00
Reema Bajwa
ad3a1f542d Add basic piping for providers and ux
Test: Built & deployed locally
Bug: 253155340

General TODOs :
- Locking
- Reduce logging post debugging phase
- More generalization/abstraction as create flow is added

Change-Id: Ib35fbe8a9118a62df346ecb19207e5b54f95b019
2022-10-28 16:57:15 +00:00
TreeHugger Robot
8378cdbdcb Merge "Rename the methods to easier understand what they do" into tm-qpr-dev am: 0b673f9ea6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19889691

Change-Id: I16e47cddf4d805c06945c2d84f2a0578eb8c1911
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-28 12:13:32 +00:00
Will Leshner
7012ed5a09 Implement alternate power button behavior for dreams.
This change implements a power button behavior that prioritizes entering
a dream on press, rather than turning off the screen.

Bug: 245961904
Test: Manually as follows:

Make sure config_shortPressOnPowerBehavior is set to
SHORT_PRESS_POWER_DREAM_OR_SLEEP.

1. Set screensaver to dock then dock device. Make sure tapping power
   button when screen on goes to dream. Make sure tapping power button
   when screen off goes to dream. Make sure tapping power button while
   dreaming turns display off.
2. Set screensaver to charge then plug in device. Make sure tapping
   power button when screen on goes to dream. Make sure tapping power
   button when screen off goes to dream. Make sure tapping power button
   while dreaming turns display off.
3. Set screensaver to charge or dock and perform the same tests as
   above.
4. Set screensaver to dock and then undock device. Make sure tapping
   power button does not start dreaming.

Note that the device may charge while docked, so setting screensaver to
charge may act the same when docked or charging.

Change-Id: I9b6859b4933839841b76b832f275dcc14313f192
2022-10-27 10:47:05 -07:00
Ahan Wu
dfc876bef7 Add logs for wallpaper set completion
Add logs to see the whole process of wallpaper set completion.

Bug: 248842910
Test: manually checking logs
Change-Id: I4f68407ee9d20497a748d01efc76ca25c7dbebf9
2022-10-26 17:03:43 +00:00
Tiger Huang
2f8c5fe063 Merge changes from topic "requestedVisibleTypes2"
* changes:
  Describe requested visibilities in public types (3/n: server side)
  Describe requested visibilities in public types (2/n: client-server)
  Describe requested visibilities in public types (1/n: client side)
2022-10-26 06:10:04 +00:00
lpeter
cfc66c9342 Rename the methods to easier understand what they do
Because it is not clear to understand what these two methods do,
we rename them.
(1)updateVisibleActivitiesLocked()
(2)updateVisibleActivitiesChangedLocked

Bug: 235296082
Test: atest VoiceInteractionSessionVisibleActivityTest
Change-Id: Id7db3a0dc9c2a17276ae213223fa3dd6ae572b9f
(cherry picked from commit 0d7aa31d35)
Merged-In: Id7db3a0dc9c2a17276ae213223fa3dd6ae572b9f
2022-10-25 08:00:41 +00:00
Hai Zhang
5611f58784 Merge "Move TypedXml{Parser,Serializer} to modules utils package." 2022-10-25 02:44:29 +00:00
Neil Fuller
153f08e8ae Merge "Changes to support time zone provider status APIs" 2022-10-24 17:13:02 +00:00
Neil Fuller
13c1a5cf4f Changes to support time zone provider status APIs
These changes add a new status (not yet part of the SDK API) that will
enable the time zone detection service to make decisions like telephony
fallback based on information from the provider.

The status will also enable information to ultimately be surfaced to the
user in SettingsUI about the time zone detection being blocked or
running degraded due to settings like the "Google Location Accuracy"
setting on GMS device.

The SDK API changes will be made once the information passed is used and
can actually be detected from tests.

Test: atest core/tests/coretests/src/android/service/timezone/
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Bug: 236624675
Change-Id: Ia1a9f9a18454fc087d187289d761d5e3649bbaee
2022-10-24 11:47:13 +01:00
TreeHugger Robot
4f78028734 Merge "Fix some parcelling issues in credential provider APIs + write/read to parcel consistent Test: Built & deployed locally" 2022-10-23 18:43:40 +00:00
TreeHugger Robot
4447541f5d Merge "Smooth transition when switching dreaming." into tm-qpr-dev am: f932a2974e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20041857

Change-Id: Idbbd394f57016b4609450819729f22ee102db478
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 07:19:42 +00:00
Darrell Shi
7d2d5aab89 Merge "Smooth transition when switching dreaming." 2022-10-22 05:24:38 +00:00
Darrell Shi
01fbf6b763 Smooth transition when switching dreaming.
This CL makes the following changes
- instead of stopping any existing dream before starting a new one, now
  stop *after* the new dream has been started
- do not reuse the same task for multiple dream activities

This allows a smooth inter-task transition when swiching between dreams,
e.g. between user configured dream and system dream.

Bug: 244315094
Fix: 244315094
Test: atest DreamControllerTest
Test: atest SystemDreamTest
Test: manually on device, see video in linked bug
Change-Id: I9576470ae0f54d553a0db3aee6fb720edaa5d733
Merged-In: I9576470ae0f54d553a0db3aee6fb720edaa5d733
2022-10-21 21:14:23 +00:00
Darrell Shi
07723e0154 Smooth transition when switching dreaming.
This CL makes the following changes
- instead of stopping any existing dream before starting a new one, now
  stop *after* the new dream has been started
- do not reuse the same task for multiple dream activities

This allows a smooth inter-task transition when swiching between dreams,
e.g. between user configured dream and system dream.

Bug: 244315094
Test: atest DreamControllerTest
Test: atest SystemDreamTest
Test: manually on device, see video in linked bug
Change-Id: I9576470ae0f54d553a0db3aee6fb720edaa5d733
2022-10-21 21:13:25 +00:00
Reema Bajwa
dec0d578f6 Fix some parcelling issues in credential provider APIs + write/read
to parcel consistent
Test: Built & deployed locally

Change-Id: If4d841c1b14cf6c2c9e23bc1b01be141be313444
2022-10-21 20:13:40 +00:00
Hai Zhang
e55b8eeb28 Move TypedXml{Parser,Serializer} to modules utils package.
A subsequent change will actually move the files to the other git
project.

Bug: 243194720
Test: presubmit
Change-Id: If126bb68f74852528c4da8df79831b49b5129983
2022-10-21 04:28:13 -07:00
Julia Reynolds
384e8af6b4 Update category to action
Test: settings tests, launch test app
Fixes: 254339351
Change-Id: Id7f0c15ce1ac35edf4f98319c7b3f8580c002e33
2022-10-21 10:09:11 +00:00
TYM Tsai
2db6d6767c Reset Autofill dialog if the content is changed
If the content of activity is changed, may fill dialog be requested
to show up again. Tracks all fillable views to know the content is
changed, and then reset all flags for the fill dialog.

Bug: 236237955
Test: atest CtsAutoFillServiceTestCases
Change-Id: I58503dd4021021d4bdc8d5114ff7255178fe5408
2022-10-21 06:13:37 +08:00