Commit graph

9307 commits

Author SHA1 Message Date
Dean Wheatley
fd64afb0fd Audio V4: Add MSD formats and Device
Add MAT 1.0, 2.0, 2.1 audio formats
Add 5.1.2, 5.1.4, 7.1.2, 7.1.4 output channel masks
Add E_AC3_JOC audio format
Add MSD Device to allow an MSD HAL implementation separated from the
primary.

Bug: 38184704
Test: none
Change-Id: I2f488462614114e4c82149460b030585981ae15e
Original author:
Signed-off-by: Dean Wheatley <dwhea@dolby.com>
Ported to HAL 4.0:
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 23:09:23 -08:00
Kevin Rocard
8b010d2421 Audio V4: Add new Audio HAL API
Add new device to the device factory to allow vendors to split
their HAL implementations more.

AudioDevice bitfield is now 64bit to allow more devices to be added.

Add a new AudioDevice to support playing music to distant during voice
call.

A HAL can now declare if its MMAP buffer can be securely accessed
directly by untrusted apps.

Add AAC_XHE format.

Add BLE input source.

Bug: 38184704
Test: none
Change-Id: Ic2fbec4db71c7f688c8847ba39c72f51480c0727
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 23:09:23 -08:00
Kevin Rocard
71afcf1f87 Audio V4: Remove all non extensible enum value
The CNT, MAX enum values had two drawbacks:
 - they were invalid enum value that were part of the enum
   thus enum validity check would validate them although those values
   are only expected to be use in loops/validation code.
 - they are not extensible by vendors

The *_ALL enum values were not extensible by vendors.

Those values can instead be replaced by treble enum iterator and
helper functions.

Bug: 38184704
Test: none
Change-Id: I1a9527bb7311088e0abe22eceee92d21d9171ca4
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 23:09:23 -08:00
Kevin Rocard
260470f7b7 Audio V4: Fix doc comments for hidl-doc
hidl-doc does not support two consecutive documentation comments
/** ... */
/** ... */

In such case make the first one a non-doc comment.

This is a port of: http://android-review.googlesource.com/432140

Bug: 38184704
Test: none
Change-Id: I86cb10c655036ca49055ee007813c3e5af743eb5
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 23:09:23 -08:00
Kevin Rocard
74980b56eb Audio V4: Fix documentation and useable/untestable bugs
Add missing documentation, especially for failure cases
and methods that are optional.
Add missing operation status for testability.
Add format for getSupported* methods as they could not
be implemented in 2.0 for multi-format stream (HDMI).

Test: compile
Bug: 38184704
Change-Id: I14ee5e02ef70a82df6de732f88b065810e9b032f
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 23:09:23 -08:00
Kevin Rocard
a4e6d8b1de Audio V4: Copy 2.0 .hal files in 4.0
That will ease review of the changes.
The only changes are:
 - replace all @2.0 by 4.0
   $ sed -i 's/@2\.0/@4\.0/g' */4.0/*.hal
 - replace all licence 2016 by 2018
   $ sed -i 's/2016/2018/g' */4.0/*.hal

Moving the .hal in a subfolder forces the package name and the
namespace to change.

This mean that the audio HAL 2.0 and 4.0 will not be consider
different version of the same HAL but two different HALs.

As a result to minimize code change due to tight deadline,
keep the 4.0 core in the audio folder.

Bug: 38184704
Test: hardware/interfaces/update-makefiles.sh
Change-Id: I7c7a826270c9933091f037b795806787e1284583
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-31 10:39:47 -08:00
Hongwei Wang
d879f7a131 Merge "Runs audio control service in delicated user" 2018-01-26 03:24:45 +00:00
TreeHugger Robot
a4c3b60c2c Merge "Update emulator protobuf to include status" 2018-01-26 03:24:18 +00:00
Jack Yu
f32d1978cd Merge "HIDL changes for IWLAN refactoring" am: 4365f2e6bc am: fd428d8f4d
am: c77519448b

Change-Id: Ia8f014fb1492eb9276ed56e80a23744000f90625
2018-01-26 01:45:58 +00:00
Yu-Han Yang
ef7f7dfb9a Merge "Add gnssRequestLocationCb to IGnssCallback.hal and injectBestLocation to IGnss.hal" 2018-01-26 00:41:35 +00:00
Steve Paik
5160ba3455 Update emulator protobuf to include status
Add status
Remove supported_areas

Bug: 72348165
Test: Use python emulator to get/set values
Change-Id: Iad84305a49b260ff02b28685f581a82ca7ff8195
2018-01-25 16:26:38 -08:00
TreeHugger Robot
354db50595 Merge "External Camera: more CTS fix" 2018-01-25 23:37:41 +00:00
Jack Yu
c77519448b Merge "HIDL changes for IWLAN refactoring" am: 4365f2e6bc
am: fd428d8f4d

Change-Id: Id0f6e64d592cd362303cb366823d1c36f4457b76
2018-01-25 22:42:42 +00:00
Jack Yu
fd428d8f4d Merge "HIDL changes for IWLAN refactoring"
am: 4365f2e6bc

Change-Id: If44163c860bcaa23c77d40cbb4512637d1c65c1f
2018-01-25 22:10:04 +00:00
Yuriy Romanenko
d0bd4f11f8 Common: Added lock() to camera HandleImporter
Effectively a counterpart to lockYCbCr() but for generic single-plane
buffers

Change-Id: I73d051c085fe2b96810a1ed761deac177db2733d
2018-01-25 12:50:40 -08:00
Yin-Chia Yeh
4acd76e647 External Camera: fix aspect ratio/crop issue
Also switch to new EXTERNAL hardware level.

Test: ImageReaderTest#testAllOutputYUVResolutions pass
Bug: 72261912
Change-Id: I95f05a20827b413bfa480b0336fff395159678eb
2018-01-25 18:47:51 +00:00
Treehugger Robot
4365f2e6bc Merge "HIDL changes for IWLAN refactoring" 2018-01-25 17:41:57 +00:00
TreeHugger Robot
406406fb90 Merge changes from topic "tui_keystore"
* changes:
  Add Trusted Confirmation support to Keymaster HAL.
  Sort tags in keymaster_tags.h alphabetically
2018-01-25 17:31:38 +00:00
Brian Carlstrom
6d341ac842 Merge "Log dlerror on dlopen related failures" 2018-01-25 16:00:06 +00:00
Shuzhen Wang
3f69707cc1 Merge "camera: Add physical camera metadata in CaptureResult" 2018-01-25 15:52:45 +00:00
TreeHugger Robot
075d928e0b Merge changes I22ca138e,I1d93a855,I72017b39
* changes:
  ConfirmationUI reference implementation
  Add confirmation UI support libaray
  ConfirmationUI HAL definition
2018-01-25 14:20:42 +00:00
TreeHugger Robot
b3aa121d1d Merge "Add new vibrator effects." 2018-01-25 13:11:20 +00:00
TreeHugger Robot
7a3b56445e Merge "authsecret: remove factoryReset()" 2018-01-25 10:22:29 +00:00
Peiyong Lin
a682c3db0f Merge "[HWC] Add setLayerFloatColor API into HAL." 2018-01-25 08:23:01 +00:00
TreeHugger Robot
ea0856fff5 Merge "wifi(implementation): Check if wifi_chip is null in debug()" 2018-01-25 07:29:32 +00:00
Peiyong Lin
ab505aaf90 [HWC] Add setLayerFloatColor API into HAL.
This patch:

1. Adds setLayerFloatColor API into HAL to enable setting more bits of color on
ColorLayer;
2. Adds VTS tests for setLayerFloatColor.

BUG: 69970838
Test: adb shell /data/nativetest/VtsHalGraphicsComposerV2_2TargetTest/VtsHalGraphicsComposerV2_2TargetTest
Change-Id: I439e35cb2505ee47b8e9a8dd1c19a3f3f2cf9c2f
2018-01-25 05:58:32 +00:00
TreeHugger Robot
c133b9087a Merge "Add new HWC HAL methods for Android P." 2018-01-25 05:55:38 +00:00
Brian Carlstrom
3f2d71fb2d Log dlerror on dlopen related failures
Bug: 72300913
Bug: 72342986
Bug: 72462122
Test: manually confirmed logging on failure
Change-Id: I401587311e5c3e3d1ef69516645ebb2dd4479c51
2018-01-24 19:53:36 -08:00
Android Build Merger (Role)
b0f5034e87 Merge "Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: 630eb2d3b8 am: f447fd054d" into oc-mr1-dev am: c87295e619
am: d5ef08d1fb

Change-Id: I0bfb27fd815a257221d8b443eee73b3c4bf54cf4
2018-01-25 03:45:14 +00:00
sqian
985866db5c Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: efebbbeeea am: e7da333a91
am: 9b544fb083

Change-Id: I9b54f0d11f9150f22ad79daaa4b32b551ee1e763
2018-01-25 03:44:52 +00:00
Roshan Pius
7cf1df7ce1 wifi(implementation): Check if wifi_chip is null in debug()
|chip_| could be null if wifi is not turned on.

Bug: 72470346
Test: Ensure that the device does not crash when bugreport is collected
with wifi off.

Change-Id: Iface5ecf0511ad88996ebad85ba3c037c3a8c5ee
2018-01-24 19:13:09 -08:00
Android Build Merger (Role)
d5ef08d1fb Merge "Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: 630eb2d3b8 am: f447fd054d" into oc-mr1-dev
am: c87295e619

Change-Id: Iab7ff9257758981ee13b948c0c71caf59244370a
2018-01-25 03:11:19 +00:00
sqian
9b544fb083 Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: efebbbeeea
am: e7da333a91

Change-Id: Ia62e2a8ae1e8975ef33203142a4ebe20b45d60b9
2018-01-25 03:10:50 +00:00
Android Build Merger (Role)
c87295e619 Merge "Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: 630eb2d3b8 am: f447fd054d" into oc-mr1-dev 2018-01-25 02:46:55 +00:00
sqian
4e5479d9c8 Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140 am: 630eb2d3b8
am: f447fd054d

Change-Id: Id15be629bc83bc2448d56dbb7b59d7353f28824c
2018-01-25 02:46:49 +00:00
sqian
e7da333a91 Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140
am: efebbbeeea

Change-Id: I3d144dbf390dbccf3687b037be9b7b88010c7fbd
2018-01-25 02:46:46 +00:00
sqian
f447fd054d Merge "Add None into cancelPendingUssd" into oreo-vts-dev am: 4ccc3b0140
am: 630eb2d3b8

Change-Id: I250030427d2493463d01524d99be567a01b71e07
2018-01-25 02:44:44 +00:00
sqian
630eb2d3b8 Merge "Add None into cancelPendingUssd" into oreo-vts-dev
am: 4ccc3b0140

Change-Id: Ie4fa81b5df618862c3af5b8836c059a348e9cb65
2018-01-25 02:41:42 +00:00
sqian
efebbbeeea Merge "Add None into cancelPendingUssd" into oreo-vts-dev
am: 4ccc3b0140

Change-Id: Iad35b1764095d6b4bdd52dfd8f8e6a73940bfab5
2018-01-25 02:40:26 +00:00
Treehugger Robot
4ccc3b0140 Merge "Add None into cancelPendingUssd" into oreo-vts-dev 2018-01-25 02:36:50 +00:00
Shuzhen Wang
39cf8fd9fe camera: Add physical camera metadata in CaptureResult
- When physical stream of a logical multi-camera is requested, HAL needs
to generate metadata for the physical cameras.
- In case no physical stream is requested for the logical multi-camera, no
capture result metadata is required for physical camera.
- Batch physical and logical metadata within one capture_result call.

Test: testLogicalCamera CTS test
Bug: 64691172
Change-Id: Id040620f3f0c350711d49341ab31ab88ecd94888
2018-01-24 18:14:58 -08:00
Courtney Goeltzenleuchter
be92bb9fae Add new HWC HAL methods for Android P.
Add new methods to support HDR, video readback mechanism and
additional power mode.

Test: adb shell /data/nativetest/VtsHalGraphicsComposerV2_2TargetTest/VtsHalGraphicsComposerV2_2TargetTest
Bug: 71513501
Change-Id: I45596df6c5a2a726e12f524e82681aef4bcbe180
2018-01-24 17:19:55 -08:00
Yu-Han Yang
90a35dcfbf Add gnssRequestLocationCb to IGnssCallback.hal and injectBestLocation
to IGnss.hal

- add the gnssRequestLocationCb to IGnssCallback.hal, with a boolean
flag to supply with or without GNSS information, to request location for
fast TTFF (or error recovery).

- correspondingly add the injectBestLocation to IGnss.hal for the
location provider to inject the location.

Bug: 72341681
Test: Copied the same change and test to v1.0 and manually ran vts
tests. All passed.

Change-Id: I2e9d11603a2f16ef52d6c1556be75bdbcd8d0e80
2018-01-24 17:08:20 -08:00
Michael Wright
ed5d92cc7c Add new vibrator effects.
Add new effects for pop, thud and heavy click, as well as constants to
play back pre-defined ringtone effects.

Bug: 64185677
Bug: 64184692
Test: run vts --skip-all-system-status-check --skip-preconditions
    --primary-abi-only --module VtsHalVibratorV1_2TargetTest
Change-Id: I4baae73e1471208f9f54bb1c03da8c27ca6b0ee1
2018-01-25 00:53:31 +00:00
TreeHugger Robot
0d29cf99f7 Merge changes from topic "radio_mode_cbs_hidl"
* changes:
  wifi(implementation): Invoke radio mode change callbacks
  wifi(implementation): Conversion functions for radio mode change
  wifi(implementation): WifiLegacyHal interface for radio mode change
  wifi(interface): Add callbacks for indicating radio mode changes
2018-01-25 00:39:59 +00:00
TreeHugger Robot
f30add84f8 Merge "Refactor VHAL" 2018-01-25 00:36:29 +00:00
Chia-I Wu
887a59b301 Merge "graphics: add createDescriptor_2_1 to mapper" 2018-01-24 23:57:03 +00:00
Yin-Chia Yeh
fb1c154342 External Camera: more CTS fix
Test: CameraDeviceTest, CaptureResultTest, StaticMetadataTest
      ExtendedCameraCharacteristicsTest, RobustnessTest
Bug: 72261912

Change-Id: Id99d86db99a905afcc41d3e9d297ce3533d852a2
2018-01-24 15:48:42 -08:00
Zhuoyao Zhang
b6371e782d Merge "Convert sensors HAL test to use VtsHalHidlTargetTestEnvBase" am: edf1e2f589 am: a4b6a6da27
am: 2ec4182501

Change-Id: I339d8312c2321a56e263d8b9a6836639762c58ad
2018-01-24 23:00:08 +00:00
Yifan Hong
21bd732f22 Merge changes from topic "vintf_kernel_ver" am: f3dd36fd5c am: 3c0032a742
am: ec8fb9e8ef

Change-Id: I2ddb722ec90ea07dc0b8d234fa55ac85b2cb8d6e
2018-01-24 22:52:44 +00:00