Commit Graph

3766 Commits

Author SHA1 Message Date
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
TreeHugger Robot
acf5ee3db1 Merge "Disallow to create the same kind of detector at the same time." 2022-11-04 13:07:20 +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
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
Reema Bajwa
f933369f0a Merge "Add CredentialProviderInfo class to get information about credential providers on the device Test: manual - built & deployed locally Bug: 247545196" 2022-10-20 20:02:42 +00:00
Vishnu Nair
0310eb679e Merge "ViewRootImpl: Fix display install orientation query for transform hint" 2022-10-19 16:49:59 +00:00
Lucas Silva
2bb5596cf9 Merge "Add Callback to wake up from Dream when DreamActivity is destroyed." into tm-qpr-dev am: 358ad7d0d0 am: 42127fbaa5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19734004

Change-Id: Ib6790ff54cd3a16ee4e08b1983182821758b93ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 14:37:28 +00:00
Lucas Silva
42127fbaa5 Merge "Add Callback to wake up from Dream when DreamActivity is destroyed." into tm-qpr-dev am: 358ad7d0d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19734004

Change-Id: I95f78016c9c12fce2d3907a7b2111aafb676c295
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-19 14:30:41 +00:00
TreeHugger Robot
ec8ee5a7da Merge "Hotword: Support defensive copy for get/set AudioStreams" 2022-10-19 04:41:02 +00:00
TreeHugger Robot
65032453d0 Merge "Hotword: Rename the api in HotwordAudioStream" 2022-10-19 00:55:37 +00:00
Victor Truong
feb3aa71f9 Add Callback to wake up from Dream when DreamActivity is destroyed.
When a DreamActivity is destroyed, the devices remains in a dream state.
This makes it look like the DreamActivity is stuck in the background but
it is actually destroyed and DreamService does not allow another Dream
to take its place.

Bug: 242368903
Bug: 241569844
Test: Manually tested by checking that when a DreamActivity is destroyed
the device wakes up from dreaming.

Change-Id: Idcb38f2332f3a8dea0add78a4ca506877aeca8f7
2022-10-18 17:04:26 -04:00
Julia Reynolds
38b3e55858 Merge "Add NLS Settings link" 2022-10-18 19:32:23 +00:00
Chris Poultney
c22d2ce264 Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." into tm-qpr-dev am: 0f8f2d726b am: e5e1aa95a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20122170

Change-Id: Iedfe67b28f3a950a989b229bb2da14320b991fd9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 16:16:04 +00:00
Chris Poultney
e5e1aa95a5 Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." into tm-qpr-dev am: 0f8f2d726b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20122170

Change-Id: Ib4e2321373420b1c7fdfd47cca372bbf3baa122a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 15:45:18 +00:00
Chris Poultney
0f8f2d726b Merge "Lock screen live wallpaper: adds home/lock screen flag as argument." into tm-qpr-dev 2022-10-18 15:06:21 +00:00
Tiger
9c4be367a8 Describe requested visibilities in public types (2/n: client-server)
This CL makes the client send an integer (instead of InsetsVisibilities)
as the requested visible types to the server.

This CL also removes the usages of InsetsVisibilities from WM shell.

Bug: 253420890
Bug: 234093736
Test: atest ActivityRecordTests DisplayContentTests InsetsPolicyTest
      InsetsStateControllerTest WindowContainerInsetsSourceProviderTest
      WindowLayoutTests WindowManagerServiceTests WindowStateTests
      WindowAddRemovePerfTest StartingSurfaceDrawerTests
      TaskSnapshotWindowTest
Change-Id: I29d245e3c36a29f01bdd3347fe858727c3540ff8
2022-10-18 19:20:14 +08:00
Vishnu Nair
6732df291a ViewRootImpl: Fix display install orientation query for transform hint
Apps did not get the correct transform hint when moving
between displays because the display install orientation
was not updated correctly. Fix by always querying the install
orientation instead of relying on the cached value.

Bug: 251360251
Test: move app between displays, rotate, check final buffer transforms
Change-Id: Icd463de9407b3f22cbea510d65c8d8c1b1c986d6
2022-10-17 22:33:16 -07:00
Julia Reynolds
62b0335e61 Add NLS Settings link
Bug: 236932102
Test: general cts test for validating constants
Change-Id: I027a664d29a56c63aa57f96597f5462063fd3e94
2022-10-17 13:58:48 -04:00
Ivan Chiang
1c7a86b68d Hotword: Support defensive copy for get/set AudioStreams
Bug: 253179545
Test: atest CtsVoiceInteractionTestCases
Change-Id: I6242e10b7f5cc86ab10fe0b54946a542677b88be
2022-10-17 11:52:04 +00:00
Ivan Chiang
38ffe373c3 Hotword: Rename the api in HotwordAudioStream
- Rename mAudioStream to mAudioStreamParcelFileDescriptor
- Return Collections.emptyList() in defaultAudioStreams in
  HotwordDetectedResult

Test: atest CtsVoiceInteractionTestCases
Bug: 253179545
Change-Id: I39fb7a7ae14f6480114df254daf35f1f1b310879
2022-10-17 03:33:31 +00:00
Chris Poultney
43a06cf7e3 Lock screen live wallpaper: adds home/lock screen flag as argument.
Adds flag to wallpaper setting methods to allow specifying
home/lock/both. This will be implemented in master.

Bug: 253481667
Test: TreeHugger
Change-Id: I590b2972b102fba672726633a86727b167a4b02b
2022-10-13 21:37:46 +00:00