Commit graph

196 commits

Author SHA1 Message Date
Steven Moreland
561b602a99 Update makefiles for hwtypes.h
Test: pass
Change-Id: I8e17eb8fec5d2f04c526476a866c8dd54ccb556c
2017-03-28 15:18:20 +00:00
Steven Moreland
09287fdd13 Remove unused using statements.
Bug: 36099713
Test: pass
Change-Id: Ied915bec14dae3234d6b47ced28af95d7d1d178f
2017-03-16 22:48:59 -07:00
Bryan Eyler
06e939be44 Fix log format specifier.
size() returns size_t.

Change-Id: I015b407e26e2be9933558e9f8e2f6c02eba6568a
2017-03-14 11:13:46 -07:00
Yuexi Ma
ed2bb4e8f8 Change vts target base test class name
Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
2017-03-10 21:14:48 +00:00
Steven Moreland
48c52249e4 hidl_default to all targets.
find hardware/interfaces -type f -not -path "*/.git/*" \
-exec sed -i -e '/cc_[A-Za-z_]\+/ { N; s/$/\n    defaults:
\["hidl_defaults"\],/ }' {} \;
./hardware/interfaces/update-makefiles.sh

Test: pass
Bug: 35840847
Change-Id: If10c464d2f000b85c8d698fe11a4f3fc4cfad282
2017-03-08 19:31:53 -08:00
Steven Moreland
fa3ad5885d soundtrigger: remove warning from VTS test
Test: pass
Change-Id: I5b437980fb8003cbfb56b0ab9079993565224fa6
2017-03-08 19:24:22 -08:00
Hsin-Yi Chen
724cca05cb Merge "Add VTS test for ISoundTriggerHw::loadSoundModel" 2017-03-07 05:33:46 +00:00
Mathias Agopian
efc683588e fallout of cleaning-up libutils includes
Test: run & compile
Bug: n/a

Change-Id: I9ad9f3358cceb15d3d8c97d2444fb74ee04bd9f8
2017-03-03 12:38:23 -08:00
Hsin-Yi Chen
6f363b0721 Add VTS test for ISoundTriggerHw::loadSoundModel
Add a negative test for loading generic sound model with random data.

Test: vts-tradefed run commandAndExit vts -m VtsHalSoundtriggerV2_0Target
Bug: 35409266
Change-Id: I0bb6dd758d114bd094c88899abf06accdefb8efa
2017-03-03 11:50:02 +08:00
Yuexi Ma
50d7e27b3c change all vts hidl tests to use VtsHalHidlTargetBaseTest (internal master)
Bug: 33385836
Test: mma
Change-Id: Ide3ebc4a9db76257f33bcfb0c1f13d2ee33eeaa8
2017-02-28 22:27:28 +00:00
Steven Moreland
7e73d5b908 Remove viral dependency on libhwbinder. (2/2)
find hardware/interfaces -name Android.mk -exec sed -i -e '/libhwbinder
\\/d' {} \;
find hardware/interfaces -name Android.bp -exec sed -i -e
'/"libhwbinder"/d' {} \;
./hardware/interfaces/update-makefiles.sh

Note, automotive has some actual dependencies on libhwbinder, filed
b/35758626 for this.

Test: everything links
Test: (sanity) booted marlin on internal master with these changes
Bug: 35710429
Change-Id: I6d0726c8130d00684b978efbdd48e3ae396f12e5
2017-02-24 12:18:01 -08:00
Zhuoyao Zhang
8422f6aa04 Update the test binary and source file name on master.
* To confirm with Vts naming convention.

Bug: 35273456
Test: mma
Change-Id: I845da64085253cd02480465479618308045a52ed
2017-02-21 20:47:18 -08:00
Steven Moreland
a0da1a1c3d Move hidl shims to the vendor partition. (2/2)
We need google shims on the vendor partition because they are providing
an implementation of a vendor defined interface. They were written by
google just as a courtesy/to make the transition easier. They're
basically a set for vendors to assemble their hal implementations
from.

Bug: 34135607
Test: marlin persist.hal.binderization on/off
Change-Id: I2e2af5af39264cf290259755bb9b2eb9827a21f5
2017-02-13 15:03:41 -08:00
Tri Vo
85120c9490 Update makefiles to use filgroup syntax.
Test: mmma hardware/interfaces
Change-Id: I9f4457c78b7820c242d46359f0debe05d1b3e482
2017-02-10 12:45:19 -08:00
Tri Vo
ce608bec74 Migrate driver/profiler to test/vts-testcase/hal.
Bug: 34893894
Test: mmma hardware/interfaces

Change-Id: Ic72716577a5f93700c5056986aff55a76b170b5d
2017-02-07 19:13:28 -08:00
Keun Soo Yim
7b9b6ca18f move VTS stub files and non-functional tests
Test: mma
Bug: 34976004
Change-Id: I20273bdc3a05e2986fcf921f65d2afd6d72781e4
2017-02-04 02:45:25 +00:00
Zhuoyao Zhang
e9b43bbe2d Update Andriod.bp for hals.
* Add driver/profiler build rule for all hals.

Test: mma
Change-Id: I98325f7af14fec7dd1bb64b1668de8c7c20ace92
2017-02-03 10:03:01 -08:00
Keun Soo Yim
8a9dad5f6a skip on 64-bit ABI
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module HalSoundTriggerHidlTargetBasicTest -l INFO
Bug: 34256132

Change-Id: I87a6be02d1d05e06cfce84975d7bcc42434dbc90
2017-01-27 14:03:25 -08:00
Keun Soo Yim
e9ad6517f8 use the profiler test's name and a precondition to decide when to run.
Bug: 34715432
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
HalSoundTriggerHidlTargetBasicProfilingTest -l INFO
Change-Id: I116ed144076f07f752c756d9ddb6e425442d39cc
2017-01-25 23:01:08 +00:00
Keun Soo Yim
d938f4921e use a precondition var in soundtrigger.
Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run
commandAndExit vts --skip-all-system-status-check --primary-abi-only
--skip-preconditions --module HalSoundTriggerHidlTargetBasicTest -l INFO
Fixes: 34256132

Change-Id: Iab82492503d57a589fd3bed3db609a67064ec98b
2017-01-24 14:20:18 -08:00
TreeHugger Robot
9968f30f01 Merge "Remove useless Android.mk files." 2017-01-19 21:37:37 +00:00
Keun Soo Yim
5d406a3a37 Merge "add target-side profiling test for multimedia HIDL HALs" 2017-01-19 02:25:34 +00:00
Keun Soo Yim
e64871a894 add target-side profiling test for multimedia HIDL HALs
Test: mma
Change-Id: I14aeb000e2a17381c28ea2115d67a7e8eb84e375
2017-01-18 23:23:49 +00:00
Keun Soo Yim
ccf7448f78 Add soundtrigger's driver/profiler build targets.
results of running update-makefiles.sh

Test: mma
Bug: 34178561
Change-Id: I317a968571104deabce6b1c73ad3e50786659957
2017-01-18 23:21:04 +00:00
Steven Moreland
66816de87f Remove useless Android.mk files.
Test: none
Change-Id: I99f4d3e5b943742009e366b13bee2c32e38a3fba
2017-01-18 11:49:08 -08:00
Thierry Strudel
66cc8da09d soundtrigger: initialize mHwDevice member in constructor
audioserver crashes when sound_trigger legacy HAL does not exist on the device,
as mHwDevice is not initialized to NULL.

Bug: 32022304
Change-Id: I47642927e91c03817508d462cfcc58370e89b184
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-01-13 23:10:19 -08:00
Keun Soo Yim
6a324feba5 use the default mode of a target device
Test: mma
Change-Id: I10dfe98cb308083bad04395c46b7e3fb59ee6d97
2017-01-13 16:25:55 +00:00
TreeHugger Robot
a8d358fb63 Merge changes from topic 'bphwfoo'
* changes:
  Bp/nFoo -> Bp/nHwFoo.
  Bp/nFoo -> Bp/nHwFoo
2017-01-11 23:43:16 +00:00
Yifan Hong
a18049ad13 Bp/nFoo -> Bp/nHwFoo.
Test: mma
Bug: 33554989
Change-Id: I4b3f852d20fdfc49f2da671dd3c12d618ffb4140
2017-01-11 13:14:59 -08:00
Ryan Campbell
61eda640ba Fix typos in sound trigger config.
Remove trailing commas so that sound trigger config file is a valid
JSON.

Test: make vts, run sound trigger vts tests
Bug: 34223299
Change-Id: I4983f956c90a5000549566a4ff721b7a07439740
2017-01-11 12:43:37 -08:00
Keun Soo Yim
44bd1163bd use 32-bit soundtrigger libs for its coverage measurement
rollback this when soundtrigger is migrated to 64-bit

Test: mma
Change-Id: Iaf8216a066bd833c2d34d3bbb68a10a64a040045
2017-01-06 13:08:10 -08:00
Keun Soo Yim
1e777141db add coverage config for soundtrigger HAL
Test: mma
Change-Id: I5849d41e15eeb9d27154378fe5e56409cc179819
2017-01-06 09:10:44 -08:00
Steven Moreland
b643842192 Return<*> getStatus().isOk() -> isOk()
Bug: 31348667
Test: compiles
Change-Id: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1
2017-01-04 10:40:05 -08:00
Yifan Hong
501839495f Update makefiles for hidlizing IBase.
A new dependency android.hidl.base@1.0 is added for
all projects.

Test: mma

Change-Id: Ia70d0eb0d74de06475a339698386d383d491a43a
2016-12-03 01:01:14 -08:00
Yifan Hong
f9d303435d Update to use the correct logging library.
Test: mma compiles
Change-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
2016-12-01 17:47:02 -08:00
Eric Laurent
e3c9a8c27b Basic target VTS test for Sound Trigger HAL
As all sound trigger HAL implementations use proprietary
sound models this just tests proper enumeration of HAL
properties and proper error response from HAL when methods are called
with obviously wrong arguments or out of sequence.

Test: build and run test
Bug: 32022431
Change-Id: I6eca0dc100843141752665f7a0d4749fc7eda6fc
2016-11-23 10:45:32 -08:00
Steven Moreland
f8d68ec855 Update makefiles for logging.
Bug: 32943424
Test: pass
Change-Id: Ic88ce6adf04e0e36db53e4cc06ac2ec5a90c011c
2016-11-21 16:28:54 -08:00
Yifan Hong
6b920e43d3 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 00:00:54 -08:00
Yifan Hong
c2f2779d9d Update Android.bp to reexport dependent packages.
Test: mma
Change-Id: Iaca7300c366c2c9e860a29e6a111248d315cc5b4
2016-11-09 10:28:38 -08:00
Colin Cross
b785f5b82e Support genrules with multiple tools
To allow genrules with more than one tool, rename the tool property to
tools and make it an array, replace $tool with $(location <label>),
and use $() for other variables for consistency.

Bug: 31948427
Test: compare build.ninja
Change-Id: I3d714f70a2af0dc60faeee10e09b6ed166601f1d
2016-11-04 22:49:15 -07:00
Steven Moreland
fcd74ebcdc Running update makefiles.
https://android-review.googlesource.com/#/c/298160/

Test: pass
Change-Id: I14fcde2d3aacc8f8cd9221f2d69e2feae9ae1226
2016-11-02 10:24:33 -07:00
Steven Moreland
69727778a7 Stop all these merge conflicts.
Test: mma -j64
Change-Id: I319198af32adf1fef180c5c2c22ba4b360fa7609
2016-10-26 12:04:37 +02:00
Eric Laurent
27ef4d872d audio: add audio HAL service and sound trigger HAL implementation
Audio HAL service is common to audio, audio effect, sound trigger and
bradcast radio HALs.

Bug: 32022304
Change-Id: I3952b9c6de3a6b34e757942120320cf8ae036ed5
2016-10-19 16:11:32 -07:00
Eric Laurent
a4b776c97a sound trigger HAL: add specialized methods for extended sound models
Initial HAL definition was using base struct types
(e.g SoundModel) to pass either a base struct or a struct
extended by composition.
This doesn't work with how autogenerated code passes data
over binder.

Bug: 32022304

Change-Id: I7d4ba6d063e80ba38af3db01043cafc7a084c426
2016-10-14 15:24:22 -07:00
Eric Laurent
6d0a19555e fix the build
Change-Id: I54426dc1b9e1f11a5bcdb22712d41bb9c2657f58
2016-10-12 15:58:08 -07:00
Eric Laurent
fc496a2fff sound trigger: initial implementation of TREBLE HAL
Initial version of the sound trigger HAL for TREBLE model.
Functionally equivalent to legacy HAL.

Bug: 30222631

Test: build verified

Change-Id: I3cc904f21e1d81458ef877352b21c25a798cd355
2016-10-12 08:55:36 -07:00