Commit Graph

20663 Commits

Author SHA1 Message Date
Roshan Pius
5a225ae795 Merge changes from topic 'rename_wifi_hal'
am: 73e6598317

Change-Id: I57f299c01135271fa6fbb16d30d3ccf62c415b33
2016-10-05 23:39:04 +00:00
Roshan Pius
e12a119446 wifi(interface): Rename interface to iface
am: 271f2c2d9c

Change-Id: I623c387824deba3e883cf68c032a897ebcac907a
2016-10-05 23:39:02 +00:00
Roshan Pius
f5e1b72fac wifi(interface): Add/Correct docstring params
am: 6f31d92e59

Change-Id: Icf70fe64c660ec05d48054fe7ac01caccef65240
2016-10-05 23:39:01 +00:00
Roshan Pius
7397e8b933 wifi: Add implementation of driver/firmware memory dumps
am: cdb77f3cf2

Change-Id: I11fb9cc47f84a49b4a836da28266089f9971768c
2016-10-05 23:39:00 +00:00
Roshan Pius
28c1a422f2 wifi: Add Implementation of IWifiChip.requestChipDebugInfo
am: 4b26c832ed

Change-Id: I9c5f107d0978ee71a415e12fbb11efa8f616ead4
2016-10-05 23:38:59 +00:00
Roshan Pius
01f430f31f wifi: Use hal_tool & if_tool
am: 908a69a53a

Change-Id: I8b5260f1f02124ba71fb52b306f29f43d1d11d96
2016-10-05 23:38:58 +00:00
Roshan Pius
e9301b4c57 wifi: Restructure wifi legacy HAL implementation
am: aabe575536

Change-Id: I1414455e7a64efbfe1556a3e0e74370d54db340f
2016-10-05 23:38:56 +00:00
Roshan Pius
162f178af9 wifi: Change namespace
am: 79a9975d07

Change-Id: I00ad528928fdb6fad22dacb7658ce9dbf5817a2b
2016-10-05 23:38:55 +00:00
Roshan Pius
2e5f1858e4 wifi: Move legacy HAL implementation
am: 3c4e8a358c

Change-Id: I9b91ce2502601d2b3181b17a31273309ddfcf27c
2016-10-05 23:38:54 +00:00
Treehugger Robot
73e6598317 Merge changes from topic 'rename_wifi_hal'
* changes:
  wifi(interface): Rename interface to iface
  wifi(interface): Add/Correct docstring params
  wifi: Add implementation of driver/firmware memory dumps
  wifi: Add Implementation of IWifiChip.requestChipDebugInfo
  wifi: Use hal_tool & if_tool
  wifi: Restructure wifi legacy HAL implementation
  wifi: Change namespace
  wifi: Move legacy HAL implementation
2016-10-05 23:35:12 +00:00
Andreas Huber
8d34eec6b2 Annotated android.hardware.audio.common@2.0 package to prepare for automated
extraction of constants into utility header.

Bug: 31800672
Change-Id: If261127a0108536a95ef7f94cca27a313aa21ace
Test: make
2016-10-05 16:24:15 -07:00
Yifan Hong
064741a4c3 Add test for vec<vec<T>> as a return value. am: 223b82a07d am: b364daa90e am: d43170e537
am: 6e9668b88e

Change-Id: Iba4193be1f8264f81bb43c39cf26bd53ad4b4f07
2016-10-05 23:11:16 +00:00
Mikhail Naganov
f3a465ec78 Merge "Remove provisional types from common audio definitions" 2016-10-05 23:10:57 +00:00
Yifan Hong
6e9668b88e Add test for vec<vec<T>> as a return value. am: 223b82a07d am: b364daa90e
am: d43170e537

Change-Id: I594ceaf8e1d7e7ace0a570b928f6218fa7c9b4d5
2016-10-05 23:01:26 +00:00
Yifan Hong
d43170e537 Add test for vec<vec<T>> as a return value. am: 223b82a07d
am: b364daa90e

Change-Id: Id2e518a2d3cc84957060465d634f3c95263879e8
2016-10-05 22:58:57 +00:00
Yifan Hong
b364daa90e Add test for vec<vec<T>> as a return value.
am: 223b82a07d

Change-Id: I95ad44aed3a42ad1d82e2f3e1b03da18012f0c6c
2016-10-05 22:51:19 +00:00
Yifan Hong
c5be5aca63 Add test for missing package name for FQName lookup.
Bug: 31705664

Test: `cd system/tools/hidl && mma`
Change-Id: If3568f1d1e77ad97ccfce5eac5938048f3852560
2016-10-05 15:50:28 -07:00
Yifan Hong
223b82a07d Add test for vec<vec<T>> as a return value.
Bug: 31955917

Test: hidl_test
Change-Id: I9ae7f9b04126261210cb4621266676727877d92f
2016-10-05 14:12:30 -07:00
Mikhail Naganov
cb700ec199 Remove provisional types from common audio definitions
The following types are not used in HAL and being removed:
 - AudioContentType;
 - AudioUsage;
 - AudioFlagsMask;
 - AudioAttributes.

This is in order to reduce synchronization burden and also
allow extending framework without updating HAL.

Bug: 30222631
Change-Id: Ic5df1800224fd1506dcf624b0cd20f9fd36cb949
Test: make
2016-10-05 13:08:59 -07:00
Steven Moreland
2b95de8469 Merge "Revert "Revert "nfc: update default implementation to match style.""" am: 67f700350a am: 4484643519 am: 3313147682
am: c5e08ba085

Change-Id: I0b2992184b936089345d56352ca4b963429d40ca
2016-10-05 17:39:25 +00:00
Steven Moreland
66be5eef41 Revert "Revert "nfc: reflect style guide."" am: 106bc9d27a am: 22fa3244c7 am: afc722acbe
am: ad04de7f13

Change-Id: I9d5784d4fa65279af2ab77fbf93576884258b1b3
2016-10-05 17:39:24 +00:00
Steven Moreland
c5e08ba085 Merge "Revert "Revert "nfc: update default implementation to match style.""" am: 67f700350a am: 4484643519
am: 3313147682

Change-Id: Id5fe149c05b38408318b0c57ec47b0fe9d7f01f4
2016-10-05 17:33:39 +00:00
Steven Moreland
ad04de7f13 Revert "Revert "nfc: reflect style guide."" am: 106bc9d27a am: 22fa3244c7
am: afc722acbe

Change-Id: Iba48516670b8a996d7f30d26c7903a2638bf7620
2016-10-05 17:33:38 +00:00
Steven Moreland
3313147682 Merge "Revert "Revert "nfc: update default implementation to match style.""" am: 67f700350a
am: 4484643519

Change-Id: Id4f363bfd90ce712df23a8028007d02cdd68ebbf
2016-10-05 17:30:41 +00:00
Steven Moreland
afc722acbe Revert "Revert "nfc: reflect style guide."" am: 106bc9d27a
am: 22fa3244c7

Change-Id: I5bd5967521395f9979ebe7944960bea69840b444
2016-10-05 17:30:40 +00:00
Roshan Pius
271f2c2d9c wifi(interface): Rename interface to iface
The HIDL objects are called "interface", so rename the wifi interface to
iface to distinguish between them better.

This is especially needed in the follow up CL.

Bug: 31943042
Test: mmm -j32 hardware/interfaces/wifi/1.0/
Change-Id: I3bc34930f75159d26321c0e071af9084d0585508
2016-10-05 10:30:24 -07:00
Roshan Pius
6f31d92e59 wifi(interface): Add/Correct docstring params
Changes in the CL:
1. Add missing docstring params in the HIDL interface.
2. Reword some method docs. Occurences of "will" is replaced
by "must" (based on comments received on supplicant HIDL interface:
go/aog/275115).
3. Add onFailure callbacks for all the methods and added docstrings for
them.

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0
Change-Id: Ib7152625851023d6244f742bb77a8fdc0829e00d
2016-10-05 10:30:15 -07:00
Steven Moreland
4484643519 Merge "Revert "Revert "nfc: update default implementation to match style."""
am: 67f700350a

Change-Id: I383cbfde9f5812fa0af02cc6419d25aea08ca4d5
2016-10-05 17:28:09 +00:00
Steven Moreland
22fa3244c7 Revert "Revert "nfc: reflect style guide.""
am: 106bc9d27a

Change-Id: I0d29f4064a8b4fc84fe5d3a4d09d94ad9854cccb
2016-10-05 17:28:08 +00:00
Treehugger Robot
67f700350a Merge "Revert "Revert "nfc: update default implementation to match style.""" 2016-10-05 17:22:30 +00:00
Roshan Pius
cdb77f3cf2 wifi: Add implementation of driver/firmware memory dumps
Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I25d42cfd4c2b1ea7e63bdc036f37f81aed93c565
2016-10-05 09:22:06 -07:00
Roshan Pius
4b26c832ed wifi: Add Implementation of IWifiChip.requestChipDebugInfo
Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: Id0c02e37dac66de6f830785881cb67f113c0fb19
2016-10-05 09:21:07 -07:00
Steven Moreland
22be21e864 Revert "Revert "nfc: update default implementation to match style.""
This reverts commit 3768be324b.

Change-Id: Ifecd3ac227af14b49eba83c1126d51996ce3b8f5
2016-10-05 15:46:37 +00:00
Steven Moreland
106bc9d27a Revert "Revert "nfc: reflect style guide.""
This reverts commit 69bb15e06e.

Change-Id: Icd6ac819606c83e1518c4b6252f6416f55e618fd
2016-10-05 15:46:21 +00:00
Roshan Pius
908a69a53a wifi: Use hal_tool & if_tool
Changes in the CL:
1. Currently |WifiNative.cpp|, uses |hal_tool| to initialize the
function table and |if_tool| to set the interface up when |startHAL|
method is invoked. Use the same sequence in the HIDL'ized HAL.
2. Remove the assertion if the function table initialization fails. This
will result in a failure indication on starting the HAL now.

Bug: 31352200
Test: mmma -j32 hardware/interfaces/wifi/1.0/default
Change-Id: I268845ed62158b6a2ff36659f0bb15c4100a7222
2016-10-04 18:36:25 -07:00
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