Commit Graph

10756 Commits

Author SHA1 Message Date
Hongguang
9efb9dca21 Support frontend status readiness query.
The caller could use it to check whether frontend status is ready to
read or not.

Bug: 171540820
Fix: 171540820
Test: atest android.media.tv.tuner.cts on AIDL and HILD HALs
Change-Id: I55610e02412d6043e7fab91d1a2bf187a8e5e3ba
2022-01-21 13:17:45 -08:00
TreeHugger Robot
ff34ced59a Merge "Add API to filter out unnecessary PIDs from frontend output." 2022-01-21 18:24:12 +00:00
Shubang Lu
bcf19024d3 Merge "TIAF: rename IApp -> InteractiveApp." 2022-01-21 18:04:09 +00:00
Sally Qi
c917cdeeaf Merge "Introduce builder pattern in ImageWriter class" 2022-01-21 17:28:25 +00:00
Paul Mclean
7c31724f99 Merge "Add BLE MIDI peripheral connection to standard BT connect UI" 2022-01-21 14:43:19 +00:00
Hongguang Chen
43cb30554a Merge "Support not tuned PLP info query." 2022-01-21 06:59:26 +00:00
Hongguang
cfd146f5fb Add API to filter out unnecessary PIDs from frontend output.
Bug: 213287138
Fix: 213287138
Test: atest android.media.tv.tuner.cts on AIDL and HIDL HALs
Change-Id: Ie5317c080e43fac2371d6cea46cfc8e22a4e42cf
2022-01-21 05:57:59 +00:00
Paul McLean
fff1797319 Add BLE MIDI peripheral connection to standard BT connect UI
Bug: 25689266
Test: Connect to various BT MIDI peripherals and test function
with software synthesizer (DRC)

Change-Id: I1df2f3bfbc6302eb9d139546e825f2eb9b4abdd5
2022-01-20 16:10:13 -07:00
shubang
a0ac8f6713 TIAF: rename IApp -> InteractiveApp.
based on advice from API Council
And unhide TvInteractiveAppView and TvInteractiveAppInfo

Bug: 213836031
Bug: 205738783
Test: atest android.media.tv.interactive.cts.TvInteractiveAppViewTest

Change-Id: I6b97f89dd29efed1b4248faae366fbf1a56b0614
2022-01-20 18:34:58 +00:00
Robert Wu
008fcbd18c Merge "Add MIDI 2.0 host mode support" 2022-01-20 16:57:28 +00:00
TreeHugger Robot
ce65b04d56 Merge "Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""" 2022-01-20 11:33:39 +00:00
Treehugger Robot
1ceb644bfa Merge "Add AUDIO_FORMAT_LC3 in BtCodec" am: a57618d34d am: cb6ef1e9cc am: 34e5b686b2 am: 0a7f6d8cf5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1864574

Change-Id: I8060e789f245349d0a903169380130747aac17e8
2022-01-20 07:29:13 +00:00
Treehugger Robot
0a7f6d8cf5 Merge "Add AUDIO_FORMAT_LC3 in BtCodec" am: a57618d34d am: cb6ef1e9cc am: 34e5b686b2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1864574

Change-Id: I9103756ff79c8641c0bef708981df9322b8dbb55
2022-01-20 07:09:08 +00:00
Treehugger Robot
34e5b686b2 Merge "Add AUDIO_FORMAT_LC3 in BtCodec" am: a57618d34d am: cb6ef1e9cc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1864574

Change-Id: I086c599c0525c4e39e66675a5b33f870b22d5f53
2022-01-20 06:52:38 +00:00
Treehugger Robot
a57618d34d Merge "Add AUDIO_FORMAT_LC3 in BtCodec" 2022-01-20 06:19:05 +00:00
Carter Hsu
7627c9438c Merge "audio: add Ultrasound input source and content_type" 2022-01-20 06:16:16 +00:00
Kevin Rocard
ffefba8273 Merge "Refactor Ringtone.playFallbackRingtone" am: 2f56b3ab02 am: cbba151c10 am: 010e3ddc5f am: f6cbd46ee0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931765

Change-Id: I646e748c8f4c9f1923a631c1a110f20470abd555
2022-01-20 06:08:56 +00:00
Kevin Rocard
f6cbd46ee0 Merge "Refactor Ringtone.playFallbackRingtone" am: 2f56b3ab02 am: cbba151c10 am: 010e3ddc5f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931765

Change-Id: I4d17fdf6a29cc66fce523c227f82a19366ca5636
2022-01-20 05:48:14 +00:00
Kevin Rocard
010e3ddc5f Merge "Refactor Ringtone.playFallbackRingtone" am: 2f56b3ab02 am: cbba151c10
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1931765

Change-Id: I18f7b2d6f60e6757715ca2ba103d1cc87ed0d42a
2022-01-20 05:35:58 +00:00
Robert Wu
a936a25198 Add MIDI 2.0 host mode support
Adding MIDI 2.0 host mode support to Android. MIDI 2.0 peripherals
create an alternative setting for Universal Midi Packets (UMP).
UMP packets can be passed directly through as the host has full
control. Instead of going through the ALSA, UMP packets can be
sent directly through a UsbDeviceConnection.

This CL also adds public apis to expose whether the pipe supports
UMP. This for MidiDeviceInfo in Java and AMidi in c++.

Bug: 201003646
Bug: 214447324
Test: Verified that the MIDI 1.0 path still works as before.
Test: Tested that MIDI 2.0 packets are passed through the pipe
with MIDIScope and MIDIKeyboard
Test: atest MidiSoloTest
Test: atest CtsMidiTestCases
Test: NativeMidiEchoTest

Change-Id: Idff8a3b9bdd05857239260fc3e6af7253f8f992f
2022-01-20 00:50:41 +00:00
Kevin Rocard
2f56b3ab02 Merge "Refactor Ringtone.playFallbackRingtone" 2022-01-19 19:42:26 +00:00
Sally Qi
db57de3f85 Introduce builder pattern in ImageWriter class
- allow ImageWriter to set usage flag on the buffer
- allow app to provide HardwareBuffer.Format which is 1:1 mapping with
the HAL PixelFormat
- invovle dataspace setter into ImageWriter build pattern
- allow app to override image width and height

Bug: 213331412
Test: android.hardware.cts.DataSpaceTest, android.hardware.camera2.cts.ImageReaderTest, android.hardware.camera2.cts.ImageWriterTest
Change-Id: Ie8e39a5daadf68b3809dd0035a902959dc18c9c3
2022-01-19 10:42:26 -08:00
Bernardo Rufino
1a5cb387d6 Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""
This reverts commit 331be9a643.

Reintroducing ag/16366278 since it seems unrelated to b/214053959 (more details on b/214053959#comment55).

Original commit message:

Migrate unsafe parcel APIs in framework-minus-apex

Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Change-Id: I272432e6e082a973f7a50492ec35d79c2b577c93
Test: TH passes
2022-01-19 11:13:18 +00:00
Carter Hsu
0267771f63 audio: add Ultrasound input source and content_type
The Ultrasound is added as the SystemAPI

Bug: 200256985
Test: atest AudioAttributesTest
Signed-off-by: Carter Hsu <carterhsu@google.com>
Change-Id: I1a0146c32faeba3a60a4a7bdf997d985bbb12251
2022-01-19 17:53:42 +08:00
Ted Wang
d9c9831f71 Add AUDIO_FORMAT_LC3 in BtCodec
Bug: 203621600
Test: make
Change-Id: I447b361c5efe578ba1b142791aee7043faf08f52
2022-01-19 15:35:00 +08:00
Santiago Seifert
d53ea83198 Document context of MediaMetadataRetriever new throws clauses
Bug: 203553331
Change-Id: I21a8d0360816b9211eda36a521f7ca943364cbe0
Test: Presubmit's build.
2022-01-18 19:08:53 +00:00
Jean-Michel Trivi
c3681aa193 SpatializerHelper: head tracking init / dump
When initializing the sensors, also set the headtracking mode
to the desired mode, which defaults to RELATIVE_WORLD.

When changing the desired tracking mode, compare against
the current tracking mode instead of the previous
desired mode.

Dump state information from AudioService dump.

Bug: 210803914
Test: atest SpatializerTest#testHeadTrackingListener
Change-Id: I5144d3218223f241cf047d00f843c518c1e617b8
2022-01-17 13:49:51 -08:00
Dorin Drimus
03da42eccf Merge "Expose getAudioDevicesForAttributes" 2022-01-17 08:08:36 +00:00
huangyy
4c0b536a94 TIAF:add toggle teletext api
Bug: 213954653
Test: mmm

Signed-off-by: huangyy <yuyao.huang@seraphic-corp.com>
Change-Id: I2547c31a257fb6a8badd2fd58f59fbd00e4c6e44
2022-01-15 15:18:21 -08:00
shubang
bf93602e1f TIAF cleanup: add missing APIs part 2
Bug: 211931006
Test: mmm
Change-Id: Ibeb96c4d286392251ec0ae64be0688e763e6bfeb
2022-01-15 02:36:16 -08:00
Shubang Lu
7f9572371d Merge "TIAF: rename IApp -> InteractiveApp part 1/2" 2022-01-15 05:31:30 +00:00
Sally Qi
eba632d63d Merge "Fix DataSpaceTest cts issue." 2022-01-15 02:24:12 +00:00
Sally Qi
6f66de2cc9 Fix DataSpaceTest cts issue.
- Image#getDataSpace need to be overridden in ImageReader class to get
the expected dataspace.

Bug: 214374988
Test: android.hardware.cts.DataSpaceTest
Change-Id: Id58783e1bd768456228a892051c5b52d846394da
2022-01-14 15:50:07 -08:00
shubang
0ef2dd51b4 TIAF: rename IApp -> InteractiveApp part 1/2
based on advice from API Council

Changes related to API or system server will be in the following CL

Bug: 213836031
Bug: 205738783
Test: mmm
Change-Id: Ieb549c49aa0e13b19dc97822ee53ba2bc99fb0c3
2022-01-14 21:49:21 +00:00
Treehugger Robot
4ccf5606f8 Merge "Update tuner module owners" am: ea05aa56e7 am: c688368d75 am: b4873a331f am: c6fd683779
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1949657

Change-Id: Ib7ba3fe86af19a994d9c9f5eda9748d6bd49227f
2022-01-14 20:55:46 +00:00
Treehugger Robot
c6fd683779 Merge "Update tuner module owners" am: ea05aa56e7 am: c688368d75 am: b4873a331f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1949657

Change-Id: If577c5bfec59ce7547fe6dee00c69d010938e221
2022-01-14 20:37:20 +00:00
Treehugger Robot
b4873a331f Merge "Update tuner module owners" am: ea05aa56e7 am: c688368d75
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1949657

Change-Id: Ie346c21599cb0bc8793eedd816d3049596cd47ca
2022-01-14 20:19:54 +00:00
Treehugger Robot
ea05aa56e7 Merge "Update tuner module owners" 2022-01-14 19:46:10 +00:00
William Escande
396d88bd08 Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" am: 2d39eb02ca am: dc198a070d am: 744cd007db am: d21cf5f8d9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1933145

Change-Id: Id15cb5e327460b4e3834459e51cc5eafb3dcb39d
2022-01-14 18:17:09 +00:00
William Escande
d21cf5f8d9 Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" am: 2d39eb02ca am: dc198a070d am: 744cd007db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1933145

Change-Id: I651585b35f2cf307caf48a2ddb78adafdfc64405
2022-01-14 17:57:44 +00:00
William Escande
744cd007db Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" am: 2d39eb02ca am: dc198a070d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1933145

Change-Id: Iabc35b74ac6b52c6c4a1d45d6694600f1539d050
2022-01-14 17:42:02 +00:00
William Escande
2d39eb02ca Merge "Add BtProfileConnectionInfo.a2dpSinkInfo" 2022-01-14 17:02:46 +00:00
Kevin Rocard
0950c0197a Refactor Ringtone.playFallbackRingtone
Use early returns to avoid deep nesting conditions.

Change-Id: I8f0e736277c0ea2e666b4d5e2c35e1d3e6e3479d
2022-01-14 15:39:07 +00:00
Jean-Michel Trivi
fe952b8df6 Merge "Utilities for managing event listeners from AudioService 2/2" 2022-01-14 04:14:35 +00:00
Henry Fang
1aaca57aae Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" am: 764afbbae0 am: f1cec5bb49 am: 8dd3756132 am: 9aa0ab03fd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1580304

Change-Id: Iffa89cf72325cae6649145d37d6700d087972c7e
2022-01-14 03:13:00 +00:00
Henry Fang
9aa0ab03fd Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" am: 764afbbae0 am: f1cec5bb49 am: 8dd3756132
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1580304

Change-Id: I202504be0cb134605adc4d6eeebebaa86602cd43
2022-01-14 02:55:10 +00:00
Henry Fang
8dd3756132 Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" am: 764afbbae0 am: f1cec5bb49
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1580304

Change-Id: I47124be32f498066fbba206c0274f852e4782abf
2022-01-14 02:35:25 +00:00
Henry Fang
764afbbae0 Merge "Add TvInputManager.Hardware overrideAudioSink with AudioDeviceInfo" 2022-01-14 01:53:31 +00:00
Hongguang
c24c9f735c Update tuner module owners
Bug: 214432253
Fix: 214432253
Test: Presubmit
Change-Id: Ieecdcd92e7a993d12861ace45098e72346c93148
2022-01-14 00:47:04 +00:00
Hongguang
95094c6485 Support not tuned PLP info query.
Bug: 209762260
Fix: 209762260
Test: atest android.media.tv.tuner.cts
Change-Id: I1eac5936ba180b34e2cf061d0e2557503ce0ca96
2022-01-13 16:05:00 -08:00