OSDN Git Service

android-x86/system-media.git
6 years agoSnap for 4677756 from 1933be01b142091f121e4de46873f59631a7fd2d to pi-release
android-build-team Robot [Sun, 25 Mar 2018 07:25:01 +0000 (07:25 +0000)]
Snap for 4677756 from 1933be01b142091f121e4de46873f59631a7fd2d to pi-release

Change-Id: I4163f06fcbfa3bb98085af970be69abc69e34347

6 years agoMerge "libcamera_metata is re-exporting headers from libcutils" into pi-dev
TreeHugger Robot [Fri, 23 Mar 2018 17:24:11 +0000 (17:24 +0000)]
Merge "libcamera_metata is re-exporting headers from libcutils" into pi-dev

6 years agolibcamera_metata is re-exporting headers from libcutils
Jiyong Park [Thu, 22 Mar 2018 08:19:38 +0000 (17:19 +0900)]
libcamera_metata is re-exporting headers from libcutils

camera_metada.h is including cutils/compiler.h. Re-exporting headers
from libcutils so that clients can use camera_metadata.h without
referring to the libcutils header explicitly.

Bug: 73723591
Test: m -j
Change-Id: I23e512923c0619e5d471ddf46550e81323f61d0e

6 years agoBluetooth: Enable in-band ringing in vibration mode (2/4)
Jack He [Thu, 8 Mar 2018 01:02:23 +0000 (17:02 -0800)]
Bluetooth: Enable in-band ringing in vibration mode (2/4)

* Add AUDIO_POLICY_FORCE_FOR_VIBRATE_RINGING force mode

Bug: 72647074
Test: Call phone in vibration mode and hear ringtone on HFP enabled
      headset, verify that ringtone is only played through headset.
      Then disconnect headset and call again to verify that ringtone
      does not play through phone speaker in vibration mode.

Change-Id: I6a738115a968ac76cb7cf83b52fe2e28a2fbc17f
(cherry picked from commit 2fa5ecf152f1227a6493b51ed114bc7c1a304202)

6 years agoSnap for 4667902 from 17f2f7c22464959ca619b6cf19dae1f2ea4c7fd8 to pi-release
android-build-team Robot [Wed, 21 Mar 2018 07:25:30 +0000 (07:25 +0000)]
Snap for 4667902 from 17f2f7c22464959ca619b6cf19dae1f2ea4c7fd8 to pi-release

Change-Id: I9a13d14e4e92995b29454595d056fda6d86b2d81

6 years agoMerge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev
Eino-Ville Talvala [Tue, 20 Mar 2018 21:58:16 +0000 (21:58 +0000)]
Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev

6 years agoAdd 5.1.2, 5.1.4, 7.1.2, 7.1.4 output channel masks
Mikhail Naganov [Fri, 16 Mar 2018 21:39:21 +0000 (14:39 -0700)]
Add 5.1.2, 5.1.4, 7.1.2, 7.1.4 output channel masks

They were supposed to be added by the change with id
I2f488462614114e4c82149460b030585981ae15e
but actually were not.

Also, rename OUT_TOP_CENTER_... to OUT_TOP_SIDE_...
according to Dean's suggestion.

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: Ia23e200887e75ce4376e68ba99312821869e1001

6 years agoSnap for 4662252 from e33828b07329c3da501062ab52cfd8a3a203da1c to pi-release
android-build-team Robot [Sun, 18 Mar 2018 07:20:55 +0000 (07:20 +0000)]
Snap for 4662252 from e33828b07329c3da501062ab52cfd8a3a203da1c to pi-release

Change-Id: I7d5d194aa78d764fccb5d005033baa3c3c7875b8

6 years agoCamera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION
Eino-Ville Talvala [Wed, 14 Mar 2018 02:10:23 +0000 (19:10 -0700)]
Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION

LENS_RADIAL_DISTORTION is inconsistently defined: in some places, it
is documented to operate on the range [-1...1], and in others, on a
range dependent on the camera lens's intrinsic calibration and focal
length.

Since fixing just the definition will not fix any existing devices
that define this value, deprecate the old key and add a new consistent
one to make sure applications only reference the consistent
definition.

Also add support for adding a deprecation description to the metadata
entries, and add descriptions for all the existing deprecated entries.

Test: Adjusted camera CTS passes
Bug: 74641761

Change-Id: I410cef73974bdd02f89051812730424b50fb9430

6 years agoMerge "camera: Add links for aeState" into pi-dev
TreeHugger Robot [Thu, 15 Mar 2018 22:17:22 +0000 (22:17 +0000)]
Merge "camera: Add links for aeState" into pi-dev

6 years agocamera: Add links for aeState
Chien-Yu Chen [Thu, 15 Mar 2018 18:17:20 +0000 (11:17 -0700)]
camera: Add links for aeState

Bug: 74976641
Test: Build
Change-Id: Id9dcef6796cc13487bdf76eb514a2cb72d999081

6 years agoSnap for 4656203 from d89fe920203391241a700fba5d8764288c79b05b to pi-release
android-build-team Robot [Thu, 15 Mar 2018 07:26:52 +0000 (07:26 +0000)]
Snap for 4656203 from d89fe920203391241a700fba5d8764288c79b05b to pi-release

Change-Id: I27a176c0c4d35bbd54a41693a420a9f079430b52

6 years agoAdd audio_is_hearing_aid_out_device
Jakub Pawlowski [Wed, 14 Mar 2018 17:19:26 +0000 (10:19 -0700)]
Add audio_is_hearing_aid_out_device

Bug: 69623109
Change-Id: Ie0e41e4d30f669eedf8011dd0e717c19ee54ca13

6 years agoSnap for 4647811 from 0debd9d1de8ff2d6787b63bd8dca5da0efd95888 to pi-release
android-build-team Robot [Sun, 11 Mar 2018 08:26:25 +0000 (08:26 +0000)]
Snap for 4647811 from 0debd9d1de8ff2d6787b63bd8dca5da0efd95888 to pi-release

Change-Id: Id14ff01a9a306dcc79d118b0f8b3605f0107715d

6 years agoMerge "Add Hearing Aid HAL name definition" into pi-dev
TreeHugger Robot [Fri, 9 Mar 2018 03:53:44 +0000 (03:53 +0000)]
Merge "Add Hearing Aid HAL name definition" into pi-dev

6 years agoMerge "audio HAL: Add missing input channel masks" into pi-dev
TreeHugger Robot [Thu, 8 Mar 2018 18:06:49 +0000 (18:06 +0000)]
Merge "audio HAL: Add missing input channel masks" into pi-dev

6 years agoSnap for 4641295 from 5a54b42c31ee5a0d45ae30d50c38ab91763135e6 to pi-release
android-build-team Robot [Thu, 8 Mar 2018 08:25:59 +0000 (08:25 +0000)]
Snap for 4641295 from 5a54b42c31ee5a0d45ae30d50c38ab91763135e6 to pi-release

Change-Id: I6c7d63eb1de67ddf0f671978bc56c40615cb4a06

6 years agoValid audio formats: add xHE-AAC and AAC-ELD
Jean-Michel Trivi [Wed, 7 Mar 2018 23:10:36 +0000 (15:10 -0800)]
Valid audio formats: add xHE-AAC and AAC-ELD

Bug: 71430241
Test: only once we have decoder
Change-Id: If390ff854e3089a50e21db06758f26308beb258b

6 years agoaudio HAL: Add missing input channel masks
Mikhail Naganov [Wed, 7 Mar 2018 18:57:39 +0000 (10:57 -0800)]
audio HAL: Add missing input channel masks

The following masks added for input: 2.0.2, 2.1.2, 3.0.2, 3.1.2

Add utility function 'audio_channel_mask_in_to_out' for deriving
a corresponding output channel mask from an input mask.

Remove temporary AUDIO_OUTPUT_FLAG_INCALL_MUSIC definition.

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: If84a3e4942163f4cd6417486d601ac9a7b5b2068

6 years agoMerge "system/audio.h: Add EAC3-JOC and MAT to "valid formats"" into pi-dev
TreeHugger Robot [Wed, 7 Mar 2018 18:36:48 +0000 (18:36 +0000)]
Merge "system/audio.h: Add EAC3-JOC and MAT to "valid formats"" into pi-dev

6 years agosystem/audio.h: Add EAC3-JOC and MAT to "valid formats"
Mikhail Naganov [Wed, 7 Mar 2018 01:35:24 +0000 (17:35 -0800)]
system/audio.h: Add EAC3-JOC and MAT to "valid formats"

Update audio_is_valid_format to recognize EAC3-JOC and MAT

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: I19def058a1bc0f8d16937e1ec53e9de51919a93b

6 years agoSnap for 4638586 from f971c08b6a404bd59d9ad0b3b22d287b4413131d to pi-release
android-build-team Robot [Wed, 7 Mar 2018 08:20:57 +0000 (08:20 +0000)]
Snap for 4638586 from f971c08b6a404bd59d9ad0b3b22d287b4413131d to pi-release

Change-Id: Ib3c67b3802c52fef60e24d8f39fbbdd0fcb52c88

6 years agoAudio V4: Update audio.h to V4.0
Kevin Rocard [Fri, 23 Feb 2018 18:01:56 +0000 (10:01 -0800)]
Audio V4: Update audio.h to V4.0

Exported the audio/common/4.0/types.h to audio-base.h.

As all system only values are removed in 4.0 but the headers
are still shared between vendor and system,
add those values back protected by the macro
AUDIO_NO_SYSTEM_DECLARATIONS.

This macro is defined for vendor libraries.

audio.h used to have *_CNT and *_MAX values in its enum
mostly for enum iteration.

This was not compatible with Treble as it denied any enum
inheritance.

*_CNT and *_MAX are now implemented with constants that can
be updated and are not part of the HIDL API.

Bug: 38184704
Test: compile
Change-Id: I5f99ccc9ce262b3addb15cd5034a885c9ab4cedf
Merged-In: I5f99ccc9ce262b3addb15cd5034a885c9ab4cedf
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoAdd Hearing Aid HAL name definition
Jakub Pawlowski [Fri, 23 Feb 2018 21:53:07 +0000 (13:53 -0800)]
Add Hearing Aid HAL name definition

Bug: 64038649
Test: mm
Change-Id: Ia0d1270b690378c10bb1d4585b7aa4a640cb39fe

6 years agoSnap for 4632767 from f66768029a8ab6d3872b8525c2cbbca6d4cb751b to pi-release
android-build-team Robot [Sun, 4 Mar 2018 08:26:18 +0000 (08:26 +0000)]
Snap for 4632767 from f66768029a8ab6d3872b8525c2cbbca6d4cb751b to pi-release

Change-Id: I044a83f224bdc03dce1beaf0a3d0ff97d8387151

6 years agoMerge "Camera: Update documentation for AF_REGIONS metadata"
TreeHugger Robot [Sat, 3 Mar 2018 01:33:14 +0000 (01:33 +0000)]
Merge "Camera: Update documentation for AF_REGIONS metadata"

6 years agoMerge "Force calculations involving time to be done as 64-bits"
Glenn Kasten [Fri, 2 Mar 2018 19:02:23 +0000 (19:02 +0000)]
Merge "Force calculations involving time to be done as 64-bits"

6 years agoMerge "Add missing free after read device info" am: 384bd00de2 am: e1087bb8ef
Elliott Hughes [Fri, 2 Mar 2018 16:55:43 +0000 (16:55 +0000)]
Merge "Add missing free after read device info" am: 384bd00de2 am: e1087bb8ef
am: 0ee9d6aadf

Change-Id: I802dbee1bcbed3ba79f322bf1d15e6963b046c8f

6 years agoMerge "Add missing free after read device info" am: 384bd00de2
Elliott Hughes [Fri, 2 Mar 2018 16:49:29 +0000 (16:49 +0000)]
Merge "Add missing free after read device info" am: 384bd00de2
am: e1087bb8ef

Change-Id: Id673086ab7e8b66c1009dcba7803a971546fc711

6 years agoMerge "Add missing free after read device info"
Elliott Hughes [Fri, 2 Mar 2018 16:42:45 +0000 (16:42 +0000)]
Merge "Add missing free after read device info"
am: 384bd00de2

Change-Id: I3a3fc3fa6020af36353670bd5f2709031e2e2e01

6 years agoMerge "Add missing free after read device info"
Elliott Hughes [Fri, 2 Mar 2018 16:36:33 +0000 (16:36 +0000)]
Merge "Add missing free after read device info"

6 years agoAdd missing free after read device info
liuchao [Thu, 1 Mar 2018 08:58:29 +0000 (16:58 +0800)]
Add missing free after read device info

alsa_hw_params is not freed before get out
of function profile_read_device_info,calloc
from pcm_params_get in pcm.c

Test: code compilation
Change-Id: Icb1163d3dc213939243d26f57f8d22ca4edb1159

6 years agoForce calculations involving time to be done as 64-bits
Glenn Kasten [Mon, 26 Feb 2018 20:04:15 +0000 (12:04 -0800)]
Force calculations involving time to be done as 64-bits

Bug: 73619529
Test: builds OK, no further regressions
Change-Id: I5e56e7143c139c6b56f47f7ebfda8b71152b2421

6 years agoSnap for 4620899 from 082954c2d1ec0f6c5aad76538199c8f81fb7690a to pi-release
android-build-team Robot [Sun, 25 Feb 2018 08:23:05 +0000 (08:23 +0000)]
Snap for 4620899 from 082954c2d1ec0f6c5aad76538199c8f81fb7690a to pi-release

Change-Id: Iddaeea805e6fc067f1615b0bb871eb87778e4871

6 years agoMerge "camera: Add OisSamples synthetic key"
TreeHugger Robot [Fri, 23 Feb 2018 18:47:56 +0000 (18:47 +0000)]
Merge "camera: Add OisSamples synthetic key"

6 years agocamera: Add OisSamples synthetic key
Chien-Yu Chen [Thu, 15 Feb 2018 20:34:30 +0000 (12:34 -0800)]
camera: Add OisSamples synthetic key

Add a synthetic OisSamples key containing timestamps and
shifts.

Test: CTS
Bug: 64847201
Change-Id: Ic9c4f773d4ccae483f022ed68b0d3a9590af1e0c

6 years agoAdd audio_bytes_per_frame()
Glenn Kasten [Wed, 21 Feb 2018 20:46:26 +0000 (12:46 -0800)]
Add audio_bytes_per_frame()

Test: tested by use in AudioTrack.cpp
Change-Id: I97a731ef80f66c32c08c97a2de7d2ae6717e5739

6 years agoSnap for 4610834 from 6916b4fbf7c2941ad28204eef9557421a578e6ec to pi-release
android-build-team Robot [Sun, 18 Feb 2018 08:28:23 +0000 (08:28 +0000)]
Snap for 4610834 from 6916b4fbf7c2941ad28204eef9557421a578e6ec to pi-release

Change-Id: Ib61574b00b579f41726347a34ed6f8b25632d8dd

6 years agoMerge "camera: Update logical multi-camera requirement"
TreeHugger Robot [Fri, 16 Feb 2018 01:34:00 +0000 (01:34 +0000)]
Merge "camera: Update logical multi-camera requirement"

6 years agoSnap for 4605948 from 6c3586362874755adc33fafee242372da40ac0bb to pi-release
android-build-team Robot [Thu, 15 Feb 2018 08:27:02 +0000 (08:27 +0000)]
Snap for 4605948 from 6c3586362874755adc33fafee242372da40ac0bb to pi-release

Change-Id: Ia3c76438d91ba0d07c8477338e15a1eca0a25e77

6 years agoMerge "camera: Remove physical requests streaming restriction"
TreeHugger Robot [Wed, 14 Feb 2018 20:25:38 +0000 (20:25 +0000)]
Merge "camera: Remove physical requests streaming restriction"

6 years agocamera: Update logical multi-camera requirement
Shuzhen Wang [Thu, 25 Jan 2018 21:23:03 +0000 (13:23 -0800)]
camera: Update logical multi-camera requirement

- Require timestamp source of logical and physical cameras to be the
same.
- Clarify requirement for guaranteed raw stream combinations.

Test: Compile, and look at HAL and Java side docs
Bug: 64691172
Change-Id: I8babf5cc47bdef642358a73f9e9e4b66f934e21c

6 years agoSnap for 4600820 from baf8047969e6e837c8089cfffa666cd3d291ff6a to pi-release
android-build-team Robot [Tue, 13 Feb 2018 08:34:44 +0000 (08:34 +0000)]
Snap for 4600820 from baf8047969e6e837c8089cfffa666cd3d291ff6a to pi-release

Change-Id: I5c7c8ddfd5dd272567baf9f9a64ad325dfd21040

6 years agoCamera: Revise MOTION_TRACKING capability
Eino-Ville Talvala [Tue, 6 Feb 2018 00:26:26 +0000 (16:26 -0800)]
Camera: Revise MOTION_TRACKING capability

Simplify the API for the P release.

Also clarify a bit of OIS control text.

Test: Revised Camera CTS passes
Bug: 63629224
Change-Id: Iff5a24a5699fa018e9385924f9d1c7b1cbe39576

6 years agoSnap for 4598635 from 57b1a00e26d2c93d40236184776433a3e686e50c to pi-release
android-build-team Robot [Sun, 11 Feb 2018 08:21:12 +0000 (08:21 +0000)]
Snap for 4598635 from 57b1a00e26d2c93d40236184776433a3e686e50c to pi-release

Change-Id: Ifb08d3dcba054bafd8f7ec3f7180c9d0c5ab1c8c

6 years agoCamera: Update documentation for AF_REGIONS metadata
Shuzhen Wang [Thu, 8 Feb 2018 20:03:09 +0000 (12:03 -0800)]
Camera: Update documentation for AF_REGIONS metadata

Allow AF_REGIONS in capture result to have non-0 weight if the app sets a
0-weight AF_REGIONS. This is for the case where camera HAL decides what
AF regions are used internally.

Test: Compile
Bug: 29398609
Change-Id: Ia5b4ecabb1493110e26b7476c3574bf8570d88b0

6 years agoMerge "Pull out commonly used constants to <audio_utils/clock.h>"
Glenn Kasten [Thu, 8 Feb 2018 20:48:08 +0000 (20:48 +0000)]
Merge "Pull out commonly used constants to <audio_utils/clock.h>"

6 years agocamera: Remove physical requests streaming restriction
Emilian Peev [Tue, 6 Feb 2018 16:08:38 +0000 (16:08 +0000)]
camera: Remove physical requests streaming restriction

Individual physical device capture settings should be available
for streaming requests as well.

Bug: 72524845
Test: Camera CTS
Change-Id: Iba27d07adfcde6100088e52336fd91f0c3dc816d

6 years agoSnap for 4585119 from b156863f3bea4f4c769cd3ebbf5376286ced6482 to pi-release
android-build-team Robot [Mon, 5 Feb 2018 08:23:37 +0000 (08:23 +0000)]
Snap for 4585119 from b156863f3bea4f4c769cd3ebbf5376286ced6482 to pi-release

Change-Id: I080b94bffec96265cf4b003119dfb4ee890fe7b6

6 years agoMerge "Fix typos in audio.h"
Ricardo Garcia [Fri, 2 Feb 2018 18:40:14 +0000 (18:40 +0000)]
Merge "Fix typos in audio.h"

6 years agoMerge "Add presentation and program id keys"
Mikhail Naganov [Thu, 1 Feb 2018 16:46:07 +0000 (16:46 +0000)]
Merge "Add presentation and program id keys"

6 years agoFix typos in audio.h
rago [Wed, 31 Jan 2018 21:18:37 +0000 (13:18 -0800)]
Fix typos in audio.h

Bug: 64038649
Test: Manual Testing and CTS tests.
Change-Id: I27c897761dec4b7ed103b28818211a30469e4eeb

6 years agoPull out commonly used constants to <audio_utils/clock.h>
Glenn Kasten [Fri, 8 Sep 2017 21:54:17 +0000 (14:54 -0700)]
Pull out commonly used constants to <audio_utils/clock.h>

Test: builds OK
Change-Id: Ib1167a6f4ebf4a416c9ca964fc46293e0d0597d4

6 years agoSnap for 4565898 from 6675c47787f9df43005bde5156437734d6ca1a30 to pi-release
android-build-team Robot [Thu, 25 Jan 2018 09:06:58 +0000 (09:06 +0000)]
Snap for 4565898 from 6675c47787f9df43005bde5156437734d6ca1a30 to pi-release

Change-Id: I2ce1dfea248e7bbfd406e636cbb4f397a7247e9d

6 years agoFix error type in microphone characteristics.
jiabin [Thu, 25 Jan 2018 00:11:27 +0000 (16:11 -0800)]
Fix error type in microphone characteristics.

We should use device type instead of port type.
Bug: 64038649
Test: Manually test.

Change-Id: I06d3cd05577afefae46a2fce694c91850d9a97b2

6 years agoAdd presentation and program id keys
Dean Wheatley [Thu, 4 Jan 2018 18:16:17 +0000 (05:16 +1100)]
Add presentation and program id keys

Add keys for presentation selection in HALs for next
generation audio streams.

Bug: 63901775
Test: make
Change-Id: I0c2e839757e8be03f21af3868d9dea38da7075b6
Signed-off-by: Previr Rangroo <prang@dolby.com>
6 years agoSnap for 4562879 from f18b90b22caa137bd7903a22b71db51b3e509752 to pi-release
android-build-team Robot [Wed, 24 Jan 2018 08:23:02 +0000 (08:23 +0000)]
Snap for 4562879 from f18b90b22caa137bd7903a22b71db51b3e509752 to pi-release

Change-Id: I37732cd209dfc36755daf5d0a6ac9d71f2062e9e

6 years agoMerge "Revert "Audio V4: Split system and vendor Audio.h""
Kevin Rocard [Wed, 24 Jan 2018 06:26:16 +0000 (06:26 +0000)]
Merge "Revert "Audio V4: Split system and vendor Audio.h""

6 years agoRevert "Audio V4: Split system and vendor Audio.h"
Kevin Rocard [Wed, 24 Jan 2018 06:09:44 +0000 (06:09 +0000)]
Revert "Audio V4: Split system and vendor Audio.h"

This reverts commit 6f04dc59644eaaf8e38fbc5c57578d3216db3adb.

Reason for revert: Breaks multiple devices

Change-Id: I7d447b196b71f72918d94716ba5f16e0ad21db06

6 years agoMerge "Audio V4: Split system and vendor Audio.h"
Kevin Rocard [Wed, 24 Jan 2018 04:04:47 +0000 (04:04 +0000)]
Merge "Audio V4: Split system and vendor Audio.h"

6 years agoAdditional channel mapping data to microphone info structure
rago [Tue, 23 Jan 2018 22:03:02 +0000 (14:03 -0800)]
Additional channel mapping data to microphone info structure

Adding channel mapping information to the microphone info
structure.

Bug: 64038649
Test: Manual Testing and Cts integration test
Change-Id: Ic0b6b8bad6cbb4bf906fbd5cd20bac70d5a6c83f

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 22:20:33 +0000 (14:20 -0800)]
merge in pi-release history after reset to master

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 20:15:04 +0000 (12:15 -0800)]
merge in pi-release history after reset to master

6 years agoSnap for 4560043 from 3f4db9977a6eac3e458a73398525f3025a1708ad to pi-release
android-build-team Robot [Tue, 23 Jan 2018 08:23:32 +0000 (08:23 +0000)]
Snap for 4560043 from 3f4db9977a6eac3e458a73398525f3025a1708ad to pi-release

Change-Id: I695cfa08831cc19864b2613b740e830dc917ab92

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 06:28:40 +0000 (22:28 -0800)]
merge in pi-release history after reset to master

6 years agoAudio V4: Split system and vendor Audio.h
Kevin Rocard [Wed, 17 Jan 2018 23:57:40 +0000 (15:57 -0800)]
Audio V4: Split system and vendor Audio.h

audio.h and its dependencies (audio-effect.h, sound_trigger.h...)
used to be shared between system and vendor code.

This led to multiple problems:

1) Such sharing contradicts the Treble policy of
strict independence of framework and vendor code.

2) When audio.h was changed, every vendor needed to update
its code in the next release. This meant that audio*.h
headers were mostly changed in backward compatible manner.
Nevertheless, for P the HIDL interface and thus the audio.h
interface are changed in backward incompatible way.
(Some enum are becoming 64 bit long).

3) As the headers were common, some API used only by the framework
needed to be visible to the vendors (mostly enum values).

4) Treble policy is to support at least one previous HAL version

As a result the audio*.h headers are now duplicated,
one set for the framework, and one for the vendor.

Each set will evolve independently. After this split,
the framework-only APIs will be removed from the vendor headers
and vice versa.

The split is implements as such:

 + for system code

    - NOT moving the libaudio_system_headers
      Eg: system/audio.h and system/audio_effects/effect_equalizer.h
          are still in system/media/audio

    - the legacy audio HAL API that were in libhardware headers
          are now in libaudiohal_legacy_headers
      Eg: hardware/audio.h and hardware/audio_effect.h
          are now in frameworks/av/media/libaudiohal/legacy/

 + for vendor code

    - moving libaudio_system_headers and the legacy audio HAL API
          that were in libhardware_headers in
          android.hardware.audio.common.legacy@2.0
      Note that those headers are now versioned, so migrating to a @4.0
          HIDL HAL will mean changing the legacy dependency too.
      Eg: system/audio.h, system/audio-effect.h, hardware/audio.h
          are now in hardware/interfaces/audio/common/2.0/legacy

    - the legacy audio effect HAL API that was in libaudioeffects
          is now moved in android.hardware.audio.effect.legacy@2.0
      Eg: audio_effects/effect*.h are now in
          hardware/interfaces/audio/effect/2.0/legacy

    - the legacy sound trigger HAL API that were in libhardware_headers
          is now moved in android.hardware.soundtrigger.legacy@2.0
      Eg: hardware/sound_trigger.h is now in
          hardware/interfaces/audio/effect/2.0/legacy

libaudioutil being used by both system and vendor, had
to be renamed for system to libaudioutil_system.

Vendor libs that now depend on the audio.h of a specific
version and are not extensively referenced in non google code,
append @2.0 to their name.

Note that headers that are not expected to change in the 4.0 HAL are
left in all-versions folder to avoid duplication.
This is an implementation detail as the versioned libraries export
the all-versions headers.

Note that strict vendor-system separation is enforced by the
build-system. The system headers are not available for vendor
libs and vice-versa.

Note that this patch is split between numerous git repository (>10),
all the commits having the same Change-id for searchability.

Note that audio_policy.h is no longer exposed to vendors
as the legacy audio policy HAL API was never officially supported.
As a result the audiopolicy stub implementation has been removed.

Test: compile taimen-userdebug walleye-userdebug
              sailfish-userdebug marlin-userdebug
              gce_x86_phone-userdebug gce_x86_phone
              full-eng aosp_arm aosp_x86-eng
Test: check that the emulator booted and played audio
Test: full QA on sailfish-userdebug and taimen-userdebug
Bug: 38184704
Change-Id: I950f4e0a55613d72e32eba31bd563cb5bafe2d1a
Signed-off-by: Kevin Rocard <krocard@google.com>
6 years agoMerge "camera: Modify AF scene change"
TreeHugger Robot [Tue, 23 Jan 2018 03:03:31 +0000 (03:03 +0000)]
Merge "camera: Modify AF scene change"

6 years agoMerge "Camera: Add available physical camera request keys"
Shuzhen Wang [Tue, 23 Jan 2018 00:36:16 +0000 (00:36 +0000)]
Merge "Camera: Add available physical camera request keys"

6 years agomerge in pi-release history after reset to master
gitbuildkicker [Tue, 23 Jan 2018 00:33:23 +0000 (16:33 -0800)]
merge in pi-release history after reset to master

6 years agoMerge "camera: Add OIS data keys"
TreeHugger Robot [Mon, 22 Jan 2018 23:22:30 +0000 (23:22 +0000)]
Merge "camera: Add OIS data keys"

6 years agoMerge "Manually add incall music output flag"
Nadav Bar [Mon, 22 Jan 2018 23:20:50 +0000 (23:20 +0000)]
Merge "Manually add incall music output flag"

6 years agoMerge "Camera: Add static metadata for logical camera"
Shuzhen Wang [Mon, 22 Jan 2018 20:30:15 +0000 (20:30 +0000)]
Merge "Camera: Add static metadata for logical camera"

6 years agoMerge "Camera: add new EXTERNAL hardware level"
Yin-Chia Yeh [Mon, 22 Jan 2018 19:55:20 +0000 (19:55 +0000)]
Merge "Camera: add new EXTERNAL hardware level"

6 years agoManually add incall music output flag
Nadav Bar [Mon, 22 Jan 2018 19:23:18 +0000 (21:23 +0200)]
Manually add incall music output flag

This change manually adds the AUDIO_OUTPUT_FLAG_INCALL_MUSIC to audio.h.
When HAL v4.0 will be available it will be added to the HAL interfaces
and removed from audio.h.

Bug: 69973354.
Test: tested manually.
Change-Id: I130aa1f91325199552047d348017e54e576a2f91

6 years agoMerge "Add support of getting all available microphones characteristics."
TreeHugger Robot [Mon, 22 Jan 2018 19:20:32 +0000 (19:20 +0000)]
Merge "Add support of getting all available microphones characteristics."

6 years agoAdd support of getting all available microphones characteristics.
jiabin [Fri, 5 Jan 2018 21:11:47 +0000 (13:11 -0800)]
Add support of getting all available microphones characteristics.

Bug: 64038649
Test: Run cts and check the print log.
Change-Id: Ic05dffb6e71d03005261972e398484824c01a805

6 years agoCamera: Add available physical camera request keys
Emilian Peev [Thu, 18 Jan 2018 19:09:57 +0000 (19:09 +0000)]
Camera: Add available physical camera request keys

Add a subset of the available camera request keys that
can be overriden for physical device backing logical
multi-camera.

Test: Compile, and run metadata-generate
Bug: 64691172

Change-Id: I39a825d75f5bff96000729415e4d6f99fbb1fe2d

6 years agoSnap for 4557233 from 6c90ed9338d0599de4f5a26fbdf31a14d0becaae to pi-release
android-build-team Robot [Sun, 21 Jan 2018 08:26:15 +0000 (08:26 +0000)]
Snap for 4557233 from 6c90ed9338d0599de4f5a26fbdf31a14d0becaae to pi-release

Change-Id: Ic8208335ef313031a2ca77426d19c7f7a41a9745

6 years agoCamera: Add static metadata for logical camera
Shuzhen Wang [Thu, 30 Nov 2017 20:03:37 +0000 (12:03 -0800)]
Camera: Add static metadata for logical camera

Add logical camera capability and corresponding static metadata for
physical camera ids.

Test: Compile, and run metadata-generate
Bug: 64691172
Change-Id: Ifa14db6ce5085e54f6bafdd9060e56c6b99b9ff2

6 years agocamera: Modify AF scene change
Chien-Yu Chen [Fri, 19 Jan 2018 18:50:17 +0000 (10:50 -0800)]
camera: Modify AF scene change

Change type to byte because int32 and enum cause type mismatch.
Allow DETECT in all AF modes.

Test: CTS
Bug: 64847201
Change-Id: I61e4b37fda8b29a67026cd567d4fa414afe90231

6 years agoCamera: add new EXTERNAL hardware level
Yin-Chia Yeh [Fri, 19 Jan 2018 19:32:19 +0000 (11:32 -0800)]
Camera: add new EXTERNAL hardware level

Bug: 64874137 63873538
Change-Id: Ida7c14d045c6e9f13c638e2314c76178f8bdecf4

6 years agocamera: Add OIS data keys
Chien-Yu Chen [Sat, 13 Jan 2018 01:38:00 +0000 (17:38 -0800)]
camera: Add OIS data keys

Test: CTS
Bug: 64847201
Change-Id: I80b94554d886a0eeae5ee247a1f1c4aafb0f4cd7

6 years agoMerge "camera: Add external flash mode key"
TreeHugger Robot [Fri, 19 Jan 2018 04:19:23 +0000 (04:19 +0000)]
Merge "camera: Add external flash mode key"

6 years agoSnap for 4551672 from 17324ba13c617109f8b6278de37f1331f1e8e121 to pi-release
android-build-team Robot [Thu, 18 Jan 2018 08:25:55 +0000 (08:25 +0000)]
Snap for 4551672 from 17324ba13c617109f8b6278de37f1331f1e8e121 to pi-release

Change-Id: I0e56198bb8395e9a3f90cf7a49b62511ea7e33f2

6 years agocamera: Add external flash mode key
Chien-Yu Chen [Thu, 11 Jan 2018 19:32:52 +0000 (11:32 -0800)]
camera: Add external flash mode key

Test: CTS
Bug: 64847201
Change-Id: Id7d4d1e5a7ce8f3793f36a0a24a2c5118a367fef

6 years agocamera: Correct 'availableSessionKeys' version
Emilian Peev [Wed, 10 Jan 2018 13:47:40 +0000 (13:47 +0000)]
camera: Correct 'availableSessionKeys' version

The hal version of 'availableSessionKeys' should be 3.3 not 3.4 .

Bug: 64450664
Test: Builds, hidl-gen/hidl-doc are happy with the HIDL output
Change-Id: I2af918362de4e5e405a50d202ba400b501d404d0

6 years agoSnap for 4535700 from 808558e046163c11fb82af52925ce8e5d788991f to pi-release
android-build-team Robot [Wed, 10 Jan 2018 08:28:47 +0000 (08:28 +0000)]
Snap for 4535700 from 808558e046163c11fb82af52925ce8e5d788991f to pi-release

Change-Id: I1dcd37f17a7b5d424c9c7276398ac7720bb70523

6 years agoSnap for 4531101 from 218925a9db3a317136595b9751b4a4297cca0715 to pi-release
android-build-team Robot [Sun, 7 Jan 2018 08:31:43 +0000 (08:31 +0000)]
Snap for 4531101 from 218925a9db3a317136595b9751b4a4297cca0715 to pi-release

Change-Id: Ib53413296d04a5745e35adb63d83b410e3d779ce

6 years agoCamera: Add MOTION_TRACKING capability/intent, and lens poseReference
Eino-Ville Talvala [Thu, 7 Dec 2017 21:12:11 +0000 (13:12 -0800)]
Camera: Add MOTION_TRACKING capability/intent, and lens poseReference

- Add MOTION_TRACKING capability, which defines a camera with accurate
  lens calibration values, accurate timestamps relative to the
  inertial sensors, and ability to limit exposure time to 20ms.
- Add MOTION_TRACKING capture intent, which limits AE to 20ms max
  exposure.
- Add android.lens.poseReference for supporting gyroscope-centered
  lens calibration data for MOTION_TRACKING.
- Remove accidental typo in session parameter docs

Test: Builds, hidl-gen/hidl-doc are happy with the HIDL output
Bug: 63629224
Change-Id: I13dd3d2b30899a9fc952639ec168748bae11dc87

6 years agocamera: Add device info version
Chien-Yu Chen [Wed, 3 Jan 2018 20:04:48 +0000 (12:04 -0800)]
camera: Add device info version

Test: CTS
Bug: 64847201
Change-Id: Ia7b5ca8fc37093afd5a5e29d46d437159bb5c454

6 years agoSnap for 4523885 from 5fb920ec5437f3335b6077a73c9f6421aa0d7894 to pi-release
android-build-team Robot [Wed, 3 Jan 2018 08:21:32 +0000 (08:21 +0000)]
Snap for 4523885 from 5fb920ec5437f3335b6077a73c9f6421aa0d7894 to pi-release

Change-Id: I7a6533feaa5d9a32a1bbd95ec689615cab967041

6 years agoCamera: Fix Hidl metadata section generation
Shuzhen Wang [Thu, 28 Dec 2017 21:35:32 +0000 (13:35 -0800)]
Camera: Fix Hidl metadata section generation

- Fix name collision related to metadata section
- Fix fully qualified metadata name for ANDROID_SECTION_COUNT

Test: Run hidl-gen with added new metadata sections
Bug: 71388767
Change-Id: I59bc4494b81b1e7207796f2597cc20516fa64fcd

6 years agoSnap for 4517567 from 094aa577e5d6f3e63c2294bd26a3f18f85f9c65d to pi-release
android-build-team Robot [Sun, 24 Dec 2017 08:34:13 +0000 (08:34 +0000)]
Snap for 4517567 from 094aa577e5d6f3e63c2294bd26a3f18f85f9c65d to pi-release

Change-Id: Id9012dbe14163b8cae35fec405ea87fd05d5e0be

6 years agoMerge "camera metadata: Add support for session parameter keys"
TreeHugger Robot [Fri, 22 Dec 2017 19:18:45 +0000 (19:18 +0000)]
Merge "camera metadata: Add support for session parameter keys"

6 years agoMerge "Camera: Add support for HAL-versioned enum values"
TreeHugger Robot [Fri, 22 Dec 2017 00:16:57 +0000 (00:16 +0000)]
Merge "Camera: Add support for HAL-versioned enum values"

6 years agoCamera: Add support for HAL-versioned enum values
Eino-Ville Talvala [Thu, 7 Dec 2017 21:06:05 +0000 (13:06 -0800)]
Camera: Add support for HAL-versioned enum values

- Add hal_version to enum value fields as well, and add it to various doc outputs
- Improve HIDL metadata generation to work better with hidl-doc, and properly handle
  enum value additions in new hal versions
- Enable HIDL HAL 3.3 output

Test: Builds, hidl-gen/hidl-doc are happy with the HIDL output
Bug: 63629224
Change-Id: I64b31d9e8e6eda41268df0fc95962b52fcce7fee

6 years agoMerge "Fix integer sanitizer in audio_route_update_path." am: a2c091b0f5 am: de301d6bbb
Ivan Lozano [Wed, 20 Dec 2017 16:06:23 +0000 (16:06 +0000)]
Merge "Fix integer sanitizer in audio_route_update_path." am: a2c091b0f5 am: de301d6bbb
am: d7c33dd402  -s ours

Change-Id: I96f98f96ecc73492fa3ec5fb205a991351d621a3

6 years agoMerge "Fix integer sanitizer in audio_route_update_path." am: a2c091b0f5
Ivan Lozano [Wed, 20 Dec 2017 16:04:20 +0000 (16:04 +0000)]
Merge "Fix integer sanitizer in audio_route_update_path." am: a2c091b0f5
am: de301d6bbb

Change-Id: I0167f99b21e47d7cf295e531e77deea5515d1eb6

6 years agoMerge "Fix integer sanitizer in audio_route_update_path."
Ivan Lozano [Wed, 20 Dec 2017 16:01:50 +0000 (16:01 +0000)]
Merge "Fix integer sanitizer in audio_route_update_path."
am: a2c091b0f5

Change-Id: I69fd85d18dd0bd7243924ca9949916593e9fdfd7

6 years agoMerge "Fix integer sanitizer in audio_route_update_path."
Ivan Lozano [Wed, 20 Dec 2017 15:55:06 +0000 (15:55 +0000)]
Merge "Fix integer sanitizer in audio_route_update_path."