diff options
author | Peter Qiu <zqiu@google.com> | 2016-12-05 16:11:37 -0800 |
---|---|---|
committer | Peter Qiu <zqiu@google.com> | 2016-12-15 15:37:19 -0800 |
commit | 74339de52d7066f22771d914e698da503232c107 (patch) | |
tree | f38b4466b773e40a6ddfb6eec9c2bdc2084542e9 /PREUPLOAD.cfg | |
parent | fa04a81daf829e6e5c099c9a249b8dd8dd112102 (diff) |
hotspot2: ANQP elements cleanup Part 1
Cleanup and add unit tests for the following ANQP elements (and
the underlying classes used by those elements):
- HSFriendNameElement
- IPAddressTypeAvailabilityElement
- RoamingConsortiumElement
- VenueNameElement
The cleanup included using a static #parse function for parsing
raw bytes into an element object, the new ByteBufferReader APIs
for reading integer and string from ByteBuffer, and documented
possible runtime exceptions.
Additional changes include:
- remove the unnecessary setting of byte order for
the ByteBuffer, since we're not using the ByteBuffer's APIs
for reading integer values (all reads are either byte or byte
array).
- remove the unused functions in ANQPFactory
More ANQP elements cleanup will be done in the upcoming CLs.
Bug: 33000864
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I6da918c83722d5c0ca7a2374ff5fa5f630cdea6d
Diffstat (limited to 'PREUPLOAD.cfg')
0 files changed, 0 insertions, 0 deletions