Commit graph

151 commits

Author SHA1 Message Date
Arthur Ishiguro
74c19f576e Update ContextHub VTS OWNERS files
Bug: 166845383
Test: None
Change-Id: If47c3360f47122c07f78934ff90153ff54b14a40
2020-10-08 15:11:19 -07:00
Arthur Ishiguro
d06c45e008 Add VTS tests for Context Hub HAL 1.2
Also updates the compatibility matrix.

Bug: 166845383
Test: Run test on device with HAL 1.2 implemented, verify pass

Change-Id: Iac53e755cfa38fbd1322421279475de76b4bb572
2020-10-07 13:50:11 -07:00
Arthur Ishiguro
46c2bd0439 Adds default (mock) Context Hub HAL 1.2 impl
Also refactors common code.

Bug: 166845383
Test: Compile only (VTS test coming up in future CL)
Change-Id: Iae6cf09e2fffb854af61c29e6004ceb062a892b3
2020-10-07 13:49:28 -07:00
Arthur Ishiguro
08596b4629 Adds Context Hub HAL v1.2
Add support for extended setting changes.

Bug: 166845383
Test: Compile
Change-Id: I912f01447e4d0e2f345620fa1b5599f50cc9a4f8
2020-10-07 13:47:26 -07:00
Amy Zhang
5232ff2074 Update language to comply with Android’s inclusive language guidance am: 205d0f8bd3 am: ddcad5acbf am: 5179589d2f am: c9db1e7a9a am: acfc8794e4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1380693

Change-Id: I99a4d84583b3452e29557dc3471a7d181ab7c9ca
2020-07-30 22:25:38 +00:00
Amy Zhang
5179589d2f Update language to comply with Android’s inclusive language guidance am: 205d0f8bd3 am: ddcad5acbf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1380693

Change-Id: Id56ea7e59dd13d4d084cfa474ea8097fb25201b3
2020-07-30 21:24:58 +00:00
Amy Zhang
205d0f8bd3 Update language to comply with Android’s inclusive language guidance
See https://source.android.com/setup/contribute/respectful-code for reference


BUG=161896447

Change-Id: I93461b526cd69f9ebfa876edc6445df29746968e
2020-07-30 17:53:54 +00:00
Dan Shi
ff985a85a8 Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I58bc808a82b2128bb8774f762f9b9fcecd2614fb
2020-07-29 09:46:36 -07:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
Jooyung Han
b0907a6bb8 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
2020-07-02 09:18:17 +09:00
Dan Shi
eb5f33e0ef Rename vts-core to vts am: ba894f81db am: 55d110bcd0
Change-Id: Ifc137320af42febc24937f09e5baa4c5a95ac1c4
2020-04-07 23:56:42 +00:00
Dan Shi
ba894f81db Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 15:17:02 -07:00
Dan Shi
3a8a650c61 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 18:03:49 +00:00
Arthur Ishiguro
85c4ad2351 Starts default Context Hub HAL in context_hub group
Also adds group to default sensors HAL.

Bug: 149981913
Test: Compile
Change-Id: Ib9178dd9ad0a92821cfebe82f09e8819b42a42f7
2020-02-25 18:01:37 -08:00
Anthony Stange
c64065c557 Remove oneway designator on contexthub HAL 1.1
According to the linter, the oneway designator should only be used on an
interface that only has oneway methods as it can have implications on
the threading model (among other things).

Bug: 149758462
Test: atest VtsHalContexthubV1_0TargetTest VtsHalContexthubV1_1TargetTest
Change-Id: I969ab2ead1e30f7f4cfa62e292a22833ec5e8471
2020-02-19 19:29:19 +00:00
Brian Duddie
01eb01a230 Add VTS tests for Context Hub HAL 1.1
Extract some common functionality and add a new test for the newly-added
method in HAL v1.1.

Bug: 135951924
Test: atest VtsHalContexthubV1_0TargetTest \
            VtsHalContexthubV1_1TargetTest
Change-Id: I1cd335d4972bc3242245b2379a7cfa42d1c683a6
2020-02-18 10:20:24 -08:00
Brian Duddie
af8a2f9394 Run clang-format on context hub 1.0 VTS
Test: n/a
Change-Id: I80eb0a7c0b722ede4ed84087a7b5e4ed318e5fd5
2020-02-18 10:20:24 -08:00
Brian Duddie
a7bf0d20d3 Add default (mock) Contexthub HAL 1.1 impl
Current implementation exposes a mock context hub, but with no nanoapps.

Bug: 135951924
Test: compile only (will be covered by VTS in a follow-up)
Change-Id: I7a13527f303ce1bcacac8c6be9f081b0838cdc68
2020-02-18 10:20:10 -08:00
Anthony Stange
7a04231aaa Create Contexthub HAL 1.1
The HAL 1.1 update allows the contexthub framework to notify the HAL of
any settings changes the user makes.

Bug: 135951924
Test: compile
Change-Id: Ia523c89b2e546ec169eb4997a0af7f471c8185b5
2020-02-18 09:30:22 -08:00
Dan Shi
e10b1d6ea5 Convert VtsHalContexthubV1_0Target to be parameterized test
Removing dependency from VTS infrastructure so that test can run
standalone, for instance with atest/TEST_MAPPING. Once this is
done for every test, VTS can use the core testing infra.

Bug: 142397658
Test: atest VtsHalContexthubV1_0TargetTest
Change-Id: Ib2da09dc2898f4f0503fa7c5003a19421fbeef91
2019-12-16 09:45:19 -08:00
Brian Duddie
02de647c06 Update contexthub OWNERS
Test: n/a
Change-Id: I2d23999f1dccf91cfcb21e612740f67f7beb7e58
2019-10-03 01:26:00 +00:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00
Felix
551b8d15ce Add interface info to .rc files
Signed-off-by: Felix <google@ix5.org>
Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
2019-06-25 20:00:07 +02:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Chih-hung Hsieh
df66e3cb29 Merge "Fix performance-for-range-copy warnings" am: d01f7050ac am: 51e835ce22
am: 86fefab5e9

Change-Id: Ib139d710d47a7a51e24ba8ba582b252f5ff6e244
2018-12-17 14:09:52 -08:00
Chih-Hung Hsieh
65ab67312b Fix performance-for-range-copy warnings
Bug: 30413223
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,performance*
Change-Id: I1b76a22eab100a31e77048626e48169fe7eeaf92
2018-12-17 19:57:21 +00:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
Brian Duddie
e11cca0ac7 Update OWNERS for contexthub
Reflect changes in team.

Test: n/a
Change-Id: I2fbf83f6fce56e3886a7c09128f1516f38c8cde3
2018-08-09 12:07:04 -07:00
Zhuoyao Zhang
f78a544132 Merge "Convert contexthub hal test to use VtsHalHidlTargetTestEnvBase" am: bd98b61b2c am: 5cc68bc013
am: dc117b5c60

Change-Id: I674b67e839fc172961ed8ef8db6ed110ce33dbe9
2018-02-14 23:07:33 +00:00
Zhuoyao Zhang
ebae647f5c Convert contexthub hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalContexthubV1_0Target

Change-Id: Iaf790e6d0fb96b421a1cd29417832ffaf9d01091
2018-02-10 12:37:48 -08:00
Arthur Ishiguro
cce554ec47 Handles transactions started immediately after completion
Unset mIsTransactionPending before invoking handleTxnResult
to allow service to start a new transaction.

Bug: 70387233
Test: Run a sample application that concurrently loads and unloads 2
nanoapps, verify both transactions succeed.

Change-Id: I465882dd8fd8fdd89b959642f6fdc2e452ce61a6
2017-12-11 18:05:02 +00:00
Arthur Ishiguro
4dc7e049f0 Assigns broadcast endpoint ID to messages to host
Bug: 70158191
Bug: 70339559
Test: Compile and flash on sailfish-userdebug, run CHQTS and verify pass
Change-Id: I3f59560e25faa3627dcd803e3cc6d9cbc30c2645
2017-12-08 08:35:18 -08:00
Steven Moreland
e5c6548346 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:23:43 -08:00
Steven Moreland
fcca4e23b7 Remove subdirs
Removing whenever I see these in code reviews.

Test: none
Merged-In: I4322f533a837d55618ec2ed2125e8966ace9d61d
Change-Id: I4322f533a837d55618ec2ed2125e8966ace9d61d
2017-11-28 14:22:43 -08:00
Xin Li
bb9e38fef9 Merge commit '1a06284b24f5eb7bb9c1fea0817da8898b3b1bff' from
oc-mr1-dev-plus-aosp into stage-aosp-master

Change-Id: I2a044eb8c9981d0a8198ffe2df55559afbd76341
Merged-In: I4fb9f18884f7ef21162015a0032c4431444f7025
2017-11-14 12:08:38 -08:00
Steven Moreland
8db261bc99 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 10:00:18 -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
Arthur Ishiguro
28df640ff4 Creates a dummy pointer for empty messages
Changes to Java HIDL at ContextHubService caused empty messages with
sendMessageToHub to be populated with null pointers. Work around this by
creating a dummy pointer in this case.

Bug: 69065562
Test: Compile on sailfish-userdebug, run CHQTS and verify pass
Change-Id: I763cbf9696f6dc04637add3ed1da01f9c32d458b
2017-11-09 10:14:15 -08:00
Chih-Hung Hsieh
d03992715c Use -Werror in hardware/interfaces am: cd76985909 am: 401b0b9ed6
am: a639b431ea

Change-Id: I83b85c42b322bcef3be0e7b41addb3239cd82dc5
2017-10-26 03:26:08 +00:00
Chih-Hung Hsieh
a639b431ea Use -Werror in hardware/interfaces am: cd76985909
am: 401b0b9ed6

Change-Id: Idbe41efd290e956ff0fd71b6fe392951edf21582
2017-10-26 03:23:38 +00:00
Chih-Hung Hsieh
cd76985909 Use -Werror in hardware/interfaces
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I2b8572a3480434f9dad2ae4f8a608ed82281cc68
2017-10-25 16:20:45 -07:00
Steven Moreland
1d7374c5e1 Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1
am: 116161d94e

Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
2017-10-11 16:39:21 +00:00
Steven Moreland
116161d94e Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1
am: 6c811964a1

Change-Id: I85ccbb4a15cd18938607f5bca4e065b9d7e0182b
2017-10-11 16:31:07 +00:00
Steven Moreland
0fff75dee1 Update for Soong java makefiles.
am: c3e80fa01e

Change-Id: Ia8835f9c95bd98a96f5fd3aff11191e7d3726fb9
2017-10-11 16:23:54 +00:00