Commit Graph

40125 Commits

Author SHA1 Message Date
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
Roshan Pius
db965ee334 wifi: Add Iface related method implementations in WifiChip am: 35d958c43f am: 11cbff5cee am: 757938287e
am: c7e7cf6683

Change-Id: Id1123a2f03551dd155d98dfe4eeb57defe87ea6d
2016-10-11 21:07:48 +00:00
Roshan Pius
3563ae0b7c wifi: Add the various iface object implementation am: 3e2d671a4c am: 6179a92b9a am: 53046195bf
am: 284a74db6d

Change-Id: I0cb4df2192f62ada493442614bb01f0f6d629306
2016-10-11 21:07:47 +00:00
Roshan Pius
f14d4d9f0b wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b am: 638c7d6fa4 am: 06c0ff2343
am: 357eb45362

Change-Id: I9a8f679d6ec07360c9916db9b06010d6164f9716
2016-10-11 21:07:46 +00:00
Roshan Pius
112d067bf1 wifi: Add support for multiple chips in IWifi am: cd566bddd7 am: f7702fcfba am: e8ff1680f0
am: 778b9cede7

Change-Id: If1f272063dfbb422819552726da1c95bed59fe16
2016-10-11 21:07:44 +00:00
Roshan Pius
ec32270ea8 wifi(interface): Add RTT Controller object am: fcbf923d3a am: 83090ab624 am: c3b023d51a
am: 52ecf27088

Change-Id: I97f2df8c62e75689842dcad6612bc478dd0e559e
2016-10-11 21:07:43 +00:00
Roshan Pius
cfa4b71843 wifi(interface): Add Iface objects am: adcfba4b09 am: 68e09f0c35 am: bd0cd30d0d
am: e86e9f157a

Change-Id: I36bb6817263818bb0d360206dac09b08a1c308b2
2016-10-11 21:07:41 +00:00
Prashant Malani
5e4eb5ed98 vibrator: Add service for default impl
Test: m
Bug: 32021191
Change-Id: I5438a8c396103de8fb1e800e9d06165edfc1f68b
2016-10-11 14:06:08 -07:00
Roshan Pius
182f980f9c wifi: Invoke failure callbacks am: f243631af8 am: de95c70497
am: 77b9999d20

Change-Id: Ib16c793e965993b184ee8825533164a889beb354
2016-10-11 21:02:33 +00:00
Roshan Pius
fc3862dc93 wifi: Add WifiRttController object am: 5926828728 am: 6de20076a3
am: 495ffe9bcb

Change-Id: I1707ca5f7f07236b94115e28e645ba7acce3e5f6
2016-10-11 21:02:32 +00:00
Roshan Pius
c7e7cf6683 wifi: Add Iface related method implementations in WifiChip am: 35d958c43f am: 11cbff5cee
am: 757938287e

Change-Id: I120d1ed4bdb6913b7230b0e2f62629e0c9f5ffb3
2016-10-11 21:02:30 +00:00
Roshan Pius
284a74db6d wifi: Add the various iface object implementation am: 3e2d671a4c am: 6179a92b9a
am: 53046195bf

Change-Id: I14d64f7dd2e74a4519500285612aa444d3139665
2016-10-11 21:02:29 +00:00
Roshan Pius
357eb45362 wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods am: ab5c471b0b am: 638c7d6fa4
am: 06c0ff2343

Change-Id: I20fa6972e27ebf89e5ef6432bb256bd82ddc4f8b
2016-10-11 21:02:27 +00:00