Commit graph

6178 commits

Author SHA1 Message Date
Roshan Pius
aabe575536 wifi: Restructure wifi legacy HAL implementation
Restructured the existing code to create a new class called
|WifiLegacyHal|. This class will be used as a wrapper to invoke
all the legacy HAL functions and handle the "C" style callbacks.

Bug: 31936700
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I63e8543f49886f8446101320a97d1e96e30d1035
2016-10-04 18:36:22 -07:00
Yifan Hong
effb0d1ee2 Add test for referring to nested types. am: 61db854465 am: a30e27f697 am: c799177c3e
am: e409df1e55

Change-Id: I06119bcf4f27260a2275ed6e56a9c51b11580892
2016-10-04 21:19:44 +00:00
Yifan Hong
e409df1e55 Add test for referring to nested types. am: 61db854465 am: a30e27f697
am: c799177c3e

Change-Id: I16e6fa76a3c810df40e93a06ccac799f7c8207ad
2016-10-04 21:18:09 +00:00
Yifan Hong
c799177c3e Add test for referring to nested types. am: 61db854465
am: a30e27f697

Change-Id: I47800ef8ff8d6aa53580f09cfa9417c41b6f3098
2016-10-04 21:12:13 +00:00
Yifan Hong
a30e27f697 Add test for referring to nested types.
am: 61db854465

Change-Id: Ie4a21561afd882184fe0d9aa1c2772b5849222f7
2016-10-04 21:10:15 +00:00
Roshan Pius
79a9975d07 wifi: Change namespace
Move the implementation to "android::hardware::wifi:V1_0::implementation"
namespace.
This is following the style guidelines in NFC HIDL
implementation(go/aog/279421).

While there,
Run checkstyle to correct formatting issues.

Bug:31936700
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I5600a60a0041b3318ed9289823ec335a8ed8a83d
2016-10-04 13:23:20 -07:00
Roshan Pius
3c4e8a358c wifi: Move legacy HAL implementation
Changes in the CL:
1. Move the legacy HAL implementation from
"frameworks/opt/net/wifi/wifi_hal_legacy" to
"hardware/interfaces/wifi/1.0/default".
2. Renamed the .rc file and the module name in makefile to
conform to the HIDL style guide.

Files renamed from:
wifi_hal_service.cpp/h -> wifi.cpp/h
wifi_chip_service.cpp/h -> wifi_chip.cpp/h
main.cpp -> service

Bug: 31821133
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I5e65e2fdb5596346bde6963588031dcea42d633a
2016-10-04 13:10:25 -07:00
Yifan Hong
61db854465 Add test for referring to nested types.
Bug: 31821285

Test: `make hidl_test && adb sync && adb shell hidl_test`
Change-Id: Iae030baa5bbe6e890512b494a0b657163c6a99a6
2016-10-04 10:40:55 -07:00
Martijn Coenen
2e9c369b2c Merge "Revert "nfc: reflect style guide."" am: ea4b569fee am: a2bdc9d012 am: 99af2885ee
am: fdff6ba374

Change-Id: I7ac7d469afdb944e8b8b49789e4557e43a1918fe
2016-10-04 16:54:25 +00:00
Steven Moreland
387356f3f5 Revert "nfc: update default implementation to match style." am: 3768be324b am: a9f5e70913 am: c01b2939c9
am: d71918f65e

Change-Id: Ib00dd2e0051d2adb43d59269256b97d54dfa0b53
2016-10-04 16:53:41 +00:00
Steven Moreland
ff467a47b6 Revert "nfc: reflect style guide." am: 69bb15e06e am: 523f7fc318 am: d61bc26a53
am: f56e40201f

Change-Id: Ibaf18b639880399cba08fc6a115ae7e165e9f41f
2016-10-04 16:53:40 +00:00
Martijn Coenen
fdff6ba374 Merge "Revert "nfc: reflect style guide."" am: ea4b569fee am: a2bdc9d012
am: 99af2885ee

Change-Id: Id4f8a63dd22750ba5311e30e626876f0763447a9
2016-10-04 16:53:28 +00:00
Steven Moreland
d71918f65e Revert "nfc: update default implementation to match style." am: 3768be324b am: a9f5e70913
am: c01b2939c9

Change-Id: I69dc6f064c79e3a08b06c1cacb03691cdb83f1fc
2016-10-04 16:51:14 +00:00
Steven Moreland
f56e40201f Revert "nfc: reflect style guide." am: 69bb15e06e am: 523f7fc318
am: d61bc26a53

Change-Id: I072343f221a302b97eb6ae9104ca43c8aa573807
2016-10-04 16:51:13 +00:00
Martijn Coenen
99af2885ee Merge "Revert "nfc: reflect style guide."" am: ea4b569fee
am: a2bdc9d012

Change-Id: Idbf1e89939936e3d62df7f565388a9a92922ccc2
2016-10-04 16:49:56 +00:00
Steven Moreland
c01b2939c9 Revert "nfc: update default implementation to match style." am: 3768be324b
am: a9f5e70913

Change-Id: Ie64fbc8d4975684e11e9eda797470ea780dffc55
2016-10-04 16:49:09 +00:00
Steven Moreland
d61bc26a53 Revert "nfc: reflect style guide." am: 69bb15e06e
am: 523f7fc318

Change-Id: Ic87635f8f4136f9384a0486267bbccc1c1afd5f1
2016-10-04 16:49:08 +00:00
Martijn Coenen
a2bdc9d012 Merge "Revert "nfc: reflect style guide.""
am: ea4b569fee

Change-Id: Ic814a2ff70dfca6f4268771750cbfedc7b116dc7
2016-10-04 16:48:28 +00:00
Steven Moreland
a9f5e70913 Revert "nfc: update default implementation to match style."
am: 3768be324b

Change-Id: I51ae622cd0ebc906b0b9ff11f5567869181d3879
2016-10-04 16:47:40 +00:00
Steven Moreland
523f7fc318 Revert "nfc: reflect style guide."
am: 69bb15e06e

Change-Id: Ic511eb65f2a43a981e44d5df5c9c74c48d66bd26
2016-10-04 16:47:39 +00:00
Martijn Coenen
ea4b569fee Merge "Revert "nfc: reflect style guide."" 2016-10-04 16:44:14 +00:00
Steven Moreland
3768be324b Revert "nfc: update default implementation to match style."
This reverts commit 6b6381cb58.

Change-Id: I2891a4ea774ad0047d9f99074fe773808dae0f7c
2016-10-04 16:37:11 +00:00
Steven Moreland
69bb15e06e Revert "nfc: reflect style guide."
This reverts commit e0c416a6f2.

Change-Id: I3fec772343d88a29225aef61bb549fef8ac9b797
2016-10-04 16:36:21 +00:00
Steven Moreland
60e96129be Merge changes from topic 'nfc-style' am: 1d4862a6c2 am: e7476a95f5 am: 974574da1a
am: 15b5e9a71c

Change-Id: I42699b8a5d1b63c021e80ede9f3f138ec6ef5274
2016-10-04 14:43:12 +00:00
Steven Moreland
06b2a1dcca nfc: update default implementation to match style. am: 6b6381cb58 am: 36108aadd4 am: cd1981c475
am: a06aacdc39

Change-Id: Ie907bff58e2a8d92e825a6f95bdaf411ab48f2ff
2016-10-04 14:42:32 +00:00
Steven Moreland
8e93cde7c7 nfc: reflect style guide. am: e0c416a6f2 am: ae83f47dd1 am: 7988bc0f40
am: ecfb4eeeb6

Change-Id: Ia321b59e5861235587e95887ab430f476f9554d4
2016-10-04 14:42:31 +00:00
Steven Moreland
15b5e9a71c Merge changes from topic 'nfc-style' am: 1d4862a6c2 am: e7476a95f5
am: 974574da1a

Change-Id: I8c96012743b13f20ffb941dc3a0c7ad3ed38005c
2016-10-04 14:42:15 +00:00
Steven Moreland
a06aacdc39 nfc: update default implementation to match style. am: 6b6381cb58 am: 36108aadd4
am: cd1981c475

Change-Id: I1968283d96ddb372945a16f3f4812d833de09028
2016-10-04 14:40:06 +00:00
Steven Moreland
ecfb4eeeb6 nfc: reflect style guide. am: e0c416a6f2 am: ae83f47dd1
am: 7988bc0f40

Change-Id: I2339add2fbc7300edd09275daf295529b4723a30
2016-10-04 14:40:05 +00:00
Steven Moreland
974574da1a Merge changes from topic 'nfc-style' am: 1d4862a6c2
am: e7476a95f5

Change-Id: I19a9f6db1356b4643c4e340173ef3bdedef9388f
2016-10-04 14:39:58 +00:00
Steven Moreland
e7476a95f5 Merge changes from topic 'nfc-style'
am: 1d4862a6c2

Change-Id: Ic1339a30f4122f3c1abbcc852cbd38a1b750c36c
2016-10-04 14:38:31 +00:00
Steven Moreland
cd1981c475 nfc: update default implementation to match style. am: 6b6381cb58
am: 36108aadd4

Change-Id: Iac25d37c46c04aa18357c77ace08c810f67ccf72
2016-10-04 14:38:03 +00:00
Steven Moreland
7988bc0f40 nfc: reflect style guide. am: e0c416a6f2
am: ae83f47dd1

Change-Id: I26a3c72524732fa39c815023113bda778ad3a2e8
2016-10-04 14:38:02 +00:00
Steven Moreland
36108aadd4 nfc: update default implementation to match style.
am: 6b6381cb58

Change-Id: Idaf00ade4652d5f38bd8fbbd85e841a4d1cb684d
2016-10-04 14:36:33 +00:00
Steven Moreland
ae83f47dd1 nfc: reflect style guide.
am: e0c416a6f2

Change-Id: I931b59e9ed4d017ba09f8d82c4de87f39b0fc9e7
2016-10-04 14:36:32 +00:00
Steven Moreland
1d4862a6c2 Merge changes from topic 'nfc-style'
* changes:
  nfc: update default implementation to match style.
  nfc: reflect style guide.
2016-10-04 14:33:43 +00:00
Steven Moreland
80f5cdba6d Auto hardware/interfaces/Android.bp am: 7b66dd9b23 am: 723aa3a593 am: 6a02ac55f3
am: c81393fb24

Change-Id: Ie88ee205db3bacd0e3aaaf09601c247c63ced3b3
2016-10-04 00:18:56 +00:00
Steven Moreland
c81393fb24 Auto hardware/interfaces/Android.bp am: 7b66dd9b23 am: 723aa3a593
am: 6a02ac55f3

Change-Id: I1eb87f35db80592d81c4f46b0dcdd6626b84d777
2016-10-04 00:16:02 +00:00
Steven Moreland
6a02ac55f3 Auto hardware/interfaces/Android.bp am: 7b66dd9b23
am: 723aa3a593

Change-Id: Ibf5201426779673179c021bb36968dc000c6350d
2016-10-04 00:12:41 +00:00
Steven Moreland
723aa3a593 Auto hardware/interfaces/Android.bp
am: 7b66dd9b23

Change-Id: Id242473c4c9e417a5629b6ff1522988b9738f7b9
2016-10-04 00:10:42 +00:00
Steven Moreland
7b66dd9b23 Auto hardware/interfaces/Android.bp
Bug: 31909444
Test: make various interfaces, mma -j
Change-Id: Ie2de39572e482415b5279110586a0cb7e5220c8e
2016-10-03 13:55:42 -07:00
Steven Moreland
6b6381cb58 nfc: update default implementation to match style.
Test: make android.hardware.nfc@1.0-impl
Change-Id: Ib76d663fcf28816bd2ba57f5fbd5ae0033b620f5
2016-10-03 08:54:46 -07:00
Steven Moreland
e0c416a6f2 nfc: reflect style guide.
Test: make android.hardware.nfc@1.0
Change-Id: I60c1589492752753c362dc9766ebc7776b5e6e6e
2016-10-03 08:54:29 -07:00
TreeHugger Robot
96eeddc5cc Merge "Add HIDL implementation of vibrator HAL" 2016-10-02 02:12:45 +00:00
Prashant Malani
ca45b2dc29 Add HIDL implementation of vibrator HAL
Test: Builds, boots and vibrator works on bullhead

Change-Id: I0ad3a362d83e5063bdaef2d66bfd785fc5ee6757
2016-09-30 16:12:14 -07:00
Mikhail Naganov
f0a5a94fad Add common types for audio
These types are migrated from system/audio.h. The order and syntax
of declarations is preserved where available. The following
changes have been made:

 - names changed to satisfy HAL style guide;

 - some previously separate enums grouped into one to allow
   using values between them (HIDL doesn't allow using values
   of one enum in another, and even if it would, that will
   probably be incompatible with C++11 enum classes it generates;

 - as HIDL doesn't have sizeof, these were substituted with values;

 - unions can't contain HIDL string type, thus some names are
   expressed as uint8_t arrays;

 - "handle" is a reserved word in HIDL;

 - HIDL vector type is used instead of count / array pairs;

 - obviously, macros and inline functions not migrated.

Bug: 30222631
Test: make
Change-Id: If55de3774deaa0b3f68ca6100e61ccaf79f29183
2016-09-30 14:42:16 -07:00
Dan Willemsen
7b3fbb3e25 Convert to Android.bp am: 242b34edd5 am: 129b540ebe am: 1eb7fbfb41
am: 81cd570d8c

Change-Id: Ib439cba25ee0db74cb4e6358899cc2cc36c48cb6
2016-09-30 20:03:03 +00:00
Dan Willemsen
81cd570d8c Convert to Android.bp am: 242b34edd5 am: 129b540ebe
am: 1eb7fbfb41

Change-Id: Iff7a480d6f9307d7cbb723b19311aab5c28ef998
2016-09-30 19:46:56 +00:00
Dan Willemsen
1eb7fbfb41 Convert to Android.bp am: 242b34edd5
am: 129b540ebe

Change-Id: I0997826bfe5506356f4431a27bd6fde4e8b83099
2016-09-30 19:42:45 +00:00
Dan Willemsen
129b540ebe Convert to Android.bp
am: 242b34edd5

Change-Id: I9e37ecf4f0bc872fef705d3a34e603a30a964326
2016-09-30 19:39:44 +00:00