OSDN Git Service
Martijn Coenen [Thu, 29 Dec 2016 13:03:41 +0000 (14:03 +0100)]
Remove obsolete references to IPCThreadState/ProcessState.
Threadpool can now be configured/joined if needed with
configureRpcThreadpool() / joinRpcThreadpool().
Bug:
31226656
Test: mma
Change-Id: I0d7d9924cc8c8851cc2b61ebdae906204909890e
(cherry picked from commit
028223775be7539c5b569a454524584a7ad8e152)
Zhuoyao Zhang [Wed, 21 Dec 2016 18:27:35 +0000 (10:27 -0800)]
Update Android.bp of Nfc with make rule for profiler.
Bug:
31930023
Test: mma
Change-Id: I4e159d4f0b37fdd4738cdee354c4fe05406baa02
(cherry picked from commit
42a6dddd4a3962af77ac46feea0ffcffb0142f3d)
Ryan Campbell [Fri, 2 Dec 2016 19:12:36 +0000 (11:12 -0800)]
Use lowercase booleans in VTS test configs.
Use lowercase booleans so that they can be parsed in Java
and Python.
Test: run vts -m HalNfcHidlTargetBasicTest
Change-Id: I16e2f417047219a88d49ed5b0651639a0cc2bf61
(cherry picked from commit
9fc3c47bc7d2c09bb5d808d0d3a87fd480ad0f11)
Ruchi Kandoi [Wed, 11 Jan 2017 20:38:40 +0000 (12:38 -0800)]
Update to use the correct logging library.
Test: Compiles
Merged-Id: Idb33dea5faaf1a5e54719c2a5a683d2d47e9b8e8
Change-Id: Ib770cbc75bc10a04d93d9370ec341054e3d8dd57
Cherry-picked from
f9d303435d80161fabb16cdff3b8f2f75f362480
Ryan Campbell [Fri, 2 Dec 2016 00:32:51 +0000 (16:32 -0800)]
Update coverage configs with new format.
Update config files to specify coverage modules and git projects
in the new format.
Test: pass
Change-Id: If58fce01d6e0fbc458653709e373e59ad976f4ae
(cherry picked from commit
54604102b56041301b293bfc335836e74c374614)
Ryan Campbell [Thu, 1 Dec 2016 01:29:21 +0000 (17:29 -0800)]
Update NFC VTS configs to reflect new source paths
Specify the new locations of NFC source code for use when
displaying coverage results.
Test: pass
Change-Id: I32d9b2e58ded1be3739e3cc24cf17c519a6a1d94
(cherry picked from commit
ea4f71faba48e44361f557a61cf31d8415412aea)
Keun Soo Yim [Wed, 30 Nov 2016 21:46:00 +0000 (13:46 -0800)]
increase the timeouts to 10mins for nfc target-side tests
Test: local direct binary runs (1.5mins on average)
Change-Id: Id85633a6a4a55a9d6876142447521146cd6e57f3
(cherry picked from commit
c0299961175114568c044485155662fbffc98fd0)
Yuexi Ma [Tue, 22 Nov 2016 17:55:39 +0000 (09:55 -0800)]
enable profiling directly from AndroidTest.xml
Test: local
Change-Id: If13be820766f54ff154f350cbbacbab9dffe07d2
(cherry picked from commit
aa61067c141b0601ef6a445a4a6ff56c861718b6)
Ruchi Kandoi [Mon, 21 Nov 2016 18:59:58 +0000 (10:59 -0800)]
NFC: vts: Update VTS driver files as per HAL changes
The return types for the NFC HAL have changed, this patches updates the
VTS driver files.
Test: Test Passes
Bug:
32748647
Change-Id: Ic31d25c3d6b4a1db05e2e481a948a7547b30f2d7
Singed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
(cherry picked from commit
d9b830ff9b4148cc4497b9d2b401a8285b7ffd58)
Ruchi Kandoi [Sat, 12 Nov 2016 00:37:34 +0000 (16:37 -0800)]
NFC: Add target-side VTS tests for NFC
Test: Test Passes
Change-Id: I393ca24e86447571a92e3742716fdc6f1ddc0519
Signed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
(cherry picked from commit
1488dd7ff093c2db94e28b0ceb3567cd976e4bdc)
Keun Soo Yim [Wed, 23 Nov 2016 22:12:43 +0000 (14:12 -0800)]
use svc nfc enable/disable which is always the same.
Test: run vts-hal-hidl
Change-Id: I347ff0ad92dfc39c9b97fefb8afb4d05aa883aa5
(cherry picked from commit
e977d80bb0246a6f595ca84081da8aa897fc2708)
Keun Soo Yim [Thu, 17 Nov 2016 23:49:13 +0000 (15:49 -0800)]
move VTS HIDL HAL tests to the corresponding interface directories
Bug:
32783461
Test: vts-tradefed; run vts-hal-hidl
Change-Id: Iead44eaf65dcd4de2286267467c4a4a322a88205
(cherry picked from commit
8a36c0b01c6aad5fbcc238ba81337b205f897df3)
Ryan Campbell [Fri, 18 Nov 2016 21:34:31 +0000 (13:34 -0800)]
Build target-side NFC test with coverage.
Instrument NFC test with coverage so that coverage can be collected
on NFC implementation.
Test: make vts
Change-Id: I30c082198a027bc02ecaaf3232ce5935010b398d
(cherry picked from commit
89aeb505fe18b2c130406b7f2a67943d647c19bd)
Steven Moreland [Thu, 17 Nov 2016 22:57:37 +0000 (14:57 -0800)]
Remove -DENABLE_TREBLE from vts test LOCAL_CFLAGS.
I went ahead and removed some no-ops from the mk's.
Bug:
32978887
Test: mma -j64
Change-Id: I6f8341332aa9f249912f6a8b3a3664b76d362e99
(cherry picked from commit
2b2cef28646d013e3c99ed404f877e998476b94a)
Yifan Hong [Wed, 16 Nov 2016 22:17:58 +0000 (14:17 -0800)]
Nfc: Split libhidl into base and transport.
Bug:
32756130
Test: mma
Merged-In: Id21cf23abe2910f26bb7895511862443b93dc112
Change-Id: I8379d8af9c373b489f803c3ae9129227a78537a6
(cherry picked from commit
6b920e43d379cdca8afe1831705690b95b3d71ef)
Ruchi Kandoi [Tue, 15 Nov 2016 23:10:38 +0000 (15:10 -0800)]
NFC: Update vts files to include the Annotations.
Bug:
32124874
Test: Compiles
Change-Id: I9b323350d2ab9e9acedd4ef85a27daeb5f671bd4
Singed-off-by: Ruchi Kandoi<kandoiruchi@google.com>
(cherry picked from commit
140ccbc48c6bd05018fe79f5cc02dac7f3343a6f)
Keun Soo Yim [Sat, 22 Oct 2016 22:09:27 +0000 (15:09 -0700)]
NFC HAL target-side test (template)
Test: make vts; vts-tradefed; run -m HalNfcHidlTargetBasicTest
Change-Id: I021cfd916efc68fc9a4191f4aaa736f05c81c962
(cherry picked from commit
1d18b23e622fb6436a9f703eeb53c01a9ef732f6)
Zhuoyao Zhang [Tue, 11 Oct 2016 17:03:46 +0000 (10:03 -0700)]
Update vts files for nfc hidl file style change.
Test: make vts.
Change-Id: I2a86e9555f5e3ca0893d1e7b34f75ea68859af7e
(cherry picked from commit
0a38e46ef4692e459050b51339fb061662713fea)
Keun Soo Yim [Tue, 11 Oct 2016 00:18:29 +0000 (17:18 -0700)]
VTS driver build target for NFC 1.0
Test: mma
Change-Id: Icc88b2bf79f2d2f23e908389c1e9d4994b439602
(cherry picked from commit
dceef4931685e8556aa8f1127c45d745099b7d96)
Keun Soo Yim [Mon, 10 Oct 2016 20:42:31 +0000 (13:42 -0700)]
add nfc vts files and vts profiler build rule
Test: mma
Change-Id: Iafe6369c99e11b3bd5b0946f142fcbbc921f915a
(cherry picked from commit
a4e505ccc81b2475f241e2d252ba3b4303af84d6)
Yifan Hong [Tue, 10 Jan 2017 23:55:04 +0000 (23:55 +0000)]
Merge "Ran update-makefiles.sh."
Etan Cohen [Tue, 10 Jan 2017 23:24:53 +0000 (23:24 +0000)]
Merge "[AWARE] Update HIDL interface and link to legacy HAL"
Etan Cohen [Sun, 25 Dec 2016 17:42:21 +0000 (09:42 -0800)]
[AWARE] Update HIDL interface and link to legacy HAL
HAL: Refine first cut implementation of HIDL interfaces and bring
up-to-date with changes to HAL.
Server: connect to legacy HAL, convert all structures.
Bug:
32207606
Test: builds
Change-Id: Ice1ba44014aa98cc948c0d0202b4fd18bf875502
Yifan Hong [Tue, 10 Jan 2017 19:18:00 +0000 (11:18 -0800)]
Ran update-makefiles.sh.
Add vtsc section.
Test: mma
Change-Id: I37c2c4acd1c3b193f1f978dae09a5389d61b9380
Yifan Hong [Fri, 6 Jan 2017 17:10:11 +0000 (09:10 -0800)]
Add test for putting different types in a struct / union.
Test: hidl_test
Change-Id: Icf1f40b1c92f76a45a3792e8c5d359031ad719bc
Yifan Hong [Thu, 5 Jan 2017 19:24:24 +0000 (19:24 +0000)]
Merge "move foocallback to hidl_test"
Treehugger Robot [Thu, 5 Jan 2017 17:50:54 +0000 (17:50 +0000)]
Merge "Change list of applications in CardStatus from array to vec."
Martijn Coenen [Mon, 2 Jan 2017 14:19:53 +0000 (15:19 +0100)]
Callback elision for HIDL interfaces.
Test: mma, hidl_test
Bug:
31380743
Change-Id: Ic5390d49a9493d1180bdd8a15bc47e891637890e
Treehugger Robot [Thu, 5 Jan 2017 07:12:02 +0000 (07:12 +0000)]
Merge "Return<*> getStatus().isOk() -> isOk()"
Steven Moreland [Thu, 5 Jan 2017 04:19:57 +0000 (20:19 -0800)]
Return<*> getStatus().isOk() -> isOk()
Bug:
31348667
Test: compiles
Merged-In: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1
Change-Id: If8d5a23f80dbc04127635b49f1ef77398fc9f8a1
Treehugger Robot [Thu, 5 Jan 2017 02:37:14 +0000 (02:37 +0000)]
Merge "Add a method to trigger multiple FMQ blocking reads."
Amit Mahajan [Thu, 5 Jan 2017 00:50:24 +0000 (16:50 -0800)]
Change list of applications in CardStatus from array to vec.
Test: none
Bug:
32020264
Change-Id: I39420333cd07126904f170487de4d45d630e3c26
Hridya Valsaraju [Thu, 5 Jan 2017 00:19:36 +0000 (16:19 -0800)]
Add a method to trigger multiple FMQ blocking reads.
Test: FMQ unit tests
Bug:
33815422
Change-Id: Idcd1fd79232a1b0caa5784e8dd4f3a929f52fded
Yifan Hong [Thu, 10 Nov 2016 02:07:44 +0000 (18:07 -0800)]
move foocallback to hidl_test
Fix:
32778024
Test: hidl_test
Change-Id: Icec3bd23c30dea635c315ec3b98f3a72447e840a
Treehugger Robot [Tue, 3 Jan 2017 22:39:21 +0000 (22:39 +0000)]
Merge "Minor changes to telephony error codes in types.hal"
Enrico Granata [Tue, 3 Jan 2017 18:54:04 +0000 (18:54 +0000)]
Merge "Make update-makefiles.sh exit if any of the hidl invocations fail"
Hridya Valsaraju [Tue, 3 Jan 2017 18:17:08 +0000 (18:17 +0000)]
Merge "Templatize MQDescriptor"
Sanket Padawe [Tue, 3 Jan 2017 07:45:22 +0000 (23:45 -0800)]
Minor changes to telephony error codes in types.hal
Test: Basic build test.
Change-Id: I26227551794729d6643ec63d4a39bc0090240a52
Martijn Coenen [Wed, 28 Dec 2016 16:08:07 +0000 (17:08 +0100)]
Fix wifi/bluetooth threadpool usage.
Bug:
31226656
Test: mma, hidl_test
Change-Id: I3f30f32392714ed653498828172165e511f847e7
Hridya Valsaraju [Tue, 27 Dec 2016 20:40:01 +0000 (12:40 -0800)]
Templatize MQDescriptor
Bug:
33948735
Test: FMQ unit tests and benchmarks
Merged-In: I5c3beff2c6a69e151e0cb11af299956638cc441b
Change-Id: I5c3beff2c6a69e151e0cb11af299956638cc441b
Myles Watson [Thu, 13 Oct 2016 22:45:02 +0000 (15:45 -0700)]
bluetooth: Find the device's Bluetooth address
Test: bluetooth_hidl_hal_test
Change-Id: I5353aaef3f8c5db75e424a8e1b242b08d5a96c6e
Amit Mahajan [Thu, 29 Dec 2016 01:30:04 +0000 (17:30 -0800)]
Minor fixes in IRadioIndication.hal
Test: none
Bug:
32020264
Change-Id: Ib8540a444c4b98ff033a8e2c519dd25e9b853c57
Treehugger Robot [Thu, 29 Dec 2016 22:28:46 +0000 (22:28 +0000)]
Merge "Clean up some fields and APIs in telephony HIDL interface."
Andre Eisenbach [Thu, 13 Oct 2016 22:45:02 +0000 (15:45 -0700)]
Add default Bluetooth HAL implementation
Also added initial target-side functional test.
Test: bluetooth_hidl_hal_test
Bug:
31972505
Change-Id: I1f574a5b2b53d7fbf65dbb4e1aaa5f8b6c5a9448
Sanket Padawe [Thu, 29 Dec 2016 00:04:10 +0000 (16:04 -0800)]
Clean up some fields and APIs in telephony HIDL interface.
Bug:
32020264
Test: Basic build test.
Change-Id: I1493d5b26ef678be14e71db7d6f93a9bfad52980
Martijn Coenen [Tue, 27 Dec 2016 15:21:52 +0000 (16:21 +0100)]
Add test method to IBaz.
For testing death recipients.
Test: mma, hidl_test_java
Bug:
31632518
Change-Id: Ib359c790f68132484fbcd1a5522f45b99d1131f8
Amit Mahajan [Thu, 15 Dec 2016 16:54:12 +0000 (08:54 -0800)]
Minor updates to ISap hal.
Test: none
Bug:
32020264
Change-Id: I1cfb21cb4e30e71de6418aaaa9e13d8b2746d7b7
Enrico Granata [Thu, 22 Dec 2016 19:42:13 +0000 (11:42 -0800)]
Make update-makefiles.sh exit if any of the hidl invocations fail
This makes it easier for the user to discover that one (or more) of
their source files contain errors
Test: ran the script
Change-Id: Ibdb1f363d934605f47ca7df0d56bb387a47f7482
Treehugger Robot [Thu, 22 Dec 2016 21:55:06 +0000 (21:55 +0000)]
Merge "Add a method to test EventFlag configuration and usage"
Hridya Valsaraju [Thu, 15 Dec 2016 17:14:13 +0000 (09:14 -0800)]
Add a method to test EventFlag configuration and usage
Bug:
31223612 33295104
Test: FMQ unit tests.
Change-Id: Idbddd38730edd0ec14c37d3cb5e67f78705c3d4a
Yifan Hong [Wed, 21 Dec 2016 18:17:18 +0000 (18:17 +0000)]
Merge "Add test for Java GC for binder objects."
Connor O'Brien [Tue, 20 Dec 2016 18:28:46 +0000 (18:28 +0000)]
Merge "Remove length arg from transmit() in IR HAL"
Yifan Hong [Tue, 20 Dec 2016 02:02:56 +0000 (18:02 -0800)]
Add test for Java GC for binder objects.
Test: hidl_test_java
Bug:
33042939
Change-Id: I87d9de63834c617a568f7d1795c901fdd4c6f8e0
Treehugger Robot [Tue, 20 Dec 2016 01:07:32 +0000 (01:07 +0000)]
Merge "wifi(vts): Add framework for gtests"
Connor O'Brien [Mon, 19 Dec 2016 23:55:12 +0000 (15:55 -0800)]
Remove length arg from transmit() in IR HAL
The length argument is not necessary since the pattern is
passed to transmit() as a hidl_vec, so remove it.
Test: Built and called new transmit() function.
Merged-in: I4bee4557c2cca6562a43df5e22a7d6b846f20bb4
Change-Id: I4bee4557c2cca6562a43df5e22a7d6b846f20bb4
Signed-off-by: Connor O'Brien <connoro@google.com>
Yifan Hong [Mon, 19 Dec 2016 22:32:56 +0000 (22:32 +0000)]
Merge "Test for echoed interfaces."
Roshan Pius [Wed, 7 Dec 2016 02:59:15 +0000 (18:59 -0800)]
wifi(vts): Add framework for gtests
These tests don't do much currently other than assert that we can
configure the chip in the required modes and create all the iface
objects.
The |wifi_hidl_test_utils| contains all helper functions that will be
shared across the different test fixtures.
Bug:
33459306
Test: adb root && adb remount && adb push
out/target/product/angler/data/nativetest/wifi_hidl_test/wifi_hidl_test
/data/ && adb shell /data/wifi_hidl_test
Change-Id: Iaea8e264ab1ef9113f375d7f56acab851aff21aa
Roshan Pius [Fri, 16 Dec 2016 23:32:27 +0000 (15:32 -0800)]
supplicant(interface): Remove unused params
Theese params in flushService & configureExtListen are unused.
Bug:
33705000
Test: Compiles
Change-Id: I38ff75af32951274100d1d60a5fdfa6aa101cb50
Yifan Hong [Mon, 28 Nov 2016 20:52:28 +0000 (12:52 -0800)]
Test for echoed interfaces.
Test: hidl_test
Bug:
33173166
Change-Id: I0b8b8553b7d3f7b1800d0970a9fc17d01084dfcf
Roshan Pius [Fri, 16 Dec 2016 06:38:00 +0000 (22:38 -0800)]
wifi: Add remaining capability flags from legacy HAL
While there,
1. Remove the _SUPPORTED flag from all the capabailities to make it
consistent.
2. Correct the docstring for |create*Iface|.
Bug:
33673826
Test: Compiles
Change-Id: I26f6de3d681dec133b51ba5dd7f21a29c92ea238
Roshan Pius [Fri, 16 Dec 2016 03:10:30 +0000 (19:10 -0800)]
wifi: Debug ring buffer data collection
Implementation of the debug ring buffer data collection mechanism.
Changed the interface to pass the raw bytes sent by the driver. This
will be captured as is into the bugreport.
Note: Please see the associated bug on why this data is not being parsed.
Also,
Fixed a bug in the legacy HAL API for retrieving ring buffer status.
Bug:
33638159
Test: Compiles
Change-Id: I9d8f400142b1be4fbf8c85679e8a52d6af17b09e
Roshan Pius [Fri, 16 Dec 2016 01:51:40 +0000 (17:51 -0800)]
wifi: Add chip level callbacks
The following new notifications are added:
1. onChipReconfigureFailre - Invoked if there is an error during
configuration.
2. onIfaceAdded - Invoked on addition of an iface.
3. onIfaceRemoved - Invoked on removal of an iface.
Bug:
33679304
Bug:
33038823
Test: Gtests
Change-Id: Id3fa19420d1e1e8d209ec88a1fbd36a64afb5252
Roshan Pius [Thu, 15 Dec 2016 02:02:56 +0000 (18:02 -0800)]
WifiLegacyHal: Add missing ring buffer callback dereg
Still figuring out how to send this data over the HIDL callback. Adding
this missing wrapper in legacy hal for now.
Bug:
33638159
Test: Compiles
Change-Id: Ifce06a796d54e10c582b9896425899a45162a45f
Roshan Pius [Thu, 15 Dec 2016 01:41:20 +0000 (17:41 -0800)]
wifi: Add support for alert handler
This is a debug mechanism provided for vendors to inform the framework
about the occurence of any fatal events.
Bug:
33620898
Test: Compiles
Change-Id: Ib6ac322131796792f66f87237a62eb8f5a013433
Roshan Pius [Tue, 13 Dec 2016 22:25:45 +0000 (14:25 -0800)]
wifi: Port over O features to HIDL
Porting over the 3 new features added to legacy HAL for O to HIDL
interface:
1. Firmware roaming control.
2. Scan randomizations support.
3. Probe IE whitelisting for privacy enhancements.
Bug:
32638647
Test: Compiles
Change-Id: Ia4666e3824186bbcfb8599b337eee7c81f256503
Roshan Pius [Wed, 14 Dec 2016 16:06:58 +0000 (08:06 -0800)]
supplicant(interface): Add support for DRIVER commands
These were legacy commands added to wpa_supplicant specifically for
android when the vendor HAL did not exist. These string commands are
passed as passthough to the driver by wpa_supplicant. Instead of adding
a single method to pass through these strings. Add separate methods for
each "DRIVER xxx" command that we currently used in Android framework.
Bug:
32699292
Test: Compiles
Change-Id: I8b62b3250496fa996bb97b4af0ba570a3d345cc3
Martijn Coenen [Thu, 15 Dec 2016 20:34:38 +0000 (21:34 +0100)]
Revert "Fix tests for using IBase instead of IBinder."
This reverts commit
1d747311b3aa3d208aedf3dfce97d134d57db723.
Bug:
33173166
Test: builds, hidl_test
Sanket Padawe [Wed, 14 Dec 2016 20:03:51 +0000 (20:03 +0000)]
Merge "Add new RadioError in telephony hidl interface."
Treehugger Robot [Wed, 14 Dec 2016 03:43:57 +0000 (03:43 +0000)]
Merge "Update makefiles for Java package path."
Yifan Hong [Tue, 13 Dec 2016 00:05:23 +0000 (16:05 -0800)]
Update makefiles for Java package path.
use V1_0 instead of 1.0.
Bug:
33554192
Test: hidl_test_java
Change-Id: Ic2d95265df10914a60a5bb743d75e839948838c3
Roshan Pius [Tue, 13 Dec 2016 21:39:27 +0000 (13:39 -0800)]
supplicant(interface): Add network param getters
These getters are needed for migration of network configs from
wpa_supplicant to the new config store.
Bug:
31497348
Test: Compiles
Change-Id: I970ea3ca070a3bb7344bc51664159ce0e95a18db
Roshan Pius [Mon, 12 Dec 2016 21:04:25 +0000 (13:04 -0800)]
supplicant(interface): Add 2 sta iface callbacks
Add callbacks for:
1. Disconnection from the currently connected network.
2. Association rejection from the AP.
Bug:
33416261
Test: Compiles
Change-Id: Ifde45bf7db353f399bd7dc291af0d069f8387e3b
Roshan Pius [Mon, 12 Dec 2016 16:53:34 +0000 (08:53 -0800)]
wifi: Add legacy HAL stubs
This is a port of all the existing stub functions from HalTool. Will
deprecate and remove HalTool once framework switches over to HIDL.
These stubs are important because the vendor implementations don't fill
a function pointer in the table (when |init_wifi_vendor_hal_func_table| is
invoked) if they don't implement that feature.
Bug:
33540636
Test: Gtests
Change-Id: Ia41c4faa30b517731a162f3999d64a3f2c34e058
Roshan Pius [Fri, 9 Dec 2016 20:05:12 +0000 (12:05 -0800)]
wifi: Add support for removing iface
This is needed to support dynamically switching between ifaces
within the same mode.
While there, correct couple of nits:
1. Pass std::string to the |get*IfaceInternal| methods. This makes the
name comparison easier.
2. Update the docstring of |get*Iface| in IWifiChip.hal to indicate that
we'll return ERROR_INVALID_ARGS if the iface name is wrong.
Bug:
33040049
Test: Compiles
Change-Id: I53584013283a10bf109f1c2ffb6136c44f11ed29
Roshan Pius [Fri, 9 Dec 2016 18:26:17 +0000 (10:26 -0800)]
wifi: Fixes in WifiLegacyHal
Changes:
1. Add |is_started_| flag in WifiLegacyHal to ignore stop/start
requests when they're already in the same state.
2. Detach the event loop thread and remove the class member storing
the thread handle.
While there,
1. Cleanup some logs to better help debug issues.
2. Also fixed the wrong method name used in WifiModeController.
Bug:
33480898
Test: Gtests run successfully.
Change-Id: I913f656206a2ca7a79fb316501c256fcdc32aed9
Connor O'Brien [Tue, 13 Dec 2016 20:53:59 +0000 (20:53 +0000)]
Merge "Add android.hardware.consumerir@1.0 service."
Treehugger Robot [Tue, 13 Dec 2016 20:30:37 +0000 (20:30 +0000)]
Merge "Update test for method name and result name."
Sanket Padawe [Tue, 13 Dec 2016 19:22:32 +0000 (11:22 -0800)]
Add new RadioError in telephony hidl interface.
Bug:
32020264
Test: no test
Change-Id: Ia41c9aa84cb8799394fa70e9a444ba58361121be
Connor O'Brien [Tue, 13 Dec 2016 19:07:09 +0000 (19:07 +0000)]
Merge "Add consumerir HIDL default implementation"
Connor O'Brien [Tue, 13 Dec 2016 19:06:57 +0000 (19:06 +0000)]
Merge "consumerir: define the consumerir HIDL interface"
Yifan Hong [Mon, 12 Dec 2016 18:34:57 +0000 (10:34 -0800)]
Update test for method name and result name.
Test: compiles
Bug:
33277700
Change-Id: I40de6f09da8d8bf9d03516bfb7a65a54d01fa18a
Yifan Hong [Mon, 12 Dec 2016 23:30:49 +0000 (15:30 -0800)]
Add test for eliding bitfield returns.
Test: mma
Bug:
33298401
Change-Id: I9e50c20b29215664040183bcdfee6b6902c00e3d
Treehugger Robot [Mon, 12 Dec 2016 22:58:27 +0000 (22:58 +0000)]
Merge changes Idde2f3b7,I5b25d334,I69db530e
* changes:
wifi: Disallow iface creation based on mode
supplicant(interface): Correct ANQP enum value/type
supplicant(interface): Minor fixes in P2P iface
Connor O'Brien [Sat, 3 Dec 2016 00:34:24 +0000 (16:34 -0800)]
Add android.hardware.consumerir@1.0 service.
Test: make android.hardware.consumerir@1.0-service
Change-Id: Ife45f98836d4d5a3b40d26f21d43e1903fdb8fb3
Signed-off-by: Connor O'Brien <connoro@google.com>
Connor O'Brien [Sat, 3 Dec 2016 00:22:51 +0000 (16:22 -0800)]
Add consumerir HIDL default implementation
Create a basic HAL implementation that passes commands
through to the old HAL.
Test: make android.hardware.consumerir@1.0-impl
Change-Id: Idc4b0a67cf936645b699c24504e9fab219b1ffbe
Signed-off-by: Connor O'Brien <connoro@google.com>
Connor O'Brien [Sat, 3 Dec 2016 00:21:25 +0000 (16:21 -0800)]
consumerir: define the consumerir HIDL interface
Change-Id: Ifa8632915f8c5bb15da5f379202f5ddf2e08c09a
Signed-off-by: Connor O'Brien <connoro@google.com>
Steven Moreland [Mon, 12 Dec 2016 17:24:10 +0000 (09:24 -0800)]
Add check to update-makefiles.sh.
Now that we also have packages like android.hidl.base which reside in
system/libhidl/transport which are read in by hidl-gen (see
-randroid.hidl:system/libhidl/transport in the same file), we can
display a pretty warning message if they are missing.
We'll have to remember to update this after b/
33276472.
Test: ran update-makefiles.sh
Change-Id: Ia3e3183dd5139cf3a8d1bf7bd25c201d1b098c79
Roshan Pius [Fri, 9 Dec 2016 03:10:06 +0000 (19:10 -0800)]
wifi: Disallow iface creation based on mode
Based on the mode configured, limit the iface creation.
Note: Support for iface removal will be added in a follow up CL which
should help us use P2P or NAN iface dynamically.
Bug:
31997422
Test: Compiles
Change-Id: Idde2f3b749264d542d5d6608b0b2c5aa8103ade6
Roshan Pius [Thu, 8 Dec 2016 21:20:05 +0000 (13:20 -0800)]
supplicant(interface): Correct ANQP enum value/type
Correct the HS20 subtype & Anqp Info ID enum value/type to match
what is used in wpa_supplicant core.
Bug:
33493298
Test: Compiles
Change-Id: I5b25d334271c39d977e2990c643f4a2b01872f1a
Roshan Pius [Thu, 8 Dec 2016 19:08:14 +0000 (11:08 -0800)]
supplicant(interface): Minor fixes in P2P iface
Fixing couple of issues found in the interface during implementation.
1. WpsProvisionMethod::KEYPAD is not used in wpa_supplicant core. It is
only used inside Android framework. So, remove them.
2. Added |setDisallowedFrequencies| method.
3. Changed the pin type to string from vector of bytes because that is
used by Android framework and wpa_supplicant.
Bug:
31497295
Test: Compiles
Change-Id: I69db530e23c2d3af907c3a5c824cf8291cf12c35
Roshan Pius [Tue, 6 Dec 2016 18:12:59 +0000 (10:12 -0800)]
wifi: Reset internal callback pointers on failure
If these are not reset, any subsequent calls will not be processed
because the callback pointers are set.
Bug:
33379596
Test: Compiles
Change-Id: Ia44385fc185b7cf262366af7b0e0e62c32a0d9a0
Roshan Pius [Tue, 6 Dec 2016 18:04:05 +0000 (10:04 -0800)]
wifi: Add support for RSSI monitoring
Bug:
31991459
Test: Compiles
Change-Id: I8794cea12a0d1c727bd0e37123152c8da11eeabf
Roshan Pius [Tue, 6 Dec 2016 00:18:43 +0000 (16:18 -0800)]
wifi: Add method implementations in IWifiRttController
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiRttController and perform the necessary struct conversions.
Bug:
31991232
Test: Compiles
Change-Id: I7bd8bd7e7af2230699c079f1ad8e0a8b1e496026
Roshan Pius [Mon, 5 Dec 2016 23:25:51 +0000 (15:25 -0800)]
wifi: Add method implementations in IWifiStaIface
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiStaIface and perform the necessary struct conversions.
Bug:
31991459
Test: Compiles
Change-Id: I8c0b9be2e375dd7147408e41a88de3f1c6f98d08
Roshan Pius [Mon, 5 Dec 2016 23:24:20 +0000 (15:24 -0800)]
wifi: Add logger method implementations in IWifiChip
Hookup the legacy HAL functions to the corresponding HIDL methods in
WifiChip and perform the necessary struct conversions.
Bug:
32221997
Test: Compiles
Change-Id: I2b0cfd6484c7599e96e9edfcef18ac3148e28307
Roshan Pius [Mon, 5 Dec 2016 23:37:00 +0000 (15:37 -0800)]
wifi: Gscan struct conversion changes
Rename |Scan| to |Gscan| because that is the naming we've been using in
WifiLegacyHal.
Also group all the gscan related sturct conversion methods.
Bug:
31991459
Test: Compiles
Change-Id: Ie64bcc032a0058b5b20d0bb701020cdf7bf08890
Roshan Pius [Sun, 4 Dec 2016 18:49:38 +0000 (10:49 -0800)]
wifi: Add some more missing struct conversions
Add the remaining struct conversions and the feature set to HIDL
capabilities conversions. The legacy feature set is distributed based on
where the functionality is exposed to IWifiChip & IWifiStaIface HIDL
interfaces.
Bug:
31991459
Bug:
32221997
Test: Compiles
Change-Id: Ifdeac1bd7325b7a0581ec225b025ef0f6980c512
Roshan Pius [Fri, 2 Dec 2016 23:01:06 +0000 (15:01 -0800)]
wifi: Remove unused methods in IWifiRttController
These are currently unused in the legacy HAL function table and there
isn't any need for these to be migrated over to HIDL.
Bug:
31991232
Test: Compiles
Change-Id: I50611d1fd5a6ac276e7911ca1920c3d5ee2d5ba6
Roshan Pius [Fri, 2 Dec 2016 22:49:41 +0000 (14:49 -0800)]
wifi: Add RTT structure conversion methods
While there,
Hide |convertLegacyIeBlobToHidl| from hidl_struct_util.h. There is no
need for any of the HIDL objects to directly use this. They will be used
internally in |convertLegacyScanResultToHidl|.
Bug:
31991232
Test: Compiles
Change-Id: I5702906ea84e3c77fece7be5f9d48ff3ae418c41
Roshan Pius [Fri, 2 Dec 2016 19:21:19 +0000 (11:21 -0800)]
wifi: Convert packet fate structures from legacy to HIDL
While there fixed a couple of nits,
1. Correct a typo in one of the packet fate structs in the .hal file.
2. Renamed the scan data flag and added a helper function to convert the
legacy flag to it's equivalent and loop through it.
Bug:
32221997
Test: Compiles
Change-Id: I414a7731054e6400d22d4e6deae9495b48dce461