Commit graph

7566 commits

Author SHA1 Message Date
Zhuoyao Zhang
8e27676c4c Convert vibrator hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalVibratorV1_0Target
      vts-tradefed run vts -m VtsHalVibratorV1_1Target

Change-Id: Iff6015b15c0cca93213e5afe976bd98b6cb3a13b
Merged-In: Iff6015b15c0cca93213e5afe976bd98b6cb3a13b
(cherry picked from commit 7e1c2896ad)
2018-02-13 16:58:40 -08:00
Zhuoyao Zhang
03086cfea4 Merge "Convert omx hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-12 23:03:46 +00:00
Zhuoyao Zhang
2ec93aed52 Merge "Convert tetheroffload hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-12 23:01:23 +00:00
Zhuoyao Zhang
b51d4b2fb0 Convert tetheroffload hal test to use VtsHalHidlTargetTestEnvBase
* This allow VTS to test tetheroffload hal against all service
  implmentations registered with different service name.

Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalTetherOffloadConfigV1_0Target
      vts-tradefed run vts -m VtsHalTetherOffloadControlV1_0Target

Change-Id: I0b4f3cf4abd3ffbd15cef7c2126ce6252a65a28e
2018-02-12 22:57:05 +00:00
nharold
c01ecb318a Merge "Update HIDL makefiles" 2018-02-12 19:25:10 +00:00
Zhuoyao Zhang
eeeaaf5589 Merge "Convert keymaster hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-12 17:31:28 +00:00
Zhuoyao Zhang
c730bcf0af Merge "Convert gatekeeper hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-12 17:30:47 +00:00
Zhuoyao Zhang
e5c6cdccba Merge "Convert ir hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-11 05:52:44 +00:00
Zhuoyao Zhang
146b8f8093 Convert ir hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalIrV1_0Target

Change-Id: If3f7fcd04ce6d1e2a499a62807e186f36a771748
2018-02-10 19:35:49 -08:00
Zhuoyao Zhang
14ab40b9e7 Convert keymaster hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalKeymasterV3_0Target

Change-Id: I6f245996749a53418b71f516ba782fe9d4321501
2018-02-10 12:40:25 -08:00
Zhuoyao Zhang
fce6cdc995 Convert gatekeeper hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalGatekeeperV1_0Target

Change-Id: I55aa7abbb8c5ffa504aac1ed79a07de1139d606b
2018-02-10 12:39:00 -08:00
Zhuoyao Zhang
42749f8863 Merge "Convert configstore hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-10 19:24:18 +00:00
Nathan Harold
01c807fcc7 Update HIDL makefiles
Bug: 73175801
Test: compilation
Change-Id: I41510ffc7b7db4c09ed4e4f390775b9b9d0f79d6
2018-02-09 16:54:59 -08:00
Zhuoyao Zhang
303b2917d4 Convert omx hal test to use VtsHalHidlTargetTestEnvBase
* Move ComponentTestEnvironment to media_hidl_test_common to reduce
  code duplication.

Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalMediaOmxV1_0Host

Change-Id: Ie34ff637ec7ccf98ebfe8d2bda4d5f28bf4c0e11
2018-02-09 16:31:03 -08:00
Zhuoyao Zhang
f82e0825b6 Merge "Convert vr hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 20:21:34 +00:00
Zhuoyao Zhang
a5123bb1b8 Merge "Convert usb hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 20:21:23 +00:00
Zhuoyao Zhang
7e5c008f60 Merge "Convert oemlock hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 20:20:42 +00:00
Zhuoyao Zhang
fadafee26a Merge "Convert cas hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 20:19:55 +00:00
Zhuoyao Zhang
e8ca007d3f Convert vr hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalVrV1_0Target

Change-Id: Ib4a48a2b6a32139472db3d9121b1041d151af961
2018-02-09 17:57:11 +00:00
Zhuoyao Zhang
f5b45790b1 Convert usb hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalUsbV1_0Target
      vts-tradefed run vts -m VtsHalUsbV1_1Target

Change-Id: I49d8af2b53e484cc68fcb72f75f8bfafc6d02f59
2018-02-09 17:56:55 +00:00
Zhuoyao Zhang
250d67a157 Merge "Convert dumpstate hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 17:31:54 +00:00
Zhuoyao Zhang
44765e3ae8 Merge "onvert weaver hal test to use VtsHalHidlTargetTestEnvBase" 2018-02-09 17:29:57 +00:00
Zhuoyao Zhang
da6f202dd5 Convert oemlock hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalOemlockV1_0Target

Change-Id: I31f5b51efb5f139da7779dedd2b3105cfc04c915
2018-02-08 22:42:39 -08:00
Zhuoyao Zhang
e95d49ac44 Convert fingerprint hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalBiometricsFingerprintV2_0Target

Change-Id: Ia5be72669a8abae64009c659b6c991a0e64c2d0d
2018-02-08 22:24:04 -08:00
Zhuoyao Zhang
ff7abc09d1 onvert weaver hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalWeaverV1_0Target

Change-Id: I6d59b2b1cdf166fba706edea30bf1e0f0e8f33e6
2018-02-08 21:53:09 -08:00
Zhuoyao Zhang
bdca6e27da Convert dumpstate hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalDumpstateV1_0Target

Change-Id: I064ef5738197c5e74e7b5a15f14b160eebe09c5f
2018-02-08 21:33:29 -08:00
Zhuoyao Zhang
d198ea4c09 Convert configstore hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalConfigstoreV1_0Target

Change-Id: I4ba993d41e285df790c267e84b484f1564047e1e
2018-02-08 21:31:57 -08:00
Zhuoyao Zhang
a5e6707e9c Convert cas hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalCasV1_0Target

Change-Id: If8174499b0fce2404fa3f363bc3ec439092c4068
2018-02-08 21:31:01 -08:00
Treehugger Robot
8f7ff5730b Merge "Fwk matrix use PLATFORM_SEPOLICY_*" 2018-02-07 22:32:44 +00:00
Yifan Hong
b426af39ad Fwk matrix use PLATFORM_SEPOLICY_*
It used BOARD_SEPOLICY_VERS as a workaround, which is incorrect.

Test: m framework_compatibility_matrix.xml -j
Bug: 67920434
Change-Id: I029edd2f573740af272f8b767bb1ec5cc1dc0415
2018-02-05 13:45:36 -08:00
Treehugger Robot
bf81fc584b Merge "Add NFC 1.1 VTS Test" 2018-02-04 23:11:56 +00:00
Ruchi Kandoi
912ce33eeb Add NFC 1.1 VTS Test
Test: Run VtsHalNfcV1_1TargetTest
Bug: 72746517
Change-Id: I11db8782e89fe06a33d9d7b56d3270b0ad0341cd
2018-02-02 16:53:00 -08:00
Treehugger Robot
3a9680bd44 Merge "Remove extra space." 2018-02-02 22:48:44 +00:00
Steven Moreland
dcb1ff7104 Remove extra space.
Pointed out to me.

Bug/Test: none

Change-Id: I2cd01c5d46525cda3cfe32a2bf79655e6f9b84bd
2018-02-02 12:35:40 -08:00
Treehugger Robot
2ea233becb Merge "Create NeuralNetworks HAL v1.1 for new OperationTypes" 2018-02-02 02:17:36 +00:00
Treehugger Robot
62bd6006e9 Merge "Displaying HD audio indicator for GSM/CDMA calls" 2018-02-01 21:18:53 +00:00
Chia-I Wu
779a7aa37a Merge changes from topic "gralloc-mapper-cleanup"
* changes:
  graphics: move libVtsHalGraphicsMapperTestUtils
  graphics: make mapper default impl a header library
  graphics: add mapper HAL support library
  graphics: make allocator passthrough library header-only
2018-02-01 20:53:26 +00:00
Ruchi Kandoi
6a75cdbe96 Merge "Add VTS Test for Secure Element HAL" 2018-02-01 18:08:23 +00:00
Ruchi Kandoi
4475917d65 Add NFC HAL 1.1
Adds factoryReset(). This must be used by the HAL to clear the chip and
use the do a full initialization at the next init.

Adds closeForPowerOffCase(). There are vendor specific
configurations that are need during NFC power off to enable low battery
and power off use cases. This will distinguish cases where the user
turns NFC off because they do not want to use NFC and NFC is turned off
as a result of device switched off.

HCI_NETWORK_RESET event has been added to indicate something went wrong
on the firmware level and HCI network needs to be re-initialized.

Bug: 70294869
Bug: 70294551
Test: Run VtsHalNfcV1_1TargetTest
Change-Id: Ib981a56ac94e06b74bd901a159791f09ea16483a
2018-02-01 16:32:07 +00:00
Michael Butler
162aa583b8 Create NeuralNetworks HAL v1.1 for new OperationTypes
Test: mm
Change-Id: I08efaba79ec28a2f89e94a84ab88b0fa701b7d98
(cherry picked from commit 5c6ee9ecef)
2018-01-31 15:42:11 -08:00
Chia-I Wu
5255c35a70 graphics: move libVtsHalGraphicsMapperTestUtils
Move libVtsHalGraphicsMapperTestUtils from 2.0/vts/functional/ to
2.0/utils/vts/.  Run clang-format.

Test: VTS
Change-Id: I1e87129cbdc12167160f7e2f1cd76478e88bbf41
2018-01-31 15:11:50 -08:00
Chia-I Wu
821c4c4a9d graphics: make mapper default impl a header library
Reimplement the default impl as a header-only library,
android.hardware.graphics.mapper@2.0-passthrough, based on the HAL
support library.

Effectively, this renames Gralloc[01]Mapper to Gralloc[01]Hal, and
make adjustments here and there to meet the requirements of the HAL
support library.  This also adds GrallocLoader to load either of
Gralloc[01]Hal and create an IMapper instance.

libgrallocmapperincludes is renamed to follow the new naming and
include path conventions.

Test: boots and VTS
Change-Id: I924cadce9a10a6e544f99ceba63aadc38ec431ac
2018-01-31 15:11:50 -08:00
Chia-I Wu
fd1924f6f5 graphics: add mapper HAL support library
Add a header-only support library
android.hardware.graphics.mapper@2.0-hal that can be used by
implementations.  There are two classes in the support library.
MapperHal is an abstract class to be implemented by implementations.
Mapper is an implementation of HIDL IMapper interface on top of
MapperHal.

An implementation can

  class VendorHal : public MapperHal { ... };

  auto mapper = std::make_unique<Mapper>();
  mapper->init(std::make_unique<VendorHal>(...));

Or, if vendor extensions are to be added to the IMapper,

  class MapperHalExt : public MapperHal { ... };
  class VendorHal : public MapperHalExt { ... };
  class MapperExt : public MapperImpl<IMapperExt, MapperHalExt> { ... };

  auto mapper = std::make_unique<MapperExt>();
  mapper->init(std::make_unique<VendorHal>(...));

Test: builds
Change-Id: Ib23c1f5977744f7e116bb93db53e882e2dad7ce3
2018-01-31 15:11:50 -08:00
Chia-I Wu
422b94e002 graphics: make allocator passthrough library header-only
android.hardware.graphics.allocator@2.0-passthrough should be a
header-only library to be fully reusable by vendor HALs.

This also allows us to switch from virtual inheritance to templates,
which is more straightforward.  This changes nothing to the users
and we still have these relations

 - AllocatorHal is an abstract class to be implemented by vendors or
   the default implementations
 - Gralloc[01]Hal are our default implementations
 - Allocator implements HIDL IAllocator interface on top of
   AllocatorHal

What we do not like about virtual inheritance is that, given

  // abstract class B and D
  class B {
    virtual void foo() = 0;
    virtual void bar() = 0;
  };
  class D : public virtual B {
    // foo is superceded by fooEnhanced in D
    void foo() { fooEnhanced(); }
    virtual void fooEnhanced() = 0;
  };

  // an implementation of B
  class BImpl : public virtual B {
    void foo() {}
    void bar() {}
  };

  // an implementation of D on top of BImpl
  class DImpl : public virtual D, public virtual BImpl {
    void fooEnhanced() {}
  };

we get "no unique final overrider" becase both D and BImpl implement
foo.  With non-virtual inheritance, on the other hand, we get "DImpl
is abstract" because foo is still pure virtual implemented in DImpl.
Templates solve the issue by allowing

  namespace detail{
  template<typename T>
  class BImpl : public T { ... };

  template<typename T>
  class DImpl : public BImpl<T> { ... };
  } // namespace detail

  using BImpl = detail::BImpl<B>;
  using DImpl = detail::DImpl<D>;

Test: boots
Change-Id: Iccb513e4fc751e9a687a1ed2d9fb2192c8324a50
2018-01-31 15:11:50 -08:00
Ruchi Kandoi
22a4d0e07e Add VTS Test for Secure Element HAL
Test: Run VTS test
Bug: 64881253
Change-Id: If77d87c88bd073409dce3d18aba8f15a1267a80e
2018-01-31 11:51:48 -08:00
Yifan Hong
de542acbbf health 2.0: update README for typo.
Test: none
Change-Id: Iaede40e22b909a06592dceedb3b430232ced0b1a
2018-01-30 15:32:30 -08:00
Yifan Hong
3e6dbcbc30 health: add README.
Test: none
Bug: 63702641
Change-Id: I1d23c0cdf56516585e7c6dd0db577784baa7b74e
Merged-In: I1d23c0cdf56516585e7c6dd0db577784baa7b74e
2018-01-30 15:06:21 -08:00
Ruchi Kandoi
241e5aba9e Add SecureElement HAL interface
Test: Run VtsHalSecureElementV1_0TargetTest
Bug: 64881253
Change-Id: Ie37228e27356ac0958ab7469e2276253325c4e4f
2018-01-25 16:56:47 -08:00
Takumi Hori
5e2330370f Displaying HD audio indicator for GSM/CDMA calls
Return audio quality information during a voice call along with call
details from RIL. This information is expected to be used to display
HD audio indicator when wide band speech codec is notified.
This feature is necessary to fulfill some carriers requirement.

Test: manual - Checked that HD audio indicator is displayed on UI in
GSM/CDMA calls.
Bug: 30207043

Change-Id: Ic6518b7b5c37c4b9cfcd83bd0c5b836acd3f60da
2018-01-25 15:22:23 -08:00
Treehugger Robot
4365f2e6bc Merge "HIDL changes for IWLAN refactoring" 2018-01-25 17:41:57 +00:00