Tri Vo
2883486706
Merge "VTS tests now static link to HAL def libs. #2 " into oc-mr1-dev
2017-08-10 17:45:07 +00:00
Tri Vo
0c2ce357b1
VTS tests now static link to HAL def libs. #2
...
And use VtsHalTargetTestDefaults.
Bug: 64040096
Test: crop out all non-affected tests from vts-hal-hidl.xml and run
vts-tradefed run commandAndExit vts-hal-hidl --skip-all-system-status-check
--skip-preconditions
2 failures, same as without this change:
GatekeeperHidlTest.DeleteAllUsersTest
GatekeeperHidlTest.DeleteUserTest
Change-Id: I8f6995e9536a9aefe283ee3effec9f5a7f03b620
2017-08-10 17:44:57 +00:00
Todd Poynor
8d95f2e631
thermal: IThermal V1.1, add methods to send thermal throttling events
...
Add IThermalCallback and IThermal::registerThermalCallback() method.
Frameworks code calls this method to register a callback used by the
IThermal HAL implementation to send thermal events to the framework
ThermalService.
Bug: 30982366
Test: VtsHalThermalV1_1Target on marlin
manual test on marlin using marlin 1.1 HAL with modified
thermal-engine.conf and temporary debug code for notification
Change-Id: Ib49ad93a9495e3af515fced4e46f20186661fe07
(cherry picked from commit cf964d79c1
)
2017-08-07 23:11:48 +00:00
Justin Yun
608d773ef8
Update make file for vndk enabled.
...
Update the Android.bp generated with hidl-gen.
Test: build with and without BOARD_VNDK_VERSION=current
Bug: 63866913
Change-Id: I1a9db1df49e0f13c5790da2b118ae9ec63ba34a7
2017-08-04 14:12:23 +09:00
Tri Vo
f5d136c231
Update Android.bp HIDL makefiles
...
Allow HAL definition libs to be static.
Bug: 32920003
Bug: 64040096
Test: update-all-google-makefiles.sh
Change-Id: I1483d572bea6799717d1614fb7d52fe225e31104
2017-08-03 00:30:01 +00:00
Steven Moreland
7708449766
Update makefiles. (2/2) am: 76cfb84140
...
am: f203167814
Change-Id: I1f13401266f3c2f78c627088b09c79cd7c8d0276
2017-05-22 17:29:04 +00:00
Steven Moreland
f203167814
Update makefiles. (2/2)
...
am: 76cfb84140
Change-Id: I24d21438a5b2f447d2160929c6ff6e17b2b66820
2017-05-22 17:15:20 +00:00
Steven Moreland
76cfb84140
Update makefiles. (2/2)
...
Adds default configuration for all hals.
Bug: 38415912
Test: pass
Change-Id: Idd1f3a2b7b16ad956d31784a513e93a066cdd02e
2017-05-19 15:54:03 -07:00
Steven Moreland
d09cf863da
Update makefiles for c++-sources and c++-headers. (2/2) am: bc71124120
...
am: a32ebce372
Change-Id: Ic1dd8f98e72656bc12a6e5224e541f75afb79daa
2017-05-11 01:38:14 +00:00
Steven Moreland
a32ebce372
Update makefiles for c++-sources and c++-headers. (2/2)
...
am: bc71124120
Change-Id: Icf36068a4d863a8520854c7a83e51f960c188e12
2017-05-11 00:48:55 +00:00
Steven Moreland
bc71124120
Update makefiles for c++-sources and c++-headers. (2/2)
...
Test: pass
Bug: 38174080
Change-Id: Icad451f9f9ad5f46412356a4171a8a1222f8e545
2017-05-09 19:58:43 -07:00
Steven Moreland
5c63b11f76
Remove redundant dependencies
...
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.
Test: links
Bug: 33276472
Merged-In: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
2017-05-02 15:29:30 -07:00
Steven Moreland
2cd0d42d72
Remove redundant dependencies
...
android.hidl.base@1.0 and android.hidl.manager@1.0 are built into libhidltransport.
Test: links
Bug: 33276472
Change-Id: I08aaad80f7e2fc262aa3a8b66fe932e8133a928d
2017-05-02 10:17:28 -07:00
Hung-ying Tyan
346599da33
Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev am: 206e38a4e8
...
am: 6ca5662350
Change-Id: Ie676841b6d88abfc65cb9ce64777e9daf11c855b
2017-04-18 01:19:35 +00:00
TreeHugger Robot
206e38a4e8
Merge "Remove dependency of libhardware_legacy from HAL services" into oc-dev
2017-04-18 00:26:33 +00:00
Hung-ying Tyan
4f1bbf7074
Remove dependency of libhardware_legacy from HAL services
...
It is not used by these services.
Bug: 33241851
Bug: 37305530
Test: built and tested on sailfish
Change-Id: I1f3f51981d7dfcf27e18d9495c747b7662867d31
2017-04-15 10:17:16 +08:00
Andreas Huber
6fa374ad30
Changed the naming scheme for Treble java libraries (both static and dynamic)
...
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java
Bug: 37207894
Test: make
Change-Id: I177f4cfd42f635aaf096107af8309d1a82ed41c0
Merged-In: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 15:23:46 -07:00
Andreas Huber
e6e54801c1
Changed the naming scheme for Treble java libraries (both static and dynamic)
...
android.hardware.foo@1.0-java => android.hardware.foo-V1.0-java
Bug: 37207894
Test: make
Change-Id: I8b91881dfaf507c0d852d56ebbb53ff0987e5a34
2017-04-13 14:28:05 -07:00
Steven Moreland
d5bf55bd5a
Merge changes from topic 'hidl-vendor-available' into oc-dev am: 17f0c0dde7
...
am: fce6b7f0d9
Change-Id: Ic95bee140e0bbbf094e89dcc7d0d99c30966786c
2017-04-12 22:54:17 +00:00
Steven Moreland
3b36a83a2e
Update makefiles (2/2).
...
Test: pass
Change-Id: Ic7e6289c7b69785491708ce0acbb657f4c704229
2017-04-11 09:58:03 -07:00
Polina Bondarenko
2ff86c4bcf
thermal: fix VTS test for default implementation
...
Bug: 36097196
Test: vts
Change-Id: I67cceb672a9ba67ae760019c0521d31544416882
2017-04-05 16:54:57 +02:00
Andreas Huber
40d3a9bd8c
Convert all comments into "doxygen-ready" comments.
...
Bug: 36453077
Test: mma
Change-Id: I0b1f77dfae5d2258969e33d85ecf45401ffbdfaa
2017-03-29 08:53:58 -07:00
Steven Moreland
561b602a99
Update makefiles for hwtypes.h
...
Test: pass
Change-Id: I8e17eb8fec5d2f04c526476a866c8dd54ccb556c
2017-03-28 15:18:20 +00:00
Steven Moreland
c8e2b3f7c5
Remove viral readproc group dependency.
...
This has been copy pasted and isn't actually required.
Test: all hals manually tested to work on internal marlin (which have them binderized).
Note: tv hals not tested (and they never have been). Filed b/36562029
Note: for thermal hal, could only run VTS/check logs for errors.
Test: lshal outputs proper stuff
Fixes: 31928447
Change-Id: Id1be584dc0fa2d70e9189b922335146bf6d1382d
2017-03-23 19:49:37 +00: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
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
Tri Vo
d94a7d2df9
Remove .vts spec files
...
Test: mmma hardware/interfaces
Change-Id: Idae97ce60a6368cfa685ae6b2d71b9ad163e8605
2017-02-22 12:53:52 -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
Ryan Campbell
2caf0a60f3
Remove coverage flags from tests.
...
Remove unnecessary coverage flags from HAL tests.
Bug: 32749731
Test: none
Change-Id: I7e4e3bce2d9d444bfa8475c140bce2ee7e3b0c0d
2017-02-14 16:50:34 -08:00
Zhuoyao Zhang
f008f8fdc4
Merge "Update .vts files on master based on the latest .hal file and hidl-gen"
2017-02-14 18:51:27 +00:00
Zhuoyao Zhang
3bef939f94
Update .vts files on master based on the latest .hal file and hidl-gen
...
Test: mma
Change-Id: I9558f300505db83e26f7c241c5cf729cd005a07b
2017-02-13 18:03:06 -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
Andreas Huber
d38f147c35
Updated makefiles
...
Java intermediates are now created in the common rather than the device-
specific generated sources subdirectory.
Bug: 33842609
Test: make
Change-Id: I16af4cd19bf0b24baa0ad9ebfdb86b4d959c8672
2017-02-09 17:20:45 -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
Chris Phoenix
5d1dc850a3
thermal HAL uses "default" service name
...
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.
Test: builds
Bug: 33844934
Change-Id: If9599b83526779cc38b1550698487f6240e26e45
2017-02-06 10:57:36 -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
b21bdc8b9f
use the device's default binder/passthrough mode in vts tests
...
Test: mma
Change-Id: I3f2775873f5b6c091f70413adbdf7b7ae298ff44
2017-01-25 15:08:12 -08:00
TreeHugger Robot
9968f30f01
Merge "Remove useless Android.mk files."
2017-01-19 21:37:37 +00:00
Polina Bondarenko
93a2d68efe
thermal: substitute undefined temperature by NAN.
...
Bug: 34107726
Test: vts, cts
Change-Id: Ia6e9e83691e8b6b5e2760579e1131a5994a48572
2017-01-19 19:29:36 +00:00
Polina Bondarenko
ea076f2503
Revert "thermal: add getUndefinedTemperature function."
...
This reverts commit 3c053c66c9
.
Change-Id: Ie1d7b80052d26575544d2039b59171fe03b3c8b9
2017-01-19 13:58:14 +00:00
Steven Moreland
66816de87f
Remove useless Android.mk files.
...
Test: none
Change-Id: I99f4d3e5b943742009e366b13bee2c32e38a3fba
2017-01-18 11:49:08 -08:00
Polina Bondarenko
3c053c66c9
thermal: add getUndefinedTemperature function.
...
Bug: 34107726
Test: cts, vts
Change-Id: I8a3794158fbc0c9518a26f4616263aa464b43924
2017-01-18 14:39:07 +01: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
TreeHugger Robot
2cfe8fcb2b
Merge "liblog: use log/log.h when utilizing ALOG macros"
2017-01-12 18:58:25 +00:00
Ryan Campbell
f276d1923e
Remove coverage from test configurations.
...
Remove converage from test configs or entire config if not used
to define other test params. Tested each one individually to ensure
coverage still works.
Test: run vts -m (each test affected)
Change-Id: Ic1495a38ae9d1b32e851bc646f9c8e778eee2df1
2017-01-11 16:20:44 -08:00
Mark Salyzyn
3ff5260601
liblog: use log/log.h when utilizing ALOG macros
...
Test: compile
Bug: 30465923
Change-Id: I67046a75be057e7905570748a1ed6bfd03c0e1c8
2017-01-11 15:47:40 -08:00
Yifan Hong
a18049ad13
Bp/nFoo -> Bp/nHwFoo.
...
Test: mma
Bug: 33554989
Change-Id: I4b3f852d20fdfc49f2da671dd3c12d618ffb4140
2017-01-11 13:14:59 -08:00
Zhuoyao Zhang
c57e359d1a
Update Android.bp and vts/Android.mk for Hidl HALs
...
* Using update-makefiles.sh to add make rule for profiler in Android.bp
* Remove make rule for profiler in vts/Android.mk.
Bug:31930023
Test: mma
Change-Id: Iea834d8610501c2fce63f65742db31bafb85c0b8
2016-12-22 17:09:12 -08:00
Zhuoyao Zhang
d0a2845583
Another fix of ThermalHidlBasicTest config.
...
Test: run vts -m ThermalHidlTargetTest
Change-Id: I5697b527e0443d6788e3b533290a0e4b65d38dcc
2016-12-22 10:57:13 -08:00
Zhuoyao Zhang
f5fda216e2
Fix ThermalHidlBasicTest config.
...
Test: make vts.
Change-Id: Ia9213089984ce2f97cb70a75e007066e796ad0b2
2016-12-22 10:46:23 -08:00
TreeHugger Robot
187508a63a
Merge "Build target-side Thermal test with coverage."
2016-12-22 08:57:49 +00:00
Keun Soo Yim
516e8193b3
regen makefiles and delete old vts driver build rules
...
Test: mma
Change-Id: I71c4fd68ea6d7a2fac2457b87c82c10490dfb05e
2016-12-21 13:25:46 -08:00
Polina Bondarenko
8200a153a6
Build target-side Thermal test with coverage.
...
Instrument Thermal test with coverage so that coverage can be collected
on Thermal implementation.
Test: make vts
Change-Id: I01e4bdf42351034d5fa0a0ff32848f33e0db3980
2016-12-21 10:49:52 +01:00
Keun Soo Yim
b62dc3e6ee
use the new oneshot vts driver generation build rule
...
Test: mma
Change-Id: Ib15399d6e7d5049b7a1912623ac2d95de9dfba73
2016-12-16 13:40:33 -08: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
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
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
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
TreeHugger Robot
32094ca29f
Merge changes I0b1a0979,I4aa89a39
...
* changes:
Added AOSP license headers.
Remove HIDL_GENERATED from things written by hand.
2016-11-30 18:15:48 +00:00
Yuexi Ma
aa61067c14
enable profiling directly from AndroidTest.xml
...
Test: local
Change-Id: If13be820766f54ff154f350cbbacbab9dffe07d2
2016-11-29 18:51:03 -08:00
Steven Moreland
9f8b5c7b16
Added AOSP license headers.
...
This is only for hals which are currently only in master. Separate
commit for hals currently in AOSP.
Test: pass
Change-Id: I0b1a09798c49f4f0141f36a322c4749e47eded03
2016-11-29 23:07:09 +00:00
Steven Moreland
d6e4f03acf
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.
Change-Id: I4aa89a39907024aa9525df71ff3715979f431357
Similar commit: https://android-review.googlesource.com/#/c/305996/
Test: pass
2016-11-29 15:05:31 -08:00
Keun Soo Yim
84b91e04f8
Merge "increase the thermal hal timeout to 5m"
2016-11-24 01:26:31 +00:00
Steven Moreland
bbff14d4bb
Merge "Update makefiles for logging."
2016-11-22 17:25:36 +00:00
Keun Soo Yim
69431a4f68
increase the thermal hal timeout to 5m
...
Test: vts-tradefed; run vts-hal-hidl
Change-Id: I66e36d24a8a55b2b61797b8cadc18b5891d5a051
2016-11-22 08:58:18 -08: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
Yifan Hong
6b920e43d3
Split libhidl into base and transport.
...
Bug: 32756130
Test: mma
Change-Id: Id21cf23abe2910f26bb7895511862443b93dc112
2016-11-18 00:00:54 -08:00
Polina Bondarenko
59d05ebc9e
Add Thermal HAL VTS
...
Bug: 32022734
Test: vts
Change-Id: I29ecd8b9da8275674343bce73c9f9deb20692bf2
2016-11-17 16:15:45 +01: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
TreeHugger Robot
9ec3b413a9
Merge "Emit android.hardware.thermal@1.0-java-constants library"
2016-10-26 19:40:40 +00:00
Steven Moreland
69727778a7
Stop all these merge conflicts.
...
Test: mma -j64
Change-Id: I319198af32adf1fef180c5c2c22ba4b360fa7609
2016-10-26 12:04:37 +02:00
Andreas Huber
dc7e8c2dcd
Emit android.hardware.thermal@1.0-java-constants library
...
Change-Id: I61a81d21558bd6d72ad2e9f18e446d0687793d67
Test: make, visual inspection
2016-10-24 15:20:31 -07:00
Steven Moreland
22566b8913
Use defaultPassthroughServiceImplementation.
...
Bug: 32279541
Bug: 32282345
Test: mma
Change-Id: Ic0222963c99bea41de7637e5f20c19d7c541cb97
2016-10-21 19:33:06 +00:00
Polina Bondarenko
3fbeb9f15e
thermal: typos in HAL.
...
Bug: 32238879
Test: m
Change-Id: I84ea300a310f1901c6836d4862c6540c41ef5764
2016-10-19 13:55:45 +02:00
Polina Bondarenko
254e2fe9b9
thermal: add hal objects.
...
Converted thermal HAL to HIDL,
Added default implementation.
Bug:32022261
Test: Compiles
Change-Id: I92d164b58464f2dee9d8d17affe57fb6af4c1c08
2016-10-14 13:44:09 +02:00