Commit Graph

3808 Commits

Author SHA1 Message Date
Reema Bajwa
575b3ca5d3 Merge "Adding authentication entry and remote entry piping Test: Built & deployed locally Bug: 253155340" 2022-11-17 05:13:49 +00:00
Reema Bajwa
ca9571161d Adding authentication entry and remote entry piping
Test: Built & deployed locally
Bug: 253155340

Change-Id: I5e0e0479960caa14b1b782054fa10e74d146e73e
2022-11-16 23:18:25 +00:00
TreeHugger Robot
9a983837a1 Merge "Recycle leaked SomeArgs instances." 2022-11-16 20:29:23 +00:00
Jeff Sharkey
239855b386 Recycle leaked SomeArgs instances.
Bug: 258691671
Test: TH
Change-Id: I361ec4c8bb47b277130cca2c20197694538341e9
2022-11-16 10:50:49 -07:00
Lucas Silva
b9ecc133dc Merge "Implement dream out overlay transition" into tm-qpr-dev am: 620f597dd4 am: ffec20f8a3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20377749

Change-Id: Ie79aedb6e89361178129dc40a5fa0cbcb353e1b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-16 03:46:02 +00:00
Lucas Silva
ffec20f8a3 Merge "Implement dream out overlay transition" into tm-qpr-dev am: 620f597dd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20377749

Change-Id: I8d57aaafd589a72f915c89a9176ae634bfb19c9c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 20:10:44 +00:00
Lucas Silva
620f597dd4 Merge "Implement dream out overlay transition" into tm-qpr-dev 2022-11-15 19:49:26 +00:00
TreeHugger Robot
ad153f7905 Merge "Fix Dreams making media turn to PIP screen." into tm-qpr-dev am: faeae28e8a am: 869efc15d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20436990

Change-Id: I005d4294446dab4a25a679efdb3f47e90a39e3b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 16:08:19 +00:00
Reema Bajwa
7fa1b760d2 Merge "Remove header from GET & CREATE provider APIs Test: Built & deployed locally" 2022-11-15 15:54:36 +00:00
TreeHugger Robot
869efc15d9 Merge "Fix Dreams making media turn to PIP screen." into tm-qpr-dev am: faeae28e8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20436990

Change-Id: Ie5ff38e75c91868e9780c185fae059d8cbad4c8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 15:46:03 +00:00
TreeHugger Robot
faeae28e8a Merge "Fix Dreams making media turn to PIP screen." into tm-qpr-dev 2022-11-15 15:33:32 +00:00
Neil Fuller
d7b9c8c873 Merge "Add LTZP status APIs to the SDK" 2022-11-15 14:51:28 +00:00
TreeHugger Robot
67468d673c Merge "Copy data in HotwordAudioStream ParcelFileDescriptors" into tm-qpr-dev am: 7b9c2e99b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20471769

Change-Id: I2b10d6da79490c367e30dd61b3bd4d2731c1e5ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 12:35:38 +00:00
Aurélien Pomini
24697854b7 Merge "Add MainThread annotations to WallpaperService callbacks" 2022-11-15 12:15:36 +00:00
TreeHugger Robot
d5d978e1bb Merge "Hotword: Add HotwordAudioStream list in HotwordDetectedResult" into tm-qpr-dev am: b725e70644
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19751503

Change-Id: Ia0c72608f4c2af7a7309aa0353a223d78376030c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-15 10:16:59 +00:00
Neil Fuller
e13dc3f47b Add LTZP status APIs to the SDK
Give TimeZoneProviderService implementations the ability to supply
(optional) status information. This status information can be used for
two purposes:
1) To help report status to users in the SettingsUI (once plumbed
   through).
2) To influence higher-level time zone detection behavior, i.e. so that
   the time zone detection can understand that a TZP is unable to
   perform its duties, perhaps something the platform cannot detect for
   itself.

Test: atest core/tests/coretests/src/android/service/timezone/
Test: atest services/tests/servicestests/src/com/android/server/timezonedetector/location/
Bug: 236624675
Change-Id: Ifa66b8c968c0bdf31b6bdf55ead34b3fa1d9e6fa
2022-11-15 10:05:40 +00:00
Mark Punzalan
15055a4e41 Copy data in HotwordAudioStream ParcelFileDescriptors
Bug: 244595867
Test: TODO - Manual E2E test for now, CTS tests later
Change-Id: I02050cc39146e93e9dca1f3db6e0b5b894e85dd6
Merged-In: I02050cc39146e93e9dca1f3db6e0b5b894e85dd6
2022-11-15 07:02:10 +00:00
Ivan Chiang
3b18e55af3 Hotword: Add HotwordAudioStream list in HotwordDetectedResult
- Create the new data class HotwordAudioStream
- Add HowordAudioStream list into HotwordDetectedResult
- Add @UnsupportedAppUsage and remove some codegen data

Test: atest CtsVoiceInteractionTestCases
Bug: 243766281
Bug: 243597982
Change-Id: I0953a93195699b17d4a69bba6c4140bc91eecb79
Merged-In: I0953a93195699b17d4a69bba6c4140bc91eecb79
2022-11-15 07:01:33 +00:00
Lucas Silva
091205468b Implement dream out overlay transition
The overlay should blur and animate the complications when the dream is waking up. This adds a new API to DreamOverlayService to get notified of dreams waking, so that it can run the animation. When the animation is done, we communicate back to the DreamService so that it may finish itself.

A delay was added to the touch handler which hides the overlay when a
touch happens, in order to ensure the exit animation has a chance to
complete first.

Bug: 220311554
Test: atest DreamOverlayAnimationsControllerTest
Test: atest HideComplicationTouchHandlerTest
Test: atest DreamOverlayContainerViewControllerTest
Test: atest DreamOverlayServiceTest
Test: flashed device and verified animation looks correct when tapping
dream to exit

Change-Id: Ibccd45aefbf9b8aeb462d843794c3434c49a6bf2
2022-11-14 16:38:46 -05:00
Daniel Kim
ba16af7804 Merge "Update the proximity feature to return proximity levels" 2022-11-14 19:02:44 +00:00
Reema Bajwa
01917a16aa Remove header from GET & CREATE provider APIs
Test: Built & deployed locally

Change-Id: I2f8c82cd56a8b8cea22c044e9ab64afa817f5234
2022-11-14 18:24:49 +00:00
Daniel
2419ded7bb Update the proximity feature to return proximity levels
The original proximity feature which returned the distance in meters was
determined to be too privacy-invasive. AttentionManagerService continue
to receive proximity in distance from Attention Service, but
HotwordDetectedResult will map it
to different proximity levels, near and far. These proximity levels will be used in HotwordDetectionConnection. Use a RequiredServiceRule to make sure we only run the test if the device has the attention service

Bug: 253326426
Test: atest CtsVoiceInteractionTestCases
Change-Id: I4d55564c39d48dd1869d747beb37f81170c102f6
2022-11-14 00:21:23 +00:00
Reema Bajwa
ed78b791ad Basic create flow for credential manager up until pending intent is
invoked
Test: Built locally & deployed
Bug: 253155340

Change-Id: I7fb7b9970345defda799ba4a1533d8a995a28659
2022-11-11 22:19:38 +00:00
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
Victor Truong
5e4e096eea Fix Dreams making media turn to PIP screen.
Bug: 237475987
Test: Tested manually, CTS test here ag/20435513
Change-Id: Ic4217fd57b0138c905ba67a6314b6235cddc97b1
2022-11-10 15:10:55 +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
Aurélien Pomini
4602a88ae8 Add MainThread annotations to WallpaperService callbacks
New CTS will enforce that the callback methods from WallpaperService are
called by the main thread. Add the corresponding annotations to these
methods.

Test: atest CtsWallpaperTestCases
Bug: 240112941
Change-Id: Ia63a401197f5dd8b2d32234357ffc2863150be31
2022-11-09 10:46: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