Expose @hide APIs in ScanResult/WifiInfo as @SystemApi.
These APIs are mostly used by Settings.
Bug: 144311098
Test: atest FrameworksWifiApiTests
Change-Id: Ifdfa78ed59f6a42a3646defa5a9f164d146ceada
Expose @hide APIs in WifiManager/WifiScanner as
@SystemApi so that they can be referenced by external
callers (mostly Settings).
Bug: 143970861
Test: atest FrameworksWifiApiTests
Change-Id: I956290e2a3aca3f4946da52d7e271082824dd06c
Moving executor to be the first argument in registerSoftApCallback.
Bug: 144379300
Test: atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
Manually on pixel 3
Change-Id: I7074278d16beac422ce7b29d4471b2794fa97825
Making SoftApCallback methods available to @SystemAPI including
the API for registration of a SoftApCallback. This includes updating
registration to use an executor now vs a handler.
Bug: 143564153
Test: atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
Also tested manually on a Hawk.
Change-Id: I22b5029a8dbd7a50ad6faf0bb3b15269af839956
Add new API that allow apps to get connection event.
Bug: 142062781
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: I387f620901621feb2b15dff7c696d5d3f9a068b9
This CL adds to ScanResult structure information about the Wifi
technology.
Bug: 143382822
Test: atest com.android.wifi.server
Change-Id: Ibe1d30e2efc4693be22148443b26446b90d89179
This commit is to change the naming from Wifi Technology to Wifi
Standard. This is to comply with the API council review.
Bug: 143551314
Test: atest com.android.wifi.server
Change-Id: I0584f9b791dd14119af199cb14d4caf4ffbf54ab
This Commit adds support for handling of HE Operation Information
element as part of the support for 11ax
Bug: 139354972
Test: atest com.android.wifi.server
Change-Id: I5e8319c4065e57eef1b89f21be2725b6bab3ad4d
This adds a facility for system apps (with NETWORK_SETUP_WIZARD
or NETWORK_SETTINGS permission) to have more control over hotspot
parameters, while allowing them to use local-only mode and the LOHS
callback API for status updates.
Linters give conflicting advice about parameter ordering. With
startLocalOnlyHotspot(config, executor, callback), we satisfy
(+) put callback last (enforced at compile time)
(+) use Executor instead of Handler
(+) put most meaningful argument first
while we're not satisfying
(-) put executor last as it is a SAM (doesn't seem to make much
sense to instantiate executor as SAM anyway, users are more likely
to get an instance from elsewhere)
(-) for overloads, add new arguments at the end.
Bug: 132705022
Test: atest SoftApConfigurationTest android.net.wifi.WifiManagerTest
Test: atest android.net.wifi.cts.WifiManagerTest (not tested due to
failures on emulator b/143120756)
Change-Id: Ia189b3664b47a253e160acb71eafab4f217649eb
Adding support for visibility into clients that connect to an active hotspot.
Bug: 137309578
Test: atest FrameworksNetTests:com.android.server.connectivity.TetheringTest
atest FrameworksWifiApiTests:android.net.wifi.WifiManagerTest
atest FrameworksWifiApiTests:android.net.wifi.WifiClientTest
Tested manually on Hawk.
Change-Id: I1caeb10bc50202873e760a76b346bccd941e2574
Clean up all test assets for ConfigParserTest unit test, and use
generic example values.
Bug: 143239550
Test: atest ConfigParserTest
Change-Id: I52b4011c86ebbb780c40265fb46ea0290442572c
Add an API to indicate if a profile was provisioned by an OSU
(subscription) server. This is necessary for the settings app
to handle profile expiration date use cases, which are different
between R1 (non-OSU) cases and R2 cases.
Make the getSubscriptionExpirationTimeInMillis API public.
Bug: 141474717
Test: atest PasspointConfigurationTest
Test: atest ConfigParserTest
Test: Complete OSU registration, verify API returns true
Test: Install R1 profile, verify API returns false
Change-Id: I788108f973a47716c5d7c9353eafedd5fb06cb8e
WifiManager.allowAutojoin(int, boolean) lets a user toggle whether a
saved network should be allowed to be auto-joined. This "allowAutojoin"
bit is stored within the WifiConfiguration of a saved network.
Bug: 139199957
Test: atest FrameworksWifiApiTests
Change-Id: Ia8650abb59dc53a010accc44bd7b6e28facce992
This CL adds to WifiInfo structure information about the Wifi
technology.
This makes it available to Settings app to use to present in
user interface.
Bug: 138634524
Bug: 140168755
Test: atest com.android.wifi.server
Change-Id: I8aae8e8928462be7729c85fc15e0e7bdd97c1e6e
This enables us to use Executor in new external APIs (as recommended).
This also migrates the LOHS callbacks to an AIDL interface, which
results in cleaner and type-safe code, and allows us to use Executor
without an extra layer of indirection.
Test: atest android.net.wifi.WifiManagerTest LocalOnlyHotspotRequestInfoTest WifiServiceImplTest android.net.wifi.cts.WifiManagerTest
Bug: 132705022
Change-Id: I621062fd3865ca048c022c7ad3520ae4694fc0df
Wifi stack will instead call existing public Telephony API/broadcast
to get the country code.
Bug: 140744935
Test: Manual tests
Test: atest android.net.wifi
Change-Id: I83be57123630c510e121f49ceadb30644e26c29c
Changes:
a) Migrate existing async channel methods to tracked binder calls.
b) Migrate existing async channel responses to tracked binder callbacks.
c) Deprecate WifiManager.disable() (Use public WifiManager.disableNetwork()
instead). Don't see any external users of this API.
d) Removed unnecessary RssiPacketInfo class (only the total pkt count is
necessary in the public API, so remove this class and only pass the
total count in the callback).
Bug: 130039719
Test: atest android.net.wifi
Test: Manual tests
a) Able to connect to networks from settings.
b) Able to remove network from setttings.
Change-Id: Ie82a9fce2f9e32e48a2da77477893427863fb460
The "make" command seems no longer supported after syncing today to
TOT:
build/core/main.mk:13: Calling make directly is no longer supported.
build/core/main.mk:14: Either use 'envsetup.sh; m' or 'build/soong/soong_ui.bash --make-mode'
Made the fix as suggested above.
Bug: 138863873
Test: unit tests
Change-Id: I2e24da0195327b750a7438427ef5033bcd6f5373
Develop a new API for Apps to get the network suggestion suggestedby its
own.
Bug: 138447131
Test: atest android.net.wifi
Test: atest com.android.server.wifi
Change-Id: Ib8b9c23fe0c7b5e913475bb368fb3d7d4f443e2d
The location of FrameworksWifiTests.apk installed by the script
with adb seems to have changed. The path of the APK contains the
TARGET_ARCH environment variable, which is now fetched
with a similar method as in system/netd/tests/runtests.sh.
Noticed the issue with "lunch aosp_x86_64-eng". Before this fix,
the test script produced an error:
adb: failed to stat [...]/FrameworksWifiApiTests.apk:
No such file or directory
Bug: 128603658
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Signed-off-by: Otto Seiskari <otto.seiskari@indooratlas.com>