The package information of caller is needed to check the SDK version in
WifiService layer.
Bug: 124301934
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I07020da22f044bdd32d376787fc14690bf926513
Signed-off-by: Ecco Park <eccopark@google.com>
Addressed all comments from API review council:
1. Rename WifiUsabilityStatsListener to OnWifiUsabilityStatsListener.
2. Change the modifier of member variables in WifiUsabilityStatsEntry.java to private and use getters.
3. Document the unit of predicitonHoirzonSec and its expected range.
4. Add @ProbeStaus in probeStatusSinceLastUpdate.
5. Rename probeElapsedTimeMsSinceLastUpdate to
ProbeElapsedTimeSinceLastUpdateMs.
6. Marked @NonNull for Argument 3 in onWifiUsabilityStats.
Bug: 126391553
Bug: 126699865
Bug: 113262380
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I20d9ad05dc0bb537b09006ca44a447401b3e1001
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Add system API to allow framework to receive Wifi usability score from system APK.
Also add a new permission to protect this API from being used by unauthorized applications. This permission is the same as the one added for sending Wifi usability stats.
Bug: 113262380.
Test: frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: Ib695dbb4c6c1f4518a464877f1d0f60dde4904eb
Add system API to allow framework to send Wifi usability stats to
system APK.
Also add a new permission to protect this API from being
used by unauthorized applications.
In addition, add a few more entries in Wifi.proto.
Bug: 113262380
Test: Unit tests for Wifi: frameworks/base/wifi/tests/runtests.sh
Change-Id: I5432419d6da3db96ecc6ff8e1c3197121ca7afbc
Signed-off-by: Mingguang Xu <mingguangxu@google.com>
WiFi features run out of all 32 bits of int.
Extend feature flag from int to long for more bits.
Bug: 122939035
Test: build
Test: atest frameworks/opt/net/wifi/tests/wifitests
Change-Id: I7e2bcc03d24940e95e22f5fc34070cf4aebfadfd
It is to get the scanresults per home or roaming network type for
matching PasspointProfile.
With this, UI is able to connect to an AP based on the following priority.
1) Home network
2) Roaming network
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I88cacddc072d04e478536276dee411ecc63ced52
Signed-off-by: Ecco Park <eccopark@google.com>
This patch removes the abstract qualifier from AbstractWifiService and
change its name to BaseWifiService for consistency.
This checks at compile time that all base methods defined in
IWifiManager.aidl are stubbed in AbstractWifiService. Previously since
AbstractWifiService was an abstract class, any new method added to
IWifiManager.aidl would not force an update to AbstractWifiService.
Bug: 112338174
Test: Checked that removing a stub from BaseWifiService causes an
error at compilation.
Change-Id: I3f71aae51adfe5775bec25e1133876b975cf0515
This adds stubs to match new methods of IWifiManager.aidl recently added
by Change-Id Ib2226a5e6d94b1d6247f958513c858cf38686ce8.
Bug: 112338174.
Test: Compiled.
Change-Id: Idc72f806391e7c109131d8d2c390ec54f022e403
This change is required to show signal strength with OSU provider name
on UI
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R2 AP for connection
Signed-off-by: Ecco Park <eccopark@google.com>
Change-Id: I4abb69ffad3ccd855db935e738d1896b263da147
This change is required to show the signal level associated with service
name on UI for installed passpoint profile as picking strongest one up
from matching scanResults.
In order to get a map that consists of WifiConfiguration and a list of
ScanResults, three steps are required.
1) Gets a map that consists of FQDN(Fully Qualified Domain Name) of
a matching Passpoint profile and a list of ScanResults.
2) Gets a list of WifiConfigurations for Passpoint profiles matched a
provided list of FQDN.
3) Creates a new map that consists of WifiConfiguration and a list of
ScanResult.
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: I0d56dbdddae4e365b909b9c8f3eff3b0121dc5de
Signed-off-by: Ecco Park <eccopark@google.com>
Given a list of OSU providers, this only returns OSU providers
that already have Passpoint R2 configurations in the device.
This API is required to remove OSU provider entries that already have
the passpoint r2 profile in the device on Settings UI
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: tested with R1 AP for installing profile and R2 AP for connection
Change-Id: I111e380b3031ff268721c80501257c638f64e01a
Signed-off-by: Ecco Park <eccopark@google.com>
API to get the factory MAC addresses. Not for use by third party apps.
Bug: 111634904
Test: unit tests
Change-Id: I9258889b963886b79191b9ea1e7aa70ffb4eb6ad
Also, changed the return of add/removeNetworkSuggestions to clearly
indicate the error encountered.
Bug: 119210573
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I06eff1aad584ed9939ba905a1008a7565909d148
Changes:
a) Pass the calling package name in the AIDL call to allow target-SDK
checks & error logging on the service side (similar to other binder calls).
b) Pass the return value from service for AIDL calls: disconnect,
reconnect, reassociate.
c) Return false for a previously deprecated saveWifiConfiguration API.
Bug: 115504728
Test: Compiles
Change-Id: I9bc9c8fc5857a430242e5afbecca7fc2c39f1ca1
* changes:
WifiManager: Add abort callback for network request
WifiNetworkAgentSpecifier: Allow satisfiedBy call for 2 instances
WifiConfiguration: Add a field to mark network as trusted
WifiManager: Send list of matching scan results for network request
WifiManager: Implement network suggestion API
wifi(API): Send directed broadcast post connection for suggestions
This API is required to support control of OSU Service Providers with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Ib2f2e406c8c295c83924e7884657b4088dd23bb3
Signed-off-by: Ecco Park <eccopark@google.com>
This API is required to support control of Passpoint configurations with
scan results on Setting UI.
Internally, previous API is merged into new API to take a list of
ScanResult Objects instead of a single ScanResult.
Bug: 119514793
Test: ./frameworks/base/wifi/tests/runtests.sh
Signed-off-by: Ecco Park <eccopark@google.com>
Change-Id: I1b9e1499081a8b005f10c249163185d0dc817b46
This patch creates a base abstract class that implements
IWifiManager.aidl with stub methods that throw runtime exceptions.
Actual implementations of IWifiManager can extend this class instead of
directly extending the autogenerated IWifiManager.Stub.
This allows adding new methods or modifying existing methods in
IWifiManager without requiring a synchronized change on all concrete
implementations.
Bug: 112338174
Test: Compiled, flashed marlin, booted. WiFi works.
Change-Id: I316c999d6c076f4e6ea1354bd558512915d551ed