Commit graph

2587 commits

Author SHA1 Message Date
Jeff Tinker
d4c3cbcc38 Merge "Enable loading of treble-based plugins" 2017-01-28 01:22:19 +00:00
TreeHugger Robot
3935f20ce1 Merge "Vehicle HAL: add wheeltick property" 2017-01-28 00:58:45 +00:00
Jack Yu
42b6ebe2d1 Fixed typos and incorrect types am: f346766c0c am: cca4aa5b18 am: ed15637786
am: a28e0d5c69

Change-Id: I7342b6d30418f28c8531960e9aad682e625debb9
2017-01-28 00:56:34 +00:00
Sanket Padawe
ee18b250f5 Merge "Removed TODOs from radio hal." am: c5447fce20 am: ca1388166a am: b2cdacaa6e
am: 1ef858b769

Change-Id: I1d7da242ff8297b01241e6de1a0c549924f56f08
2017-01-28 00:56:22 +00:00
Jack Yu
a28e0d5c69 Fixed typos and incorrect types am: f346766c0c am: cca4aa5b18
am: ed15637786

Change-Id: I5a3a4cc527008a323ebd8b0ed4873a3e0e49bf81
2017-01-28 00:54:03 +00:00
Sanket Padawe
1ef858b769 Merge "Removed TODOs from radio hal." am: c5447fce20 am: ca1388166a
am: b2cdacaa6e

Change-Id: Ie26aded569367bb5046011d4b4393dddc501bd08
2017-01-28 00:53:51 +00:00
Jack Yu
ed15637786 Fixed typos and incorrect types am: f346766c0c
am: cca4aa5b18

Change-Id: Iebc365f57c86db42ea6f724af639a56ab1182555
2017-01-28 00:51:32 +00:00
Sanket Padawe
b2cdacaa6e Merge "Removed TODOs from radio hal." am: c5447fce20
am: ca1388166a

Change-Id: Ifd295cd847a1540075ff493d32cf39ea9a5bb1b4
2017-01-28 00:51:21 +00:00
Jack Yu
cca4aa5b18 Fixed typos and incorrect types
am: f346766c0c

Change-Id: I1f768df471c89783b783684d77fa8f5c6f47b476
2017-01-28 00:49:04 +00:00
Sanket Padawe
ca1388166a Merge "Removed TODOs from radio hal."
am: c5447fce20

Change-Id: Ib97124740651fbbe7c8dfb205129bbcc7f6ef04f
2017-01-28 00:48:52 +00:00
Jack Yu
f346766c0c Fixed typos and incorrect types
Fixed typos, incorrect types for bitmap, and comment
alignment.

Test: Build
Merged-In: I51a99fa71877cfe168ee2cf31de702f36f57d013
Change-Id: I51a99fa71877cfe168ee2cf31de702f36f57d013
2017-01-28 00:46:52 +00:00
Treehugger Robot
c5447fce20 Merge "Removed TODOs from radio hal." 2017-01-28 00:44:35 +00:00
Shubang
528f49131a TV Input target-side test
Test: make vts; vts-tradefed; run -m HalTvInputHidlTargetTest
Change-Id: Ifd8a178c9d1dde9b8e87ba0ff06aad75a811b420
2017-01-27 15:53:10 -08:00
asafro
3d71813eb2 Adding VMS message type and a structure to the VMS messages.
Test: will add set/get values to DefaultHalImpl
Bug: 34465596
Change-Id: I9fded644dc482a5ed429ba1766d9d01b083f9d87
2017-01-27 15:49:44 -08:00
Steven Moreland
e59adb8666 Merge "vibrator HAL uses "default" service name" 2017-01-27 23:02:19 +00:00
Chris Phoenix
79f18a280a vibrator 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: service registers correctly as default

Bug: 33844934
Change-Id: Ic0e9ff98b16bfb66e67222054653b7347442bacb
2017-01-27 23:02:08 +00:00
Keun Soo Yim
8a9dad5f6a skip on 64-bit ABI
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--skip-preconditions --module HalSoundTriggerHidlTargetBasicTest -l INFO
Bug: 34256132

Change-Id: I87a6be02d1d05e06cfce84975d7bcc42434dbc90
2017-01-27 14:03:25 -08:00
TreeHugger Robot
bcd50f240d Merge "remove unused include subdir line from Android.mk file at leaf directory" 2017-01-27 01:59:42 +00:00
Mikhail Naganov
ac5012a193 Audio HAL: extensions for new SoC features
Extend audio channel mask.

Added AC4 format.

Change-Id: I8d365d60127eeea2939fcf6094c5306fa36ab648
Test: make
2017-01-26 17:54:04 -08:00
Pawin Vongmasa
b4052bfea1 Merge "Use HIDL's memory for shared memory and add wrapper interfaces for IGraphicBufferProducer." 2017-01-27 01:16:32 +00:00
Enrico Granata
310d4b32a1 Merge "Add logic to actually read OBD2 sensor properties to VehicleHidlTest" 2017-01-27 01:00:12 +00:00
Yuexi Ma
b761fd4a29 remove unused include subdir line from Android.mk file at leaf directory
Bug: 34695422
Test: make vts
Change-Id: I1f7bcacdd8790f3bb13bc6aa7d80e485db4a4dc4
2017-01-27 00:05:38 +00:00
Dan Albert
3d0263f0eb Include what you use.
Test: mm
Bug: http://b/34740564
Change-Id: I75cf88b79faf68764f1223e39595d0320d7b682a
2017-01-26 15:33:15 -08:00
Enrico Granata
4fb6724c4f Add logic to actually read OBD2 sensor properties to VehicleHidlTest
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

Change-Id: I0817823ea00354b27c90bdd412012320868b9e8f
2017-01-26 22:27:02 +00:00
Jeff Tinker
fbf3650370 Enable loading of treble-based plugins
Test: gtests passing

bug: 34507158
Change-Id: I712dea8e211e83b36cb103d913405521d55123f5
2017-01-26 14:20:24 -08:00
TreeHugger Robot
5b6420268a Merge "Introduce ComposerBase interface to allow custom Hwc implementations" 2017-01-26 19:37:58 +00:00
Pavel Maltsev
97905a1e44 Fix AP_POWER_STATE property in Vehicle HAL
Test: mm -j32, manual

Change-Id: I50e7ff68054c42a3f684df4858cf8fa6506ed6c3
Fix: b/34722118
2017-01-26 11:26:51 -08:00
Pavel Maltsev
f0e53e454d Vehicle HAL: add wheeltick property
Bug: b/31926188

Test: mm -j
Change-Id: I290c7363fc93c838aa75cfc913368f907a566d47
2017-01-26 10:56:17 -08:00
Asaf Rosenfeld
9400b46788 Merge "Rename the VMDS property to VMS which is how it is called now. Test: Fixed HAL tests with the new property name Bug:34682582" 2017-01-26 18:53:23 +00:00
Daniel Nicoara
0a60e4bcbe Introduce ComposerBase interface to allow custom Hwc implementations
Decouples the ComposerClient code which deals with parsing the command buffer
messages sent by SurfaceFlinger from the Hwc code that handles the
commands.

Bug: 33297270
Test: Compiled and verified on device that hwcomposer-2-1 service can
start correctly. SurfaceFlinger can connect to the service and the
system boots up. Also verified SurfaceFlinger runs correctly without
hwcomposer-2-1.
Change-Id: I43357306caea57d262735f4756c379ba9d0138cd
2017-01-26 10:32:27 -05:00
TreeHugger Robot
0e9b1d9f1f Merge "Fix HalGatekeeperHidlTargetBasicProfilingTest." 2017-01-26 07:31:39 +00:00
Jim Miller
7802f42124 Merge "clean up default fingerprint HIDL@2.1 implementation" 2017-01-26 05:38:44 +00:00
Zhuoyao Zhang
42a4cdf70c Fix HalGatekeeperHidlTargetBasicProfilingTest.
* Similar fix for HalMemtrackHidlTargetProfilingTest

Test: make vts.
Change-Id: I999d18c53e321921f4bc1a4babe34520cc496321
2017-01-25 21:26:53 -08:00
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
Pawin Vongmasa
120c4da82a Use HIDL's memory for shared memory and add wrapper interfaces for
IGraphicBufferProducer.

Test: Compiles
Bug: 31399200
Change-Id: I17a3b1c8f20e9c11474761d120edd2e75353cc6d
2017-01-25 17:14:20 -08: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
Jim Miller
5f26c1ace2 clean up default fingerprint HIDL@2.1 implementation
- remove Binder dependency by passing keystore token to onAuthenticated()
- move notify() to cpp file

Test: recovers from killing keystore, fingerprint unlocks device,
FingerprintDialog works with crypto objects.

Fixes bug 34264028

Change-Id: Ic0de31603f4bc4147d6faf014af89e787b1ef244
2017-01-25 15:09:37 -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