Commit Graph

2344 Commits

Author SHA1 Message Date
Zhuoyao Zhang
affc5da869 Merge "Increase the timeout for NfcHidlTargetProfilingTest." am: 6d88fc9a6a am: 62cc546eec am: 21d5b70212
am: b6492bc464

Change-Id: I10e9cee844367c63f74754ee451b316738f56906
2017-01-26 04:03:45 +00:00
Zhuoyao Zhang
b6492bc464 Merge "Increase the timeout for NfcHidlTargetProfilingTest." am: 6d88fc9a6a am: 62cc546eec
am: 21d5b70212

Change-Id: I96fa7e8a6816a13409b049248db18731ae9caf27
2017-01-26 04:00:44 +00:00
Zhuoyao Zhang
21d5b70212 Merge "Increase the timeout for NfcHidlTargetProfilingTest." am: 6d88fc9a6a
am: 62cc546eec

Change-Id: I6cae2e1ddedcd2424739a309a6c27b08d1277a93
2017-01-26 03:58:15 +00:00
Zhuoyao Zhang
62cc546eec Merge "Increase the timeout for NfcHidlTargetProfilingTest."
am: 6d88fc9a6a

Change-Id: Ib6c2cd2bce720180ff2365b936e07bd217a265dd
2017-01-26 03:55:45 +00:00
Zhuoyao Zhang
6d88fc9a6a Merge "Increase the timeout for NfcHidlTargetProfilingTest." 2017-01-26 03:52:07 +00:00
Keun-young Park
e26a280b39 Merge "fix errata in comment" 2017-01-26 03:08:57 +00:00
Scott Randolph
2599213488 Merge "EVS HAL with multi-buffer support via BufferDesc" 2017-01-26 01:56:22 +00:00
Scott Randolph
db5a598f80 EVS HAL with multi-buffer support via BufferDesc
HAL changes required in order to enable required functionality.
Specifically, support for use of supplied buffers as OpenGL textures.
Addition of getDisplayState is needed in order to meet original API
spec (allow secondary clients to monitor display state).  Expected to be
needed specifically by Car Service.  Note that this HAL is not used on
the phone and only relevant to the Android Auto at this point.

Test:  compile & run evs_test.  Still issues with buffer locking.

Added getDisplayState() to IEvsEnumerator to allow secondary clients to
query for display state without having to acquire the display.

Introduced the use of weak pointers in the service to detect when
clients holding an object disappear unexpectedly.

Plus squashed commit of the following:

commit 26c685b430028384157f573b31264ff03ea4c37b
Author: Scott Randolph <randolphs@google.com>
Date:   Thu Jan 19 17:29:54 2017 -0800

    Convert EVS HAL to use BufferDesc (vs raw handles)

    Use a structure that includes the buffer properties in addition to the
    memory handle itself to make it easier/safer for the HAL client code to
    reconstruct ANativeWindowBuffer objects (as required when using the
    buffer as a GL texture, for example)

    Change-Id: Ifebf0c03b9ad167d61152b85f8229d5970cc41af

commit 0286385694282e017c12f238f5aaa86d8d1bd600
Author: Scott Randolph <randolphs@google.com>
Date:   Tue Jan 17 12:01:09 2017 -0800

    Incremental cleanup of EVS driver

    Change-Id: Ibba2b7d9a1c55629d76ee6faf2a9f36c715e7bd7

commit 71e7b85f3919a60c5a194028a586ce81846c6c0d
Author: Scott Randolph <randolphs@google.com>
Date:   Thu Jan 12 10:40:45 2017 -0800

    Fix error check bug that cause stream start to fail

    Also fixes a minor warning related to log message string formatting.

    Change-Id: I74edf9a02db87c3632b4883ca40207fe861fd75d

commit 164e7ef048eba9bc184319ea928d231a26b695bc
Author: Scott Randolph <randolphs@google.com>
Date:   Wed Jan 11 17:27:46 2017 -0800

    Fix HAL update related compile bugs

    Minor changes to accomodate recent HIDL/HAL changes.

    Change-Id: I466d8979e8e56424442840aff8d17762eac0a590

commit 67391db6a04b2cbbda1a0b5c8b717fe79994f5b9
Author: Scott Randolph <randolphs@google.com>
Date:   Wed Jan 11 13:56:23 2017 -0800

    Avoid mutex reentrancy when setting frame count

    At initialization time, we need to be able to set the number of frames
    available for capture.  This change makes the code to do this a private
    function called from within a mutex in order to avoid having one mutex
    protected call trying to make another mutex protected call as would
    happen if it called directly into the public API.

    Change-Id: I05c383976dd8db1acf5874bd47b2a3c3521d7032

commit 993f6e7e1e43f2bc4a48f6aae32d9ba2c3125d23
Author: Scott Randolph <randolphs@google.com>
Date:   Mon Dec 19 18:39:38 2016 -0800

    Avoid forced exit if frame delivery fails

    If we don't read the error code from the frame delivery call, the
    underlying code forces an application exit if an error was returned.
    Even when we don't care about the result, we have to read it to avoid
    this.

    Change-Id: Ie3695faa10d1c5e340f66c369bfc2595ac516434

commit 08298db0f2d5d0ae7cd0781fde834fc7e63375d0
Author: Scott Randolph <randolphs@google.com>
Date:   Mon Dec 19 18:21:16 2016 -0800

    Support adjustable number of frames in flight

    Add enhanced support for SetMaxFramesInFlight which is required to
    support concurrent camera clients at the EVS Manager level.

    Change-Id: I23b606a017529514370a03cd2eca3ee286af8fec

commit 198050b2cff70d1a232745ce8e7f35e87581562e
Author: Scott Randolph <randolphs@google.com>
Date:   Fri Dec 16 16:27:19 2016 -0800

    Add frame contents validation to EvsDisplay

    Update the default "mock" implementation of EvsDisplay hardware layer to
    provide a frame contents validation based on knowledge of what the
    "mock" EvsCamera implementation will emit.

    Change-Id: If0624f855a440f52a47af7751ed3b09e8b21ff74

commit c830b7ca466155049d6eee047f6c323521451e8b
Author: Scott Randolph <randolphs@google.com>
Date:   Fri Dec 16 15:25:48 2016 -0800

    Add multi-buffer support to EvsCamera

    Extend the EvsCamera implmentation to support more than one buffer in
    flight at a time.  This is necessary in order to support concurrent
    client access through the EvsManager proxy layer.

    Change-Id: I0c32336be40c7bedd797140569650906458d27c1

commit 1bdbb9d641f95d494ec2a398b6d1f5202276d17b
Author: Scott Randolph <randolphs@google.com>
Date:   Fri Dec 16 15:24:28 2016 -0800

    Add additional validation on round trip pointers

    Now that HIDL support returning the same pointer to an interface object
    after a round trip through the transport, we can add a bit more
    validation.

    Change-Id: Ia9a3a6ec7552f5e5523c0f9ad66ceb02b46b2db4

Change-Id: I47468932d6a7b2b5eab47819917cdb20154d8f18
2017-01-25 17:37:38 -08:00
TreeHugger Robot
269292f2ba Merge "use the device's default binder/passthrough mode in vts tests" 2017-01-26 01:26:06 +00:00
Jeff Tinker
e54c08ac0c Merge "Don't deref a NULL shared buffer base" 2017-01-26 01:11:39 +00:00
Keun-young Park
c7acd4bf64 fix errata in comment
bug: 32371653
Test: build
Change-Id: Ia7889199a53c461df5f1367c07117aab2a775fd6
2017-01-25 16:49:10 -08:00
TreeHugger Robot
2a548d440d Merge "Fix syntax error in Vehicle VTS" 2017-01-26 00:14:09 +00:00
Ryan Campbell
1cd3badbef Merge "Update fingerprint makefile." 2017-01-26 00:07:39 +00:00
Zhuoyao Zhang
54abf5632a Increase the timeout for NfcHidlTargetProfilingTest.
* Given there's still test failue due to timeout:
  https://android-vts-internal.googleplex.com/show_table?testName=NfcHidlTargetProfilingTest,
  increased the limit to 25m.

Test: run vts -m NfcHidlTargetProfilingTest
Change-Id: Ie5fee6a399281ec538e6724207916908bb8da4d0
2017-01-25 15:57:06 -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
Keun Soo Yim
e9ad6517f8 use the profiler test's name and a precondition to decide when to run.
Bug: 34715432
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
HalSoundTriggerHidlTargetBasicProfilingTest -l INFO
Change-Id: I116ed144076f07f752c756d9ddb6e425442d39cc
2017-01-25 23:01:08 +00:00
Roshan Pius
c91e7fb95e Merge "supplicant(interface): Add the new radio work methods" am: 4aceb63bc7 am: c637017b66 am: 538cbc9a29
am: af58817b1d

Change-Id: I8437ef232d576fa13132d4fa8e8f0d7a19a156e1
2017-01-25 21:26:22 +00:00
Roshan Pius
af58817b1d Merge "supplicant(interface): Add the new radio work methods" am: 4aceb63bc7 am: c637017b66
am: 538cbc9a29

Change-Id: Ifbf8f30310120ba00af0ea2383d9db9cccabe4db
2017-01-25 21:23:52 +00:00
Roshan Pius
538cbc9a29 Merge "supplicant(interface): Add the new radio work methods" am: 4aceb63bc7
am: c637017b66

Change-Id: I9f0d9b906930d646516462ba4f4b4c42d6619a7f
2017-01-25 21:21:20 +00:00
Roshan Pius
c637017b66 Merge "supplicant(interface): Add the new radio work methods"
am: 4aceb63bc7

Change-Id: If222b06393c5ea32b39cb8737a9cfd00a6e1cc3c
2017-01-25 21:18:52 +00:00
Treehugger Robot
4aceb63bc7 Merge "supplicant(interface): Add the new radio work methods" 2017-01-25 21:15:22 +00:00
Chris Phoenix
5985dedba2 memtrack 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; verify HAL still works

Bug: 33844934
Change-Id: Ide36b5470a393b5ed0f60fd37661dd50d0db817b
2017-01-25 11:24:28 -08:00
Ruchi Kandoi
aadf1586a3 Merge "NFC: Update VTS test" am: 3bce41d5ec am: 4d3c1ea989 am: d4cffbf1ec
am: 7b51c28e24

Change-Id: I4123a9bfa33c0a65ddee0d20ab3a316d5171c4cf
2017-01-25 18:32:38 +00:00
Ruchi Kandoi
7b51c28e24 Merge "NFC: Update VTS test" am: 3bce41d5ec am: 4d3c1ea989
am: d4cffbf1ec

Change-Id: Ia1ee033655a51a8a7734c0626e33ae3ec42bc51a
2017-01-25 18:28:07 +00:00
Pavel Maltsev
f04689102e Fix syntax error in Vehicle VTS
Test: make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run
commandAndExit vts --skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VehicleHidlTest -l INFO

Bug: b/32021794

Change-Id: I855aa4792405e54824e85c3982912866fcb10968
2017-01-25 18:26:13 +00:00
Ruchi Kandoi
d4cffbf1ec Merge "NFC: Update VTS test" am: 3bce41d5ec
am: 4d3c1ea989

Change-Id: I01ab41ebd15c0237b41e3777ccc6fffd5868c3b7
2017-01-25 18:23:07 +00:00
Ruchi Kandoi
4d3c1ea989 Merge "NFC: Update VTS test"
am: 3bce41d5ec

Change-Id: Id275ca5ed4dbcc0f0644e632cd31231f47998309
2017-01-25 18:18:08 +00:00
TreeHugger Robot
b3923f0684 Merge "Vehicle HAL: add VTS case for DRIVING_STATUS" 2017-01-25 18:12:21 +00:00
Ruchi Kandoi
3bce41d5ec Merge "NFC: Update VTS test" 2017-01-25 18:10:13 +00:00
Jeff Tinker
dc8e2d0620 Don't deref a NULL shared buffer base
bug:34624618
Change-Id: I5caee20a944d0c7b5d30f8abdbd8734507914a3a
2017-01-25 17:33:30 +00:00
Jeff Tinker
a35e6e8239 Merge "Add LOG_TAGs to drm hal default modules" 2017-01-25 17:32:35 +00:00
Martijn Coenen
e5b2271717 Merge "hidl_memory no longer owns passed-in handles." 2017-01-25 13:52:33 +00:00
Pavel Maltsev
2b059b5977 Vehicle HAL: add VTS case for DRIVING_STATUS
Test: ENABLE_TREBLE=true make vts BUILD_GOOGLE_VTS=true -j32 && vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VehicleHidlTest -l INFO
Change-Id: I66a4c7105412da9efd05eb0ef1caed275676488c
2017-01-24 22:32:45 -08:00
TreeHugger Robot
b338d550d6 Merge "power HAL uses "default" service name" 2017-01-25 05:41:55 +00:00
TreeHugger Robot
bb51b95c54 Merge "contexthub: Add VTS target tests" 2017-01-25 05:16:30 +00:00
TreeHugger Robot
11a8ed0b21 Merge "Add device id attestation" 2017-01-25 05:03:50 +00:00
Keun Soo Yim
25dccedd70 use the default binder/passthrough mode in vts tests am: 3079b3c68e am: 9af3e139e2 am: 5594ca35af
am: 00f03ce59e

Change-Id: I4ebf2873c8ecf9bc0d9f19f44b314ba053ca984f
2017-01-25 04:29:46 +00:00
Keun Soo Yim
00f03ce59e use the default binder/passthrough mode in vts tests am: 3079b3c68e am: 9af3e139e2
am: 5594ca35af

Change-Id: Ie004e69235ab61dd86b1b2af4117c51f280039da
2017-01-25 04:27:10 +00:00
Keun Soo Yim
5594ca35af use the default binder/passthrough mode in vts tests am: 3079b3c68e
am: 9af3e139e2

Change-Id: Icc0e947ed456e3aaa049726fe07d16620f226e9b
2017-01-25 04:25:09 +00:00
Keun Soo Yim
9af3e139e2 use the default binder/passthrough mode in vts tests
am: 3079b3c68e

Change-Id: Ib5a739feafa151329737b830d3fae977c2b60238
2017-01-25 04:23:09 +00:00
Chris Phoenix
487c24c14a power 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; verify HAL still works

Bug: 33844934
Change-Id: I7a5d9e848efabf624299ee81ee42aa046b61c660
2017-01-24 20:06:32 -08:00
Ryan Campbell
6d7514a4ce Update fingerprint makefile.
Update fingerprint makefile with VTS support in HIDL.

Test: pass
Bug: 34518442
Change-Id: I4556b027f4217ef9748e07555705911c03e1cbbd
2017-01-25 04:03:56 +00:00
Brian Duddie
cd3a43f51f contexthub: Add VTS target tests
Introduce target-side VTS tests covering the Context Hub HAL.

Bug: 32021659
Test: make vts -j42 && \
      vts-tradefed run commandAndExit vts --primary-abi-only \
        --skip-all-system-status-check \
	--module ContexthubHidlTargetTest
Change-Id: I387ad0cccbfa824d292e2364f175dcec21134be1
2017-01-24 19:45:52 -08:00
Keun Soo Yim
3079b3c68e use the default binder/passthrough mode in vts tests
Test: mma
Change-Id: I9146d599c623aae1196fcf7e37b7b2715796c748
2017-01-24 18:00:59 -08:00
TreeHugger Robot
5249d67f73 Merge "regenerate types.vts file for sensors and update its test." 2017-01-25 00:07:06 +00:00
Keun Soo Yim
abba32dba2 Merge "use a precondition var in soundtrigger." 2017-01-24 23:57:52 +00:00
Badhri Jagan Sridharan
f55525de70 Merge changes from topic 'usb_hal'
* changes:
  USB: HIDL: default implentation for the type-c interface
  USB: HIDL: Type-c usb interface V1_0
2017-01-24 23:46:20 +00:00
Keun Soo Yim
05fe8ce9b4 Merge "update the used precondition var name for IR" am: 17f3c1c445 am: 3bfb0f1cfc am: cf21f92a2a
am: 846d643af6

Change-Id: I5caf0cc1c57be74d0556a20bd9e2db4992946a88
2017-01-24 23:06:02 +00:00
Keun Soo Yim
846d643af6 Merge "update the used precondition var name for IR" am: 17f3c1c445 am: 3bfb0f1cfc
am: cf21f92a2a

Change-Id: I89a5aa24666b05c3f57b17a28743c1893a0cfa42
2017-01-24 23:00:51 +00:00
Keun Soo Yim
cf21f92a2a Merge "update the used precondition var name for IR" am: 17f3c1c445
am: 3bfb0f1cfc

Change-Id: Idd042bf443bafb878462daa80afeccffa8b99ff8
2017-01-24 22:56:47 +00:00