Commit graph

343 commits

Author SHA1 Message Date
Steven Moreland
dcb1ff7104 Remove extra space.
Pointed out to me.

Bug/Test: none

Change-Id: I2cd01c5d46525cda3cfe32a2bf79655e6f9b84bd
2018-02-02 12:35:40 -08:00
Steven Moreland
a6c5ff2c6d Update makefiles.
Some have missed being updated.

Bug: N/A
Test: N/A
Change-Id: I0925e85701f6e8b98f9b09bfafbed73469d1d185
2018-01-17 11:20:17 -08:00
Howard Chen
c0204ee13d Merge "Add a test method to test interface in struct" 2018-01-05 03:55:14 +00:00
Steven Moreland
8147d62e33 Remove empty generates clause.
Doesn't do anything, not part of the language.

Bug: 71545356
Test: none
Change-Id: I5fce87a9cf01ff546f2b7b177b60454b8bfbf106
2018-01-03 14:14:24 -08:00
Howard Chen
0cd07d214b Add a test method to test interface in struct
Add a test method to IBaz to test struct with a composed interface

Test: hidl_test_java/ internal master
Bug: 70529597
Change-Id: I73eaaf3dda6a24b88207729f31c75454c005c8cf
2018-01-03 17:16:58 +08:00
Steven Moreland
3bcfa475e2 Test for vec<union> vec<struct w/ union>.
Bug: 31973802
Test: hidl_test
Change-Id: I4367f1f525caa8d1edb95b7bfdac78f21b234576
2017-12-14 16:02:46 -08:00
Howard Chen
4cd07b6e21 Merge "Add more test methods to IMemoryTest" 2017-12-02 15:21:19 +00:00
Treehugger Robot
adf8208c52 Merge "Remove subdirs" 2017-11-29 17:53:33 +00:00
Howard Chen
4e7ccc4cb9 Add more test methods to IMemoryTest
Add haveSomeMemoryBlock to test transport of the hidl_memory_block.
Add set(hidl_memory) & get(IMemoryToken) to test IMemoryToken

Test: hidl_test
Bug: 68295540
Change-Id: I08bcfae256de9db7dd647cde0ccbee214b598f47
2017-11-29 16:55:49 +08:00
Steven Moreland
7b9888217e Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 17:19:46 -08:00
Steven Moreland
fe564275ea Update tests makefile for change.
Introduced in 4921bc2e13.

Test: manual
Change-Id: I8b2b8fc27ebae55871c656816f87374c792a8ace
2017-11-28 15:21:38 -08:00
Treehugger Robot
6a5daf8cac Merge "Test for references to typedef'd enum." 2017-11-28 02:02:58 +00:00
Steven Moreland
4921bc2e13 Test for references to typedef'd enum.
Allow using an enum even when it is typedef'd.

Test: hidl-gen -Lcheck
Change-Id: I45f8b40d67773c1cd34c9353b847dbae1cc4bdcd
2017-11-27 16:05:09 -08:00
Steven Moreland
ed3255672c Additional tests for enum iteration.
Bug: 68715899
Test: hidl_test
Change-Id: I78ca51568a5380839782ead5698f4d0ac0a3a7dd
2017-11-17 14:25:32 -08:00
Steven Moreland
a1169dd600 Update makefiles for hidl_interface.
Bug: 35570956
Test: manual
Change-Id: I7a220b78ee081240e1dc30ef5672ba39e3e98375
2017-11-10 09:06:55 -08:00
Andreas Huber
aaa67596df Adds test cases to stress marshaling of primitive array types and
vectors of thereof.

Bug: 68654583
Test: hidl_test_java
Change-Id: Id498fe9b1e153512be294c39aff783f7d0600219
2017-10-31 13:03:56 -07:00
Treehugger Robot
fed3134fa0 Merge "Update Light extension example to match docs." 2017-10-18 03:22:17 +00:00
Steven Moreland
6f5459d8eb Update Light extension example to match docs.
This light extension example was more of a POC. Now it
matches the suggestions for minor version requirements
and vendor extensions that are spelled out in publically
available documentation.

This includes things like:
- taking advantage of namespacing rather than renaming things
- adding documentation when extension differs from what a minor
  version extension should be
- importing things specifically rather than dumping namespaces
  into the types.hal file

Test: compilation only -- it doesn't do anything
Change-Id: Ia1bf9baaddcb630cc1b6cd4fe272def0c7c492e9
Fixes: 67787567
2017-10-17 18:33:26 -07:00
Chih-Hung Hsieh
ceb435f2ba Use -Werror in hardware/interfaces
* Fix warning of unused result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I68e35ddcdeec4290b075ececf14f82335b43e22e
2017-10-17 10:12:29 -07:00
Treehugger Robot
240f9e1476 Merge changes from topic "hidl-test"
* changes:
  Statically link msgq test impl.
  Static link test lib shims with test -impl libs.
2017-10-13 22:02:31 +00:00
Steven Moreland
26d0dcf32e Statically link msgq test impl.
Also statically include it in the service binary.

Test: fmq_test
Bug: 67500459
Change-Id: Ia8728308dbce9acbdeafa8b2a56fd007be8c0832
2017-10-12 17:04:22 -07:00
Zhuoyao Zhang
38a78e1fa9 Static link test lib shims with test -impl libs.
* So that vts no longer needs to push the shim libs in hidl test.

Bug: 67500459
Test: make vts
      vts-tradefed run vts -m VtsHidlUnitTest
Change-Id: I52ad066370f08a461b848d7d96dc4a659eb2da4d
2017-10-12 15:47:39 -07:00
Steven Moreland
577097675f Remove invalid annotations from IBaz.
Test: pass
Change-Id: I8e39b510b724c0415a1cab523623bffd9f07f352
2017-10-11 17:21:41 -07:00
Steven Moreland
c3e80fa01e Update for Soong java makefiles.
Test: pass
Bug: 33420795
Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
2017-10-10 23:07:20 +00:00
Treehugger Robot
75d5cf515a Merge "Remove useless Android.mk files." 2017-10-05 21:40:27 +00:00
Treehugger Robot
d35806414c Merge "Test extension -> Android.bp" 2017-10-05 19:10:42 +00:00
Steven Moreland
066a9bdda1 Test extension -> Android.bp
Test: mma
Bug: 33420795
Change-Id: Ida23369c5bffb44cb20fef1127fae68b92167459
2017-10-04 16:13:49 -07:00
Steven Moreland
4b60470f1a Remove useless Android.mk files.
These have been c/p'd all over the place.

Test: m -j nothing
Bug: 33420795
Change-Id: I77979866dbb2345a41a873c84ec3fccd7b127510
2017-10-04 15:52:40 -07:00
Treehugger Robot
988c977079 Merge "Update for hidl adapter module defaults." 2017-10-04 21:36:25 +00:00
Steven Moreland
527fd76a0e Update for hidl adapter module defaults.
Test: pass
Change-Id: Idc6a943149a279bf17cfcfd0f2571473e53bbbbf
2017-10-04 12:47:03 -07:00
Chih-Hung Hsieh
3da5b01946 Use -Werror in hardware/interfaces
* Remove unused local variables.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I48dbbf670cc9eeff2391983788983420f8547cc9
2017-10-04 11:16:31 -07:00
Steven Moreland
9d320e3fbe Update inheritance test implementation.
HIDL_FETCH_IParent returns a child object
when the "child" instance name is requested.

Bug: 67104214
Test: hidl's run_all_device_tests.sh
Change-Id: Ie4b85d657e5d066fb77832e188062af29bc2e7c6
2017-10-03 12:52:51 -07:00
Steven Moreland
a5299ee739 Fix typo in update makefiles.
Bug: 37518178
Test: pass
Change-Id: Ic401b3a473f15ca4c01e58b3072e19db7c31b653
2017-09-26 21:59:43 +00:00
Steven Moreland
26a0bb2762 Update makefiles for hidl adapter.
Bug: 37518178
Test: manual
Change-Id: I50e999907d3c64d2b039272b823971998da64d1b
2017-09-25 18:35:56 +00:00
Yifan Hong
9dc1284388 Merge "hidl_test: update expression test" 2017-09-18 19:52:10 +00:00
Treehugger Robot
a7603c38ac Merge changes from topic "hidl_for_test_aosp"
* changes:
  Mark android.hardware.tests.trie as a test HAL interface
  HAL interface libs for testing are built w/o VNDK.
2017-09-16 01:02:31 +00:00
Yifan Hong
07dd1bbcc6 hidl_test: update expression test
Add more tests to constant expressions in HIDL.
Test: m hidl_test -j
Bug: 64613737

Change-Id: I9cd2bf7bbd8b911f49784f376a0cd834561cd0c8
2017-09-15 17:46:45 -07:00
Jiyong Park
d005c3ea41 Mark android.hardware.tests.trie as a test HAL interface
Bug: 64776708
Test: no android.hardware.tests.*.so file in
/system/lib[64]/vndk on 2017 pixel devices

Change-Id: I896798a77be2ee0295fbdc39ae0834492d29e3b9
2017-09-15 14:23:09 +09:00
Jiyong Park
b5e9a6bdc3 HAL interface libs for testing are built w/o VNDK.
The HAL interfaces for testing were copied to /system/lib[64]/vndk
directory since they are built as cc_library and thus falsely recognized
as members of VNDK, which isn't true.

Build them as non-VNDK so that they are filtered out. To do so,
.hidl_for_test files are added for the test HALs and update-makefiles.sh
were ran.

Bug: 64776708
Test: no android.hardware.tests.*.so file in /system/lib[64]/vndk on
2017 pixel devices

Merged-In: I6167da8572081adfb53f432b248ac3bbee39dc42
Change-Id: I6167da8572081adfb53f432b248ac3bbee39dc42
(cherry picked from commit 526a36ca24)
2017-09-15 13:33:41 +09:00
Steven Moreland
0cf302463a Add test for fq reference to local type.
Test: m hidl_test (checks are done statically)
Bug: 65597200
Change-Id: I6e73414dab00c3bf5a4684c5f839333e582e7cd7
2017-09-14 12:00:59 -07:00
Treehugger Robot
b5aef5a54d Merge "Print full name test" 2017-09-14 03:21:32 +00:00
Timur Iskhakov
d8299ff809 Print full name test
Bug: 65563308

Test: hidl_test

Change-Id: I629a5a7fa708b567591e27bdb39ed5626add4895
2017-09-13 18:00:29 -07:00
Timur Iskhakov
64c9669fd2 Test HIDL topological reordering
Bug: 65636464

Test: hidl_test
Change-Id: I7eae65c89252bebf865803d24101b08a7088c669
2017-09-13 14:17:29 -07:00
Treehugger Robot
1b08076ad5 Merge "Interface for hidl forward reference test" 2017-09-13 19:59:05 +00:00
Timur Iskhakov
67753ea3d7 Interface for hidl forward reference test
Test proofs that forward reference can now be used.
Test contains trie implementation and some forward reference examples.

Bug: 31827278

Test: hidl_test

Change-Id: I55cdde500baea3e70ebf4466c681ad652b6ff9fd
2017-09-12 17:41:13 -07:00
Zhuoyao Zhang
d2e1850a46 Update build for test hal: libhwbinder
* Use cc_default to extract common build rules.
* Static link android.hardware.tests.libhwbinder@1.0 to the impl lib.

Bug: 65483634
Test: make vts
      vts-tradefed run vts-performance

Change-Id: Ia6fc6593e3f833c1a7de91f817fb684280a8b555
2017-09-12 14:51:52 -07:00
Timur Iskhakov
a3b0f1f431 Check array dimenstion order
Bug: 65257916
Test: mma
Change-Id: I5dcd859120800909b6fc4811c5e5a0d2f8790bcd
2017-08-31 15:18:45 -07:00
Zhuoyao Zhang
36cb0a2d99 Move android.hardware.tests.libhwbinder@1.0-impl to system.img
am: d536358066

Change-Id: Ic407842046122563020b00d7df6b0e13d27aab74
2017-08-17 00:10:20 +00:00
Zhuoyao Zhang
d536358066 Move android.hardware.tests.libhwbinder@1.0-impl to system.img
Bug: 64723866
Test: make vts
      vts-tradefed run vts-performance

Change-Id: Ib5e993d98f7fa12dcb2b418a995887b59394c849
2017-08-16 10:21:09 -07:00
Steven Moreland
dfd8287506 Updating all makefiles.
Bug: 64487114
Test: none
Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a
Merged-In: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0
Merged-In: Ifdc3c17cb2b85c18b37dac2d03bb5c8935c23180
Change-Id: I170fa1c4fe39f8109b1670db58ef99bb11afc0be
2017-08-14 20:25:09 +00:00