History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ByteBufferReaderTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/tests/wifitests/src/com/android/server/wifi/ByteBufferReaderTest.java