OSDN Git Service

android-x86/hardware-interfaces.git
7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Mon, 3 Apr 2017 17:15:13 +0000 (17:15 +0000)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
am: b8810a9e5d  -s ours

Change-Id: I7e30e75e9d79d67eb86b9f9493eabcd0e1fe50a5

7 years agoMerge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3" am: 177171f305...
Yuexi Ma [Sun, 2 Apr 2017 07:42:34 +0000 (07:42 +0000)]
Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3" am: 177171f305 am: ed25e56551
am: 6d46c3292d

Change-Id: I5d3e543dc6e2d6ad0b56b06c140bce074ced3cae

7 years agoNFC VTS test use VtsHalHidlCallbackBase for callback wait and notify am: bfefc5ef10...
Yuexi Ma [Sun, 2 Apr 2017 07:42:31 +0000 (07:42 +0000)]
NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify am: bfefc5ef10 am: 410d04e44c
am: 02ae3234ac

Change-Id: Ifcb7d8a98f03d5820a5fe6246245a667bd59d3d6

7 years agoMerge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3" am: 177171f305
Yuexi Ma [Sun, 2 Apr 2017 07:39:02 +0000 (07:39 +0000)]
Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3" am: 177171f305
am: ed25e56551

Change-Id: I68e0e2baf6c441671006e5f2cb3377cd88da82b8

7 years agoNFC VTS test use VtsHalHidlCallbackBase for callback wait and notify am: bfefc5ef10
Yuexi Ma [Sun, 2 Apr 2017 07:39:00 +0000 (07:39 +0000)]
NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify am: bfefc5ef10
am: 410d04e44c

Change-Id: Ib2afe351bf9d3a0dfbad84fcc32cd32648e589b2

7 years agoMerge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3"
Yuexi Ma [Sun, 2 Apr 2017 07:36:32 +0000 (07:36 +0000)]
Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3"
am: 177171f305

Change-Id: Iafecfba9ace2188d2a21f927b6afe2691ebfcdbc

7 years agoNFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Sun, 2 Apr 2017 07:36:30 +0000 (07:36 +0000)]
NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
am: bfefc5ef10

Change-Id: I0b40ae10c42b0e0a4f0696792c707ba0f990aadf

7 years agoMerge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3"
Treehugger Robot [Sun, 2 Apr 2017 07:30:43 +0000 (07:30 +0000)]
Merge "Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3"

7 years agoNFC VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Thu, 30 Mar 2017 01:11:01 +0000 (18:11 -0700)]
NFC VTS test use VtsHalHidlCallbackBase for callback wait and notify

VtsHalNfcV1_0TargetTest uses VtsHalHidlCallbackBase.
Callback class extends VtsHalHidlCallbackBase and use waitForCallback and notifyFromCallback

The original NFC test contains the following use cases:
  * Callback notify happens before wait
  * Multiple waiting in serial
The modified version added the following use cases:
  * Wait for specific callback function
  * Passing callback arg data along wait and notify functions

Bug: 36036059
Test: make VtsHalNfcV1_0TargetTest, adb push & adb shell
Change-Id: Ic6668a18254661d07c4ff37309cd96ea5f786d29

7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Wed, 29 Mar 2017 23:49:59 +0000 (16:49 -0700)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify

VtsHalBluetoothV1_0TargetTest uses VtsHalHidlCallbackBase.
Callback class extends VtsHalHidlCallbackBase and use waitForCallback, notifyFromCallback, and setWaitTimeout

The original Bluetooth test contains the following use cases:
  * Wait for specific callback
  * Set timeout for specific callback waiting
The modified version supports the above use cases.

Bug: 36036059
Test: Test pass locally
Change-Id: I961baaf7f1b09fa9c134629cc7280565a2664ed5
(cherry picked from commit 51d023c48ec6cf709e756ceed62c11b25fb0c085)

7 years agoMerge "Change sytle of radio and sap tests to clang google" into oc-dev
Yuexi Ma [Sat, 1 Apr 2017 02:25:53 +0000 (02:25 +0000)]
Merge "Change sytle of radio and sap tests to clang google" into oc-dev
am: 3368520bbc

Change-Id: Idacf0a4ca669fa23d325b62be3a389a393210a4e

7 years agoMerge "Change sytle of radio and sap tests to clang google" into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 02:22:27 +0000 (02:22 +0000)]
Merge "Change sytle of radio and sap tests to clang google" into oc-dev

7 years agoMerge "Update DRM makefile." into oc-dev
Ryan Campbell [Sat, 1 Apr 2017 01:03:07 +0000 (01:03 +0000)]
Merge "Update DRM makefile." into oc-dev
am: 7c09a31639

Change-Id: I9c63fd23486a6e0a25b2fceee138343f0453d215

7 years agoMerge "Add VTS tests for EVS HAL" into oc-dev
Scott Randolph [Sat, 1 Apr 2017 00:55:40 +0000 (00:55 +0000)]
Merge "Add VTS tests for EVS HAL" into oc-dev
am: 35145b31bd

Change-Id: Iccc44f209348eddedd8586ee05f040c9e563572f

7 years agoMerge "Update DRM makefile." into oc-dev
TreeHugger Robot [Sat, 1 Apr 2017 00:54:06 +0000 (00:54 +0000)]
Merge "Update DRM makefile." into oc-dev

7 years agoMerge "Add VTS tests for EVS HAL" into oc-dev
Scott Randolph [Sat, 1 Apr 2017 00:49:20 +0000 (00:49 +0000)]
Merge "Add VTS tests for EVS HAL" into oc-dev

7 years agoChange sytle of radio and sap tests to clang google
Yuexi Ma [Thu, 30 Mar 2017 17:58:23 +0000 (10:58 -0700)]
Change sytle of radio and sap tests to clang google

Test: make VtsHalRadioV1_0TargetTest, make VtsHalSapV1_0TargetTest
Change-Id: Ie13efe0d049ade7839881c14ed2904d8acd99b93
(cherry picked from commit bb96133731e84cad563aa1f392a71d7fec728fa9)

7 years agoUpdates bluetooth hal test to use VtsHalHidlTargetTestBase v3
Yuexi Ma [Fri, 31 Mar 2017 23:26:18 +0000 (16:26 -0700)]
Updates bluetooth hal test to use VtsHalHidlTargetTestBase v3

Test: pass
Change-Id: Ia5237a27800010174f2b23a3a4b1157f1c48781f

7 years agoAdd VTS tests for EVS HAL
Scott Randolph [Thu, 30 Mar 2017 21:24:14 +0000 (14:24 -0700)]
Add VTS tests for EVS HAL

Note:  This change list was developed as ag/2031642 on master, but
cherry picks are broken at the moment, so reapplying directly to oc-dev.
The change in master will be abandoned in favor of the auto-merger.

Test:  Run them against the default (mock) driver on bat_land
Change-Id: I7ae523eb6a18ce6a1d0dcd8494f335ffa77f34f1

7 years agoMerge "supplicant(vts): Compilation fixes" into oc-dev
Roshan Pius [Fri, 31 Mar 2017 22:32:31 +0000 (22:32 +0000)]
Merge "supplicant(vts): Compilation fixes" into oc-dev
am: c499fd869b

Change-Id: Ic0706b56690bf4a45a847b73aa3b537d478cfa33

7 years agoMerge "supplicant(vts): Compilation fixes" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 22:25:34 +0000 (22:25 +0000)]
Merge "supplicant(vts): Compilation fixes" into oc-dev

7 years agoUpdate DRM makefile.
Ryan Campbell [Fri, 31 Mar 2017 21:36:00 +0000 (14:36 -0700)]
Update DRM makefile.

Change module name to VTS format.

Test: cd hardware/interfaces && mma
Bug: 34178477
Change-Id: I33490627e1254ec1b1d36ebb7778e20680005910

7 years agoMerge "IGnssDebug.hal field fixes" into oc-dev
Wyatt Riley [Fri, 31 Mar 2017 15:35:01 +0000 (15:35 +0000)]
Merge "IGnssDebug.hal field fixes" into oc-dev
am: 27c2f822ba

Change-Id: I1577e85983e09b517659c2ec0ced522c997d2000

7 years agoMerge "IGnssDebug.hal field fixes" into oc-dev
Wyatt Riley [Fri, 31 Mar 2017 15:28:16 +0000 (15:28 +0000)]
Merge "IGnssDebug.hal field fixes" into oc-dev

7 years agoMerge "Add VTS tests for drm+crypto HALs" into oc-dev
Jeff Tinker [Fri, 31 Mar 2017 05:33:17 +0000 (05:33 +0000)]
Merge "Add VTS tests for drm+crypto HALs" into oc-dev
am: ebf7f3213b

Change-Id: Ifd1772a32a764cf54fdf9d77d50f22c3431f1d83

7 years agoMerge "Add VTS tests for drm+crypto HALs" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 05:29:53 +0000 (05:29 +0000)]
Merge "Add VTS tests for drm+crypto HALs" into oc-dev

7 years agoAdd VTS tests for drm+crypto HALs
Jeff Tinker [Thu, 12 Jan 2017 03:42:05 +0000 (19:42 -0800)]
Add VTS tests for drm+crypto HALs

Tests: drm vts tests are passing

related-to-bug: 32815560

Change-Id: I2b36f27fbb42eba37f3e5a26acea0e359e60b3af

7 years agoIGnssDebug.hal field fixes
Wyatt Riley [Wed, 29 Mar 2017 17:11:59 +0000 (10:11 -0700)]
IGnssDebug.hal field fixes

Modifying some fields in this API to align with values
that work with partner implementations, and better
capture the intent of this new API.

Bug: 30955615
Test: Builds and works with hidl-gen
Change-Id: Ied53cbeed2703ce757a246b45339ff2b9dfeb410

7 years agoMerge "Check result of registerAsService in dumpstate." into oc-dev
Steven Moreland [Fri, 31 Mar 2017 01:20:12 +0000 (01:20 +0000)]
Merge "Check result of registerAsService in dumpstate." into oc-dev
am: 5221194a30

Change-Id: I83beb7c1a92135a441b4453931d70d4f5c9deec5

7 years agoMerge "Check result of registerAsService in dumpstate." into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 01:05:31 +0000 (01:05 +0000)]
Merge "Check result of registerAsService in dumpstate." into oc-dev

7 years agoMerge "Simplify EVS HAL and move to "agressive opens"" into oc-dev
Scott Randolph [Fri, 31 Mar 2017 00:39:20 +0000 (00:39 +0000)]
Merge "Simplify EVS HAL and move to "agressive opens"" into oc-dev
am: 9ee6abd72c

Change-Id: I4cb679b8efe5292947d3a06631ca1acdbaf33943

7 years agoMerge "Simplify EVS HAL and move to "agressive opens"" into oc-dev
TreeHugger Robot [Fri, 31 Mar 2017 00:37:29 +0000 (00:37 +0000)]
Merge "Simplify EVS HAL and move to "agressive opens"" into oc-dev

7 years agoMerge "Fix getKeyRequest legacy HAL returning invalid status" into oc-dev
Jeff Tinker [Thu, 30 Mar 2017 23:24:45 +0000 (23:24 +0000)]
Merge "Fix getKeyRequest legacy HAL returning invalid status" into oc-dev
am: 140e6a9600

Change-Id: Ib51672608147fe181f7d8726e7fcc2525bd6f30a

7 years agoMerge "Fix getKeyRequest legacy HAL returning invalid status" into oc-dev
Jeff Tinker [Thu, 30 Mar 2017 23:00:40 +0000 (23:00 +0000)]
Merge "Fix getKeyRequest legacy HAL returning invalid status" into oc-dev

7 years agoFix getKeyRequest legacy HAL returning invalid status
Jeff Tinker [Tue, 7 Mar 2017 00:58:47 +0000 (16:58 -0800)]
Fix getKeyRequest legacy HAL returning invalid status

bug: 36006198

Test: drm hal vts test
Change-Id: Ie3125b4459add4fd30dc418f92ab0f51d8fcc73b

7 years agoMerge "Add VTS tests for Sap Apis." into oc-dev
Shuoq [Thu, 30 Mar 2017 22:56:15 +0000 (22:56 +0000)]
Merge "Add VTS tests for Sap Apis." into oc-dev
am: cfb39b413f  -s ours

Change-Id: Ie0a71b5a69cffa899895105d5e10bcba8a6b9d9b

7 years agoMerge "Enable the clang-format pre-submit hook" am: 3b9e23513e am: 68a27cc5ab
Myles Watson [Thu, 30 Mar 2017 22:51:40 +0000 (22:51 +0000)]
Merge "Enable the clang-format pre-submit hook" am: 3b9e23513e am: 68a27cc5ab
am: 03ac2b1697

Change-Id: I4b26f5ca596b0ed07d28367a58b086fb26459fd8

7 years agoMerge "Enable the clang-format pre-submit hook" am: 3b9e23513e
Myles Watson [Thu, 30 Mar 2017 22:49:10 +0000 (22:49 +0000)]
Merge "Enable the clang-format pre-submit hook" am: 3b9e23513e
am: 68a27cc5ab

Change-Id: Idb9ac5526f341064982be84fb44f523fbef4521d

7 years agoMerge "Enable the clang-format pre-submit hook"
Myles Watson [Thu, 30 Mar 2017 22:46:39 +0000 (22:46 +0000)]
Merge "Enable the clang-format pre-submit hook"
am: 3b9e23513e

Change-Id: Idf1651f9e76c8b7e6dfbc70dab8ae567a5f53937

7 years agoMerge "Enable the clang-format pre-submit hook"
Treehugger Robot [Thu, 30 Mar 2017 22:43:39 +0000 (22:43 +0000)]
Merge "Enable the clang-format pre-submit hook"

7 years agoMerge "Add VTS tests for Sap Apis." into oc-dev
TreeHugger Robot [Thu, 30 Mar 2017 22:12:29 +0000 (22:12 +0000)]
Merge "Add VTS tests for Sap Apis." into oc-dev

7 years agosupplicant(vts): Compilation fixes
Roshan Pius [Tue, 21 Mar 2017 22:44:40 +0000 (15:44 -0700)]
supplicant(vts): Compilation fixes

Fixed couple of compilation failures from .hal changes and made change
to stop/start framework during tests.

Bug: 33457575
Test: mmma -j32 hardware/interfaces/wifi/supplicant/1.0/vts/functional
Change-Id: I1bac68bd71e92b025acdebd0fef8834b826bcfcb

7 years agoSimplify EVS HAL and move to "agressive opens"
Scott Randolph [Thu, 30 Mar 2017 21:04:12 +0000 (14:04 -0700)]
Simplify EVS HAL and move to "agressive opens"

This adapts the API implementation to allow a duplicate "open" operation
to automatically close any previous connections to the device.  This
works around a binder level issue that can cause destructors triggered
by remote clients to be delivered out of order to the server.

This was originally change ag/1969959 on master, but has been
recreated on oc-dev (cherry-picking was broken at the time).
The original master change will be abandoned in favor of this getting
merged down from oc-dev.

Test:  Run Vts test (added in following change)
Change-Id: I7b417998e59a4d592fbb91811c4101f39097c5dd

7 years agoEnable the clang-format pre-submit hook
Myles Watson [Thu, 30 Mar 2017 16:13:50 +0000 (09:13 -0700)]
Enable the clang-format pre-submit hook

Bug: 36699008
Test: Try to upload a patch with formatting errors.
Change-Id: I4af7d142ccbbaf39eb236547487c59c5ff8f2cd6

7 years agoMerge "Change sytle of radio and sap tests to clang google" am: 7441c791b6 am: d0de215476
Yuexi Ma [Thu, 30 Mar 2017 20:15:00 +0000 (20:15 +0000)]
Merge "Change sytle of radio and sap tests to clang google" am: 7441c791b6 am: d0de215476
am: 22164f3d4b

Change-Id: Iacedf1a43dacc012bd68e184fc4256b29fed59d5

7 years agoMerge "Change sytle of radio and sap tests to clang google" am: 7441c791b6
Yuexi Ma [Thu, 30 Mar 2017 20:13:30 +0000 (20:13 +0000)]
Merge "Change sytle of radio and sap tests to clang google" am: 7441c791b6
am: d0de215476

Change-Id: I3ad7fd7d584a2b6ffd8a2050680dd4479c9b0343

7 years agoMerge "Change sytle of radio and sap tests to clang google"
Yuexi Ma [Thu, 30 Mar 2017 20:10:59 +0000 (20:10 +0000)]
Merge "Change sytle of radio and sap tests to clang google"
am: 7441c791b6

Change-Id: I0aa6ad8fcf24862278705a1f0a9b43cb08370c80

7 years agoaudiohal: Fix UAF of HAL devices in Stream objects
Mikhail Naganov [Thu, 30 Mar 2017 20:08:29 +0000 (20:08 +0000)]
audiohal: Fix UAF of HAL devices in Stream objects
am: 936279e1ff

Change-Id: Id78777accd072722b04d6b0bdc8bf9c219cec861

7 years agoMerge "Change sytle of radio and sap tests to clang google"
Treehugger Robot [Thu, 30 Mar 2017 20:04:53 +0000 (20:04 +0000)]
Merge "Change sytle of radio and sap tests to clang google"

7 years agoMerge "Bluetooth: Replace assert() with CHECK()" am: b26fea2629 am: 17c9a90e0a
Myles Watson [Thu, 30 Mar 2017 18:31:24 +0000 (18:31 +0000)]
Merge "Bluetooth: Replace assert() with CHECK()" am: b26fea2629 am: 17c9a90e0a
am: 5953a0a43b

Change-Id: If57ba4fbc2a9426170ed164de638b6546cedd063

7 years agoMerge "Bluetooth: Replace assert() with CHECK()" am: b26fea2629
Myles Watson [Thu, 30 Mar 2017 18:29:22 +0000 (18:29 +0000)]
Merge "Bluetooth: Replace assert() with CHECK()" am: b26fea2629
am: 17c9a90e0a

Change-Id: Iec662c64cbe65038c6399837b1b4361da6ab8749

7 years agoMerge "Bluetooth: Replace assert() with CHECK()"
Myles Watson [Thu, 30 Mar 2017 18:27:23 +0000 (18:27 +0000)]
Merge "Bluetooth: Replace assert() with CHECK()"
am: b26fea2629

Change-Id: If0285fbce60e230fa947d8400fa0387dbb1bc551

7 years agoMerge "Bluetooth: Replace assert() with CHECK()"
Treehugger Robot [Thu, 30 Mar 2017 18:22:05 +0000 (18:22 +0000)]
Merge "Bluetooth: Replace assert() with CHECK()"

7 years agoCheck result of registerAsService in dumpstate.
Steven Moreland [Thu, 30 Mar 2017 17:59:42 +0000 (10:59 -0700)]
Check result of registerAsService in dumpstate.

Test: see change I35f5d4498abd7369b03a04081e8aa26a3933328e
Fixes: 36704363
Change-Id: I5cc8f32592a77994e756438b8d1b7f3255acef19

7 years agoChange sytle of radio and sap tests to clang google
Yuexi Ma [Thu, 30 Mar 2017 17:58:23 +0000 (10:58 -0700)]
Change sytle of radio and sap tests to clang google

Test: make VtsHalRadioV1_0TargetTest, make VtsHalSapV1_0TargetTest
Change-Id: Ie13efe0d049ade7839881c14ed2904d8acd99b93

7 years agoMerge "Add VTS tests for Sap Apis." am: eb245db746 am: 4d7ec24e3e
Shuo Qian [Thu, 30 Mar 2017 17:00:20 +0000 (17:00 +0000)]
Merge "Add VTS tests for Sap Apis." am: eb245db746 am: 4d7ec24e3e
am: 8fe3f47882

Change-Id: Ic2f17907d19f258fd599e35c6e5c8e592e4c0894

7 years agoMerge "Add VTS tests for Sap Apis." am: eb245db746
Shuo Qian [Thu, 30 Mar 2017 16:57:48 +0000 (16:57 +0000)]
Merge "Add VTS tests for Sap Apis." am: eb245db746
am: 4d7ec24e3e

Change-Id: I8f4fdb2b70972d4052dd3b04c63cf37718389f0e

7 years agoMerge "Add VTS tests for Sap Apis."
Shuo Qian [Thu, 30 Mar 2017 16:55:46 +0000 (16:55 +0000)]
Merge "Add VTS tests for Sap Apis."
am: eb245db746

Change-Id: I6aaeba6da6cb43639e434e2f0ecc10a5731c2b47

7 years agoMerge "Add VTS tests for Sap Apis."
Shuo Qian [Thu, 30 Mar 2017 16:49:40 +0000 (16:49 +0000)]
Merge "Add VTS tests for Sap Apis."

7 years agoBluetooth: Replace assert() with CHECK()
Myles Watson [Thu, 23 Feb 2017 23:50:54 +0000 (15:50 -0800)]
Bluetooth: Replace assert() with CHECK()

Test: Bluetooth starts/stops, VtsHalBluetoothV1_0TargetTest passes
Change-Id: I1ecdf4ed7507fc8e2f00c35f136cb13e145713e5

7 years agoaudiohal: Fix UAF of HAL devices in Stream objects
Mikhail Naganov [Wed, 29 Mar 2017 16:31:18 +0000 (09:31 -0700)]
audiohal: Fix UAF of HAL devices in Stream objects

Stream objects used to hold a pointer to underlying HAL device
object which they didn't own. Since destruction of server side
objects is asynchronous, it was possible that a Device object
gets destroyed before Stream objects, making all the HAL device
object pointer to become stale.

Fixed by adding a strong reference to Device objects into Stream
objects.

Bug: 36702804
Change-Id: I3da3611afbb91d6fd6410ac5b8af2a2eebfa6dac
Test: ran Loopback app and HAL VTS tests
(cherry picked from commit 96d3573cda6f76bcbfc277e69d94914a565218d8)

7 years agoRevert "Revert "Add keymaster VTS tests.""
Shawn Willden [Thu, 30 Mar 2017 15:27:10 +0000 (15:27 +0000)]
Revert "Revert "Add keymaster VTS tests.""
am: 63e15f0790

Change-Id: Ic93a1b3587a0d8edbdc13ca4a831b77ce75d8b14

7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify am: 51d023...
Yuexi Ma [Thu, 30 Mar 2017 15:15:12 +0000 (15:15 +0000)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify am: 51d023c48e am: c6578f0d30
am: c0af573e8c

Change-Id: I318f0c6cb5de5024de58883b28b968ba22e4d2b2

7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify am: 51d023c48e
Yuexi Ma [Thu, 30 Mar 2017 15:12:42 +0000 (15:12 +0000)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify am: 51d023c48e
am: c6578f0d30

Change-Id: I997b319b75d00e69a96b0057de6e0c22867a5258

7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Thu, 30 Mar 2017 15:10:44 +0000 (15:10 +0000)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
am: 51d023c48e

Change-Id: Ifaad9a1c7d0994b43c208ca4c7899daab2baf9ec

7 years agoRevert "Revert "Add keymaster VTS tests.""
Shawn Willden [Thu, 30 Mar 2017 03:27:12 +0000 (21:27 -0600)]
Revert "Revert "Add keymaster VTS tests.""

This reverts commit 8e10baee45a1bfab4094869159b8ede270b6d416.

Test: Tests pass, except known failures with in-progress vendor fixes
Change-Id: Ia95c1444100e123fa65d095b001878cf9040d0c4

7 years agoRenderScript VTS cleanup and fixes
Michael Butler [Thu, 30 Mar 2017 03:11:34 +0000 (03:11 +0000)]
RenderScript VTS cleanup and fixes
am: da8c2c1e2a

Change-Id: I41227692b20c8833134b0130d1ff90d650cf29d9

7 years agoFix RS HIDL server, pass data by bytes instead of by elements.
Michael Butler [Thu, 30 Mar 2017 03:11:32 +0000 (03:11 +0000)]
Fix RS HIDL server, pass data by bytes instead of by elements.
am: 1791d9bfab

Change-Id: I0b6c83825db9bda2f263b3604483e5e798994b15

7 years agoBluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify
Yuexi Ma [Wed, 29 Mar 2017 23:49:59 +0000 (16:49 -0700)]
Bluetooth VTS test use VtsHalHidlCallbackBase for callback wait and notify

VtsHalBluetoothV1_0TargetTest uses VtsHalHidlCallbackBase.
Callback class extends VtsHalHidlCallbackBase and use waitForCallback, notifyFromCallback, and setWaitTimeout

The original Bluetooth test contains the following use cases:
  * Wait for specific callback
  * Set timeout for specific callback waiting
The modified version supports the above use cases.

Bug: 36036059
Test: Test pass locally
Change-Id: I961baaf7f1b09fa9c134629cc7280565a2664ed5

7 years agoMerge "RenderScript VTS cleanup and fixes" am: 7b36175068 am: 1a2850fbc4
Michael Butler [Thu, 30 Mar 2017 00:50:19 +0000 (00:50 +0000)]
Merge "RenderScript VTS cleanup and fixes" am: 7b36175068 am: 1a2850fbc4
am: 643c439e89

Change-Id: I211e1f18f8b35cb7826ae5d390074c520c2ffcc4

7 years agoMerge "Fix RS HIDL server, pass data by bytes instead of by elements." am: f2b214dc8d...
Michael Butler [Thu, 30 Mar 2017 00:49:54 +0000 (00:49 +0000)]
Merge "Fix RS HIDL server, pass data by bytes instead of by elements." am: f2b214dc8d am: 1e7e3611e7
am: 815ab992ef

Change-Id: Ida0d3c5cbae560c1587488ef64b5cddfbc07eb10

7 years agoMerge "RenderScript VTS cleanup and fixes" am: 7b36175068
Michael Butler [Thu, 30 Mar 2017 00:47:45 +0000 (00:47 +0000)]
Merge "RenderScript VTS cleanup and fixes" am: 7b36175068
am: 1a2850fbc4

Change-Id: I1c6e607430a4e597400f0a61a04b98840238567a

7 years agoMerge "Fix RS HIDL server, pass data by bytes instead of by elements." am: f2b214dc8d
Michael Butler [Thu, 30 Mar 2017 00:47:21 +0000 (00:47 +0000)]
Merge "Fix RS HIDL server, pass data by bytes instead of by elements." am: f2b214dc8d
am: 1e7e3611e7

Change-Id: I2e821b90ca667689e2ceb71d618de8ab41ec6af2

7 years agoMerge "RenderScript VTS cleanup and fixes"
Michael Butler [Thu, 30 Mar 2017 00:46:14 +0000 (00:46 +0000)]
Merge "RenderScript VTS cleanup and fixes"
am: 7b36175068

Change-Id: I03e7a64f197e7b47f7f7dbcd893cc3125fc06850

7 years agoMerge "Fix RS HIDL server, pass data by bytes instead of by elements."
Michael Butler [Thu, 30 Mar 2017 00:45:51 +0000 (00:45 +0000)]
Merge "Fix RS HIDL server, pass data by bytes instead of by elements."
am: f2b214dc8d

Change-Id: I753fcfd32f0837a099bf157c837b6e7759a9ab45

7 years agoRenderScript VTS cleanup and fixes
Michael Butler [Fri, 17 Mar 2017 20:02:53 +0000 (13:02 -0700)]
RenderScript VTS cleanup and fixes

This CL fixes the remaining VTS test cases for the RenderScript
vts-hidl-hal test and cleans up and improves the working test cases.
The goal is to have at least one passing test case per HIDL HAL entry.

Bug: 35915961

Test: mm and run on angler
Change-Id: I4b6e25831ce7d2abb3148c39eb48bde10ed04646
(cherry picked from commit 54fa8d428552a6202d196b6abf6a844bb277ac98)

7 years agoFix RS HIDL server, pass data by bytes instead of by elements.
Michael Butler [Mon, 27 Mar 2017 21:14:18 +0000 (14:14 -0700)]
Fix RS HIDL server, pass data by bytes instead of by elements.

  Our current stack:
  API->API_TO_HAL_translator->HAL
          ->HAL_TO_Implementation_translator->Implementation

  For most APIs:
  - API passes objectCount.
  - HAL expects objectCount.
  - Implementation expects objectCount.

  For APIs like ScriptGroupCreate:
  - API passes byteCount. And unfortunately, these APIs are part of
    NDK, we could not make them also passing objectCount like others.
  - HAL expects objectCount.
  - Implementation expects byteCount.

  So that both API_TO_HAL_translator and
  HAL_TO_Implementation_translator should correctly convert input
  objectCount/byteCount to byteCount/objectCount.

  This CL only fixes the HAL_TO_Implementation_translator part,
  whereas aosp/356395 fixes the API_TO_HAL_translator part. Both
  parts were mistakenly using byteCount as objectCount, causing
  potential out-of-bound access.

Bug: 36404879
Test: mm on angler
Change-Id: I28541a8926aeafece40e2a3f664bda67e26a34a2
(cherry picked from commit fd14e27b8997da6b453174af2af2e1cf66e01b5d)

7 years agoMerge "RenderScript VTS cleanup and fixes"
Michael Butler [Thu, 30 Mar 2017 00:40:00 +0000 (00:40 +0000)]
Merge "RenderScript VTS cleanup and fixes"

7 years agoMerge "Fix RS HIDL server, pass data by bytes instead of by elements."
Michael Butler [Thu, 30 Mar 2017 00:39:21 +0000 (00:39 +0000)]
Merge "Fix RS HIDL server, pass data by bytes instead of by elements."

7 years agoFix RS HIDL server, pass data by bytes instead of by elements.
Michael Butler [Mon, 27 Mar 2017 21:14:18 +0000 (14:14 -0700)]
Fix RS HIDL server, pass data by bytes instead of by elements.

  Our current stack:
  API->API_TO_HAL_translator->HAL
          ->HAL_TO_Implementation_translator->Implementation

  For most APIs:
  - API passes objectCount.
  - HAL expects objectCount.
  - Implementation expects objectCount.

  For APIs like ScriptGroupCreate:
  - API passes byteCount. And unfortunately, these APIs are part of
    NDK, we could not make them also passing objectCount like others.
  - HAL expects objectCount.
  - Implementation expects byteCount.

  So that both API_TO_HAL_translator and
  HAL_TO_Implementation_translator should correctly convert input
  objectCount/byteCount to byteCount/objectCount.

  This CL only fixes the HAL_TO_Implementation_translator part,
  whereas aosp/356395 fixes the API_TO_HAL_translator part. Both
  parts were mistakenly using byteCount as objectCount, causing
  potential out-of-bound access.

Bug: 36404879
Test: mm on angler
Change-Id: I28541a8926aeafece40e2a3f664bda67e26a34a2

7 years agoAdd VTS tests for Sap Apis.
Shuoq [Fri, 24 Mar 2017 00:22:50 +0000 (17:22 -0700)]
Add VTS tests for Sap Apis.

Bug: 32022332
Test: vts
Change-Id: I9a55978aa485a59510090f46a8e5edfb87bccc0e

7 years agoAdd VTS tests for Sap Apis.
Shuoq [Fri, 24 Mar 2017 00:22:50 +0000 (17:22 -0700)]
Add VTS tests for Sap Apis.

Bug: 32022332
Test: vts
Change-Id: I9a55978aa485a59510090f46a8e5edfb87bccc0e

7 years agoMerge "Revert "Add keymaster VTS tests."" into oc-dev
Keun Soo Yim [Wed, 29 Mar 2017 20:31:05 +0000 (20:31 +0000)]
Merge "Revert "Add keymaster VTS tests."" into oc-dev
am: bf0f670580

Change-Id: I28bfff5b7e2a1109d32f43a84cfa362562c13bd5

7 years agoMerge "Revert "Add keymaster VTS tests."" into oc-dev
Keun Soo Yim [Wed, 29 Mar 2017 20:19:28 +0000 (20:19 +0000)]
Merge "Revert "Add keymaster VTS tests."" into oc-dev

7 years agoRevert "Add keymaster VTS tests."
Keun Soo Yim [Wed, 29 Mar 2017 20:18:52 +0000 (20:18 +0000)]
Revert "Add keymaster VTS tests."

This reverts commit dda22ea8845f6906d4bccc13bf142d96a43976c5.

Change-Id: Ie6a60e17ed5258840eba3d3f6b8092636160b2c2

7 years agoMerge "Convert all comments into "doxygen-ready" comments." into oc-dev
Andreas Huber [Wed, 29 Mar 2017 18:52:53 +0000 (18:52 +0000)]
Merge "Convert all comments into "doxygen-ready" comments." into oc-dev
am: 8074912d8c

Change-Id: Ic81578a5730c614e31c529b04fe96a2852da89ea

7 years agoMerge "Convert all comments into "doxygen-ready" comments." into oc-dev
Andreas Huber [Wed, 29 Mar 2017 18:48:36 +0000 (18:48 +0000)]
Merge "Convert all comments into "doxygen-ready" comments." into oc-dev

7 years agoAdd keymaster VTS tests.
Shawn Willden [Wed, 29 Mar 2017 18:31:20 +0000 (18:31 +0000)]
Add keymaster VTS tests.
am: dda22ea884

Change-Id: I6d683d35598134e29cf4f2083050282f6fba2718

7 years agoConvert all comments into "doxygen-ready" comments.
Andreas Huber [Tue, 28 Mar 2017 23:19:16 +0000 (16:19 -0700)]
Convert all comments into "doxygen-ready" comments.

Bug: 36453077
Test: mma
Change-Id: I0b1f77dfae5d2258969e33d85ecf45401ffbdfaa

7 years agoAdd keymaster VTS tests.
Shawn Willden [Fri, 2 Dec 2016 12:07:02 +0000 (05:07 -0700)]
Add keymaster VTS tests.

Note: Recent Google devices have keymaster implementations that don't
pass this test suite.  See https://goo.gl/6hsGwa for a summary.

Bug: 32022681
Test: This is the test suite.
Change-Id: Ib200b68e0c7844df02eb9f086385d6c36e306d45

7 years agoConvert all comments into "doxygen-ready" comments.
Andreas Huber [Wed, 29 Mar 2017 01:15:51 +0000 (01:15 +0000)]
Convert all comments into "doxygen-ready" comments.
am: 675ae49ab1

Change-Id: I86aa5511421ad5bd7ec29776fbc8738b0437219b

7 years agoConvert all comments into "doxygen-ready" comments. am: 3e4acb8b3a am: 64fcbfe9aa
Andreas Huber [Wed, 29 Mar 2017 01:05:31 +0000 (01:05 +0000)]
Convert all comments into "doxygen-ready" comments. am: 3e4acb8b3a am: 64fcbfe9aa
am: 211c03e585

Change-Id: If163f588c87dff16b2f1173871c85d6ce4b0e422

7 years agoConvert all comments into "doxygen-ready" comments. am: 3e4acb8b3a
Andreas Huber [Wed, 29 Mar 2017 01:03:18 +0000 (01:03 +0000)]
Convert all comments into "doxygen-ready" comments. am: 3e4acb8b3a
am: 64fcbfe9aa

Change-Id: I9c97cfecf806ebe0e33d9b92c0a5e923cd8c560b

7 years agoConvert all comments into "doxygen-ready" comments.
Andreas Huber [Wed, 29 Mar 2017 01:01:48 +0000 (01:01 +0000)]
Convert all comments into "doxygen-ready" comments.
am: 3e4acb8b3a

Change-Id: I615de8ebda7c08f29e52dc78f65c5408d3a7d58f

7 years agoConvert all comments into "doxygen-ready" comments.
Andreas Huber [Tue, 28 Mar 2017 21:40:58 +0000 (14:40 -0700)]
Convert all comments into "doxygen-ready" comments.

Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40

7 years agoConvert all comments into "doxygen-ready" comments.
Andreas Huber [Tue, 28 Mar 2017 21:40:58 +0000 (14:40 -0700)]
Convert all comments into "doxygen-ready" comments.

Bug: 36453077
Test: make
Change-Id: Ic77394d4d2e1ccedba3a28230d870c5d6108bd40

7 years agoMerge "Use gralloc usage conversion library" into oc-dev
Jesse Hall [Tue, 28 Mar 2017 21:04:31 +0000 (21:04 +0000)]
Merge "Use gralloc usage conversion library" into oc-dev
am: 2f44ec6c86

Change-Id: I692ea8e24c0d87e7729e52c1e35d7d40eab12a0f

7 years agoMerge "Use gralloc usage conversion library" into oc-dev
TreeHugger Robot [Tue, 28 Mar 2017 20:55:50 +0000 (20:55 +0000)]
Merge "Use gralloc usage conversion library" into oc-dev

7 years agoUpdate makefiles for hwtypes.h
Steven Moreland [Tue, 28 Mar 2017 18:32:22 +0000 (18:32 +0000)]
Update makefiles for hwtypes.h
am: 561b602a99

Change-Id: I11a2aa2bfeca6a60bc13f768e98abacc69b97df8

7 years agoUse gralloc usage conversion library
Jesse Hall [Thu, 23 Mar 2017 23:40:59 +0000 (16:40 -0700)]
Use gralloc usage conversion library

Converting from ..graphics.allocator@2.0 usage to gralloc0 usage isn't
quite as simple as ORing and truncating, which is what the default
implementation was doing. Switch to using library functions that do it
correctly.

Test: boot bullhead
Change-Id: I40ae00e9aad92b374f281569207972b7461a3e55