Commit graph

433 commits

Author SHA1 Message Date
Steven Moreland
66816de87f Remove useless Android.mk files.
Test: none
Change-Id: I99f4d3e5b943742009e366b13bee2c32e38a3fba
2017-01-18 11:49:08 -08:00
Yifan Hong
cad2f77b0e Merge "Add test for type resolution." am: 5835d9ea59 am: 168bb896b7 am: 6cc9f50bd3
am: 63a36d7b62

Change-Id: I0477b4dc3e782752a556003ddaced227d2271b06
2017-01-17 21:12:01 +00:00
Yifan Hong
5835d9ea59 Merge "Add test for type resolution." 2017-01-17 21:03:05 +00:00
Martijn Coenen
4226670424 Merge "Testing struct that has vector of other struct" am: 0bb0ba5f79 am: a69c3034fa am: dabf160073
am: 98d537ec95

Change-Id: Ia384675237edd335e117991607e1a39f6f46dd74
2017-01-17 06:50:54 +00:00
Martijn Coenen
0bb0ba5f79 Merge "Testing struct that has vector of other struct" 2017-01-16 14:48:11 +00:00
Hridya Valsaraju
e18ded9775 Merge "Add a new method to trigger a blocking read." am: 31265c5312 am: ba6c8445b1 am: 134cb728f7
am: 5cb077fac0

Change-Id: Iff0bac56b002082e1f037ccd1b2ff5650de90902
2017-01-14 08:26:42 +00:00
Treehugger Robot
31265c5312 Merge "Add a new method to trigger a blocking read." 2017-01-14 08:07:25 +00:00
Hridya Valsaraju
586bed1c17 Add a new method to trigger a blocking read.
The new method will request the service to trigger a blocking
read with the default Event Flag notification bitmask defined
by the MessageQueue class.

Test: FMQ unit tests
Change-Id: I5a61e2b4527ba31cd5ea6521c553a87904af8056
2017-01-13 20:58:17 -08:00
Steven Moreland
7c8d9bbaf1 Revert "move VTS HIDL HAL tests to the corresponding interface directories"
This reverts commit ec7746fa80.

Test: no test
Merged-In: I9ec4493403d71419df99fe9761211eab057cdb0a
Change-Id: I39f2acaa5ee376b90bcddd0891ac6f309cb40a2b
2017-01-14 00:20:11 +00:00
Steven Moreland
96232e327f Revert "Revert "move VTS HIDL HAL tests to the corresponding interface directories""
This reverts commit 070e8d2116.

Change-Id: I66dd4e6cf875e39e58b0d91724a603b37d32c0ac
2017-01-14 00:00:26 +00:00
Ruchi Kandoi
070e8d2116 Revert "move VTS HIDL HAL tests to the corresponding interface directories"
Test: No
This reverts commit ec7746fa80.

Change-Id: I9ec4493403d71419df99fe9761211eab057cdb0a
2017-01-13 15:17:32 -08:00
Yifan Hong
97973c69c8 Add test for type resolution.
Test: make hidl_test

Bug: 31971432

Change-Id: I5c058079d54e1b480f21550a76ccfd53f54bd0c4
2017-01-13 10:11:08 -08:00
Pavel Maltsev
af9aec427d Testing struct that has vector of other struct
Test: hidl_java_test

Bug: b/34255213
Change-Id: I6a861f0fec32d5f7d541860bfe7bc3a45d37f1be
2017-01-13 11:35:36 +01:00
Ruchi Kandoi
aeb3de7b3f Merge changes from topic 'port-nfc-vts-AOSP'
* changes:
  Fix VTS paths on 32-bit target
  Remove obsolete references to IPCThreadState/ProcessState.
  Update Android.bp of Nfc with make rule for profiler.
  Use lowercase booleans in VTS test configs.
  Update to use the correct logging library.
  Update coverage configs with new format.
  Update NFC VTS configs to reflect new source paths
  increase the timeouts to 10mins for nfc target-side tests
  enable profiling directly from AndroidTest.xml
  NFC: vts: Update VTS driver files as per HAL changes
  NFC: Add target-side VTS tests for NFC
  use svc nfc enable/disable which is always the same.
  move VTS HIDL HAL tests to the corresponding interface directories
  Build target-side NFC test with coverage.
  Remove -DENABLE_TREBLE from vts test LOCAL_CFLAGS.
  Nfc: Split libhidl into base and transport.
  NFC: Update vts files to include the Annotations.
  NFC HAL target-side test (template)
  Update vts files for nfc hidl file style change.
  VTS driver build target for NFC 1.0
  add nfc vts files and vts profiler build rule
2017-01-12 23:13:44 +00:00
Steven Moreland
7c6612ad30 MemoryTest: add method for testing am: 6de0aa81a3 am: f0a0b645e9 am: fa37fc89cd
am: 90d16fdd99

Change-Id: I31f12c061b20bc8c1fa09ce10bb9e90aa3afab84
2017-01-12 20:13:20 +00:00
Keun Soo Yim
ec7746fa80 move VTS HIDL HAL tests to the corresponding interface directories
Bug: 32783461
Test: vts-tradefed; run vts-hal-hidl
Change-Id: Iead44eaf65dcd4de2286267467c4a4a322a88205
(cherry picked from commit 8a36c0b01c)
2017-01-12 11:02:22 -08:00
Steven Moreland
6de0aa81a3 MemoryTest: add method for testing
Bug: 34134129
Test: compiles
Change-Id: If0d2a9c00f93f548da5e9261a93d4715412620c3
2017-01-12 16:27:43 +01:00
Treehugger Robot
cb5989d239 Merge "Bp/n/sFoo -> Bp/n/sHwFoo" 2017-01-12 01:50:58 +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
4bc69c918f Bp/nFoo -> Bp/nHwFoo
Bug: 33554989
Test: hidl_test
Change-Id: I748181e9eaf5b78318054b9fd99ac1a43d00498a
2017-01-11 13:04:15 -08:00
Mark Salyzyn
5ec14ad8dd Merge "liblog: use log/log.h when utilizing ALOG macros" am: 818ffb15a6 am: ca5117d1f3 am: 7c3240795a
am: d4acfd7503

Change-Id: I477c45fec225f4712051b2ff42b6f55614403531
2017-01-11 15:57:46 +00:00
Yifan Hong
10ac9b44f5 Bp/n/sFoo -> Bp/n/sHwFoo
Bug: 33554989
Test: hidl_test
Change-Id: I748181e9eaf5b78318054b9fd99ac1a43d00498a
2017-01-10 16:01:46 -08:00
Mark Salyzyn
a4842ace39 liblog: use log/log.h when utilizing ALOG macros
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-10 15:02:14 -08:00
Yifan Hong
309ccc1d26 Add test for putting different types in a struct / union. am: 04e53a1ca2 am: 049439eb1f am: ce1420670c
am: b76db3e2e7

Change-Id: I878b7f2a7ba449d3330dd14fdd9be3d55554a1a2
2017-01-10 03:22:30 +00:00
Yifan Hong
04e53a1ca2 Add test for putting different types in a struct / union.
Test: hidl_test
Change-Id: Icf1f40b1c92f76a45a3792e8c5d359031ad719bc
2017-01-06 11:06:14 -08:00
Yifan Hong
810b9b4838 Merge "move foocallback to hidl_test" am: 0270fefc48 am: 7f3dc0e7b3 am: 586e13de99
am: 82f0ce3e09

Change-Id: I5e3a1a1ac7018eb36401c17bf29b49d131289ae6
2017-01-05 19:37:58 +00:00
Yifan Hong
0270fefc48 Merge "move foocallback to hidl_test" 2017-01-05 19:24:25 +00:00
Martijn Coenen
ddfd2b832d Callback elision for HIDL interfaces. am: e8b0161713 am: 04bd96f989 am: c8a4f398c2
am: a5cb4f042f

Change-Id: I32cb28fb4acc7d69059b8dd3e80946e2e2963b9c
2017-01-05 10:04:23 +00:00
Martijn Coenen
e8b0161713 Callback elision for HIDL interfaces.
Test: mma, hidl_test
Bug: 31380743
Change-Id: Ic5390d49a9493d1180bdd8a15bc47e891637890e
2017-01-05 08:48:23 +01:00
Hridya Valsaraju
93a896744c Merge "Add a method to trigger multiple FMQ blocking reads." am: 9bfe0894b9 am: b494c004e8 am: f549b70bbd
am: 3fc5d42017

Change-Id: I205f66015e8c2228750c17ef433768689bfaf551
2017-01-05 02:48:18 +00:00
Hridya Valsaraju
9ba9244e5f Add a method to trigger multiple FMQ blocking reads.
Test: FMQ unit tests
Bug: 33815422
Change-Id: Idcd1fd79232a1b0caa5784e8dd4f3a929f52fded
2017-01-04 16:19:36 -08:00
Yifan Hong
b500bc6189 move foocallback to hidl_test
Fix: 32778024

Test: hidl_test

Change-Id: Icec3bd23c30dea635c315ec3b98f3a72447e840a
2017-01-04 13:39:13 -08:00
Hridya Valsaraju
f70884cf4b Templatize MQDescriptor
Bug: 33948735
Test: FMQ unit tests and benchmarks

Merged-In: I5c3beff2c6a69e151e0cb11af299956638cc441b
Change-Id: I5c3beff2c6a69e151e0cb11af299956638cc441b
2016-12-29 22:33:40 -08:00
TreeHugger Robot
573ec06d23 Merge "Templatize MQDescriptor and rename to fmq_sync/fmq_unsync" 2016-12-30 06:23:06 +00:00
Hridya Valsaraju
33351dae85 Templatize MQDescriptor and rename to fmq_sync/fmq_unsync
Bug: 33948735
Test: builds, FMQ unit tests and benchmarks pass.
Change-Id: I5c3beff2c6a69e151e0cb11af299956638cc441b
2016-12-29 14:52:16 -08:00
Martijn Coenen
4ea3c731a9 Add test method to IBaz. am: 73f99f6e1f am: a0cf52d74b am: 66ec896c3b
am: e411341409

Change-Id: I5242b0ed727b672bc658d1c792a1a3d6beb55a09
2016-12-29 09:27:27 +00:00
Martijn Coenen
73f99f6e1f Add test method to IBaz.
For testing death recipients.

Test: mma, hidl_test_java
Bug: 31632518
Change-Id: Ib359c790f68132484fbcd1a5522f45b99d1131f8
2016-12-28 17:44:15 +00:00
Hridya Valsaraju
a13ec5a81c Merge "Add a method to test EventFlag configuration and usage" am: ac7f1d21e8 am: adbae29ef1 am: 2ba1ec5a64
am: deb31d4ba1

Change-Id: I60be1640e820f35de9b5096e04c936d7d8e7f8dd
2016-12-22 22:19:13 +00:00
Treehugger Robot
ac7f1d21e8 Merge "Add a method to test EventFlag configuration and usage" 2016-12-22 21:55:07 +00:00
Hridya Valsaraju
710e4a3f0d Add a method to test EventFlag configuration and usage
Bug: 31223612 33295104

Test: FMQ unit tests.

Change-Id: Idbddd38730edd0ec14c37d3cb5e67f78705c3d4a
2016-12-21 14:16:10 -08:00
Yifan Hong
4162ceee43 Merge "Add test for Java GC for binder objects." am: eb0db2c920 am: b96d0d1f68 am: 92f29042a3
am: 7092c9f249

Change-Id: Ia2857326f6e7c74fd49c453bbab2111db25e5ade
2016-12-21 18:53:11 +00:00
Yifan Hong
d9389bb3d5 Add test for Java GC for binder objects.
Test: hidl_test_java

Bug: 33042939
Change-Id: I87d9de63834c617a568f7d1795c901fdd4c6f8e0
2016-12-19 18:17:33 -08:00
Yifan Hong
7f6bfcc606 Merge "Test for echoed interfaces." am: f5f75be7b6 am: a175fa4b4a am: c63c36ceaf
am: abaee80220

Change-Id: I8c38c43e04e47aa834cb381fe41addc6751f4076
2016-12-19 22:47:21 +00:00
Yifan Hong
87cc71c9fa Test for echoed interfaces.
Test: hidl_test

Bug: 33173166

Change-Id: I0b8b8553b7d3f7b1800d0970a9fc17d01084dfcf
2016-12-16 15:49:39 -08:00
Martijn Coenen
a86dab68ad Revert "Fix tests for using IBase instead of IBinder." am: 0dbb9903cd am: 666a5dcafe am: 8723856c45
am: d1fd31018f

Change-Id: Ifad04fe3804826f97f1c228e666bb6760aa19f5f
2016-12-16 01:46:03 +00:00
Martijn Coenen
0dbb9903cd Revert "Fix tests for using IBase instead of IBinder."
This reverts commit 1d747311b3.
Bug: 33173166
Test: builds, hidl_test
2016-12-15 21:34:38 +01:00
Yifan Hong
b85d8763c7 Update makefiles for Java package path.
use V1_0 instead of 1.0.

Bug: 33554192

Test: hidl_test_java
Change-Id: Ic2d95265df10914a60a5bb743d75e839948838c3
2016-12-13 18:06:24 -08:00
Yifan Hong
0f73b9eb59 Merge "Revert "Revert "Update makefiles for Java package path.""" 2016-12-13 22:20:51 +00:00
Yifan Hong
f35ee3b192 Revert "Revert "Update makefiles for Java package path.""
This reverts commit a8789f27cb.

Change-Id: I69980b580a556188ba868bb096ae1590b01759f5
2016-12-13 22:20:16 +00:00
Yifan Hong
b998a6c49c Merge "Revert "Update makefiles for Java package path."" 2016-12-13 22:19:23 +00:00
Yifan Hong
a8789f27cb Revert "Update makefiles for Java package path."
This reverts commit ab0792ccdc.

Change-Id: I47fc272d9fa8875e3d7ccb10cb748c738fbf8135
2016-12-13 22:18:34 +00:00
Yifan Hong
07e659778e Merge "Update test for method name and result name." am: e8d4931930 am: 7f49aa4b75 am: c32a29210e
am: fc5c67533c

Change-Id: Ia9820692a4f1caec2f78e7077e7c0b989d579003
2016-12-13 20:58:52 +00:00
Yifan Hong
ab0792ccdc Update makefiles for Java package path.
use V1_0 instead of 1.0.

Bug: 33554192

Test: hidl_test_java
Change-Id: Ic2d95265df10914a60a5bb743d75e839948838c3
2016-12-13 11:32:56 -08:00
Yifan Hong
59cd3a4c14 Update test for method name and result name.
Test: compiles

Bug: 33277700

Change-Id: I40de6f09da8d8bf9d03516bfb7a65a54d01fa18a
2016-12-13 10:52:55 -08:00
Yifan Hong
a5d52cb22d Add test for eliding bitfield returns. am: 8b54c22992 am: 3b353f7905 am: 42dcb27402
am: 9efa6c79a3

Change-Id: I952aab1189c69bc5c97b3646fd9b246bf8c12738
2016-12-13 01:32:55 +00:00
Yifan Hong
8b54c22992 Add test for eliding bitfield returns.
Test: mma

Bug: 33298401
Change-Id: I9e50c20b29215664040183bcdfee6b6902c00e3d
2016-12-12 15:30:49 -08:00
Elliott Hughes
d0f553bd86 Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." am: 827e038651 am: f279b5d2cd am: 6d2e524f46
am: 3621ecd51c

Change-Id: Icc540a3f1d0ba427ffe55d6e0f0c39f738cba97f
2016-12-08 18:46:38 +00:00
Elliott Hughes
827e038651 Merge "Remove unused hardware/interfaces tests dependency on libtestUtil." 2016-12-08 17:21:53 +00:00
Elliott Hughes
2d224c8026 Remove unused hardware/interfaces tests dependency on libtestUtil.
Bug: N/A
Test: builds
Change-Id: Ic0beba4a8ac19c4883bf49e330b23e4e6f64985a
2016-12-07 13:11:45 -08:00
Yifan Hong
5d22a288cb Add test for bitset/mask type.
Test: hidl_test
Change-Id: I8bcd304184ff6b7794a9d0b5d3999f071604471d
2016-12-06 00:29:42 +00:00
Yifan Hong
e7ce822b96 Add test for bitset/mask type.
Test: hidl_test
Change-Id: I8bcd304184ff6b7794a9d0b5d3999f071604471d
2016-12-05 12:46:17 -08:00
Yifan Hong
961e625526 Update to use the correct logging library.
Test: compiles
Change-Id: I00467b964fd56e6379cddde26152e413f2f00379
2016-12-03 10:04:15 -08:00
Yifan Hong
79f07e9c5b Update to use the correct logging library.
Test: compiles
Change-Id: I00467b964fd56e6379cddde26152e413f2f00379
2016-12-03 10:00:39 -08:00
Yifan Hong
1d747311b3 Fix tests for using IBase instead of IBinder.
Echoed interfaces cannot be casted properly, because
interfaceChain cannot be called. So the given vector
of interfaces is re-wrapped. This is temporary; when
b/33173166 is fixed, this change should be reverted.

Test: hidl_test

Generates: b/33173166

Change-Id: I12166f69cf04abf7485dc2455ad731b87c80b3d1
2016-12-03 01:09:23 -08:00
Yifan Hong
ebcc3328e8 Use IBase instead of IBinder for interface keyword.
Test: hidl_test
Change-Id: Id51d1957f311d1025dac57d40d4dd5c24d328a6c
2016-12-03 01:09:23 -08:00
Yifan Hong
e19e582bd5 Update makefiles for hidlizing IBase.
A new dependency android.hidl.base@1.0 is added for
all projects.

Also updated Android.mk for NFC hal (for java constants)

Test: mma

Change-Id: Ia70d0eb0d74de06475a339698386d383d491a43a
2016-12-03 01:08:59 -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
0bd75e02b0 Fix tests for using IBase instead of IBinder.
Echoed interfaces cannot be casted properly, because
interfaceChain cannot be called. So the given vector
of interfaces is re-wrapped. This is temporary; when
b/33173166 is fixed, this change should be reverted.

Test: hidl_test

Generates: b/33173166

Change-Id: I12166f69cf04abf7485dc2455ad731b87c80b3d1
2016-12-03 00:59:01 -08:00
Yifan Hong
76dd1951ae Use IBase instead of IBinder for interface keyword.
Test: hidl_test
Change-Id: Id51d1957f311d1025dac57d40d4dd5c24d328a6c
2016-12-03 00:59:01 -08:00
Martijn Coenen
0764c416cf Merge "Test interface for hidlized IMemory." am: 2ed821d5fe am: d552d728f8 am: f7845f76bb
am: fee5851d2b

Change-Id: Ib49cd505e8f70f1117ee8b64951d3dd77a6544aa
2016-12-02 21:07:34 +00:00
Martijn Coenen
0cb4a94083 Test interface for hidlized IMemory.
Test: hidl_test
Change-Id: I9d6260092bf58406905e543065319bc1f4db119f
2016-12-02 08:53:17 -08:00
Steven Moreland
2a6e20aab6 Merge "Revert "Use get instead of implicit cast on Return<*>."" am: 5329acb61f am: e78c2b96e3 am: 9c3a926af2
am: 8ac8718670

Change-Id: Ia7ba183ea72890eb95fdb5306055242edf9f4960
2016-12-01 21:24:28 +00:00
Treehugger Robot
5329acb61f Merge "Revert "Use get instead of implicit cast on Return<*>."" 2016-12-01 20:55:39 +00:00
Treehugger Robot
832f1a7978 Merge "Always specify underlying enum type." 2016-12-01 17:15:54 +00:00
Steven Moreland
fafbbd7026 Revert "Use get instead of implicit cast on Return<*>."
This reverts commit dc5f84f993.

Change-Id: Ib81f732d1e0b822a5f53cbc7ed8a13e146ad8b7a
2016-12-01 08:20:32 -08:00
Yifan Hong
15a9614dcd Merge "Update to use the correct library for logging." am: f5e1ac67ed am: 34d006ee9c am: fb89d1237d
am: 6cb0ee580a

Change-Id: I27419afa6ff8ebda825e474d9cee242a29a31f53
2016-11-30 20:59:57 +00:00
Steven Moreland
d26dc50abb Always specify underlying enum type.
Bug: 33197891
Test: compiles
Change-Id: I3d4822ea9a665708302d3bd1460425fddf1dcda9
2016-11-29 14:22:10 -08:00
Steven Moreland
73600f7955 Always specify underlying enum type.
Bug: 33197891
Test: compiles
Change-Id: I3d4822ea9a665708302d3bd1460425fddf1dcda9
2016-11-29 14:12:34 -08:00
Yifan Hong
0c4c7a30c2 Update to use the correct library for logging.
Generates: b/33193497
Test: mma
Change-Id: Ib8bfc4d2f1d68947099e4756f661ed06689ffd62
2016-11-29 13:10:15 -08:00
Steven Moreland
bc51c2d330 Use get instead of implicit cast on Return<*>. am: dc5f84f993 am: 3c87575472 am: 90bd630187
am: da1c605bf8

Change-Id: I31eb131fbe2a59f4e47b5d3ea0558cd2a9c843d5
2016-11-28 21:50:28 +00:00
Steven Moreland
dc5f84f993 Use get instead of implicit cast on Return<*>.
Bug: 31348667
Test: hidl_test
Change-Id: Icc22f440077feeff1119ca7b2b44fab684b453db
2016-11-28 12:06:22 -08:00
Treehugger Robot
2fe5762cae Merge "Update makefiles for logging." 2016-11-24 16:41:20 +00:00
Steven Moreland
eccc0081c8 Remove HIDL_GENERATED from things written by hand. am: 33e87b8a76 am: 8b6a886d60 am: 35460073b3
am: 6817b001f1

Change-Id: Ied2a612dbeac019fa764eeb8375d6e68f0ff7e66
2016-11-23 01:51:19 +00:00
Steven Moreland
33e87b8a76 Remove HIDL_GENERATED from things written by hand.
find . -name "*.h" -exec sed -i 's/HIDL_GENERATED_\(.*\)_H_/\U\1_H/g' {}
+

They now match what would be generated by -Lc++-impl. This prevents
confusion over whether or not the files are autogenerated.

Test: pass
Change-Id: I2c9d7887f6d6bdaa19a5c4bfcf02ee3d1dbc81d1
2016-11-22 15:34:39 -08:00
Steven Moreland
bbff14d4bb Merge "Update makefiles for logging." 2016-11-22 17:25:36 +00:00
Keun Soo Yim
b74aac8107 Merge "move VTS HIDL HAL tests to the corresponding interface directories" 2016-11-22 16:41:27 +00:00
Martijn Coenen
403161ab73 Use newly introduced hidl_handle.
Bug: 32089785
Test: builds
Change-Id: I27c7d3945e1fe390661bf322987011a00fe9b3fe
2016-11-22 12:17:58 +01:00
Martijn Coenen
70b9a15df0 Use newly introduced hidl_handle.
Bug: 32089785
Test: builds
Change-Id: I27c7d3945e1fe390661bf322987011a00fe9b3fe
2016-11-22 09:03:11 +01:00
Keun Soo Yim
8a36c0b01c move VTS HIDL HAL tests to the corresponding interface directories
Bug: 32783461
Test: vts-tradefed; run vts-hal-hidl
Change-Id: Iead44eaf65dcd4de2286267467c4a4a322a88205
2016-11-21 19:16:12 -08:00
Steven Moreland
f8d68ec855 Update makefiles for logging.
Bug: 32943424
Test: pass
Change-Id: Ic88ce6adf04e0e36db53e4cc06ac2ec5a90c011c
2016-11-21 16:28:54 -08:00
Steven Moreland
3e3a0998e0 Update makefiles for logging.
Bug: 32943424
Test: hidl_test
Change-Id: I86dc81935912861073497c07696378895a25f9ee
2016-11-21 16:19:57 -08:00
Yifan Hong
63544eacb6 Split libhidl into base and transport.
Bug: 32756130

Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 09:52:57 -08:00
TreeHugger Robot
6c31eaf8e7 Merge "Split libhidl into base and transport." 2016-11-18 15:32:53 +00: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
Martijn Coenen
65c86c08a1 Cast hidl_pointer<T> to void*.
hidl_pointer<T> can only allow one implicit conversion
operator, and native_handle_t* is the one that makes
most sense. Hence, this requires an explicit cast.

Bug: 32089785
Test: builds
Change-Id: Ie952ee2e4f0c20fa33f793403d51f3d550257310
2016-11-17 15:29:36 +01:00
Yifan Hong
1eb8f1cc1f Update Android.bp to reexport dependent packages.
b/32710416
Test: mma
Change-Id: Iaca7300c366c2c9e860a29e6a111248d315cc5b4
2016-11-09 06:03:22 +00:00
Colin Cross
8f084e00d6 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
(cherry picked from commit b785f5b82e)
2016-11-07 10:54:59 -08:00
Treehugger Robot
139b69077f Merge "Fix test for array size orders." 2016-11-03 22:07:24 +00:00
Yifan Hong
1f4fbc0793 hidl_test: do not use Return for app errors.
Test: hidl_test
Bug: 31348667
Change-Id: Icc7e926bbb886b040fdea0ff9dee8bedad0860e7
2016-11-02 17:47:46 -07:00
Yifan Hong
1d57002951 Fix test for array size orders.
Test: hidl_test
Test: hidl_test_java
Bug: 31438033
Change-Id: I100d7ed6dac24005fa1a5c46a3e09aa062d957f7
2016-11-02 15:03:46 -07:00
Treehugger Robot
8766c010ba Merge "Running update-makefiles for fixed spacing." 2016-11-02 00:44:16 +00:00
Yifan Hong
688bb1e2c6 Add test for null native_handle_t*.
Test: hidl_test

Bug: 30814137
Change-Id: Ic52a4c588e2fde3859a0ae8c098e5cb60a87efe8
2016-11-02 00:16:17 +00:00
Steven Moreland
7982058699 Running update-makefiles for fixed spacing.
Test: pass
Change-Id: I4dcaf70b1c014f3ecf685d4884601be6f17ee51d
2016-11-01 20:06:29 +00:00
Martijn Coenen
b7307d5c8a Add method to IFoo for testing NULL interfaces.
Bug: 32410513
Test: mma, hidl_test
Change-Id: I791c3a95e670a859e5e494ead987d2a93f5047a5
2016-11-01 13:09:53 +01:00
Yifan Hong
ebfa633103 Add interface methods for testing vec<handle>.
Test: hidl_test
Bug: 32160974
Change-Id: I7eda1650fcf8d58778b2aad97a5bd62afc95bc36
2016-10-31 12:02:35 +00:00
Yifan Hong
cc6ad7dfe5 add test for binder inheritance.
Test: hidl_test
Test: `make hidl_test_java` compiles
Change-Id: Ie9217b79e369f2a1e7a7c9ed02524b17e3fc8b7f
2016-10-26 15:27:23 -07:00
Treehugger Robot
a6b44aad97 Merge "Add methods to test flavor of FMQ supporting unsynchronized writes." 2016-10-26 16:37:18 +00:00
Steven Moreland
7a4f118c48 Stop all these merge conflicts.
Test: mma -j64
Change-Id: I319198af32adf1fef180c5c2c22ba4b360fa7609
2016-10-26 12:05:29 +02:00
Steven Moreland
54813ed7c6 Use hidl_string conversion constructor as test.
Test: hidl_test
Change-Id: I626c40e1a3121e4f41ba9f612efc7321f7c03f85
2016-10-24 12:13:17 -07:00
Yifan Hong
30dc3dee3c hidl_test: move duplicated code to shared lib
Test: hidl_test

Change-Id: Ia68b78d44d68a6b254c686afe64faf7cc89510d7
2016-10-24 10:15:54 -07:00
Zhuoyao Zhang
382a80fd8b Merge "Add implementation for hwbinder benchmark service." 2016-10-24 16:52:49 +00:00
Steven Moreland
ce9779412a Update headers (for export shared lib headers)
Test: mma -j64
Bug: 32337293
Change-Id: I93e7cab90efac407525a1a5f2ad30f816a530e17
2016-10-22 00:28:00 +00:00
Steven Moreland
6b9bae82ee Removed overloaded functions from IFoo.hal.
Bug: 31758541
Test: hidl_test
Change-Id: Ic92cf9996357a8aa9b3785540784c686887032e0
2016-10-22 00:16:57 +00:00
Zhuoyao Zhang
eb9f507823 Add implementation for hwbinder benchmark service.
Bug:32279499
Test: make android.hardware.tests.libhwbinder@1.0-impl
Change-Id: I75056afa32b8189020608779ec495659ea35ed48
2016-10-21 13:22:12 -07:00
Andreas Huber
847b14511a Adds tests to verify proper marshaling of vectors of interface types.
Bug: 30570663
Test: hidl_test
Change-Id: I1e4d1f826773abbde6b9019eb6af90ac64007e38
2016-10-20 09:20:50 -07:00
Hridya Valsaraju
b43584556f Add methods to test flavor of FMQ supporting unsynchronized writes.
Test: Built and ran the unit tests.
Bug: 31223183

Change-Id: Ib0c52c4d17d31a24f4c5f5cd96547bcfae673725
2016-10-19 18:19:13 -07:00
Andreas Huber
f7ad111d72 Merge "Adds a test to verify proper marshaling of vectors of arrays in Java" 2016-10-19 19:30:29 +00:00
Andreas Huber
28c85b78b0 Adds a test to verify proper marshaling of vectors of arrays in Java
Bug: 32180328
Test: hidl_test_java
Change-Id: I756ce1d2ce35b7a3a63c6dbafba90e9765d61f64
2016-10-18 13:56:04 -07:00
Yifan Hong
9517f9c871 hidl_test: Fix failing tests.
Test: The following succeeds.
croot && cd hardware/interfaces
mma
croot && cd system/tools/hidl
mma
adb shell /data/nativetest64/hidl_test/hidl_test

Bug: 31819198

Change-Id: I40c2338d09d5e80b9bad2d918b7b8c3f2709f434
2016-10-18 11:39:00 -07:00
Yifan Hong
d5b5b2ecea add default implementation to android.hardware.tests.foo/bar/pointer@1.0
Test: hidl_test
Test: mma

Merged-In: I808423c040099354513db0ad108210fcec17c8a7
Change-Id: I808423c040099354513db0ad108210fcec17c8a7
2016-10-18 11:39:00 -07:00
Steven Moreland
45ca9939a0 Merge "Revert "Remove test for overloaded function."" 2016-10-18 18:34:04 +00:00
Steven Moreland
a3d9fe2cd4 Revert "Remove test for overloaded function."
This reverts commit 93800287fb.

Change-Id: I95b0aeb64eaf9938c6558e5817bd79c3f2e5496e
2016-10-18 18:32:49 +00:00
Treehugger Robot
51a703aea4 Merge "Remove test for overloaded function." 2016-10-18 17:45:28 +00:00
Steven Moreland
93800287fb Remove test for overloaded function.
Bug: 31758541
Test: hidl_test
Change-Id: Ib02d9e8531ea2b7ec36bf8785e6827cfa45b53ba
2016-10-17 17:53:09 -07:00
Yifan Hong
deb0cfcea3 Add test for single letter IDs.
Test: mma

Bug: 32068694
Change-Id: I56659715beaadd8ebb3b9f36558e7ebcdb3e4d27
2016-10-17 16:57:51 -07:00
Hridya Valsaraju
954515f73a Modify return values of read/write/config methods to bool
Modify return values of read/write/config methods to bool
for the FMQ unit tests and benchmarks.

Bug: 31780470
Test: Built and ran existing FMQ unit tests and benchmarks

Change-Id: I2b7c9cf073f0c1a2908d48552e258ce21240ae64
2016-10-14 23:55:52 +00:00
Steven Moreland
86c848de0b Added test for overloading.
Test: make, hidl_test
Bug: 31758541
Change-Id: Ia0fdad2f0b0155065a7dec5526ab5d14a9ec1f52
2016-10-11 22:40:50 +00:00
Yifan Hong
a543fe6ab0 Merge "Add test for importing a single type." 2016-10-10 19:49:45 +00:00
Yifan Hong
799ebcb7fa Add test for importing a single type.
Test: `cd system/tools/hidl && mma`

Bug: 31821285

Change-Id: I0be97b16b84f76b64c09f9dc52709416601cbbdf
2016-10-07 19:43:43 -07:00
Yifan Hong
e312006887 Add test for fixing 0XFF (upper X)
Bug: 31983995

Test: make android.hardware.tests.expression@1.0
Change-Id: I05bed0164c5cc988843a60d1efc8f5aeb4986b9b
2016-10-07 16:32:57 -07:00
Yifan Hong
c5be5aca63 Add test for missing package name for FQName lookup.
Bug: 31705664

Test: `cd system/tools/hidl && mma`
Change-Id: If3568f1d1e77ad97ccfce5eac5938048f3852560
2016-10-05 15:50:28 -07:00
Yifan Hong
223b82a07d Add test for vec<vec<T>> as a return value.
Bug: 31955917

Test: hidl_test
Change-Id: I9ae7f9b04126261210cb4621266676727877d92f
2016-10-05 14:12:30 -07:00
Yifan Hong
61db854465 Add test for referring to nested types.
Bug: 31821285

Test: `make hidl_test && adb sync && adb shell hidl_test`
Change-Id: Iae030baa5bbe6e890512b494a0b657163c6a99a6
2016-10-04 10:40:55 -07:00
Dan Willemsen
242b34edd5 Convert to Android.bp
See build/soong/README.md for more information.

Bug: 31742855
Test: mma -j
Change-Id: Icb93f3b1b2caeb5e9c00f88ca35841b927ad075d
2016-09-30 10:31:54 -07:00
Yifan Hong
fe2b098355 Tests for Reference Support.
Bug: 31300815 pointer support
Bug: 31349114 nested types
Bug: 31757611 Parcel ref# cap

Test: `make hidl_test && adb sync && adb shell hidl_test`
      Only works with a kernel patch.

Change-Id: I48351b1bf861a4d2d77f823f7242524156cde1e7
2016-09-29 14:57:22 -07:00
Treehugger Robot
aa3a8e0dbc Merge "Use MQDescriptorSync instead of MQdescriptor in interface" 2016-09-29 16:48:53 +00:00
Andreas Huber
88476c157b Verify that method arguments and results can share the same name.
Bug: 30778622
Test: hidl_test, hidl_test_java
Change-Id: Idb35a03337010c1fb63c2896f216392398e03e0c
2016-09-28 13:43:39 -07:00
Treehugger Robot
e168ebab22 Merge "Verify that vectors of arrays within structures are properly marshaled" 2016-09-28 17:16:52 +00:00
Hridya Valsaraju
9d9672cce2 Use MQDescriptorSync instead of MQdescriptor in interface
Add comments and cleanup code as per HIDL style guidelines.

Bug: 31550963
Test: Built and ran existing FMQ unit tests and benchmarks.

Change-Id: I0a09ba1fcb520b46e5e6299b473c962c93d815eb
2016-09-27 22:22:19 +00:00
Andreas Huber
fd77f50d55 Verify that vectors of arrays within structures are properly marshaled
in the Java backend.

Change-Id: I70baa4ac55d8b0e06b31b2e50662be14b8528ff3
Bug: 31682327
Test: hidl_test_java
2016-09-26 16:34:29 -07:00
Yifan Hong
b0b5322e7d Updated indentation to 4 spaces for Android.mk.
Test: `cd system/tools/hidl && mma`
Change-Id: I088893c3c8b080239f0f32e3434faf3da3fefc7a
2016-09-26 16:02:39 -07:00
Yifan Hong
467bb282d2 Updated tests for constant expressions.
Test: `make android.hardware.tests.expression@1.0` compiles
      and generates enum class Color with autofilled values.
Test: `make hidl_test_java` succeeded.
Test: `make hidl_test` succeeded.

Bug: 31628863 Add test for autofilling enum values.
Bug: 31592132 allow constant expressions be array sizes.

Change-Id: I79f35365f1d37843922725ad5a405848f3e8ec08
2016-09-26 13:39:22 -07:00
Andreas Huber
495391aad8 Updated makefiles that also add static java library targets.
Bug: 31684178
Test: hidl_test and hidl_test_java
Change-Id: Ib53d1be2b1535837ca97cb61796e335141fc7611
2016-09-23 09:21:15 -07:00
Iliyan Malchev
998892cce7 update auto-generated makefiles
b/31524912
Test: pass

Change-Id: Iafea8f87e93181041f42820df39ec43b3c785410
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-22 23:31:33 +00:00
Andreas Huber
f1d448b6a9 [Java] Add a test to verify that typedefs in types.hal does not mistakenly
generate a makefile rule.

Bug: 31678014
Test: regenerate makefiles using hidl-gen.
Change-Id: I72ceaedd33288269b74e2aa233043c741994cd1a
2016-09-22 13:22:47 -07:00
Andreas Huber
fc0b6c484a Verify that structs with multiple array fields now successfully compile for Java
Previously "_hidl_array_offset_*" was redeclared multiple times in the same
scope.

Bug: 31675085
Test: run hidl_test, hidl_test_java
Change-Id: I370956ae3008c05bda66dc5cdc44d33c9883376f
2016-09-22 11:25:23 -07:00
Treehugger Robot
ed76563377 Merge "Additional test cases to verify multi-dimensional arrays work properly." 2016-09-20 20:28:12 +00:00
Andreas Huber
8e237941ef Additional test cases to verify multi-dimensional arrays work properly.
Bug: 31438033
Change-Id: I1fc58cbbe6f161f7f71a43fa43d743843ba22f76
Test: run updated "hidl_test" and "hidl_test_java"
2016-09-19 14:07:54 -07:00
Zhuoyao Zhang
adc313d43d Add dependency on libcutils.
* Used for get system properies.

Test: pass test hidl_test.
Change-Id: I3b6d2deb442cd627a6f30312f0c204177d410ecb
2016-09-19 12:52:09 -07:00
Yifan Hong
252c1c58a4 Remove @hal_type from .hal files.
Test: ran make android.hardware.nfc@1.0 successfully
      compiles.

Bug: 31527823

Change-Id: Ib2c2f40ef6a8939a8344ade6138a7b0f32f14ba9
2016-09-19 10:19:24 -07:00
Andreas Huber
9c43f016b6 Add tests to verify that multi-dimensional arrays in Java work (inside structs)
Bug: 31438033
Change-Id: Ic27868fb0f603ca4acb2a42f144493d6ec26044f
2016-09-15 09:28:31 -07:00
Andreas Huber
cf8560c508 Adds tests to verify proper C++ code generation for multi-dimensional arrays
and vectors of arrays.

Bug: 31438033
Change-Id: Ia7c2198de31bdb4705687726abe3d0371625e56a
2016-09-13 09:34:40 -07:00
Treehugger Robot
d66bb6fb5c Merge "interfaces: regenerate makefiles" 2016-09-13 04:52:48 +00:00
Treehugger Robot
3d49850a49 Merge "Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]" 2016-09-12 17:50:11 +00:00
Iliyan Malchev
c6c7aabdc9 interfaces: regenerate makefiles
b/31372383

Change-Id: I4fd9d3f174a22f29bc3beb9aeb7c30fc6bd4acd8
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-09 16:28:23 -07:00
Andreas Huber
f399e50a90 Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]
argument/result passing.

Bug: 31380705
Change-Id: I17fd03a10f9740f68a6fb318a5c2ef9847f4c050
2016-09-09 15:06:35 -07:00
Andreas Huber
4a99f3afae WireMQDescriptor => MQDescriptor
b/31091383 Adding WireMQDescriptor as a hidl type

Change-Id: Iff23c833e8ab232ad37fd9bfbfe4d49fbc06b369
2016-09-09 11:35:48 -07:00
Iliyan Malchev
da96fb2a94 android.hardware.tests.msgq@1.0: modify ITestMsgQ
Modify the configure() method so that the implementation does not have
to rely on status_t to return service errors.

b/31367910
b/31348667

Change-Id: I0bc88c396ce4e55ed38b534b7e3ae2c0a4faad62
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-08 15:12:36 -07:00
Iliyan Malchev
b350caf9dc interfaces: update makefiles
b/31015466
b/31045569

Change-Id: I07d54fd956fedc4b94622ace1c8f2be3f2f93b2b
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-09-07 14:37:35 -07:00
TreeHugger Robot
c0ba83e30a Merge "Updated makefiles (includes java-library rules for applicable packages)." 2016-09-01 00:08:22 +00:00
Andreas Huber
7ab75a7325 Updated makefiles (includes java-library rules for applicable packages).
Change-Id: I178faf37dddb5149c1bdc217fa1395b2566194d7
Bug: 31221188
2016-08-31 13:56:05 -07:00
Keun Soo Yim
989087535a Revert "package android.hardware.tests.* as part of VTS (auto-generated)"
This reverts commit afba0364c6.

Change-Id: I9d143d97ef7857502d88fef92b9ae336ee824bcd
2016-08-31 08:47:29 -07:00
Yifan Hong
a401680f6e add test for constant expression evaluation output
Simply run:

    # hidl_gen converts .hal to .h correctly
    make hidl_gen_test
    # converted .h can compile
    make android.hardware.tests.expression@1.0

to run the tests.

b/30951879: int8_t is same as char, and when emitting output the
	    character corresponding to that number is emitted instead of
	    the number itself.

Change-Id: Icacba6b6262cc0026a94f64527b80e2c0e35e72e
2016-08-30 23:15:05 -07:00
Iliyan Malchev
092d4cdfa0 Merge "Apache2 module license." 2016-08-31 05:24:20 +00:00
Martijn Coenen
cbe590cb9f Apache2 module license.
Bug: 31110244
Change-Id: I7ce63f940199e8cd7d193bdde39fc6cd448db802
2016-08-30 11:28:36 -07:00
Andreas Huber
669bf7a5ae Interface 'IBaz' and friends used by "hidl_test_java".
Change-Id: If49d996e34ba5aa48488e92e71234208001bfddb
2016-08-29 10:23:17 -07:00
Keun Soo Yim
3cdfe14922 build 32- and 64-bit libs (auto-generated)
Change-Id: Iccb63cafc5db17abd423d589416d50ff21c89efa
2016-08-26 18:55:21 -07:00
Iliyan Malchev
b9c08207c1 android.hardware.tests.foo@1.0::IFooCallback: add instrumentation
Add two instrumentation methods to IFooCallback, to help with timing
measurements in gTest.

The first one, reportResults(), blocks the caller for a given length of
time while waiting for all the other methods to execute, then reports
whether these methods were executed within this length of time, for how
long their caller was blocked, and also how long the execution of the
bodies of each of them took.  Note that the execution time for a
method's body is independent of whether it is a oneway or a blocking
method.  For example, heyItsTheMeaningOfLife() is a oneway method, so it
returns immediately to the caller (so the caller-blocked time should be
very small).  However, if its body takes several seconds to run, then
this is the information that will be returned for
heyItsTheMeaningOfLife() as well.

The second instrumentation method, youBlockedMeFor(), is used by the
caller of IFooCallback to report how long the caller was blocked for.
This information is saved and passed by reportResults() as described
above.

b/30855757 Convert hidl test to gTest

Change-Id: I35ac708e424bcb143fce959609fcc747f1ec37fb
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-08-25 07:52:09 -07:00
Zhuoyao Zhang
90ff869890 Add test aidl file for benchmark binder performance.
Bug: 31068579
Change-Id: Idf7d5da902eb17f166ac07dc966c009bc1d9c7ae
2016-08-24 18:01:00 -07:00
Keun Soo Yim
afba0364c6 package android.hardware.tests.* as part of VTS (auto-generated)
this is to run the benchmarks continuously in the lab

Change-Id: Ia45c440a77ccc16db2cb1066ecde3b6521991ec9
2016-08-24 07:58:59 -07:00
Keun Soo Yim
6b4d639626 regenerate Android.mk files
Change-Id: I6a8b48943df469c9f345c05fb00c671f6f8dd393
2016-08-22 17:25:48 -07:00
Martijn Coenen
384150191f Updated makefiles linking against libhidl.
Bug: 30839546
Change-Id: I8c68d0b8db0816f9bfe58fc3898114fb9e151ddc
2016-08-19 14:06:56 +02:00
Yifan Hong
ab407f096e add tests for parsing constant expressions.
Change-Id: Ic1f524c604fc72b9d1b7b330b608ff38ce287921
2016-08-16 15:35:14 -07:00
Andreas Huber
564cc0ab33 "import types" should never be necessary, it is implicit (if types.hal exists)
Change-Id: I63e6a2104415a5a71bf3eb93c646f9bf32f1b079
2016-08-16 10:17:39 -07:00
Iliyan Malchev
9bc55e2b41 Merge "android.hardware.tests.foo@1.0::IFooCallback: use booleans" 2016-08-16 14:46:00 +00:00
Iliyan Malchev
11946ae834 Merge "android.hardware.tests.foo@1.0: add oneway methods" 2016-08-16 14:45:18 +00:00
Hridya Valsaraju
1e69d11c6c Merge "Move .hal file for FMQ tests to harware/interfaces" 2016-08-15 16:56:09 +00:00
Iliyan Malchev
614bb72e00 android.hardware.tests.foo@1.0::IFooCallback: use booleans
b/30853785 auto-generation for bools is broken

Change-Id: Ia1c1e1f03360d5c7e4162b24a83082bc833a8a34
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-08-14 13:37:04 -07:00
Iliyan Malchev
e96606a7df android.hardware.tests.foo@1.0: add oneway methods
b/30843534: oneway methods seem broken

Change-Id: I3e152d6bd70da60648157269a9465921afa661b3
Signed-off-by: Iliyan Malchev <malchev@google.com>
2016-08-13 23:06:34 -07:00
Steven Moreland
68c05d6a17 Merge "Added mock interfaces" 2016-08-13 00:04:28 +00:00
Hridya Valsaraju
3e32003be1 Move .hal file for FMQ tests to harware/interfaces
This is required to convert to the new hidl-gen.

Change-Id: I87a5d3d006fe80ad16d4abb63d400b3c52a2bae9
2016-08-12 13:18:29 -07:00
Martijn Coenen
aea5ad1a21 libhwbinder benchmark interface.
Change-Id: I2863272033bfe986f70f75c51412b8c1a55a84f3
2016-08-12 10:57:55 +02:00
Steven Moreland
61651882cd Added mock interfaces
Change-Id: I227bb450e714e392a3959c0d314842b9879f8b99
2016-08-11 14:38:55 -07:00