Commit graph

406 commits

Author SHA1 Message Date
Roshan Pius
f7702fcfba wifi: Add support for multiple chips in IWifi
am: cd566bddd7

Change-Id: I474546e49179f63a1e65dd6f5281c21441f5228d
2016-10-11 20:49:04 +00:00
Roshan Pius
83090ab624 wifi(interface): Add RTT Controller object
am: fcbf923d3a

Change-Id: I511b158bf8bafb7dd54fec18941e35b14cec380f
2016-10-11 20:49:03 +00:00
Roshan Pius
68e09f0c35 wifi(interface): Add Iface objects
am: adcfba4b09

Change-Id: I429ea70427a09948ded4089856bda67303b6b075
2016-10-11 20:49:02 +00: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
49ceebe51a power: Add android.hardware.power@1.0-service
Bug: 31177288
Change-Id: I9bca18bd66b2a39fe8b4db7d91c2248655658887
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-11 09:39:14 -07: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
Mikhail Naganov
c115895154 Remove redundant prefixes from enums in audio common types and effects HAL
Since in generated C++ code class enums are used, the names of enum
values are scoped anyway, thus carrying the prefix only clutters
code.

For C enums, newly introduced "value_prefix" annotation is used
to add the required prefix.

Added annotations for effects HAL types are just informational,
but can be used would C headers generation ever be required.

Also:

  - renamed AudioInputFlags -> AudioInputFlag for consistency;

  - moved AUDIO_INTERLEAVE_... constants into their own enum.

Bug: 31800672
Change-Id: I5b325f3440e0057ca98c4617040c7e5a89d2283d
Test: make
2016-10-11 08:54:01 -07:00
Roshan Pius
f243631af8 wifi: Invoke failure callbacks
Invoke the failure callbacks for |requestChipDebugInfo|,
|requestDriverDebugDump| and |requestFirmwareDebugDump| methods.

Bug: 32014425
Test: Compiles
Change-Id: I49b8ae93fe846df6d9663b10d2a70eb89bd00931
2016-10-11 07:46:24 -07:00
Roshan Pius
5926828728 wifi: Add WifiRttController object
Create the WifiRttController object and add the createRttController
method in WifiChip.

Bug: 31991232
Test: Compiles
Change-Id: I34649097c96488c660bef5acceac1a6478f80dca
2016-10-11 07:46:24 -07:00
Roshan Pius
35d958c43f wifi: Add Iface related method implementations in WifiChip
Add the iface creation/retrieval/list method implementations in WifiChip.
WifiChip does not yet support the chip mode configuration. So, all
|createIface| method calls succeed today. Once the mode configuration
changes are in place, we will deny iface creation requests depending on
the iface combination supported in the current mode.

The iface objects are all invalidated and deleted on mode switches and
when HAL is stopped.

While there,
Change the |callbacks_| member to std::vector instead of std::set. We
don't really need a set to store the list of callbacks.

Bug: 31943042
Test: Compiles
Change-Id: Ic94864c8b11aabbe569b5157d68d6056364a3c4c
2016-10-11 07:46:24 -07:00
Roshan Pius
3e2d671a4c wifi: Add the various iface object implementation
This CL adds the implementation classes for the various iface HIDL
interfaces defined. These classes implement the
|getName| & |getType| methods in the Iface HIDL interface.

Integration of these objects with WifiChip class is implemented in the
next CL.

Bug: 31943042
Test: Compiles
Change-Id: I219afd6441e15c76cf7c61f7bcd2b3568dba2b98
2016-10-11 07:46:24 -07:00
Roshan Pius
ab5c471b0b wifi: Remove "Wlan" prefix from wifi_legacy_hal public methods
All the legacy HAL API's in the function table uses the "wlan0"
interface handle for the various operations. But, this is an internal
detail that should be abstracted inside WifiLegacyHal class. So, rename
the public methods to remove the "Wlan" prefix from them.

Also, add methods to fetch the iface names to use for the various types
of HAL.

Bug: 31943042
Test: Compiles
Change-Id: I35a6cdea0ad7cff295d33c0245953258129fba43
2016-10-11 07:46:24 -07:00
Roshan Pius
cd566bddd7 wifi: Add support for multiple chips in IWifi
The modified HIDL interface supports multiple chip instances on the
device. Modify the |IWifi| interface implementation to support the new
methods.

NOTE: The legacy HAL implementation will continue to only expose 1 chip.

While there,
Change the |callbacks_| member to std::vector instead of std::set. We
don't really need a set to store the list of callbacks.

Bug: 32003988
Test: Compiles
Change-Id: I31e704100f716e223095890279bdf93d2a04377e
2016-10-11 07:46:24 -07:00
Roshan Pius
fcbf923d3a wifi(interface): Add RTT Controller object
Create a RTT controller object to use for initiating all the RTT related
HAL opertations.
Since we don't want to fix the iface on which to initiate RTT operations,
these methods will be rooted in a new standalone object |RttController|.
Framework can decide to intiate an instance of |RttController| on a
specified iface or let the implementation pick one.

Bug: 31991232
Test: Interface compiles.
Change-Id: I65f7a7babd72db26ce6549f572abd9ef73700c82
2016-10-11 07:46:24 -07:00
Roshan Pius
adcfba4b09 wifi(interface): Add Iface objects
Create a child object under IWifiChip to represent each interface
within the chip. Each iface object has a |type| & |ifname| which should
help us uniquely identify them. This should help us expose methods that
are applicable only to a specific interface type.

While there,
Assign a unique id to every chip on the device.
Add IWifi.listChipIds() to retrieve the list of chip Id's avaiable on the
device. IWifi.getChip() will now use the provided Id to retrieve the
corresponding IWifiChip object(because HIDL language doesn't support
vec<HIDL objects>).

Bug: 31943042
Bug: 32003988
Test: Interface compiles (not implementation)
Change-Id: I723007566ca4220362c02d0f452753fee4e31fce
2016-10-11 07:46:24 -07:00
Ruchi Kandoi
9d8551ab6d memtrack: Add androis.hardware.memtrack@1.0-service
Bug: 31180823
Change-Id: I712d5b041fd13e85f57dc400cc0c48c9d9ee2f36
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-10 19:16:54 -07:00
Ruchi Kandoi
97b2f25088 memtrack: Add android.hardware.memtrack@1.0-impl
Bug: 31180823
Change-Id: I5afa790a94eebf8f1755eb51ff8cfeb28b836543
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
2016-10-10 19:16:54 -07:00
Ruchi Kandoi
02cfc4e420 memtrack: Add memtrack interface 1.0
Bug: 31180823
Change-Id: I703a3ac8746179421e70e301ba7549f05c81f9e3
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2016-10-10 19:16:40 -07:00
TreeHugger Robot
806c3a3345 Merge "add nfc vts files and vts profiler build rule" 2016-10-11 01:56:08 +00:00
Amit Mahajan
0911839621 Merge "Initial version of radio hal" am: 2078f22513 am: 969b65155d am: 19b61a0520
am: 579ceaf543

Change-Id: I569388fc1f6e1eab8d5f318be1375987b649bbfe
2016-10-11 00:19:45 +00:00
Amit Mahajan
579ceaf543 Merge "Initial version of radio hal" am: 2078f22513 am: 969b65155d
am: 19b61a0520

Change-Id: I3a0f5ac240377b711dd686d512a056c897dd6dd0
2016-10-11 00:14:17 +00:00
Amit Mahajan
19b61a0520 Merge "Initial version of radio hal" am: 2078f22513
am: 969b65155d

Change-Id: Ie663469d6cc4103893d675b4bb52668dc701c18a
2016-10-11 00:08:58 +00:00
Amit Mahajan
969b65155d Merge "Initial version of radio hal"
am: 2078f22513

Change-Id: I6ad9850af03e79c6be37fbc3d717c2f882812c4d
2016-10-11 00:02:18 +00:00
Treehugger Robot
2078f22513 Merge "Initial version of radio hal" 2016-10-10 23:53:11 +00:00
Amit Mahajan
4cb7b84aba Initial version of radio hal
Test: No build issues. Unused interface; nothing to test yet.

Bug: 32020264
Change-Id: Ie57eb43b777dadbc0b0350f2e33227be3f1d65f1
2016-10-10 14:36:50 -07:00
Keun Soo Yim
95095c1e7b add nfc vts files and vts profiler build rule
Test: mma
Change-Id: Iafe6369c99e11b3bd5b0946f142fcbbc921f915a
2016-10-10 13:42:55 -07:00
Yifan Hong
e2400055cb Merge "Add test for importing a single type." am: a543fe6ab0 am: ccdc46999a am: 91c349e395
am: e75afa9482

Change-Id: Iedbba10d5fb01115d6eb8c8333366ae6039db0e5
2016-10-10 20:16:07 +00:00
Yifan Hong
e75afa9482 Merge "Add test for importing a single type." am: a543fe6ab0 am: ccdc46999a
am: 91c349e395

Change-Id: Ic90328c30bd9d4c2c020e4d1243aacc7ae4ff550
2016-10-10 20:10:59 +00:00
Yifan Hong
91c349e395 Merge "Add test for importing a single type." am: a543fe6ab0
am: ccdc46999a

Change-Id: I249ed97a6c000d655d1273b59a69b5cf4f1d4567
2016-10-10 20:04:30 +00:00
Yifan Hong
ccdc46999a Merge "Add test for importing a single type."
am: a543fe6ab0

Change-Id: Iada329b14b66825933f6b42b9eb259584276b9cd
2016-10-10 19:59:00 +00:00
Yifan Hong
a543fe6ab0 Merge "Add test for importing a single type." 2016-10-10 19:49:45 +00:00
Mikhail Naganov
6cd5fa3017 Merge "Define HAL for audio effects" 2016-10-10 18:17:36 +00:00
Yifan Hong
8e74ba0d24 Add test for fixing 0XFF (upper X) am: e312006887 am: 55c8f5979f am: 034159b44a
am: 405d5ad795

Change-Id: Idfbc9bd2992cc177d3573c3acbe192a8fc549cbb
2016-10-08 11:01:11 +00:00
Yifan Hong
405d5ad795 Add test for fixing 0XFF (upper X) am: e312006887 am: 55c8f5979f
am: 034159b44a

Change-Id: I45d2de1de6dbb2e4d20dcb84a7a4b2aff57f2d50
2016-10-08 10:51:32 +00:00
Yifan Hong
034159b44a Add test for fixing 0XFF (upper X) am: e312006887
am: 55c8f5979f

Change-Id: I0d97d1541096f645bdefe4e27107e1f8aa42611e
2016-10-08 10:47:01 +00:00
Yifan Hong
55c8f5979f Add test for fixing 0XFF (upper X)
am: e312006887

Change-Id: I8aa7620f3acb68008ddd56c45d8cc2af596b310e
2016-10-08 10:42:31 +00:00
Yifan Hong
799ebcb7fa Add test for importing a single type.
Test: `cd system/tools/hidl && mma`

Bug: 31821285

Change-Id: I0be97b16b84f76b64c09f9dc52709416601cbbdf
2016-10-07 19:43:43 -07:00
Yifan Hong
e312006887 Add test for fixing 0XFF (upper X)
Bug: 31983995

Test: make android.hardware.tests.expression@1.0
Change-Id: I05bed0164c5cc988843a60d1efc8f5aeb4986b9b
2016-10-07 16:32:57 -07:00
Mikhail Naganov
40be06cdf3 Define HAL for audio effects
Created after hardware/audio_effect.h with the following changes:

 - names changed to satisfy HAL style guide;

 - defined an interface per effect, an interface method
   per command, and getter / setter methods for properties;

 - retained methods for executing proprietary commands
   and accessing proprietary properties, only to be used
   for third-party software effects;

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

 - provider callback changed to be used over RPC;

 - 'dump' is method is already defined by generated code.

Note that audio data is currently transferred using AudioBuffers,
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: Ic8ea5c19688610ebe642c7597d2bcfa3226977e7
2016-10-07 15:11:25 -07:00
Eric Laurent
4d2f157ffc Merge "audio hal: add exports to audio-base.h" 2016-10-07 21:13:22 +00:00
Eric Laurent
8b194934f8 audio hal: add exports to audio-base.h
Fixes build errors with double definitions of
some constants here and in audio.h

Change-Id: I1569b86216c6502a20ff6f39a991cd6087be8a23
2016-10-07 12:13:46 -07:00
TreeHugger Robot
aa1af68571 Merge "Ran update-makefiles.sh." 2016-10-07 17:06:04 +00:00
Steven Moreland
c2962f7c1f Ran update-makefiles.sh.
Audio common and vibrator hals were not in the build system.

Test: hardware/interfaces mma -j64
Change-Id: I9faa3f4692e8778cab7864c94725198c015352a8
2016-10-07 08:23:59 -07:00
Prashant Malani
89fc3bed2a Add default implementation of Vibrator HAL
Test: Builds, boots, vibrator works on bullhead
Change-Id: I9c7de913d1b565bdc46a3b99a799fd8ba09b06a4
2016-10-06 16:40:18 -07:00
Andreas Huber
928912f894 Merge "Annotated android.hardware.audio.common@2.0 package to prepare for automated" 2016-10-06 16:49:33 +00:00
Steven Moreland
7117ee5158 Merge "Revert "Revert "Revert "nfc: reflect style guide."""" am: 13e19421b3 am: 56fb3ee908 am: d0b8606d27
am: 9e052ff786

Change-Id: I402dd944ab1c620a35075da8681ca277ad5efbbf
2016-10-06 03:06:53 +00:00
Steven Moreland
c89e539d83 Revert "Revert "Revert "nfc: update default implementation to match style.""" am: 6d4d412617 am: b947073aad am: 4d0bf24497
am: 41b2ae1066

Change-Id: Ic96a927babcb05643e5f75eaafbf5d6c72c53b0e
2016-10-06 03:06:16 +00:00
Steven Moreland
9b264fd064 Revert "Revert "Revert "nfc: reflect style guide.""" am: 20ea4ea288 am: 77f08aaff0 am: a8896cc16e
am: 18396bc256

Change-Id: Icd1fa80cd7b9255743ac73b949015262a24ddb5e
2016-10-06 03:06:15 +00:00
Steven Moreland
9e052ff786 Merge "Revert "Revert "Revert "nfc: reflect style guide."""" am: 13e19421b3 am: 56fb3ee908
am: d0b8606d27

Change-Id: Id44b3d7226ebe9f18ba39ec3d35c8914be8ade14
2016-10-06 03:03:53 +00:00