Commit Graph

10919 Commits

Author SHA1 Message Date
Jean-Michel Trivi
f474524ab4 Spatializer: more SysApi for availability, head tracker
Add @SystemApi to check if the Spatializer will be available for
a given device, if it has a head tracker, if enabled, and
change its tracker enabled state.
  Implement checking device compatibility with transaural and
binaural modes. Create list of compatible devices, list of
devices that have been enabled, and list of disabled. This is
to support the V3 UI where add/removeCompatibleDevice is used
to control Spatial Audio state for a subset of output devices.

Bug: 210803914
Test: atest SpatializerTest
Change-Id: I0acf0c0310dbd503de2ea87328fca7e5597ae32d
2022-02-11 08:08:51 -08:00
TreeHugger Robot
bdd4239197 Merge "Allow MediaCodecs to be created on behalf of other client processes." 2022-02-10 10:47:39 +00:00
Oscar Azucena
72861bd8c7 Merge changes from topic "set_assistants_uid"
* changes:
  Added API to set active assistant UIDs
  Added API to set assistants UID.
2022-02-10 07:11:01 +00:00
Henry Fang
c9f4df013a Merge "Guard TvInputManager#getClientPriority()" 2022-02-10 02:26:59 +00:00
Brian Lindahl
6ceeed4fdd Allow MediaCodecs to be created on behalf of other client processes.
Use case is for TV Input Service which creates MediaCodecs when tuning
to TV channels on behalf of operator and OEM apps. Requires the
MEDIA_RESOURCE_PID_OVERRIDE permission.

Bug: 217746837
Test: atest MediaCodecResourceTest
Change-Id: I191ff13c5730970664a818a9333c160e6e773c7d
2022-02-09 23:34:44 +01:00
Treehugger Robot
c8299d28a3 Merge "Fix typo" am: a31dc6da2a am: b19c821215 am: 1bbec10259 am: bfc5abe83b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976266

Change-Id: Ib8eb0b4bc5c9fe2df408c36a90f30d8ce83db12c
2022-02-09 21:34:49 +00:00
Treehugger Robot
bfc5abe83b Merge "Fix typo" am: a31dc6da2a am: b19c821215 am: 1bbec10259
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976266

Change-Id: I41302c19b8503b486ba1228bc2d170b1863fe894
2022-02-09 21:10:48 +00:00
Treehugger Robot
1bbec10259 Merge "Fix typo" am: a31dc6da2a am: b19c821215
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1976266

Change-Id: I1d66400e8a09fdc4deaee75313f900a3306e695f
2022-02-09 20:56:03 +00:00
Treehugger Robot
a31dc6da2a Merge "Fix typo" 2022-02-09 20:21:35 +00:00
Oscar Azucena
3ef3f58c98 Added API to set active assistant UIDs
Added API to manage the currently active assistant. When an
assistant becomes active the API will set the assistant's
voice interaction service and its corresponding hotword detection
service to active. When the assistant becomes inactive the API will
be called to reset the assistants UIDs. For the latter the API will
be called with an empty list of UIDs.

After bootup, user switch, and audio server crash reset, the list of
active assistants will be set to an empty list (.i.e no assistant
UID's are currently active).

In the absense of active assistant list, the default behavior will
be that all assistants can listen to hotword as long it does not
conflict with privacy policy. When an assistant state changes
to top (UI present) that assistant will be able to listen to
audio via voice recognition source or hotword.

Bug: 189312611
Test: m -j, and run assistant
Test: atest CtsVoiceInteractionTestCases
Change-Id: I0bfe4c167f69a26293ae2f9f9d0898033f86db03
2022-02-09 11:04:24 -08:00
Eric Laurent
3cd05bc1ac Merge "audio: add Bluetooth LE Audio broadcast device" am: 26d7800efa am: 29a988bf35 am: a2f5911452
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978307

Change-Id: I4c155442d6b62fbe48f03847c2722eb6d3d580a1
2022-02-09 18:58:36 +00:00
Eric Laurent
a2f5911452 Merge "audio: add Bluetooth LE Audio broadcast device" am: 26d7800efa am: 29a988bf35
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1978307

Change-Id: Ibb27fc945fea99eb24caffe6703168ef611e93d5
2022-02-09 18:41:01 +00:00
Oliver Woodman
6b80927033 Merge "Improve MediaRouter Javadoc" 2022-02-09 17:11:47 +00:00
Kyunglyul Hyun
475bb88df9 Merge "Add missing tests for filtering routes" 2022-02-09 10:57:14 +00:00
Eric Laurent
404141fefd audio: add Bluetooth LE Audio broadcast device
Add audio device type definition for a Bluetooth LE
audio broadcast group.

Bug: 150670922
Test: make.

Change-Id: I8b2c7966ab6d1f3c637a043c4c802b8433ba697b
Merged-In: I8b2c7966ab6d1f3c637a043c4c802b8433ba697b
2022-02-09 10:09:50 +01:00
Kyunglyul Hyun
54a4a1d5e0 Add missing tests for filtering routes
To test package orders, host side tests are added.
AllowedPackages istested as well.

Additionaly, RouteDiscoveryRequest#getRequiredFeatures is removed
as it doesn't seem to be necessary.

Adding tests, some bugs are found and fixed.

Test: atest MediaRouter2HostTest android.media.cts.MediaRouter2Test
MediaRouter2ManagerTest
Bug: 193631822

Change-Id: I315d6e0d648777566404875e300030740a482c81
2022-02-09 15:37:05 +09:00
Kyeongkab.Nam
2dab4ea35b Guard TvInputManager#getClientPriority()
Guard TvInputManager#getClientPriority() by
android.Manifest.permission.TUNER_RESOURCE_ACCESS.

cts test was merged in ag/16577091

CTS-Coverage-Bug: 194149304
Bug: 194149304
Bug: 215546861
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest

Change-Id: I56a397517d54f806215dd00f9cfff904a55aa159
2022-02-09 05:17:52 +00:00
John Reck
2be791c7de Merge "Add setDataSpace SurfaceControl API" 2022-02-08 21:49:24 +00:00
Hongguang Chen
4e0993c6b6 Merge "Release locks when closing." 2022-02-08 19:43:32 +00:00
Henry Fang
5dbd4b27ed Merge "Guard TIF vendor extension APIs by new permission" 2022-02-08 17:19:28 +00:00
Hongguang
2eebb7dd3f Release locks when closing.
Bug: 218228680
Fix: 218228680
Test: atest android.media.tv.tuner.cts 20 times
Change-Id: I31d6c65d9fb7e512d6dfbc7080214a9a766b38fa
2022-02-07 19:59:33 -08:00
Jacinta Hu
8a40a85202 Fix typo
Change-Id: Iaeda5c91ba1b776cb7e5d208795dcb77247ef1d0
2022-02-08 03:26:48 +00:00
John Reck
ffa81f86ba Add setDataSpace SurfaceControl API
Also change DataSpace from long to int (HAL & native are both ints)

Bug: 217776226
Fixes: 218320444
Test: make && SurfaceControlTest#testSurfaceTransaction_setDataSpace
Change-Id: Ic2b9ccb1d0ba3c1d049839310b4fef0881a3d2e2
2022-02-08 03:05:30 +00:00
Oliver Woodman
fcf8e12239 Improve MediaRouter Javadoc
The MediaRouter Javadoc currently advises developers to use
MediaRouter2. The MediaRouter2 Javadoc further advises
developers to use AndroidX MediaRouter. This change directs
develeopers directly from MediaRouter to AndroidX.

Test: Javadoc only
Change-Id: Ia90e2e2799cc167f87349f907ae9621443d57bb3
2022-02-07 22:33:33 +00:00
Kyeongkab.Nam
5e4c395cdb Guard TIF vendor extension APIs by new permission
Guard TvInputManager#getAvailableExtensionInterfaceNames() and
TvInputManager#getExtensionInterface() by
android.Manifest.permission.TIS_EXTENSION_INTERFACE.

Bug: 215189795
Bug: 193052431
Test: run cts -m CtsTvTestCases -t
android.media.tv.cts.TvInputManagerTest

Change-Id: I43d4f063b0a602f00f7f71e8fe08fb09c7a763bf
2022-02-07 12:19:54 -08:00
Sally Qi
8b60c74500 Merge "Add fence support in ImageWriter class." 2022-02-07 20:19:20 +00:00
Patrick Rohr
c52a30c5c8 Merge "Fix tuner filter delay API" 2022-02-07 13:03:17 +00:00
Oliver Woodman
eafc743581 Merge "RouteDiscoveryPreference cleanup" 2022-02-07 10:49:57 +00:00
Oscar Azucena
69ddbe8d23 Added API to set assistants UID.
Added API to set the UIDs of the services that can be used as assistants.
Also modified code that uses the previous APIs for setting the unique
assistant UID and its corresponding hotword service. The new API can set
multiple UIDs all which will be treated the same for the purposes of
proviving assistant services.

Bug: 189312611
Test: m -j, and run assistant
Change-Id: Ieb28b7141206b58ae1d5d68580c08f4c733560b6
2022-02-05 13:58:11 -08:00
Sally Qi
d2087e7781 Add fence support in ImageWriter class.
- Add SyncFence class that include FileDescriptor and related functions
- expose fence file descriptor setter/getter in the Image class

Bug: 210919185
Test: android.hardware.camera2.cts.ImageWriterTest
Change-Id: I7428db26e3e6ca84675d2ce2ef4def46ed0b1397
2022-02-04 21:09:37 -08:00
Avichal Rakesh
6eec418572 Merge "Revert "Prevent onImageAvailable from being called on stale listeners"" 2022-02-05 00:19:24 +00:00
Yixiao Luo
8664134527 Merge "TIAF: add missed type TableRequest in base class parcel creator" 2022-02-04 22:58:38 +00:00
Avichal Rakesh
ea4dbac40a Revert "Prevent onImageAvailable from being called on stale listeners"
This reverts commit 666ad3a9ac.

Reason for revert: This CL breaks Google Translate
Bug: 217847856

Change-Id: I5510ece72c2bc65d838d176f88a0ceaadb8faadb
2022-02-04 21:46:23 +00:00
Oliver Woodman
0d9bcf1ea0 RouteDiscoveryPreference cleanup
1. Make sure newly added lists are non-null in builder
2. Fix variable name & add some extra documentation

Bug: 193631822
Test: atest MediaRoute2InfoTest RouteDiscoveryPreferenceTest
Change-Id: I93ed43acb6113f33f8010cb2ec4b4e0ad98d0b45
2022-02-04 19:21:34 +00:00
Nathalie Le Clair
dbad339f5f Merge changes from topics "AudioDeviceAttributes_update", "ShortAudioDescriptors"
* changes:
  Inform AudioManager about ARC SADs
  Add AudioDeviceAttributes as argument to AudioManager API
  Add fields to AudioDeviceAttributes class
2022-02-04 14:11:19 +00:00
Kevin Rocard
00fc90e3b9 Merge changes I17264f0e,I0581978f am: 06c8be69b9 am: d9a6df3947 am: 7a30e9f8dd am: 326230d491
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1902510

Change-Id: Ica2a9bc91dbdf8ab878b0cbfa141e5935735ce6f
2022-02-04 12:34:48 +00:00
Kevin Rocard
326230d491 Merge changes I17264f0e,I0581978f am: 06c8be69b9 am: d9a6df3947 am: 7a30e9f8dd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1902510

Change-Id: Id4d857c4384d5162d8821e4759e9370b7a75eaa1
2022-02-04 12:16:56 +00:00
Kevin Rocard
7a30e9f8dd Merge changes I17264f0e,I0581978f am: 06c8be69b9 am: d9a6df3947
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1902510

Change-Id: I31535966123faa6e06c1c8b10178a880242d9f27
2022-02-04 12:06:31 +00:00
Patrick Rohr
73b2197a51 Fix tuner filter delay API
Renamed delayCallbackUntilMillisElapsed to
delayCallbackForDurationMillis according to API feedback. Made parameter
more consistent with the method name.

Test: m && atest android.media.tv.tuner.cts.TunerTest
Bug: 213174673
Change-Id: I296c56078a4089d456c0a2359cacfd37d4922f7d
2022-02-04 12:36:16 +01:00
Kevin Rocard
06c8be69b9 Merge changes I17264f0e,I0581978f
* changes:
  Limit transcoding size workaround to windows
  Workaround to fixup MTP transcode file size
2022-02-04 11:25:53 +00:00
Yixiao Luo
2c527b4453 TIAF: add missed type TableRequest in base class parcel creator
Bug: 217775517
Change-Id: I088868eae550cb9a02d18642ad81ce3e3854c4c6
2022-02-03 16:07:16 -08:00
Avichal Rakesh
fee4185e05 Merge "Prevent onImageAvailable from being called on stale listeners" 2022-02-03 18:39:25 +00:00
TreeHugger Robot
0d857467ad Merge "Return a collection in getAllAtsc3PlpInfo()" 2022-02-03 07:05:39 +00:00
William Escande
a4249a2eae Merge "BtProfileConnectionInfo update api review" am: cc2c6a0783 am: c2abbda875 am: e18d1a7581 am: 8e1857760f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959343

Change-Id: Icdbc1b6d404ae1c95358c9d7b65557b10cb3be98
2022-02-03 00:38:25 +00:00
William Escande
8e1857760f Merge "BtProfileConnectionInfo update api review" am: cc2c6a0783 am: c2abbda875 am: e18d1a7581
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959343

Change-Id: Ia53a3e37cef1e55534ceee5e977c5b65e9928153
2022-02-03 00:23:16 +00:00
William Escande
e18d1a7581 Merge "BtProfileConnectionInfo update api review" am: cc2c6a0783 am: c2abbda875
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959343

Change-Id: I1659669f4ac73a69683dbcbc3af3bf7839f89ce2
2022-02-03 00:06:13 +00:00
Hongguang
beab1f68e8 Return a collection in getAllAtsc3PlpInfo()
Bug: 216529056
Fix: 216529056
Test: atest android.media.tv.tuner.cts
Change-Id: I9b5314069000fff54c301bf3209b3d6ae7c3428f
2022-02-02 15:53:38 -08:00
Hongguang
2cd6d7f11d Fix wrong IntDef flag
"flag" is used to define whether the constants can be used as a flag, or
just just as an enum (the default). All constants are enums.

Bug: 174239416
Fix: 174239416
Test: make and atest android.media.tv.tuner.cts
Change-Id: I61b4335d62a62c79cc57b84a8d90f8c6e8a18443
2022-02-01 23:13:28 -08:00
William Escande
7c83aef755 Missing line that generate merge conflict
Test: not needed at all
Change-Id: Id7fec98705fd82b7ecc8060432f4b9d1cbecdca7
2022-02-01 19:42:24 +01:00
TreeHugger Robot
9aac3354b2 Merge "cherry-pick of aosp/1959811" 2022-02-01 13:16:52 +00:00