Commit graph

7551 commits

Author SHA1 Message Date
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
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
Zhuoyao Zhang
edf1e2f589 Merge "Convert sensors HAL test to use VtsHalHidlTargetTestEnvBase" 2018-01-24 19:50:21 +00:00
Yifan Hong
f3dd36fd5c Merge changes from topic "vintf_kernel_ver"
* changes:
  Compatibility matrices: add minor revision to kernel versions
  Compatibility matrices: kernel req at each FCM version
2018-01-24 19:32:07 +00:00
Jack Yu
76499e9be5 HIDL changes for IWLAN refactoring
Added few more parameters required for IWLAN handover to
the existing data call setup/deactive APIs.

Test: Telephony sanity tests
bug: 64132030
Change-Id: I7bb04fc5f32908fa064370d5123252022a166abc
2018-01-24 10:48:08 -08:00
Zhuoyao Zhang
733ee1654e Convert sensors HAL test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalSensorsV1_0Target

Change-Id: I1f7e3a8adf58bbeeb0928185a61f16610dd76223
2018-01-24 09:35:55 -08:00
Eric Schwarzenbach
0f2a7358d6 Add bandwidth to cell info.
Bug: 70638175
Test: make
Change-Id: I1a4259542176cf44556131bb2b57107d51b2410e
2018-01-24 03:06:55 +00:00
Eric Schwarzenbach
20fd2c70ff Add physical channel configuration indication.
Also adds the new requisite types and an IndicationFilter for reporting.

Bug: 70638175
Test: n/a
Change-Id: I29f5fba4d1b21af3e7fda876c9a5c911936aeada
2018-01-24 03:06:47 +00:00
Eric Schwarzenbach
21c6dc3548 Add reporting criteria to radio interface.
Enables setting various reporting criteria for unsolicited signal
strength and LCE reports. Creates a new LCE report including both up and
down bandwidths. Updates documentation for various IndicationFilter bits
to add clarity.

Bug: 70638175
Test: n/a
Change-Id: If8141fbd89baf85ed5ee65d589f111907a9bf8b4
2018-01-24 03:06:37 +00:00
Treehugger Robot
19940c6778 Merge "Add default implementation for radio config HAL" 2018-01-24 02:30:19 +00:00
Treehugger Robot
7b9e7c3f4b Merge "Remove unnecessary group from blank_screen." 2018-01-24 02:20:40 +00:00
Yifan Hong
94b7d2ca19 Compatibility matrices: add minor revision to kernel versions
Test: builds
Bug: 72388844
Change-Id: Id60cef10610f39d70eebccbeb6e625e3d93795c6
2018-01-23 17:28:27 -08:00
Yifan Hong
44c9b2e1f4 Compatibility matrices: kernel req at each FCM version
* devices with Shipping FCM version
   legacy / O / O-MR1 use 3.18, 4.4, 4.9

* devices with Shipping FCM version P use 4.4 4.9

Bug: 72389707

Test: manual inspection on
$OUT/system/etc/vintf/compatibility_matrix.*.xml

Change-Id: I4f37325c0210f88e9e6d3e7136a82d50da3e93fe
2018-01-23 17:28:27 -08:00
Steven Moreland
efab822141 Remove unnecessary group from blank_screen.
Was accidentally copy-pasted here.

Bug: N/A
Test: setprop ctl.start blank_screen
Change-Id: I0b100b02aecd2649f2528834f431a0bc8b164c46
2018-01-23 15:15:40 -08:00
yinxu
26487e7a11 Add default implementation for radio config HAL
Bug: 64131518
Test: Basic telephony sanity
Change-Id: I6bd6c6c46f8f70fd13b6c02ddfe399e04190133a
2018-01-23 10:29:28 -08:00
Badhri Jagan Sridharan
204314ace2 Merge "Usb: HIDL: UsbGadget hal" 2018-01-23 03:09:27 +00:00
Treehugger Robot
cf99978291 Merge "camera: add support for camera removal" 2018-01-23 00:52:00 +00:00