diff options
| author | Roshan Pius <rpius@google.com> | 2016-10-26 15:56:17 -0700 |
|---|---|---|
| committer | Roshan Pius <rpius@google.com> | 2016-11-16 11:05:16 -0800 |
| commit | 02caa1b821e101bf74b528e5fd64d794633a3e6c (patch) | |
| tree | 75c44a90baa75260082b4b4f3bae924949620a01 /wifi | |
| parent | e0724f98b0fe7f9bf2257d3a1351839f0b19224b (diff) | |
| download | android_hardware_interfaces-02caa1b821e101bf74b528e5fd64d794633a3e6c.tar.gz android_hardware_interfaces-02caa1b821e101bf74b528e5fd64d794633a3e6c.tar.bz2 android_hardware_interfaces-02caa1b821e101bf74b528e5fd64d794633a3e6c.zip | |
wifi(interface): Add status for all methods
Add missing status returns for a few HIDL methods. This is to keep the
interface consistent.
Bug: 32146455
Test: update_makefile.sh
Change-Id: Ia66fe4d00e884e5ce1e1906db77bb5ffdaebffdd
Diffstat (limited to 'wifi')
| -rw-r--r-- | wifi/1.0/IWifi.hal | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/wifi/1.0/IWifi.hal b/wifi/1.0/IWifi.hal index 316669131..a6329206e 100644 --- a/wifi/1.0/IWifi.hal +++ b/wifi/1.0/IWifi.hal @@ -34,10 +34,15 @@ interface IWifi { * * @param callback An instance of the |IWifiEventCallback| HIDL interface * object. + * @return status WifiStatus of the operation. + * Possible status codes: + * |WifiStatusCode.SUCCESS|, + * |WifiStatusCode.UNKNOWN| */ @entry @callflow(next={"*"}) - oneway registerEventCallback(IWifiEventCallback callback); + registerEventCallback(IWifiEventCallback callback) + generates (WifiStatus status); /** * Get the current state of the HAL. @@ -75,7 +80,7 @@ interface IWifi { * @return status WifiStatus of the operation. * Possible status codes: * |WifiStatusCode.SUCCESS|, - * |WifiStatusCode.NOT_AVAILABLE|, + * |WifiStatusCode.NOT_STARTED|, * |WifiStatusCode.UNKNOWN| */ @exit @@ -87,17 +92,27 @@ interface IWifi { * The corresponding |IWifiChip| object for any chip can be * retrieved using |getChip| method. * + * @return status WifiStatus of the operation. + * Possible status codes: + * |WifiStatusCode.SUCCESS|, + * |WifiStatusCode.NOT_STARTED|, + * |WifiStatusCode.UNKNOWN| * @return chipIds List of all chip Id's on the device. */ @callflow(next={"*"}) - getChipIds() generates (vec<ChipId> chipIds); + getChipIds() generates (WifiStatus status, vec<ChipId> chipIds); /** * Gets a HIDL interface object for the chip corresponding to the * provided chipId. * + * @return status WifiStatus of the operation. + * Possible status codes: + * |WifiStatusCode.SUCCESS|, + * |WifiStatusCode.NOT_STARTED|, + * |WifiStatusCode.UNKNOWN| * @return chip HIDL interface object representing the chip. */ @callflow(next={"*"}) - getChip(ChipId chipId) generates (IWifiChip chip); + getChip(ChipId chipId) generates (WifiStatus status, IWifiChip chip); }; |
