Commit graph

8437 commits

Author SHA1 Message Date
Steven Moreland
8c2e2ce86d Merge "Cleanup nfc service code."
am: a91254d196

Change-Id: I5bb71ea5f876bc44519200fc6e640f5cd5b61ebb
2016-10-14 07:46:18 +00:00
Treehugger Robot
a91254d196 Merge "Cleanup nfc service code." 2016-10-14 07:42:18 +00:00
Chia-I Wu
9f85133e8b Merge changes from topic 'hwc-hal'
* changes:
  graphics: add a default implementation for IComposer
  graphics: add HIDL definition for HW composer
2016-10-14 04:14:34 +00:00
Keun Soo Yim
952f529379 Merge "add NFC component_type" 2016-10-14 01:03:37 +00:00
Chia-I Wu
7f8d39669c graphics: add a default implementation for IComposer
The default implementatoin is built on top of conventional hwcomposer2.

Test: make
Change-Id: Ia4f13b1d682462769056679fc0aae82a75cb53d2
2016-10-13 16:40:51 -07:00
Chia-I Wu
acce69901d graphics: add HIDL definition for HW composer
This is a direct translation of hwcomposer2.h to HIDL.

Test: make
Change-Id: Id007af271b06f0d86afc8bc7c57300c588dc4081
2016-10-13 16:40:51 -07:00
Myles Watson
733adade9d Add Bluetooth HAL definition am: acfbd25247 am: 97e5e07f44
am: 51adf98706

Change-Id: Ie1370c4b0ba1526dab4b8fd3c61166ed756cdb9f
2016-10-13 22:51:49 +00:00
Myles Watson
51adf98706 Add Bluetooth HAL definition am: acfbd25247
am: 97e5e07f44

Change-Id: I1e6f52a16b0018a7f5a53a8d6af9154e37c623ee
2016-10-13 22:48:41 +00:00
Myles Watson
97e5e07f44 Add Bluetooth HAL definition
am: acfbd25247

Change-Id: I6af87217e138df95815178c0fd9c78102cac0a77
2016-10-13 22:46:41 +00:00
Myles Watson
acfbd25247 Add Bluetooth HAL definition
Test: compiles
Bug: 31972505
Change-Id: I7608b0814c9ca697b21c9e115cfcd81ab1364892
2016-10-13 22:32:38 +00:00
Andreas Huber
4364bae74d Merge "sensor HAL v3" 2016-10-13 19:55:53 +00:00
Keun Soo Yim
a5a00b6e0d add NFC component_type
This manual change's needed until hidl's package name is used by vtsc
to select a vts spec file to use to test a specific hidl hal module.

Test: vts-tradedef; run vts-hal-hidl
Change-Id: Ifae9ba1ca07df0cb07ebed2f3f16417b6fc4bf20
2016-10-13 10:32:12 -07:00
Steven Moreland
7573963148 Cleanup nfc service code.
Test: mma
Change-Id: Ie65c5bfde292107bec567a297e86eebf5cd7fa41
2016-10-13 09:33:18 -07:00
Andreas Huber
db49a41180 sensor HAL v3
Bug: 32021636
Test: no
Change-Id: I7a4c5c47f8621209daef5af4d0dcbb806a236e41
2016-10-13 09:21:46 -07:00
Sasha Levitskiy
7bceb23032 Fingerprint: HIDL: add legacy (2.1) interface definition.
Test: make for bullhead_treble

Change-Id: Ibc720d8cfdd6a3a39904787885ba4f2e398979b3
2016-10-13 09:20:01 -07:00
TreeHugger Robot
d483665bec Merge "Update vts files for nfc hidl file style change." 2016-10-13 04:50:18 +00:00
TreeHugger Robot
c794c7b6c2 Merge changes from topic 'nfc-style'
* changes:
  nfc: reflect style guide.
  nfc: update default implementation to match style.
2016-10-13 04:50:18 +00:00
TreeHugger Robot
3c766918dc Merge "memtrack: Add init_rc file for the android.hardware.memtrack@1.0-service" 2016-10-13 02:50:36 +00:00
Ruchi Kandoi
982fec747d memtrack: Add init_rc file for the android.hardware.memtrack@1.0-service
Test: boots and starts service
Bug: 31180823
Change-Id: Ibc94a2eb1be1d7071c2c481f6abc13a0f8c6401e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-13 00:55:07 +00:00
Mikhail Naganov
96b30be9d0 Define audio HAL
Created after hardware/audio.h with the following changes:

 - names changed to satisfy HAL style guide;

 - defined getter / setter methods for properties, and interfaces
   for devices where needed;

 - stream out callback changed to be used over RPC;

 - 'dump' method is already defined by BBinder, so in HAL
   interfaces it is replaced by 'debugDump'.

Note that audio data is currently transferred using byte buffer,
which is not effective due to memory copy and HwBinder transaction
involved. The transfer method will be changed to FastMessageQueue.

Bug: 30222631
Test: make

Change-Id: Ibb3bd940a91820e81d1a2b53b38d63b9e3de148a
2016-10-12 17:01:32 -07:00
Eric Laurent
12adb906e5 Merge "fix the build" 2016-10-12 23:11:25 +00:00
Alexander Levitskiy
640c5a455b Merge "vibrator: Fix malformed blue print file" 2016-10-12 23:00:30 +00:00
Eric Laurent
6d0a19555e fix the build
Change-Id: I54426dc1b9e1f11a5bcdb22712d41bb9c2657f58
2016-10-12 15:58:08 -07:00
TreeHugger Robot
14eb1f79b4 Merge "VTS driver build target for NFC 1.0" 2016-10-12 21:05:59 +00:00
TreeHugger Robot
e30fb98122 Merge "Initial HIDL vehicle HAL" 2016-10-12 20:50:57 +00:00
Pavel Maltsev
a2f426ab27 Initial HIDL vehicle HAL
Bug: b/31803520
Test: writing a test client in upcoming CLs

Change-Id: I050ab2d764f4550c5d0417c892d05d95472c9b7f
2016-10-12 12:01:50 -07:00
Eric Laurent
da9db484bf Merge "sound trigger: initial implementation of TREBLE HAL" 2016-10-12 18:32:36 +00:00
Chia-I Wu
1e00defbac Merge changes from topic 'gralloc-hal'
* changes:
  graphics: add a default implementation to IMapper
  graphics: add IMapper to complement IAllocator
  graphics: add a default implementation to IAllocator
  Add HAL definition for graphics buffer allocator
2016-10-12 18:11:45 +00:00
TreeHugger Robot
7ff7da9095 Merge changes from topic 'hidl-light-hal'
* changes:
  Adding android.hardware.light@2.0 service.
  Light 2.0 hal default implementation.
  Add lights 2.0 hal.
2016-10-12 16:40:52 +00:00
Keun Soo Yim
b6d8853abe VTS driver build target for NFC 1.0
Test: mma
Change-Id: Icc88b2bf79f2d2f23e908389c1e9d4994b439602
2016-10-12 16:26:58 +00:00
Eric Laurent
fc496a2fff sound trigger: initial implementation of TREBLE HAL
Initial version of the sound trigger HAL for TREBLE model.
Functionally equivalent to legacy HAL.

Bug: 30222631

Test: build verified

Change-Id: I3cc904f21e1d81458ef877352b21c25a798cd355
2016-10-12 08:55:36 -07:00
Mikhail Naganov
d2586811e8 Merge "Remove redundant prefixes from enums in audio common types and effects HAL" 2016-10-12 15:33:35 +00:00
Chia-I Wu
0f215c5a33 graphics: add a default implementation to IMapper
The default implementatoin is built on top of conventional gralloc1.

Test: make android.hardware.graphics.mapper.hallib
Change-Id: I8647dc69dbb1637a141d36358d5769f450422ac1
2016-10-12 06:59:26 -07:00
Chia-I Wu
9af67ec5f8 graphics: add IMapper to complement IAllocator
IMapper is loaded in-process and is defined in C++ instead of HIDL.  To
guarantee binary compability, the interface is a struct of function
pointers instead of a class of pure virtual member functions.  The
functions pointed to by the function pointers must also have C-linkage and
have all of their parameters PODs.

Implementations are expected to be installed to

  /oem/lib/hw/android.hardware.graphics.mapper.hallib.so
  /vendor/lib/hw/android.hardware.graphics.mapper.hallib.so
  /system/lib/hw/android.hardware.graphics.mapper.hallib.so
  (lib64 instead of lib for 64-bit implementations)

The loader will look for the symbol "HALLIB_FETCH_Interface" and use it to
fetch the interface.

Test: make android.hardware.graphics.mapper@2.0
Change-Id: I3a2c7a6ce18a90adda6df2d89559c957a122fdf0
2016-10-12 06:59:26 -07:00
Chia-I Wu
109571a22a graphics: add a default implementation to IAllocator
The default implementatoin is built on top of conventional gralloc1.

This also adds a static library, libgralloc1-adapter.  It is intended to
ease the porting of gralloc0 to gralloc1.

Test: booted to launcher, tested with YouTube and some games.

Change-Id: Id640b1d5a1e1eea1aafabb6c134e6be6e71afff5
2016-10-12 06:59:26 -07:00
Chia-I Wu
e78aa1bd90 Add HAL definition for graphics buffer allocator
It differs from gralloc1.h in that

 - buffer descriptors are created from a struct, BufferDescriptorInfo, to
   reduce round trips
 - testAllocate is a function of its own
 - buffer allocation and export are two different steps
 - reference counting and buffer mapping are moved to gralloc-mapper
 - BAD_HANDLE is renamed to BAD_BUFFER
 - GRALLOC1_CONSUMER_USAGE_FOREIGN_BUFFERS is removed
 - CPU_{READ,WRITE}_OFTEN no longer implies CPU_{READ,WRITE}

Test: make android.hardware.graphics.allocator@2.0

Change-Id: Ibe9367d5b1701c0e1009da829f27fed0f7d98828
2016-10-12 06:59:26 -07:00
Janis Danisevskis
397a865f9e vibrator: Fix malformed blue print file
Test: yes
Change-Id: I7162e5ba2f03b21b4ecdf4fd524ffee84bf932eb
2016-10-12 11:17:53 +01:00
TreeHugger Robot
9664f7e901 Merge "vibrator: Add service for default impl" 2016-10-12 01:15:59 +00:00
TreeHugger Robot
adab5ccd42 Merge changes from topic '31177288'
* changes:
  power: Add android.hardware.power@1.0-service
  power: Add android.hardware.power@1.0-impl
  power: Add Power interface 1.0
2016-10-12 00:54:24 +00:00
Steven Moreland
75078a79e0 Merge "Added test for overloading." am: a3ba3c359c am: 51eac9ecae am: 0a94cf6e57
am: a8bebf4b23

Change-Id: Ief961afe9671dc9712e3eda0a7bbe397bdeb9f17
2016-10-12 00:36:44 +00:00
Steven Moreland
a8bebf4b23 Merge "Added test for overloading." am: a3ba3c359c am: 51eac9ecae
am: 0a94cf6e57

Change-Id: I79d7bc756e7f973155bfe31d06fafd9260f66850
2016-10-12 00:31:56 +00:00
Steven Moreland
0a94cf6e57 Merge "Added test for overloading." am: a3ba3c359c
am: 51eac9ecae

Change-Id: I4e57905a1d5d22759021db4412f44b635da6e494
2016-10-12 00:25:41 +00:00
Steven Moreland
51eac9ecae Merge "Added test for overloading."
am: a3ba3c359c

Change-Id: I4deea63a5191b3ca8191a59b4c48aef2c2318a54
2016-10-12 00:19:07 +00:00
Treehugger Robot
a3ba3c359c Merge "Added test for overloading." 2016-10-11 23:24:47 +00:00
Steven Moreland
41db6ab899 Adding android.hardware.light@2.0 service.
Bug: 32022100
Test: end-to-end
Change-Id: I2d143f3a283e3a230c5ae4999e492f29ffe4234c
2016-10-11 16:22:35 -07:00
Steven Moreland
81f5da98ce Light 2.0 hal default implementation.
Bug: 32022100
Test: end to end
Change-Id: Ifa3c170758b57179ecc7fa518adb62b4b5916e85
2016-10-11 16:22:22 -07:00
Steven Moreland
f44888812a Add lights 2.0 hal.
Bug: 32022100
Test: make android.harware.light@2.0
Change-Id: I2f326f91d43f6dc6922f0c12fd7c764d6a992ca2
2016-10-11 16:22:04 -07:00
Steven Moreland
86c848de0b Added test for overloading.
Test: make, hidl_test
Bug: 31758541
Change-Id: Ia0fdad2f0b0155065a7dec5526ab5d14a9ec1f52
2016-10-11 22:40:50 +00:00
Roshan Pius
fcf7c54780 wifi: Invoke failure callbacks am: f243631af8 am: de95c70497 am: 77b9999d20
am: 182f980f9c

Change-Id: I529aee41677d1dbb4810fe4ca93f948bf89b8f8a
2016-10-11 21:07:51 +00:00
Roshan Pius
b0e5b164f1 wifi: Add WifiRttController object am: 5926828728 am: 6de20076a3 am: 495ffe9bcb
am: fc3862dc93

Change-Id: Ib50d52b59d258342bca71c94d6231186d9165b36
2016-10-11 21:07:50 +00:00