summaryrefslogtreecommitdiffstats
path: root/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp
Commit message (Collapse)AuthorAgeFilesLines
* Added unit tests for server.wifi.hotspot2.anqp coverageQuang Luong2019-04-302-0/+105
| | | | | | | Bug: 130303939 Test: coverage.sh Change-Id: I31beac5ddcf9c2d442d66bfe9cd2176b5a3f50db
* Take 2 of Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-1925-26/+30
| | | | | | | | See go/jetpack-test-android-migration Test: atest FrameworksWifiTests Bug: None Change-Id: I76a3394fe1e4f5b268ed2716291b33d1db8f9f85
* Merge "Revert "Migrate frameworks/opt/net/wifi to androidx.test""Brett Chabot2018-12-1925-30/+26
|\
| * Revert "Migrate frameworks/opt/net/wifi to androidx.test"Brett Chabot2018-12-1925-30/+26
| | | | | | | | | | | | | | | | | | This reverts commit 560ff95760cd1fc1da022e0972a5e29b739fcc52. Reason for revert: Broke master Exempt-From-Owner-Approval: build fix, pure revert Change-Id: I9f155cff6a712a6831be6af6b4dc671a35cd2ee1
* | Merge "Migrate frameworks/opt/net/wifi to androidx.test"TreeHugger Robot2018-12-1925-26/+30
|\|
| * Migrate frameworks/opt/net/wifi to androidx.testBrett Chabot2018-12-1425-26/+30
| | | | | | | | | | | | | | | | See go/jetpack-test-android-migration Test: make checkbuild Bug: None Change-Id: I68f37d8eaf20b82a4e26ef7914e13460495e9762
* | passpoint-r2: Implement getMatchingPasspointConfigsForOsuProviders APIEcco Park2018-12-161-1/+2
|/ | | | | | | | | | | | | Service Friendly Names in OSU Providers ANQP response will be saved when installing Passpoint profile on the device. The information will be used to find a matching Passpoint configuration with comparing the service name of OSU Provider. Bug: 119514793 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: tested with R1 AP for installing profile and R2 AP for connection Change-Id: Id0624ef5fb0a5ba2285244825ecccd69d7250950 Signed-off-by: Ecco Park <eccopark@google.com>
* passpoint-r2: select a best OsuProvider in startProvisioningEcco Park2018-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | The intermediate layer called WifiTracker gets the OsuProviders without OSU SSID from WifiService Layer by calling getMatchingOsuProviders API. With the list, WifiTracker is able to remove duplicate entries by only comparing servicei provider information in the OsuProvider object without OSU SSID. So, when user selects service name for sign up on UI, WifiTracker will pass the selected OsuProvider without OSU SSID to WifiService Layer by calling startProvisioning in WifiManager. If the provided OsuProvider doesn't have OSU SSID, PasspointProvioner will select the one which has strongest signal strength from matching OsuProviders with the provided OsuProvider. Bug: 119514793 Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: live test with Passpoint R2 service provider AP Signed-off-by: Ecco Park <eccopark@google.com> Change-Id: I50ce60f0499397b1f6529ebb24b6e12be0678736
* Update SmallTest libraryEtan Cohen2018-01-2625-25/+25
| | | | | | | | | | | | android.test.suitebuilder.annotation.SmallTest is deprecated and replaced by android.support.test.filters.SmallTest. Update all test files. No other change (except import order cleaning up to pass preload format check). Bug: 72324160 Test: all unit tests pass Change-Id: Icc4abe3b3b37926d583c0d4ae510a7d7c74c1a03
* hotspot2: anqp: OsuProviderInfo: friendly name and service description selectionPeter Qiu2017-06-061-0/+124
| | | | | | | | | | An OSU provider might contain multiple friendly names and service descriptions in different languages. In this case, the value that's in the default language will be preferred. Bug: 62235301 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ie6065a494e6a5c9aa1cc05621ab9627628efb446
* hotspot2: anqp: add parsing support for Icon File ANQP elementPeter Qiu2017-05-261-0/+112
| | | | | | Bug: 38351209 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I524c676a76a64cf0ed42a57141f769ef50d9169d
* hotspot2: parse OSU Providers ANQP elementPeter Qiu2017-05-261-3/+22
| | | | | | | | | | | | | | | | | Instead of storing OSU providers list as raw bytes, parse it using the HSOsuProvidersElement. Also do not broadcast the raw bytes to the app, since it will be parsed by us now. The app will be able to retrieve the parsed information via a new API in the future (to be implemented). Bug: 38351209 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Test: manual testing with Boingo Passpoint AP, verify via debug logs Change-Id: Idc15c4b00580d65133bde57ba43be590d50321c0
* hotspot2: anqp: add parsing support OSU Providers List ANQP elementPeter Qiu2017-05-261-0/+114
| | | | | | Bug: 38351209 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I14f26966b073e44291241bd69c4160b91a47e264
* hotspot2: anqp: parsing support for OSU Provider infoPeter Qiu2017-05-252-0/+264
| | | | | | | | | An OSU Providers List ANQP element will contain zero or more OSU Provider Info. Bug: 38351209 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I73d84400f4232e8ebbfd1d4d11f173daee7c9745
* hotspot2: anqp: update parsing code for IconInfoPeter Qiu2017-05-192-0/+155
| | | | | | | | | | IconInfo contained Icon Metadata subfield in the OSU Providers List ANQP element. Clean up the parsing/creation logic and added unit tests. Bug: 38351209 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ib2e709369660ab32d3cd07768e8314e11588be1a
* hotspot2: cleanup ANQPParserPeter Qiu2016-12-221-0/+485
| | | | | | | | | | | | | Below is the list of cleanups: - removed unused function - cleaned up parsing of vendor specific element - only support Hotspot 2.0 elements, since these are the only elements that we cared about - added unit tests Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I2e492525dfa5e28c12336e2bbec2f2882e0af57c
* hotspot2: ANQP elements cleanup Part 4Peter Qiu2016-12-219-0/+914
| | | | | | | | | | | | | | | | | | | | Cleaned up the implementation and added unit tests for NAIRealmElement and the classes used by it. While there, remove the match() function from NAIRealmElement for now. So that all ANQP elements class are purely data storages for the element. The match() function will be added to PasspointProvider for matching a NAI Realm Element against the provider's configuration. Other changes included: - removed the now unused EAP.java - removed the uses of enum for EAP Method ID and Authentication Parameter type constants. - renamed Credential to CredentialType Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I940f6d7cecb9bec405f0786845af768caf527990
* hotspot2: ANQP elements cleanup Part 3Peter Qiu2016-12-213-0/+345
| | | | | | | | This CL contained cleanups for ThreeGPPNetworkElement and CellularNetwork. Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ibba64207e0f22e3247a3cc8387eeca277bcd577b
* hotspot2: ANQP elements cleanup Part 2Peter Qiu2016-12-215-0/+514
| | | | | | | | | | | | This CL contained cleanups for the following ANQP elements: - DomaniNameElement - HSConnectionCapabilityElement - HSWanMetricsElement - RawByteElement Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: I6c4737bdb04cc54aa5b3ea7462e44afd423f1b27
* hotspot2: ANQP elements cleanup Part 1Peter Qiu2016-12-155-164/+668
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* hotspot2: anqp: update package name to reflect the updated locationPeter Qiu2016-12-012-2/+2
| | | | | | Bug: 33000864 Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: If842197a027a2c8381aacf5b256191f81bcbd1bb
* hotspot2: move anqp related code to under hotspot2Peter Qiu2016-12-012-0/+257
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