Commit graph

6128 commits

Author SHA1 Message Date
Treehugger Robot
adf8208c52 Merge "Remove subdirs" 2017-11-29 17:53:33 +00:00
Treehugger Robot
75b87347aa Merge "usb: Add owner file" 2017-11-29 17:34:32 +00:00
Treehugger Robot
efbcd7de61 Merge "Update tests makefile for change." 2017-11-29 17:04:14 +00: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
Chih-Hung Hsieh
5631258f07 Use -Werror in hardware/interfaces/biometrics/fingerprint
* Fix warning of unused function call result.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I91da207b80d0715d015195357d645f8cf324fa1e
2017-11-28 13:40:33 -08:00
Treehugger Robot
8500c095b9 Merge "Use -Werror in hardware/interfaces/automotive/evs/1.0" 2017-11-28 20:01:08 +00:00
Treehugger Robot
02804915fb Merge "Use -Werror in hardware/interfaces" 2017-11-28 19:16:23 +00:00
Treehugger Robot
7a4422d2a5 Merge "Use -Werror in hardware/interfaces/audio" 2017-11-28 18:50:14 +00:00
Treehugger Robot
5261c278b9 Merge "Use -Werror in hardware/interfaces/light/2.0" 2017-11-28 18:28:03 +00:00
Chih-Hung Hsieh
1b275a2c41 Use -Werror in hardware/interfaces/light/2.0
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: If922bef89eba554c37b74a574bb0a042cfad46c7
Merged-In: I15c4779a7c9eea39fb20746f69800dcf20670275
2017-11-28 17:13:03 +00:00
Chih-Hung Hsieh
d8d5f63fa9 Use -Werror in hardware/interfaces/automotive/evs/1.0
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Id72582780b806b27ed126a92ee6af55ca6ac4237
Merged-In: I8b8490b3e828a9a31af8f6f823d9c70e1c11c9c5
2017-11-28 17:12:44 +00:00
Chih-Hung Hsieh
75714dff3a Use -Werror in hardware/interfaces/automotive/vehicle
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I6a9233b4a2df7b6403dbabffb75cc4905d3da887
Merged-In: I851c9b2ff956b0f6d9d7a6076d495aad9038a66a
2017-11-28 17:12:22 +00:00
Chih-Hung Hsieh
b38c1aebc1 Use -Werror in hardware/interfaces/audio
* Remove unused variables, lambda function parameters..

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I28e8eb1af434f62cab6f41285b9a400f7f57cd13
2017-11-28 17:11:33 +00: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
Badhri Jagan Sridharan
2520bb2aaa usb: Add owner file
Test: build/make/tools/checkowners.py -c -v OWNERS
Change-Id: I0fe896da5eb1bf416d4c305a0188b52922a2e292
2017-11-27 20:51:09 +00:00
Treehugger Robot
d10cb041bc Merge "Additional tests for enum iteration." 2017-11-27 20:17:30 +00:00
Treehugger Robot
5a05f0e3a1 Merge "DO NOT MERGE: android.hardware.graphics.allocator@2.0 is no longer VNDK-SP" 2017-11-22 07:52:30 +00:00
Treehugger Robot
fc23356909 Merge "Fix Keymaster VTS for OpenSSL error code change" 2017-11-22 01:55:27 +00:00
Jiyong Park
3a6ecdcdaa DO NOT MERGE: android.hardware.graphics.allocator@2.0 is no longer VNDK-SP
The interface lib has been in VNDK-SP because
android.hardware.graphics.mapper@1.0 was using it. However, since the
dependency has gone [1], there is no need keep it in VNDK-SP. The
VNDK-SP set should be kept as small as possible because libs in VNDK-SP
are subject to double-loading.

Unmark the 'support_system_process' property to exclude the lib from
VNDK-SP.

Bug: 69480083
Test: walleye boots to the UI
Merged-In: I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd
Change-Id: I8722c1ac15ddf56a627a12a0c649b4d734e5e5cd
(cherry picked from commit ec44d18dbe)
2017-11-22 09:57:13 +09:00
Chih-Hung Hsieh
3f2ea62d06 Use -Werror in hardware/interfaces
* Use hidl_defaults, which has -Wall -Werror.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ifbca0e176a8e031acc27256eb46d23b89cdf1a0e
2017-11-20 10:49:11 -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
Badhri Jagan Sridharan
9272727df8 Initialize usb_count in the setup funtion.
Spurious wakeups can cause the test thread to return even if the
callback was not actually called as the usb_count isnt initialized.

Bug: 65469351
Test: mma and pushed locally to the device & tested.
--skip-preconditions --module VtsHalUsbV1_0Target
Change-Id: Ib0e838cf4a44807142eab6aa5e9df0cc462bb973
2017-11-17 12:58:34 -08:00
Ryan Campbell
ae6b2a5f1e Transfer VTS test ownership.
Remove self from test ownership and transfer to new owners as agreed.

Test: none
Bug: 69425312
Change-Id: I8b189e6f2d7076b9ee7f3bad91445ccf6c5e1767
Merged-In: I8b189e6f2d7076b9ee7f3bad91445ccf6c5e1767
2017-11-16 14:48:00 -08:00
Roshan Pius
fbe5aff5e4 wifi(vts): Skip tests if feature not supported
Bug: 69338713
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiV1_0Target -l
INFO`
Change-Id: If70050811ce87f8eff32696ecdd4d3f49646bad0
2017-11-15 13:36:47 -08:00
Zhuoyao Zhang
4fae0e4f75 Merge "Convert Renderscript Hal test to test against each of the service names." 2017-11-15 17:34:35 +00:00
Iris Chang
890d3dfe27 Fix Keymaster VTS for OpenSSL error code change
OpenSSL changes error code of large RSA data from
KM_ERROR_INVALID_INPUT_LENGTH to KM_ERROR_INVALID_ARGUMENT which causes
HidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge and 
HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLarge tests failed. 
Fix keymaster VTS to accept both the error codes.

Bug: 68289922
Test: HidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge and
      HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLargeHidlHalGTest#EncryptionOperationsTest.RsaOaepTooLarge
      and HidlHalGTest#EncryptionOperationsTest.RsaPkcs1TooLarge are
      passed after applying this modification and other Keymaster 3.0
      VTS test cases are not affected.
Change-Id: I493bfa1c6e4b69560dfae3585a416b5c3d33e215
2017-11-15 08:09:52 +00:00
Treehugger Robot
89b2d24fb0 Merge "VTS: fix RadioHidlTest.getAvailableNetworks issue" 2017-11-15 04:06:29 +00:00
Zhuoyao Zhang
674b34d42f Convert Renderscript Hal test to test against each of the service names.
Bug:64203181
Test: vts-tradefed run vts -m VtsHalRenderscriptV1_0Target
Change-Id: I40bb519f901a553363837a42ee7450db32d22e27
2017-11-13 17:45:23 -08:00
Zhuoyao Zhang
94b11ca19f Convert GraphicsMapper Hal test to test against each of the service
names.

Bug:64203181
Test: vts-tradefed run vts -m VtsHalGraphicsMapperV2_0Target
Change-Id: Icbef0f0575183033c069d8ec097ab774207c40de
2017-11-13 17:10:25 -08:00
Iris Chang
6429f0677f VTS: fix RadioHidlTest.getAvailableNetworks issue
Analysis: VtsHalRadioV1_0Target's timeout is too short for
getAvailableNetworks, because this request duration depends on NW
environment or frequency.

Suggested solution: Add a timeout parameter to wait() and default
timeout value is 5 minutes in order to avoid timeout fail due to NW
environment.

Bug: 68834032
Test: getAvailableNetworks can be passed after we apply this patch and
      test result for all other telephony 1.0 and 1.1 test cases are not
      changed.
Change-Id: Iaae71e0abacd28275d86a19264813ff209ddb79c
2017-11-14 01:08:03 +00:00
Yifan Hong
f097a56a2c Merge "Revert "Add micro-vts.sh"" 2017-11-14 00:01:39 +00:00
Yifan Hong
161cc94287 Revert "Add micro-vts.sh"
This reverts commit 0cfbe28704.

Reason for revert: Moved to internal master

Change-Id: I4adbc59799c9a6315e2b9dfa76189d22f40b8b32
2017-11-13 22:18:38 +00:00
Treehugger Robot
b796529a56 Merge "Fix library loading order in .mk files." 2017-11-13 21:58:52 +00:00
Martijn Coenen
cf426f0fea Fix library loading order in .mk files.
Test: angler boots again
Bug: 69180318
Change-Id: Id71e2348eabf5101d1fd286bbc0076154703d159
Merged-In: Id71e2348eabf5101d1fd286bbc0076154703d159
2017-11-13 20:42:40 +00:00
Yifan Hong
1338e22def Merge "Add micro-vts.sh" 2017-11-13 19:37:37 +00:00
Treehugger Robot
0f2eb8b2ee Merge changes from topic "hidl-soong-plugin"
* changes:
  Update makefiles for hidl_interface.
  Update makefiles for transitive interfaces.
2017-11-11 02:31:20 +00:00
Yifan Hong
0cfbe28704 Add micro-vts.sh
Test: ./micro-vts.sh -m VtsHalHealthV2_0TargetTest
Test: ./micro-vts.sh -m VtsHalHealthV2_0TargetTest -j0
Test: ./micro-vts.sh -m VtsHalHealthV2_0TargetTest -j -p
Test: ./micro-vts.sh -p -m VtsHalHealthV2_0TargetTest -m \
      VtsHalLightV2_0TargetTest
Bug: 64541287
Change-Id: Ieedf7d7ec65f43b0325911ae8a78e93af07ee318
2017-11-10 16:28:24 -08:00
Treehugger Robot
62ab659b28 Merge "Remove strong pointer in contructor to "this"" 2017-11-10 21:44:13 +00:00
Treehugger Robot
641fc32fc0 Merge "Use -Werror in hardware/interfaces/dumpstate/1.0/default" 2017-11-10 18:44:26 +00:00
Ruchi Kandoi
461deddb4d Remove strong pointer in contructor to "this"
Bug: 69110631
Test: NFC on/off
Change-Id: I6c0173df6b6f49e7c07e9670c827b2944c6fe23f
2017-11-10 09:32:30 -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
Steven Moreland
771dff2a2d Update makefiles for transitive interfaces.
Transitive includes accidentally added by hidl-gen
were getting added to import lists. This import isn't
actually required and is now properly excluded from
hidl-gen update makefiles.

Bug: 65055216
Test: none
Merged-In: I4fb4de8ef5547a3081cd55b3c75f6288cc518ba6
Change-Id: I4fb4de8ef5547a3081cd55b3c75f6288cc518ba6
2017-11-10 08:48:15 -08:00
Dan Willemsen
30423888e6 Replace OUT with OUT_DIR
OUT is only defined if some functions in envsetup.sh are run, which is
not the case on the build servers. I'm looking at removing the
environment variable in local builds to keep things consistent.

In this case, OUT_DIR was actually expected, not OUT, which is
equivalent to PRODUCT_OUT.

Test: none
Change-Id: I1e5e9f40727104716212d696927d1a32d7a74fab
Merged-In: I1e5e9f40727104716212d696927d1a32d7a74fab
2017-11-09 22:58:09 +00:00
Chih-Hung Hsieh
4ce5eab989 Use -Werror in hardware/interfaces/dumpstate/1.0/default
Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: Ic91f44e7410fd5bd8d1231f886a526a5e21a2eae
2017-11-08 13:36:57 -08:00
Treehugger Robot
e5fd969f19 Merge "Automatic mk -> bp." 2017-11-07 21:12:59 +00:00
Chia-I Wu
e3b1836d90 graphics: add OWNERS file to default implementations
Test: none
Change-Id: I76a3c84a1fcb61dffa4641ec2120e484752bdf5b
2017-11-07 08:53:12 -08:00
Chia-I Wu
16e8ed254d graphics: support FB HAL using HWC2OnFbAdapter
FB (framebuffer) HAL has been replaced by HWC HAL for 5+ years, but
we still support the legacy path in SurfaceFlinger.  Devices using
the legacy path cannot be Treblized.

This change allows such devices to use HIDL IComposer, by adding
support for FB HAL in the default implementation.

Test: boots hikey960
Change-Id: Ie9050bbcaac0fd5b134786f4f9f0f5075f4ebd0c
2017-11-06 15:08:07 -08:00
Chia-I Wu
8101b24ca7 graphics: require validateDisplay after onRefresh
After initialization or onRefresh, we want to make sure
validateDisplay is called before presentDisplay.

Bug: 67505273
Test: manual
Change-Id: Id876d9251586aaaf552ca82c52f8f902af364251
2017-11-06 15:08:07 -08:00