Commit Graph

7517 Commits

Author SHA1 Message Date
Henry Fang
dd6eb81b19 Merge "Change framework to support both cas@1.0 and cas@1.1 hal" 2019-02-22 18:21:59 +00:00
Hyundo Moon
280dd70418 Merge "Add MediaController#getSessionInfo()" 2019-02-22 11:18:48 +00:00
Hyundo Moon
5fc8db02e0 Add MediaController#getSessionInfo()
Bug: 125663825
Test: Passed MediaControllerTest
Change-Id: I458cfd94575dd2303ec2bdd8996205d765d31957
2019-02-22 20:08:29 +09:00
TreeHugger Robot
47aa1516f6 Merge "Audio: Allow registering DAP without context" 2019-02-22 05:52:14 +00:00
TreeHugger Robot
432b9640a6 Merge "Add annotations for ImageReader/ImageWriter factory methods" 2019-02-22 00:27:43 +00:00
Henry Fang
a26835ece8 Change framework to support both cas@1.0 and cas@1.1 hal
Cas framework doesn't work with cas@1.0 hal after cas@1.1 hal was enabled.
Framework code should support all hal version with same major number.
Test: Manual
bug: 124132050

Change-Id: I24d4c87ec643702fd6e7bb3c347d7982a4d12f36
2019-02-21 15:54:53 -08:00
TreeHugger Robot
02f07eb143 Merge "Add a new reason for unavailable video, when there is no signal." 2019-02-21 11:08:37 +00:00
Robert Berry
73cee8c48a Audio: Allow registering DAP without context
Tests and command line interfaces do not have context, which
artificially prevented them to use the Dynamic Audio Policy API.

Test: adb shell audiorecorder --target /data/file.raw
Bug: 111453086
Change-Id: I3f811f317f7de3282baca308bb5afa5334bf860b
Signed-off-by: Kevin Rocard <krocard@google.com>
Signed-off-by: Robert Berry <robertberry@google.com>
2019-02-20 22:32:32 -08:00
TreeHugger Robot
15b7740dce Merge "Introduce playback capture opt-out" 2019-02-21 05:36:36 +00:00
Kevin Rocard
9ce6e56c00 Introduce playback capture opt-out
Test: adb shell audiorecorder --target /data/file.raw
Bug: 111453086
Change-Id: Ie09f7161bf19b158e31f4a18e9c9a27c70382686
Signed-off-by: Kevin Rocard <krocard@google.com>
2019-02-21 00:43:33 +00:00
Robert Berry
669be0445c Introduce audio playback capture API
This API allows an app to record what other apps are playing
with some privacy restrictions.

Test: CTS
Bug: 111453086
Change-Id: I98ed789afb792acf90876499aa5eb8a47359b265
2019-02-21 00:42:48 +00:00
Kristian Monsen
f3f2d4caac Add a new reason for unavailable video, when there is no signal.
Bug: 112860967
Test: NA
Change-Id: Ie7436c91260f96b398f300eef054a5377c89fcf6
2019-02-20 19:49:27 +00:00
Yin-Chia Yeh
e7c158f114 Add annotations for ImageReader/ImageWriter factory methods
Test: make update-api && make
Bug: 124766727
Change-Id: I7f7c5afd013370ab6e42c28b96b3cfa93e8dc615
2019-02-20 10:48:04 -08:00
TreeHugger Robot
e6e13284bf Merge "Add Introspection API to retrieve AudioProductStrategies" 2019-02-20 10:51:30 +00:00
Jeff Sharkey
3f2385b97f Merge "Respond to various API council feedback." 2019-02-20 07:07:33 +00:00
Hongwei Wang
8ddef890e7 Adds android.media.HwAudioSource class
The new HwAudioSource (inherits PlayerBase) serves as a player backed by
a hardware audio source device.

Sample usage

```
HwAudioSource player = new HwAudioSource.Builder()
        .setAudioDeviceInfo(deviceInfo)
        .setAudioAttributes(new AudioAttributes.Builder()
                .setUsage(AudioAttributes.USAGE_MEDIA)
                .build())
        .build();
player.start();
```

Bug: 112161027
Test: Launch FM Tuner application
Change-Id: Id1f49c88cbbdb2b9156137ed8920713aa29b2d1c
2019-02-19 14:54:35 -08:00
François Gaffie
c01fa3a7de Add Introspection API to retrieve AudioProductStrategies
Bug: 124767636
Test: Build
Change-Id: I24b95f11217e80310d123c7183bdcb0e17b5f02b
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
2019-02-19 19:17:42 +00:00
Jeff Sharkey
b91eaa54a8 Respond to various API council feedback.
Handle many simple, smaller changes in a single CL.  Hide
CPC.closeQuietly(), now that it implements AutoCloseable.  Add more
details to CR.set/getCache() docs.  Add many @Nullable/@NonNull
annotations.

Bug: 124507578, 124447751, 124302519, 123697622
Bug: 123661322, 122887179, 122528742, 122527812, 116224797
Test: manual
Change-Id: Icee556a6ed76bbdf4c8e42b59d69d5580d461b95
2019-02-19 11:09:22 -07:00
TreeHugger Robot
d2d04c6e81 Merge "AudioService: Make suspended apps lose audio focus" 2019-02-16 03:30:26 +00:00
Jean-Michel Trivi
b2251826e9 AudioService: Make suspended apps lose audio focus
Handle ACTION_PACKAGES_SUSPENDED in AudioService.
Send FOCUS_LOSS to any suspended app that is in the focus
  stack and remove it from the stack
Annotate nullability of package name, AudioAttributes
  and clientId for audio focus.

Bug: 119328282
Test: suspend app with focus, check output of dumpsys audio
Change-Id: I34103f8910146fc573c9efc806e8f1a1ffc722c9
2019-02-15 15:34:55 -08:00
Dichen Zhang
66102534b8 Merge "HLS seeking: call readAt() on new thread" am: f9d7df6f78 am: 7b459880ee
am: e3bf4477bc

Change-Id: I0736272b69c52fbc962f2fc4f53541e905f159d5
2019-02-15 14:36:50 -08:00
Dichen Zhang
e3bf4477bc Merge "HLS seeking: call readAt() on new thread" am: f9d7df6f78
am: 7b459880ee

Change-Id: I47b6ca85f6956cd3b67d2fa104e313ad230c5941
2019-02-15 14:16:38 -08:00
Dichen Zhang
7b459880ee Merge "HLS seeking: call readAt() on new thread"
am: f9d7df6f78

Change-Id: Idf8a6341cdb8a2bf9478aa523e8066d96089e598
2019-02-15 14:02:59 -08:00
Dichen Zhang
f9d7df6f78 Merge "HLS seeking: call readAt() on new thread" 2019-02-15 21:47:26 +00:00
TreeHugger Robot
54db20ba52 Merge "Un-@hide MicrophoneDirection API" 2019-02-15 19:28:08 +00:00
Dichen Zhang
94843014bc HLS seeking: call readAt() on new thread
Bug: 119900000
Test: go/ag/5140159
Change-Id: Ie527aeaff91e1b82c7e707a6feaf79548c7ac380
2019-02-14 16:26:49 -08:00
Xin Li
0e71b4f19b DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into
stage-aosp-master

Bug: 124234733
Change-Id: Ic4f67fde0835da0b1c363906cccef0d244e38393
2019-02-14 09:48:06 -08:00
Hyundo Moon
3f6d07c571 Merge "MediaSession/Controller: Add playback speed related APIs" 2019-02-14 07:15:08 +00:00
Hyundo Moon
04fb2e74b8 MediaSession/Controller: Add playback speed related APIs
Bug: 122906243
Test: Passed MediaSession/ControllerTest
Change-Id: I1a8c6b7a6340f18cff0179b7fe1bc559a1f4cb68
2019-02-14 14:20:53 +09:00
Jeff Sharkey
a0a955f814 Set MediaPlayer sources in more direct fashion.
As part of the isolated storage work in Q, some filesystem paths
don't actually exist.  It's safer to simply try opening the file
and let FileInputStream throw a FileNotFoundException.

This change results in more descriptive errors to developers,
without changing the behavior of throwing an IOException if the
file doesn't exist.

Bug: 124208701
Test: manual
Change-Id: I4710a55431d8dc6cb96561f551b34892d8c15ba5
2019-02-13 15:35:39 -07:00
TreeHugger Robot
377a19b992 Merge "Revert changes for moving MediaSessionService into AML" 2019-02-12 09:31:52 +00:00
TreeHugger Robot
caf294d029 Merge "Make remote player support ramping ringer" 2019-02-11 19:18:22 +00:00
Yiwen Chen
eac542e74c Make remote player support ramping ringer
Bug: 120789399
Test: Tested on device
Change-Id: I81e576afa1dcb25a65dc95534b0bd1f1da405ee7
2019-02-11 00:57:00 +00:00
Lajos Molnar
8c1d8e024a Merge "media: add macroblockrate to PerformancePoint" 2019-02-08 23:29:38 +00:00
Lajos Molnar
aa602f16fc Merge "media: support AVC Level 6+ for CodecCapabilities" 2019-02-08 23:28:16 +00:00
Paul McLean
0e52f7a1a4 Un-@hide MicrophoneDirection API
Bug: 123720049
Test: N/A
Change-Id: Ic1f875ccebf6970a7f31db06b6b0c9046940705d
2019-02-08 09:30:34 -07:00
Lajos Molnar
8a46826958 media: fix MediaFormat copy constructor
Bug: 124075529
Change-Id: I29a48531f91dd8631833fdf19ee71dacd2ab62ac
2019-02-07 16:33:24 -08:00
Lajos Molnar
338ca88ca5 media: add macroblockrate to PerformancePoint
- also add a constructor so apps can create their performance points
- remove width and height as they are not by themselves meaningful
  (only their product)
- document that we are using macroblocks

Bug: 124061036
Change-Id: I70ff9f059859b83397ba484b9ea9215d1d2751ef
2019-02-07 14:44:01 -08:00
Shuzhen Wang
ebd10b8fcf Merge "Camera: Add HEIC format output" 2019-02-07 19:15:32 +00:00
Kevin Rocard
a3b457d90d Merge "Audio Policy: Allow to use DAP RENDER|LOOPBACK" 2019-02-07 03:10:10 +00:00
Shuzhen Wang
f655b1c876 Camera: Add HEIC format output
- Add HEIC ImageFormat.
- Add HEIC related camera static metatadata.
- Handle BlobID and BlobSize properly for HEIC format.

Test: Camera CTS
Bug: 79465976
Change-Id: I8606711b036e695e23671c4563364c24aad9ed84
2019-02-06 10:11:20 -08:00
Jeff Sharkey
82cfc42abd Merge "Add support for XMP tags." 2019-02-06 16:03:02 +00:00
Jeff Sharkey
d95d0d2d9e Add support for XMP tags.
These Extensible Metadata Platform (XMP) tags contain XML data which
is used to communicate rich metadata information beyond EXIF.

TIFF: Tag 700
JPEG: Application segment 1 (0xFFE1) with segment header
"http://ns.adobe.com/xap/1.0/\x00"

Bug: 120791890
Test: atest cts/tests/tests/media/src/android/media/cts/ExifInterfaceTest.java
Change-Id: Iacccbf9b516b3204d99a760eaeb19a41554c3f97
2019-02-05 18:24:17 -07:00
Robert Berry
c7b72600a9 Audio Policy: Allow to use DAP RENDER|LOOPBACK
Test: adb shell audiorecorder --target /data/file.raw
Bug: 111453086
Change-Id: I11698ece5164e10118967e84717bc3a6c17419cf
Signed-off-by: Kevin Rocard <krocard@google.com>
Signed-off-by: Robert Berry <robertberry@google.com>
2019-02-05 16:16:15 -08:00
Chong Zhang
625f0aad9f Make KEY_MAX_PTS_GAP_TO_ENCODER and KEY_MAX_FPS_TO_ENCODER keys public
These keys are already used by apps, and we need to
add test to ensure they're not broken.

bug: 80314065
Change-Id: I2f423fd8d5462caf4138f660d452e61b0ab34d66
2019-02-05 15:18:55 -08:00
TreeHugger Robot
49181399d5 Merge "audio: fix AudioRecordingConfiguration.equals()" 2019-02-04 23:58:33 +00:00
TreeHugger Robot
f727b8cf97 Merge "Expose a few keys that's already used by apps" 2019-02-04 23:25:48 +00:00
TreeHugger Robot
95902c563b Merge "CamcorderProfiles: Add new camcorder profiles" 2019-02-04 22:10:52 +00:00
Eric Laurent
c511faec51 audio: fix AudioRecordingConfiguration.equals()
Use Arrays.equals() instead of equals() methods on the effects
Arrays contained in AudioRecordingConfiguration.

Bug: 123702064
Test: cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioRecordingConfigurationTest
Change-Id: I11d1321f1a5d8f50c248a4702bbba6a309280b5a
2019-02-04 12:34:53 -08:00
Chong Zhang
bb609f8319 Expose a few keys that's already used by apps
bug: 80314065
Change-Id: Ia9369decb8c454fe091fca77f8996e1400c14790
2019-02-04 11:14:07 -08:00