History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/I18Name.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
74339de52d7066f22771d914e698da503232c107 06-Dec-2016 Peter Qiu <zqiu@google.com> 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
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/I18Name.java
fa04a81daf829e6e5c099c9a249b8dd8dd112102 02-Dec-2016 Peter Qiu <zqiu@google.com> Cleanup support for parsing various length integer and string from ByteBuffer

Move and cleanup the parsing functions from
com.android.server.wifi.hotspot2.anqp.Constants to the newly created
ByteBufferReader, since these are generic parsing functions (not
specific to ANQP).

An unchecked runtime exception will be thrown when an error is
encountered. The possible exceptions are documented for each
API. It is the caller's responsibility to handle those
exceptions appropriately (e.g. propagate the exceptions upwards
with appropriate documentation or catch the exception).

The handling of unchecked runtime exceptions for ANQP elements
parsing will be added in the follow-on CL as part of the ANQP cleanup.

b/33296974 is filed for tracking handling of unchecked runtime
exceptions for parsing information elements.

Bug: 33000864
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I6964520e7cc86071b2096408d6cb0503e0f618ff
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/I18Name.java
8ca4ac971a9b862fbd69c57af3a3c0029a6b9f4d 18-Nov-2016 Peter Qiu <zqiu@google.com> hotspot2: anqp: update package name to reflect the updated location

Bug: 33000864
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: If842197a027a2c8381aacf5b256191f81bcbd1bb
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/I18Name.java
450a34955b855f0d813400013a9dbeead9d84c7b 18-Nov-2016 Peter Qiu <zqiu@google.com> hotspot2: move anqp related code to under hotspot2

ANQP is specific to Hotspot 2.0, so move all related code to under
hotspot2/.

This CL is a purely rename operation.

Bug: 33000864
Test: None
Change-Id: I17c3eb5bce37290a13c2e0720b62c82450daae9b
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/I18Name.java