diff options
author | Roshan Pius <rpius@google.com> | 2017-02-15 15:32:45 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2017-02-16 10:19:15 -0800 |
commit | 773ef3483e18f1afbd9cdce1564add3d89cb21fa (patch) | |
tree | d34c29cfabd2f3c478251917675aed8a5ed9e189 /service/java/com/android/server/wifi/hotspot2/IconEvent.java | |
parent | 65d8ba5dd551cd132789e8feb270dfc7998dfbdc (diff) | |
download | android_frameworks_opt_net_wifi-773ef3483e18f1afbd9cdce1564add3d89cb21fa.tar.gz android_frameworks_opt_net_wifi-773ef3483e18f1afbd9cdce1564add3d89cb21fa.tar.bz2 android_frameworks_opt_net_wifi-773ef3483e18f1afbd9cdce1564add3d89cb21fa.zip |
Passpoint: Change ICON response handling
Currently, the ICON done notification from WifiMonitor is used
as a trigger to fetch icon data in PasspointEventHandler.
In the HIDL interface, the callback itself will contain all the
necessary icon data. So, change the currently handling to prepare for
integration with HIDL interface.
Changes in the CL:
1. Move the icon data fetching to WifiMonitor away from
PasspointEventHandler.
2. Change the params of the icon done event to include the icon data.
3. Add a new public method in WifiMonitor to send the notification out
from WifiMonitor, which will be used by the HIDL interface in the
future.
Note: There are no unit tests for any of these changes because this CL
is just moving things around and most of it is going to be removed when
we integrate with HIDL.
Bug: 35393853
Test: Connects to passpoint networks.
Test: Will send for regression tests.
Change-Id: I197180c8a8ec8673e5e8fa29ba8bb51b026d44fb
Diffstat (limited to 'service/java/com/android/server/wifi/hotspot2/IconEvent.java')
-rw-r--r-- | service/java/com/android/server/wifi/hotspot2/IconEvent.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/hotspot2/IconEvent.java b/service/java/com/android/server/wifi/hotspot2/IconEvent.java index 69a3b27ec..406c03cd3 100644 --- a/service/java/com/android/server/wifi/hotspot2/IconEvent.java +++ b/service/java/com/android/server/wifi/hotspot2/IconEvent.java @@ -4,11 +4,13 @@ public class IconEvent { private final long mBSSID; private final String mFileName; private final int mSize; + private final byte[] mData; - public IconEvent(long bssid, String fileName, int size) { + public IconEvent(long bssid, String fileName, int size, byte[] data) { mBSSID = bssid; mFileName = fileName; mSize = size; + mData = data; } public long getBSSID() { @@ -23,6 +25,10 @@ public class IconEvent { return mSize; } + public byte[] getData() { + return mData; + } + @Override public String toString() { return "IconEvent: " + |