Commit graph

18762 commits

Author SHA1 Message Date
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
Iliyan Malchev
0aa2e33c05 Merge "interfaces: regenerate makefiles" am: d66bb6fb5c am: 502a8ead69 am: 293c94dba5
am: 2a67c396a3

Change-Id: I89afdddfec43173e2605170e07f5540a2e998aca
2016-09-13 05:25:26 +00:00
Iliyan Malchev
2a67c396a3 Merge "interfaces: regenerate makefiles" am: d66bb6fb5c am: 502a8ead69
am: 293c94dba5

Change-Id: I67a632587d65880a079f8901ae7addcb7a79e52c
2016-09-13 05:01:52 +00:00
Iliyan Malchev
293c94dba5 Merge "interfaces: regenerate makefiles" am: d66bb6fb5c
am: 502a8ead69

Change-Id: I2949fe466d5300ea2a9396fc34fd310656b116f1
2016-09-13 04:59:22 +00:00
Iliyan Malchev
502a8ead69 Merge "interfaces: regenerate makefiles"
am: d66bb6fb5c

Change-Id: I7fff97e33676c653762371e70cc00b4e2bdb4c2c
2016-09-13 04:56:52 +00:00
Treehugger Robot
d66bb6fb5c Merge "interfaces: regenerate makefiles" 2016-09-13 04:52:48 +00:00
Andreas Huber
b3e7ca0074 Merge "Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]" am: 3d49850a49 am: 4d3949e910 am: 5ec9de5bbf
am: d22f9adb7a

Change-Id: I3b3cb1d908e67850e21b77322a944a9d9d2cc323
2016-09-12 18:31:09 +00:00
Andreas Huber
d22f9adb7a Merge "Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]" am: 3d49850a49 am: 4d3949e910
am: 5ec9de5bbf

Change-Id: I2acd3518057ac60598ccdecd0bc8390337af9925
2016-09-12 18:06:06 +00:00
Andreas Huber
5ec9de5bbf Merge "Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]" am: 3d49850a49
am: 4d3949e910

Change-Id: I137d2b56d7aab969fac12f2662e42dc3e24a8987
2016-09-12 18:02:41 +00:00
Andreas Huber
4d3949e910 Merge "Java test interface extended to verify vec<STRUCT-TYPE> and STRUCT-TYPE[]"
am: 3d49850a49

Change-Id: Ibff5658abbf71276353fe8ba5fd4bdc9b381e57c
2016-09-12 17:59:31 +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
Andreas Huber
45da73c012 WireMQDescriptor => MQDescriptor am: 4a99f3afae am: 3109b325f6 am: 741dbd4efd
am: 44bf2e3bf7

Change-Id: I7807f2ca73db04e37530abaa74c5b4753c56907d
2016-09-10 01:32:41 +00:00
Andreas Huber
44bf2e3bf7 WireMQDescriptor => MQDescriptor am: 4a99f3afae am: 3109b325f6
am: 741dbd4efd

Change-Id: I411e55718003e3bfd38eccb44fb8035488231583
2016-09-10 01:21:23 +00:00
Andreas Huber
741dbd4efd WireMQDescriptor => MQDescriptor am: 4a99f3afae
am: 3109b325f6

Change-Id: I78244ba778bb13bfe354f1824d4e21ea5bf2a652
2016-09-10 01:18:21 +00:00
Andreas Huber
3109b325f6 WireMQDescriptor => MQDescriptor
am: 4a99f3afae

Change-Id: I84c200887c48b36e310eae710e0126a5c29d179e
2016-09-10 01:15:21 +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
c5aead747b android.hardware.tests.msgq@1.0: modify ITestMsgQ am: da96fb2a94 am: d529d22e11 am: 2d5616e9bf
am: 40cd3a7b67

Change-Id: I897de354ff020261f5e8c0cdaa7cd1bbbde7e9b6
2016-09-09 05:18:04 +00:00
Iliyan Malchev
40cd3a7b67 android.hardware.tests.msgq@1.0: modify ITestMsgQ am: da96fb2a94 am: d529d22e11
am: 2d5616e9bf

Change-Id: I6ee0b51f89cba185b1dc8224dcfecb14edcc15dd
2016-09-09 05:15:34 +00:00
Iliyan Malchev
2d5616e9bf android.hardware.tests.msgq@1.0: modify ITestMsgQ am: da96fb2a94
am: d529d22e11

Change-Id: I16bb702ecbfa8f94e8421e17090418a52c107439
2016-09-09 05:13:05 +00:00
Iliyan Malchev
d529d22e11 android.hardware.tests.msgq@1.0: modify ITestMsgQ
am: da96fb2a94

Change-Id: Iee6a8ef2e1d183cbac53a96d29b449fd99cf9340
2016-09-09 05:10:33 +00: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
53f78c7ce6 interfaces: update makefiles am: b350caf9dc am: 866e19d4c3 am: c697403a93
am: 603f5df345

Change-Id: I37d2bb16c32863e3688880a55289a5db4b5a98f9
2016-09-08 00:49:58 +00:00
Iliyan Malchev
603f5df345 interfaces: update makefiles am: b350caf9dc am: 866e19d4c3
am: c697403a93

Change-Id: I5373afd5e4c38dd14ad8ba740d3c0f809ccbbca4
2016-09-08 00:47:58 +00:00
Iliyan Malchev
c697403a93 interfaces: update makefiles am: b350caf9dc
am: 866e19d4c3

Change-Id: Ia8436b263f6889b93f663cd039f248e1078e45a5
2016-09-08 00:44:58 +00:00
Iliyan Malchev
866e19d4c3 interfaces: update makefiles
am: b350caf9dc

Change-Id: Id3547a681a117406e931efe31da2d0b1bebbb33f
2016-09-08 00:41:00 +00: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
db63165c0e Merge "Move .hal for FMQ benchmark code to hardware/interfaces." 2016-08-15 23:53:34 +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