Commit Graph

3818 Commits

Author SHA1 Message Date
Mark Punzalan
7d87534508 Merge changes I43a24b27,I1c70f95a,I28c7f21b
* changes:
  Rename HotwordAudioStreamManager and add Javadoc
  Remove dependency on Identity in HotwordAudioStreamManager
  Allow setting buffer length for HotwordAudioStreamManager
2022-12-01 23:29:02 +00:00
Mark Punzalan
3959b354c5 Allow setting buffer length for HotwordAudioStreamManager
A HotwordDetectionService can specify a buffer length for each
HotwordAudioStream in the HotwordDetectedResult by adding an int in the
HotwordAudioStream's metadata PersistableBundle, with the key
HotwordAudioStream.KEY_AUDIO_STREAM_COPY_BUFFER_LENGTH_BYTES.

If the value is not specified or is an invalid value, the default buffer
length is 2,560 bytes.

Bug: 257509629
Test: Manually with test app, verified with logs
Test: atest CtsVoiceInteractionTestCases
Change-Id: I28c7f21bdf7c00b62c9cc6c29153d79ce9d85286
2022-12-01 17:40:13 +00:00
Yasin Kilicdere
00fb123a02 Merge "Make ImageWallpaper handle WallpaperService messages on its own thread" 2022-11-30 17:07:20 +00:00
Yasin Kilicdere
696adad614 Make ImageWallpaper handle WallpaperService messages on its own thread
When a wallpaper is called to be attached, IWallpaperEngineWrapper
sends a DO_ATTACH message to be handled on the main looper of the
wallpaper implementation. In the case of ImageWallpaper, it is
currently systemui. When system ui is occupied by other tasks,
reception of this message is delayed. And this decreases the
performance of switching between Android users in case the target user
has an ImageWallpaper.

This CL makes sure these service messages are handled on
ImageWallpaper's own thread, and the drawing of the wallpaper is not
delayed.

Bug: 242969351
Test: Manual comparison of perfetto traces
Change-Id: Ia911f1b879a20658d0b71e3486c079cbbcb081c8
2022-11-29 14:29:07 +00:00
Reema Bajwa
ad5934eb60 Unhide Credential Manager provider APIs
Test: Built & deployed locally
Bug: 253155222
CTS-Coverage-Bug:247549381

Change-Id: Ic126428c470deea23351e71c2ac216f727daf478
2022-11-29 02:50:49 +00:00
Ivan Chiang
874c074ad4 Hotword: Update HotwordAudioStream for AudioTimestamp
The AudioTimestamp is parceable. Use the new methods instead of the
original methods in HotwordAudioStream.

Bug: 259001306
Test: atest CtsVoiceInteractionTestCases
Change-Id: I53863819bb2a3e5df46824243e34b4f2146e60ea
2022-11-24 04:53:32 +00:00
Charlie Wang
bf720fc448 Merge "WearableSensing framework API for wearables." 2022-11-24 02:18:37 +00:00
Chris Poultney
cc560f439e Lock screen live wallpaper: adds home/lock screen flag as argument.
Bug: 253481667
Test: TreeHugger
Test: CTS tests for API changes in same topic
Change-Id: Icfe1096026569baf29bc3ffe062327c4d52b17fa
2022-11-18 23:08:09 +00:00
Will Leshner
b26c5ab14f Stop dreaming when undocking while showing low-light clock.
Bug: 254633538
Test: atest PowerManagerServiceTest
Change-Id: I8a9999f9648b9591bf8672d138463d0d401fcf75
2022-11-17 10:47:09 -08:00
Charlie Wang
6908f1db77 WearableSensing framework API for wearables.
WearableSensing framework APIs are intended to be used to interact and
manage the WearableSensingService. The WearableSensingService provides
an isolated service environment for an application to provide a remote
data stream to and run sensing workloads on the data stream. Clients
that want to use this API must hold the permission
MANAGE_WEARABLE_SENSING_SERVICE. The permission protection level is signature|privledged.

API overview: go/wearable-sensing-api
Design doc: go/trusted-glasses

A follow up CL will implement the integration between
WearableSensingService and AmbientContextManager. A subsequent follow up
will also add unit and cts testing.

Bug: 244181656, 249135378
Test: Builds.
Ignore-AOSP-First: to prevent new feature leak.
CTS-Coverage-Bug: 259453662
Change-Id: I0c5e3c5aa01dda9d3289733abd22abfcccc15f96
2022-11-17 08:47:47 -08:00
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