Commit graph

9877 commits

Author SHA1 Message Date
Scott Randolph
5f2568b2e1 Add VTS test for automotive AudioControl HAL
Difficult to verify results, but at least exercises the APIs.

Bug: 71614544
Test: adb push ...VtsHalAudioControlV1_0TargetTest /data/actst; adb shell
/data/actst
Merged-In: Ie900a4e47483ef881e00a4753097dbd09a0730a0
Change-Id: Ie900a4e47483ef881e00a4753097dbd09a0730a0
2018-03-09 22:03:32 +00:00
TreeHugger Robot
ba6f3289dd Merge "Only allow audio V4 for devices targeting level 3" into pi-dev 2018-03-09 20:38:28 +00:00
Carmen Jackson
a381942170 Merge "Add hwcomposer to the system-background cpuset." into pi-dev 2018-03-09 18:49:33 +00:00
Etan Cohen
b6df5fe23f Merge "[RTT][AWARE] Support new legacy error codes for Aware RTT" into pi-dev 2018-03-09 16:10:02 +00:00
Myles Watson
af9b85e29a Merge "resolve merge conflicts of b9492b5fe9 to oc-mr1-dev" into oc-mr1-dev
am: 8ca409dfa1  -s ours

Change-Id: I6f8ae34681bcead584384ce456822492ac100779
2018-03-09 01:06:31 +00:00
TreeHugger Robot
8ca409dfa1 Merge "resolve merge conflicts of b9492b5fe9 to oc-mr1-dev" into oc-mr1-dev 2018-03-09 00:57:30 +00:00
Yu-Han Yang
584ad32e73 Implement Gnss::start() and Gnss::stop()
- calling start() creates a thread that periodically receives locations

Bug: 73845705

Test: ran VtsHalGnssV1_1TargetTest. SetCallbackResponses and
GetLocationLowPower are passing

Change-Id: I6a544c2832037a8b507c0ab030a8b766be499669
2018-03-08 13:54:07 -08:00
Etan Cohen
69c8922f63 [RTT][AWARE] Support new legacy error codes for Aware RTT
Translate to basic failure. TODO on adding/mapping-to new HIDL
error codes.

Bug: 73176307
Test: RangeAwareTest with known failures
Change-Id: I90e44c3f5aae3f6e565df3a63a36bd84d15c4755
2018-03-08 13:41:47 -08:00
Carmen Jackson
36e146d6fc Add hwcomposer to the system-background cpuset.
Little cores should be fast enough to handle hwcomposer work, so
avoiding using big cores for this is a potential opportunity to save
battery.

Bug: 73543056
Test: Verified using dumpsys gfxinfo that TouchLatency doesn't drop
frames.
Test: Took 10s systraces of TouchLatency and a Youtube VR video and saw
no frames dropped in SurfaceFlinger.

Change-Id: If96e13a2bacc9541f4d69a5736254817f20cacdd
2018-03-08 12:58:13 -08:00
Tomasz Wasilczyk
6bf7d58e57 Merge "Fix boadcastradio HAL 1.1 tuneByProgramSelector implementation." into pi-dev 2018-03-08 19:44:04 +00:00
Tomasz Wasilczyk
c863a957d4 Fix boadcastradio HAL 1.1 tuneByProgramSelector implementation.
It was not compliant with the HAL definition - it didn't auto-change
band if necessary.

Bug: 74353024
Test: manual
Change-Id: I015faffc42778fa27fca3030306f31b0abe409c7
2018-03-08 11:41:55 -08:00
TreeHugger Robot
81d6be54bb Merge "audio HAL: Add missing input channel masks" into pi-dev 2018-03-08 18:06:48 +00:00
Kevin Rocard
802931b173 Only allow audio V4 for devices targeting level 3
Device targeting the last level must use the last version of the
audio HAL.

Bug: 38184704
Test: cuttlefish has no build target, so there is no way to test,
      nevertheless the exact same trivial change was made to Pixel 2
Change-Id: If767803e08caf5b03edcea26fd8dba1cca12cc38
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-07 19:12:50 -08:00
Myles Watson
486c1de215 resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev am: 4891a02bbc
am: eb6bff7234  -s ours

Change-Id: I86a5e151f0b4a92c3e24fe5d7601b57baee0ee4a
2018-03-07 23:11:57 +00:00
Myles Watson
eb6bff7234 resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev
am: 4891a02bbc

Change-Id: Ia08338df3ee163a80ec2315ecf968a2149bdf2ff
2018-03-07 23:04:56 +00:00
Mikhail Naganov
b7e7ccc648 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

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: I9ffc2a1858068fdd9fe0777184ea8464e7ab0e3b
2018-03-07 19:27:02 +00:00
Myles Watson
ed87d936ef resolve merge conflicts of b9492b5fe9 to oc-mr1-dev
Test: Manually inspected the diffs.
Bug: 69785298
Change-Id: Ic0ceba1277f23927820cd0e85c07880659e39478
Merged-In: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
2018-03-07 17:48:11 +00:00
TreeHugger Robot
2076105d33 Merge changes from topic "audio-hal-v4-pi-dev" into pi-dev
* changes:
  Audio V4: Declare support for 4.0 interface
  Audio V4: Implement the shim core 4.0 -> legacy
  Audio V4: Add its own function to open the primary device
  Audio V4: Move service entry point to common
  Audio V4: Implement the shim effect 4.0 -> legacy
  Audio V4: Update .hal doc to removal of audioSource
  Audio V4: Use string to identify audio Device
  Fix potential missing '\0' when wrapping to legacy
  Audio V4: Cast conversion now deduce both types
  Audio V4: Add V4 common utils
  Audio V4: Do not forward notification detail
  Audio V4: Remove system only enum values
2018-03-07 03:23:51 +00:00
TreeHugger Robot
9892569a56 Merge "supplicant/hostapd(vts): Test for terminate" into pi-dev 2018-03-07 02:05:21 +00:00
Roshan Pius
b887dedf99 supplicant/hostapd(vts): Test for terminate
This HIDL API is meant to terminate the HIDL service. On Pixel devices,
terminate will trigger the death of the corresponding daemon.
But, other OEM's may choose to do something else.

Bug: 71613595
Bug: 71613528
Test: Ran the VTS tests
Change-Id: I737458b5c49ecd5545be0dc7033092db9a35b089
2018-03-06 15:46:00 -08:00
Myles Watson
4891a02bbc resolve merge conflicts of 8a28de7a8c to oreo-mr1-vts-dev
Test: Manually inspected the diffs.
Change-Id: I185caef3e3ee6ad3678e5f9035986d74d266d186
Merged-In: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
2018-03-06 23:30:18 +00:00
Ahmed ElArabawy
ac2f441862 Merge "WiFi: Wait for driver to be ready before operation" into pi-dev 2018-03-06 22:07:16 +00:00
TreeHugger Robot
88db8f8003 Merge "Disable arm32 asan for VtsHalNeuralnetworksV1_1TargetTest" into pi-dev 2018-03-06 21:50:34 +00:00
Ahmed ElArabawy
c101815ac1 WiFi: Wait for driver to be ready before operation
This commit calls a vendor hal function to wait for the driver to be
ready before it resumes operation. This ensures the driver is ready
and interfaces are created before framework tries to use them.

Bug: 73482286
Test: Manual test (reboot and make sure wifi comes up consistently)
Test: The reboot test has been performed more than 10 times in a row
Test: Also, tested toggling wifi off/on then rebooted, wifi starts fine

Change-Id: I868dac6dbaa0a5248ae6e35d4ba915bc0c4de6eb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-06 19:48:34 +00:00
Kevin Rocard
bee7f4eb1e Audio V4: Declare support for 4.0 interface
Declare that the audio HAL service supports 4.0 as well as 2.0
interface.
Formatting done by clang-format.

Test: compile
Bug: 38184704
Change-Id: Iee842b141e1218f4f3779187339bde40680ec78a
Merged-In: Iee842b141e1218f4f3779187339bde40680ec78a
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
5ec293316e Audio V4: Implement the shim core 4.0 -> legacy
All the new files added are a copy of the 2.0 ones, with just the
version 2 that was changed to 4.

Due to the rollback on the retrocompatiblity breakage,
the split of implementation is not strictly needed any more.
This makes the current split in .impl.h and double include
unnecessary complicated.
This will need to be factorized in a future patch.

Bug: 38184704
Test: compile
Change-Id: I0d699ade7558ed68125b300f8522e2767ae1ee37
Merged-In: I0d699ade7558ed68125b300f8522e2767ae1ee37
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
91aa1af99a Audio V4: Add its own function to open the primary device
The primary device has its own type and a fixed name and
is not optional.

By having its own getter, the client does not have to downcast it.

Bug: 38184704
Test: compile
Change-Id: I7b22eb0e12bddabfe966a20fbeab37d974306b12
Merged-In: I7b22eb0e12bddabfe966a20fbeab37d974306b12
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
2696030063 Audio V4: Move service entry point to common
The HAL audio service entry point is not version dependant
and is common to core and effect.

Bug: 38184704
Test: compile
Change-Id: I143cf28490afc978791ccd7e8aeee2106cbb2ebd
Merged-In: I143cf28490afc978791ccd7e8aeee2106cbb2ebd
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
af7f78daa6 Audio V4: Implement the shim effect 4.0 -> legacy
All the new files added are a copy of the 2.0 ones, with just the
version 2 that was changed to 4.

Due to the rollback on the retrocompatiblity breakage,
the split of implementation is not strictly needed any more.
This makes the current split in .impl.h and double include
unnecessary complicated.
This will need to be factorized in a future patch.

Bug: 38184704
Test: compile
Change-Id: If412eb55ebf6afc773593547af9395a09b6825c2
Merged-In: If412eb55ebf6afc773593547af9395a09b6825c2
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
f1c1f6e7ac Audio V4: Update .hal doc to removal of audioSource
As multiple tracks can be connected to the same stream,
the audio source list can be found in metadata.

Bug: 38184704
Test: none
Change-Id: I63e75fd4049fbe469b78cacf0adf44e9597cb422
Merged-In: I63e75fd4049fbe469b78cacf0adf44e9597cb422
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
e605e03361 Audio V4: Use string to identify audio Device
The name of an audio device is an opaque string that the
framework does not interpret (there are exceptions, see documentation)
and only uses as an ID to link
the audio_policy_configuration.xml and the audio device factory.

Previously it was an enum which meant that the vendors
could not implement the interface more than a set number of time
and that generic meaningless (secondary, auxiliary) names had
to be introduced.

Bug: 38184704
Test: compile
Change-Id: I9f3ac1928de8116974257951e016108c5820eded
Merged-In: I9f3ac1928de8116974257951e016108c5820eded
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
2b275704bc Fix potential missing '\0' when wrapping to legacy
The HAL API for port name is a C++ string of arbitrary
length.
Nevertheless the legacy API name had a maximum length.
Thus when wrapping from the new to legacy, the string
was truncated but no '\0' was added.

Bug: 38184704
Test: compile
Change-Id: I482363809718281e022041c2d5042e5800c5a617
Merged-In: I482363809718281e022041c2d5042e5800c5a617
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
f0878685d7 Audio V4: Cast conversion now deduce both types
That avoids to repeat the destination type which
can change between versions.

Bug: 38184704
Test: compile
Change-Id: I55c881afe5f6fc511ea01b19c5d46de12fb1e0d2
Merged-In: I55c881afe5f6fc511ea01b19c5d46de12fb1e0d2
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
c5af419ef2 Audio V4: Add V4 common utils
Bug: 38184704
Test: compile
Change-Id: I935fe4343ab517f7a8dc65e1b9720097a3ab34da
Merged-In: I935fe4343ab517f7a8dc65e1b9720097a3ab34da
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
63410e8da4 Audio V4: Do not forward notification detail
Those values are only for the framework, thus they should not be
available to the vendor.

Bug: 38184704
Test: compile
Change-Id: I05d3e506a85dbe66d51b7024fa9de45865bcf9db
Merged-In: I05d3e506a85dbe66d51b7024fa9de45865bcf9db
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Kevin Rocard
4b6169eec6 Audio V4: Remove system only enum values
Some enum values only used by the system were exposed to the vendor for
legacy reason. Remove them.

Bug: 38184704
Test: compile
Change-Id: I78254047a74d08bcdf2d7b285e874dbd497d5407
Merged-In: I78254047a74d08bcdf2d7b285e874dbd497d5407
Cherry-picked from master
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 11:30:51 -08:00
Pirama Arumuga Nainar
cca38c56f4 Disable arm32 asan for VtsHalNeuralnetworksV1_1TargetTest
Bug: http://b/74200014

Building this module with asan triggers an internal error in gold.

Test: mma SANITIZE_TARGET=address in
hardware/interfaces/neuralnetworks/1.1/vts/functional

Change-Id: I3ce5352a6c86c8dca257d35af06989e57f871749
2018-03-06 19:30:40 +00:00
Myles Watson
b9492b5fe9 Bluetooth: Relax NO_OP and SCO checks am: 8a28de7a8c
am: c2ec353810

Change-Id: Ibb2769274fea89774f2b8cbafc40c063f11b82ae
2018-03-06 19:20:53 +00:00
Myles Watson
c2ec353810 Bluetooth: Relax NO_OP and SCO checks
am: 8a28de7a8c

Change-Id: If320e97c8bd7432ae0aad362a18953157d235c8b
2018-03-06 19:16:45 +00:00
Yin-Chia Yeh
c15a1cab6f Camera: more external camera CTS fix
Also update default external camera config to prevent
over promising peformance on lower end devices.

Test: API2 CTS tests except RecordingTest
Bug: 72261744
Change-Id: I20310606520099abf0f5173690f4aaf56a3e52a9
2018-03-06 10:35:29 -08:00
Yin-Chia Yeh
8b699aaf37 Camera: various external camera CTS fixes
1. Update the FPS range to list (0.5*fps, fps) only
   as webcams tends to skip a lot of frames and not
   able to output at stable framerate.
2. Exif: don't expect focal length to present
3. Thumbnail: allow 0x0 size for no thumbnail output
4. Allow retry some ioctl during configureStream as
   some webcams seems having problem in quick close
   reopen operation.

Test: CTS CameraTest
Bug: 72261912
Change-Id: Ic23b7fb293b7579694c59240e854d750c842886d
2018-03-06 10:35:12 -08:00
Kevin Rocard
5b84bbb548 Audio V4: Require audio V4 in new devices, optional for upgrades
Upgrading devices are allowed to stay on audio V2,
but can also update to V4.

Bug: 38184704
Test: compile and check V4 can be loaded and functional with lshal
Change-Id: Ib1c8381925837a8402ae535755a0558afcf26f4d
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-06 18:30:23 +00:00
Nathan Harold
c2b7f42d7d Merge "Fix Copy+Paste Errors in TdscdmaSignalStrength" into pi-dev 2018-03-06 17:59:10 +00:00
Nathan Harold
6df3d8eb63 Fix Copy+Paste Errors in TdscdmaSignalStrength
When copying over from WcdmaSignalStrength, the
ranges and references were wrong. Sadly they
were carried over. Fixing before this gets
out of hand.

Bug: 18628145
Test: compilation - documentation-only change
Change-Id: I08a247674cf42ebeed26c721ff99a71db4152bbf
2018-03-05 14:48:20 -08:00
Myles Watson
8a28de7a8c Bluetooth: Relax NO_OP and SCO checks
Ignore NO_OP complete events.
Ignore ordering for Loopback Mode Connection/Command Complete.
Only check for SCO buffer size when SCO connections are made.

Bug: 69785298
Test: VtsHalBluetoothV1_0TargetTest
Change-Id: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
Merged-In: Ia1ead7ff942ffa369f88f61bcaaa8e03d7973179
(cherry picked from commit 72382e3014)
2018-03-05 21:42:39 +00:00
Jordan Liu
6f8e4d5593 Fix wcdma signal strength comments
As per the spec, the range should be 0-31, 99, and the section
should be 8.5.

Test: builds - No change to behavior
Bug: 71329173
Change-Id: Ib1ea54b19a7bcb33a0235b3ddb3fa09c4872890f
2018-03-05 20:30:18 +00:00
Bernie Innocenti
f0be7ca778 Merge "Add a wifi hal interface to read-back the APF memory." 2018-03-05 02:37:12 +00:00
Bernie Innocenti
bd94b43bc9 Add a wifi hal interface to read-back the APF memory.
Test: builds, boots on marlin.
Change-Id: I860ee093b585bedd800830ea05516ad054a8dc3a
2018-03-03 08:28:10 +09:00
TreeHugger Robot
24775d8b8f Merge "Add functional tests for bad input to 1.2" 2018-03-02 21:56:14 +00:00
Kevin Rocard
e8f2d42ab7 Merge "Audio V4: Add owner files for implementations" 2018-03-02 20:59:39 +00:00