Commit graph

3943 commits

Author SHA1 Message Date
Mikhail Naganov
c8c6a81f0f audiohal: Support stateful downmixer effects
Fraunhofer's downmixer has additional buffering, this is incompatible
with how DownmixerBufferProvider used to process incomplete buffers.

Now the effects HIDL wrapper delivers frameCount updates in
audiobuffers to the server side. This fixes playback of multichannel
sound streams.

Bug: 36181621
Test: play 5.1 track from Play Music
Change-Id: Iffe3327c6eedef85151eec2b41e0aedfb7ffa6dc
2017-04-27 12:37:28 -07:00
Chia-I Wu
8de7a17b82 graphics: remove non-HAL pixel formats
HALs are not expected to see YCBCR_422_888, YCBCR_444_888,
FLEX_RGB_888, and FLEX_RGBA_8888.  JPEG is purely wrong.

Note, current.txt change (as opposed to addition) is only allowed
because this is an unreleased interface.

Bug: 32593292
Test: builds
Change-Id: I432e6cb75cfc347a41e8e1632ae1898eed3350c8
2017-04-27 16:55:47 +00:00
Chia-I Wu
00d459d039 graphics: clean up PixelFormat docs
Make the docs more self-contained, not referring to stuff not
defined by the HIDL interfaces.

Mark JPEG, YCBCR_422_888, YCBCR_444_888, FLEX_RGB_888,
FLEX_RGBA_8888 as "MUST NOT USE".  These format are never supposed
to be seen by gralloc and do not belong to the HIDL interfaces.

Note, current.txt change (as opposed to addition) is only allowed
because this is an unreleased interface.

Bug: 32593292
Test: builds
Change-Id: Ia7607cc73dd2f58dfa27e71b0004b21c7ca6904d
2017-04-27 16:54:32 +00:00
Chia-I Wu
0875af5cbe Merge "graphics: reorder PixelFormat" into oc-dev 2017-04-27 16:54:04 +00:00
Chia-I Wu
841468ad6a graphics: reorder PixelFormat
Sort the enum values in their numerical order. There is no other
change.

Note, current.txt change (as opposed to addition) is only allowed
because this is an unreleased interface.

Bug: 32593292
Test: builds
Change-Id: I47914a7971f922f5602f982b41dd7602842e853b
2017-04-27 16:41:08 +00:00
Zhuoyao Zhang
13d6297319 Merge "Basic audio/video encoder/decoder test." into oc-dev 2017-04-27 16:28:18 +00:00
TreeHugger Robot
238d6b95ed Merge "Add onAcquired log back" into oc-dev 2017-04-27 06:59:27 +00:00
Randy Pan
b666cdae0f Revert "Add capabilities for wifi_hal_legacy"
This reverts commit 1addbeaa46.

It breaks WiFi connectivity on Fugu.

Bug: 37713566
Test: Able to connect to GoogleGuest on Fugu.
2017-04-26 18:19:44 -07:00
TreeHugger Robot
5eca115b68 Merge changes from topic 'fix_configure_chip' into oc-dev
* changes:
  Fix configureChip() VTS test
  Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
2017-04-27 00:56:34 +00:00
TreeHugger Robot
1f7fa63fbb Merge "stop bluetooth service while VTS test is running" into oc-dev 2017-04-26 23:25:38 +00:00
Shuo Qian
05935a7e06 Merge "Update .hal file for fixing vts tests" into oc-dev 2017-04-26 23:21:23 +00:00
Shuo Qian
93d5836949 Merge "Fix Vts errors" into oc-dev 2017-04-26 23:21:23 +00:00
Mikhail Naganov
95344ba2f5 Merge "audiohal: Fix handling of invalid arguments in 'debugDump' methods" into oc-dev 2017-04-26 22:53:33 +00:00
Ram Mohan M
f9c4003fcd Basic audio/video encoder/decoder test.
Bug: 32023356
TODO: cleanup the test code b/37719510

ComponentTest :-
1. allocatePortBuffers cleanup
2. More than one test fixture performs State transitions
(Loaded <-> Idle <-> Execute). So, this is moved to a routine and
invoked when needed.
3. Dispatch input/output buffers code section is moved to a routine
4. Seperated Test fixtures StateTransitions_Flush
5. Added Doc string
6. Test component port population

AudioDecTest :-
1. Backport Cleanup changes from ComponentTest to AudioDecTest
2. Added elementary streams for the following codecs mp3, amr-nb &
Updated paths to elementary streams in audio decoder test

Test: Tested ComponentTest and AudioDecTest for mp3

Change-Id: I90decde4dfab55c3d456dfd88b474dd5abe8eebc

List Available components (roles) in android media framework

Change-Id: I210665843e997e60b167f2d680c87b1cc4f90c58

add README.md

Change-Id: I3a2a057d10b18f4f374928a996b8b4ea4b084770

add basic video decoder tests

for a given component test for successful decoding of an input clip

Test: tested for softavc decoder

Change-Id: I2f4c034c34a456e1ed0c2d32ef381ca48aeda8ff

add basic audio encoder tests

for a given component, test for successful encoding of an input clip

Test: tested on softaac, softamrnb, softamrwb & softflac components

Change-Id: I05f5646ffed37143a21ea72f0fd782c2bb5c4d82

add basic video encoder tests

For a given component test successful encoding of nframes of a
raw video clip

Test: tested on softavc encoder.
Change-Id: Ia1d754061e8362f6c08a2be3d6384c95589a36de
2017-04-26 21:49:04 +00:00
sqian
01e7c6ee5f Fix Vts errors
- Add REQUEST_NOT_SUPPORT into General Errors
- Add a util function to check General Errors
- Add a util function to check OEM Errors
- Changes to RIL command api tests based on the QC provided pdf
  to see if the errors from vts-web can be fixed

Test: Manual
Bug: 35671595
Change-Id: I9500c686a75539dab37f0272349bc2f965cc0a8f
2017-04-26 13:57:58 -07:00
Ningyuan Wang
f8bb8d7fc7 Fix configureChip() VTS test
Bug: 36562856
Bug: 37446050
Test: compile, vts test pass

Change-Id: I99ee0336d9cc11329de560daf26216ac15e5a0a9
2017-04-26 13:40:13 -07:00
sqian
159ec7fbf5 Update .hal file for fixing vts tests
- update 'voice' and 'sms' based on QC pdf file
- remove GENERIC_FAILURE still there
- fix duplicate error code

Note, current.txt updated only because this interface
has not been released as of the time of this CL.

Test: Manual
Bug: 35671595
Change-Id: I83831c222cb0d157d0aa06e48cf0a177ab0ecf31
2017-04-26 18:45:38 +00:00
Ningyuan Wang
b1ad3a7bf1 Return ERROR_NOT_SUPPORTED when configureChip() is used for reconfiguration
Bug: 36562856
Bug: 37446050
Test: compile, VTS test fail as expected
Change-Id: I895dd0d6e96b0d0a2b429c3a68be1f7c7e32a7e3
2017-04-26 10:44:58 -07:00
Philip Cuadra
240371c7b2 Merge "Make BT HAL audio threads RT" into oc-dev 2017-04-26 16:52:01 +00:00
Philip Cuadra
8b3f315e7a Make BT HAL audio threads RT
Bluetooth threads that are used in audio have deadline
requirements for glitchless playback.  Those threads need to be
scheduled as RT tasks to ensure that they can meet the deadline even if
there is high system load.  Use schedulerservice to request RT
scheduling.

Bug 37518404
Test:  play Bluetooth audio, check for RT with systrace
Change-Id: I043a97df3d2801922b54dcbf7c700ae11a48c217
2017-04-25 16:15:40 -07:00
Mikhail Naganov
3242e248c4 Merge "audiohal: Fix typos in comments, add missing comments" into oc-dev 2017-04-25 22:19:43 +00:00
Chia-I Wu
0a0e31c42d Merge changes from topic 'hals-should-use-mapper' into oc-dev
* changes:
  graphics: use mapper from the composer
  graphics: clarify importBuffer and passthrough HALs
2017-04-25 22:12:57 +00:00
Kevin Chyn
10dfcc14dc Add onAcquired log back
It was in fingerprintd, which is replaced now

Fixes: 37677260
Test: touch FP when enrolling/authenticating and make sure
onAcquired log is there

Change-Id: Iadecdfa1c18b0aaa083de18dbe7f701c78465ace
2017-04-25 15:05:32 -07:00
Keun Soo Yim
1965f73bac stop bluetooth service while VTS test is running
Test: run VTS HAL BT test
Bug: 37153328
Change-Id: I615d96daff496096122cd18158c205073f4623a6
2017-04-25 22:02:07 +00:00
Mikhail Naganov
3e6fe754f6 audiohal: Fix handling of invalid arguments in 'debugDump' methods
Add checks for validity of the passed in native handle.

Bug: 37590777
Change-Id: If906f0086c3442819e1844cc521215d5b74af015
Test: VTS
(cherry picked from commit 7bae6a0b63)
2017-04-25 20:21:37 +00:00
Chia-I Wu
2ae85702f7 graphics: use mapper from the composer
We must use the mapper HAL instead of gralloc0/gralloc1 from the
composer.

Bug: 37540361
Test: boots on marlin, angler, and ryu
Change-Id: I5a3ff6a025bf51a3507a4f33fa77e9506a6f1ec9
2017-04-25 12:52:50 -07:00
Chia-I Wu
ec74596af8 graphics: clarify importBuffer and passthrough HALs
A buffer handle recieved from a HAL is by definition raw and needs
to be imported.  But because of passthrough HALs, such a raw handle
may have been imported already.  Explicitly specify that an
implementation must accept such a raw handle.

Bug: 37540361
Test: boots on angler, ryu and marlin
Change-Id: I5ecf526e59b27cc4a8f7f5d5ec27477da0946ece
2017-04-25 12:52:50 -07:00
TreeHugger Robot
1fd47b29b3 Merge "Fix VtsHalDrmV1_0Target test failure" into oc-dev 2017-04-25 18:53:59 +00:00
Mikhail Naganov
3a2470f82d audiohal: Fix typos in comments, add missing comments
These changes are in comments only, no ABI breaking changes.

Bug: 32238101
Test: make
Change-Id: Iead4ba01dae1a1c05d8fbed7f194182128e9e6ad
2017-04-25 10:59:53 -07:00
TreeHugger Robot
12d67e3c7a Merge "Adding missing NI_TYPE for emergency SUPL" into oc-dev 2017-04-25 17:40:56 +00:00
Randy Pan
0d0fb634ec Merge changes from topic 'fuguWifi' into oc-dev
* changes:
  Improve logger feature set handling
  Add capabilities for wifi_hal_legacy
2017-04-25 16:59:39 +00:00
TreeHugger Robot
8fcab148c2 Merge "Finish adding manufacturer and model to device ID attestation" into oc-dev 2017-04-25 10:43:19 +00:00
TreeHugger Robot
441c1cb7d7 Merge changes from topic 'o-usage64-2' into oc-dev
* changes:
  automotive: Adjust tests for libui gralloc flags change
  camera: Adjust for libui gralloc flags change
2017-04-25 04:12:31 +00:00
TreeHugger Robot
b09f65c4b1 Merge "wifi(implementation): Turn on DFS flag for STA" into oc-dev 2017-04-25 03:08:52 +00:00
Roshan Pius
08d1df4d99 wifi(implementation): Turn on DFS flag for STA
DFS flag needs to be turned on in the legacy HAL for STA operations. So,
initialize this flag on creation of STA iface.
PS: Not adding an explicit HIDL API for this since there is no need to
toggle this from framework and since the HIDL API's are frozen now.

Bug: 36169790
Test: Verified the fix with regression tests: b/37528903.
Change-Id: I214097fcb399cef7fc0cbd2c278622fac259a3e3
2017-04-25 01:53:47 +00:00
Jeff Tinker
a33256b811 Fix VtsHalDrmV1_0Target test failure
DrmHalVendorFactoryTest.EmptyPluginUUIDNotSupported
was failing on 64 bit builds. The test was using
an uninitialized hidl_array as the empty UUID which
was incorrect. This change initializes the array
contents to null values.

Test: drm hal tests pass

bug: 37172151
Change-Id: I0acb86921f0daceba30fa7879980ce819db64a74
2017-04-24 17:02:17 -07:00
Wei Wang
9a4388cf28 Change bootHAL to early_hal class
Bug: 37579828
Bug: 37543411
Test: marlin boots with wipe data
Change-Id: Ifa508570455289efd58350562fadea5676c3bc67
2017-04-24 18:17:18 +00:00
TreeHugger Robot
d77a4a5585 Merge "Fix failing VTS test cases" into oc-dev 2017-04-24 17:19:58 +00:00
Wyatt Riley
0442918818 Adding missing NI_TYPE for emergency SUPL
Bug: 37409476
Test: Builds, and on Pixel, basic GPS & XTRA tests pass.
Partners & Pixel team running the SUPL emergency tests.

Change-Id: I6b23608e82dc1682d61a516ab5045d3b78b53cae
2017-04-21 12:52:46 -07:00
Chris Forbes
f90642b8f8 automotive: Adjust tests for libui gralloc flags change
Change-Id: Ia88d8fc664196eae7153ccfb755ea9c3d135fd0c
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
2017-04-21 18:33:41 +00:00
Chris Forbes
58a80300aa camera: Adjust for libui gralloc flags change
Change-Id: Ia09737c28a78a8a50a9f751ed2774299ecc3d58c
Bug: b/33350696
Test: Bullhead: booted to launcher, take photo, watch youtube
2017-04-21 17:32:37 +00:00
Pavel Maltsev
0e251c8805 Fix failing VTS test cases
Also, increase number of binder threads in VHAL for performance testing

Fix: b/37543801, b/36778517
Bug: b/36510399

Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalAutomotiveVehicleV2_0Host -l INFO && adb shell /data/nativetest64/android.hardware.automotive.vehicle@2.0-manager-unit-tests/android.hardware.automotive.vehicle@2.0-manager-unit-tests
Change-Id: I850c6be328f1a07ae3fda898a18137c76afe3115
2017-04-21 09:49:16 -07:00
TreeHugger Robot
f6470873f4 Merge "Clarifying comments and todos, update current.txt." into oc-dev 2017-04-21 15:39:26 +00:00
Steve Paik
9ba37420fe Merge "audio hal: initialize audio patch handle" into oc-dev 2017-04-21 15:04:00 +00:00
TreeHugger Robot
2200bb2e96 Merge "Make setTimeLapseConfig take frequencies instead of periods." into oc-dev 2017-04-21 09:58:44 +00:00
TreeHugger Robot
17572138b5 Merge "media: Add getStopTimeOffsetUs in GraphicBufferSource." into oc-dev 2017-04-21 04:46:46 +00:00
Pawin Vongmasa
0048c96885 Make setTimeLapseConfig take frequencies instead of periods.
Test: Manual use of Camera, Movies, Photos and YouTube apps.

Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'

Bug: 37302530
Change-Id: I63ba807955c2e2a7ec7f6ecc2d8a832f252c0c1b
2017-04-20 18:28:55 -07:00
Hangyu Kuang
171bbf5ecb media: Add getStopTimeOffsetUs in GraphicBufferSource.
Test: Compiles
Bug: 35925528
Change-Id: Ie469e42c986211540880f04a5e47efc090817ba8
2017-04-20 18:17:51 -07:00
Derek Chen
ab24ecd952 audio hal: initialize audio patch handle
Initialize audio patch handle to avoid
uninitialized value causing validation
failure in vendor hal audio patch.

Bug: 36994757
Test: Initiate voice call, no audio heard from other end

Change-Id: I4cf57210432430af89109f605813645ff332bfbb
2017-04-20 23:48:52 +00:00
Ningyuan Wang
94a07c4cdc Add missing document for supplicant hal, current.txt.
**Note, hashes are being modified in place ONLY
because this interface has not yet been released
in a release of Android.

This adds additional information for setEapPhase2Method().
This also adds the missing error type for find(), stopFind(), and
reject().

Bug: 37254796
Test: compile
Change-Id: I35735a7ec6ca5d490219bb176f1d6c727432113f
2017-04-20 11:16:22 -07:00