Commit graph

60 commits

Author SHA1 Message Date
Steven Moreland
69727778a7 Stop all these merge conflicts.
Test: mma -j64
Change-Id: I319198af32adf1fef180c5c2c22ba4b360fa7609
2016-10-26 12:04:37 +02:00
TreeHugger Robot
188ebec994 Merge "Android.bp file update for NFC gtest binary" 2016-10-26 01:17:10 +00:00
TreeHugger Robot
7c1fe0a19d Merge changes from topic 'tv-input'
* changes:
  tv.input: add android.hardware.tv.input@1.0-(impl|service)
  tv.input: add HIDL definition for TV Input HAL
2016-10-26 00:46:59 +00:00
Keun Soo Yim
7786123ca2 Android.bp file update for NFC gtest binary
Test: mma
Change-Id: I2a435532e27e769e5667e1be67a4e80150917e8a
2016-10-25 22:20:37 +00:00
Dongwon Kang
0fa472ff4b tv.input: add HIDL definition for TV Input HAL
Note: Capturing and buffer producer paths have been removed since
there is no use case.

Test: make
Bug: 32096101
Change-Id: Ia00643ee07aadd15b00075f24711e2eaab1ae87d
2016-10-25 14:16:07 -07:00
Eric Laurent
f32eb35212 Merge "initial HAL definition for bradcast radio (e.g FM radio)" 2016-10-24 17:38:24 +00:00
Zhuoyao Zhang
8389b10742 Merge "Add implementation for hwbinder benchmark service." am: 382a80fd8b am: 75b6a17254 am: 75a1a5fd85
am: 0a249a4f79

Change-Id: I27af30956a482053af6be4ce1a4eb1cee53cf3c9
2016-10-24 17:09:19 +00:00
TreeHugger Robot
b580e654cc Merge "Add VR 1.0 hal." 2016-10-22 01:22:34 +00:00
Eric Laurent
402a829db2 initial HAL definition for bradcast radio (e.g FM radio)
Bug: 31973526
Change-Id: Ibdc3f2558104eb56bcb744c431d1213ce3459ed8
2016-10-21 16:58:08 -07:00
Craig Donner
8fd4c6141a Add VR 1.0 hal.
Bug: 31442830
Test: make all and tested VR mode on a device.
Change-Id: Icff8478c27184661d687d970d5b6759bff21beff
2016-10-21 14:27:59 -07:00
TreeHugger Robot
7e54f1b698 Merge "hidl_test: move duplicated code to shared lib" 2016-10-21 20:24:52 +00:00
Zhuoyao Zhang
eb9f507823 Add implementation for hwbinder benchmark service.
Bug:32279499
Test: make android.hardware.tests.libhwbinder@1.0-impl
Change-Id: I75056afa32b8189020608779ec495659ea35ed48
2016-10-21 13:22:12 -07:00
Eric Laurent
c06c4dc68c Merge "audio: add audio HAL service and sound trigger HAL implementation" 2016-10-21 19:55:38 +00:00
Yifan Hong
9171fb8572 hidl_test: move duplicated code to shared lib
Test: hidl_test

Change-Id: Ia68b78d44d68a6b254c686afe64faf7cc89510d7
2016-10-21 10:12:45 -07:00
Steven Moreland
08484f825d Added example vendor extension for light.
Test: make
Bug: 32065239
Change-Id: I8004eaea180d768ccdec0e932d08c1167f5c10cd
2016-10-20 08:52:32 -07:00
Connor O'Brien
5bcecaf0d9 Merge changes from topic 'boot-control-hal'
* changes:
  Add android.hardware.boot_control@1.0 service.
  Add boot_control HIDL default implementation
  boot_control: Define the boot_control HIDL interface.
2016-10-20 01:35:04 +00:00
Eric Laurent
27ef4d872d audio: add audio HAL service and sound trigger HAL implementation
Audio HAL service is common to audio, audio effect, sound trigger and
bradcast radio HALs.

Bug: 32022304
Change-Id: I3952b9c6de3a6b34e757942120320cf8ae036ed5
2016-10-19 16:11:32 -07:00
Alex Deymo
6e0c0102ae boot_control: Define the boot_control HIDL interface.
Bug: 31864052
Merged-In: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47
Change-Id: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47
2016-10-19 14:43:14 -07:00
Yifan Hong
d5b5b2ecea add default implementation to android.hardware.tests.foo/bar/pointer@1.0
Test: hidl_test
Test: mma

Merged-In: I808423c040099354513db0ad108210fcec17c8a7
Change-Id: I808423c040099354513db0ad108210fcec17c8a7
2016-10-18 11:39:00 -07:00
Alex Deymo
6a9e89a6e6 boot_control: Define the boot_control HIDL interface.
Bug: 31864052
Change-Id: I9222b140ff51c4d3846b86b03719e2c8e9b7fe47
2016-10-18 11:19:03 -07:00
Yifan Hong
7105977477 Merge "add default implementation to android.hardware.tests.foo/bar/pointer@1.0" 2016-10-18 05:36:24 +00:00
Prashant Malani
9982934bf6 Update source makefile
Bug: 32209928
Change-Id: Iacfcbf22bc6a2d867b7af0a8efa1e935869b696c
Test: m
2016-10-17 19:48:05 -07:00
TreeHugger Robot
0560c4f73c Merge changes from topic 'binderized_gps_hal'
* changes:
  IGpsDebug Interface for GPS Hal
  GPS HAL Binderization
2016-10-18 01:37:41 +00:00
Yifan Hong
dd39db0c86 add default implementation to android.hardware.tests.foo/bar/pointer@1.0
Test: hidl_test
Test: mma

Change-Id: I808423c040099354513db0ad108210fcec17c8a7
2016-10-17 17:50:11 -07:00
TreeHugger Robot
ca586fbd90 Merge "thermal: add hal objects." 2016-10-17 13:45:47 +00:00
Hridya Valsaraju
e596a71046 GPS HAL Binderization
A Debug interface as well as a configuration interface will be added in
another CL.

Bug: 31974439
Test: mma

Change-Id: I977d95fc815172bd2aae7c78f81e1fc7c9bce72a
2016-10-14 14:33:33 -07:00
Andre Eisenbach
d2bc640bf1 resolve merge conflicts of 733adad to master
Test: Merge conflict resolution
Change-Id: Ida9254e965a7e7ba89c200cbffe106938364b89f
2016-10-14 09:31:42 -07:00
Polina Bondarenko
254e2fe9b9 thermal: add hal objects.
Converted thermal HAL to HIDL,
Added default implementation.

Bug:32022261
Test: Compiles
Change-Id: I92d164b58464f2dee9d8d17affe57fb6af4c1c08
2016-10-14 13:44:09 +02: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
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
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
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
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
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
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
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
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
TreeHugger Robot
4d43b9a21f Merge changes from topic '31180823'
* changes:
  memtrack: Add androis.hardware.memtrack@1.0-service
  memtrack: Add android.hardware.memtrack@1.0-impl
  memtrack: Add memtrack interface 1.0
2016-10-11 18:55:52 +00:00
Ruchi Kandoi
8214a64afb power: Add android.hardware.power@1.0-impl
Bug: 31177288
Change-Id: I410768ef422ec11c2c9d955e7d3aec9a50cb361e
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-11 09:39:14 -07:00
Ruchi Kandoi
3becdbb84d power: Add Power interface 1.0
Bug: 31177288
Change-Id: I9c243166515b565ac73e5f47ff86cfacf59d46d3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-11 09:39:09 -07:00