2434 Commits

Author SHA1 Message Date
TreeHugger Robot
603ed1ddc2 Merge "WifiAwareAgentNetworkSpecifier: Initialize unmarshaled instance" 2018-09-05 19:51:23 +00:00
Ecco Park
e6072e99b5 Merge "passpoint-r2: add the new failure about timeout for redirectListener" 2018-09-05 17:16:08 +00:00
Roshan Pius
3f770d934e WifiAwareAgentNetworkSpecifier: Initialize unmarshaled instance
Invoke initialize on all instances of
WifiAwareAgentNetworkSpecifier.

Bug: 113882732
Test: Unit tests
Test: Aware data path related CtsVerifier tests pass now.
Change-Id: Ifcf4b4708534b7c630f7846fa3823ba4f6a6aca3
2018-09-05 16:47:01 +00:00
Michael Plass
b0b67fc1b9 Merge "Add missing SmallTest annotations in frameworks/base/wifi" 2018-09-04 16:18:58 +00:00
Ecco Park
b6f805729f passpoint-r2: add the new failure about timeout for redirectListener
Bug: 74244324
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: live test with Passpoint R2 service provider AP
Change-Id: Ifd1be8450b3a7915f3e6de29942cf8d1d196d0bb
Signed-off-by: Ecco Park <eccopark@google.com>
2018-08-31 17:54:54 -07:00
Roshan Pius
045d380e68 WifiManager: Add verbose logging enabled flag
Some of the wifimanager logs on the app side are too spammy. Move these
logs under a verbose logging flag. This flag is updated to reflect the
logging level set on wifi service when the WifiManager object is created.

Bug: 111350569
Test: Ensured that the logs under the flag are logged only when verbose
logging is turned on.

Change-Id: Ied1ee14b423e4d0a473e153dcfd3e07e20391be5
2018-08-28 15:04:43 -07:00
Michael Plass
870d38148f Add missing SmallTest annotations in frameworks/base/wifi
Bug: 73290083
Test: Unit tests
Change-Id: I1fc03f17f542d35d8e0e624e96c1175fea1581b8
2018-08-27 14:06:53 -07:00
keigo, nishira
04b05b4daf Fix some fields in WifiInfo are not written into Parcel
Some fields in WifiInfo are not written into Parcel so
these fields will not be carried over process boundaries.

cherry-picked from: aog/706786

Bug: 79889311
Test: compile & verified fields are filled from app
Test: Unit tests

Change-Id: I0d8f453c49212fc6d12d28537454c9a9657c1ef7
2018-08-20 11:54:00 -07:00
Ahmed ElArabawy
dfb32165f7 Merge "Wifi: Pass the multicast wakelock TAG in release" 2018-08-20 18:06:08 +00:00
Ecco Park
1460c30b75 passpoint-r2: define new status and new Intents for lauching an OSU app
Bug: 74244324
Test: ./frameworks/base/wifi/tests/runtests.sh
Test: live test with Passpoint R2 service provider AP
Change-Id: Iba35ab14b6b5925d2ef0435af9e94f97d0d9fa1d
Signed-off-by: Ecco Park <eccopark@google.com>
2018-08-20 17:37:18 +00:00
Mathew Inwood
53f089f843 Add @UnsupportedAppUsage annotations
For packages:
  android.net.wimax
  android.net.wifi.p2p.nsd
  android.net.wifi.p2p
  android.net.wifi.hotspot2.pps
  android.net.wifi.hotspot2.omadm
  android.net.wifi.hotspot2
  android.net.wifi.aware
  android.net.wifi
  android.net.util
  android.net.sip
  android.net.rtp
  android.net.nsd
  android.net.metrics
  android.net.lowpan
  android.net.http
  android.net.captiveportal
  android.net

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I520be7a4c79e68310c12e4f55bf66acaa94145a1
2018-08-14 14:39:24 +01:00
Ahmed ElArabawy
3793c020b4 Wifi: Pass the multicast wakelock TAG in release
In current implementation, when the same UID allocates, and acquires
multiple wiFi multicast wakelocks, the tag associated with the lock is
passed in the acquire method, and stored in the multicasters list.
However, when the UID tries to release the lock, the tag is not included
in the method call, and all the wakelocks found in the list of
multicasters for this UID are released.
This behavior does not reflect the expected behavior of the App using the
API

This commit contributes to the fix of this situation by passing the
wakelock tag in the release method, to enable the release of the proper
wakelock.

Bug: 70691435
Test: ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh

Change-Id: I4e4efd2ce75e77cde54ba92217364b83f2c7c401
2018-08-09 13:59:39 -07:00
TreeHugger Robot
d4c19aa24b Merge "passpoint-r2: redefine status and error enums" 2018-08-01 18:44:00 +00:00
Michael Plass
c32985fa8d Permission required for RSSI_CHANGED broadcast
Document requirement for ACCESS_WIFI_STATE permission to receive
android.net.wifi.RSSI_CHANGED broadcasts.

Bug: 111698366
Test: Unit tests
Change-Id: I7c02c0e226fef2b2ab2f374bb68b2de1b64effe3
2018-07-30 11:08:56 -07:00
Roshan Pius
2866912853 Merge "WifiManager: Add callback for traffic poller" 2018-07-27 18:24:48 +00:00
Ecco Park
87b0298b74 passpoint-r2: redefine status and error enums
Bug: 74244324
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: I0df739206fdf2e7a7dbfd56771768b875bc96f19
Signed-off-by: Ecco Park <eccopark@google.com>
2018-07-26 17:49:50 -07:00
TreeHugger Robot
ce419f1342 Merge "WifiScanner: Add permission for start/stop pno scan APIs" 2018-07-26 16:14:26 +00:00
Andrew Solovay
b44f927f05 Merge "docs: Updating setDomainSuffixMatch() for Android P" into pi-dev am: 447b8b6394
am: b6c29ac737

Change-Id: I0b93883c585240b81447530735fbe573695b4cf8
2018-07-25 13:37:00 -07:00
Andrew Solovay
b6c29ac737 Merge "docs: Updating setDomainSuffixMatch() for Android P" into pi-dev
am: 447b8b6394

Change-Id: I4b20998adc69de0742c4dddf0020cfb4384f94b5
2018-07-25 12:12:11 -07:00
Andrew Solovay
5c704e6deb docs: Updating setDomainSuffixMatch() for Android P
Small update to reflect P-related change (that common-name verification
is no longer supported), per
https://android-dot-devsite.googleplex.com/about/versions/p/android-9.0-changes#certificate-common-name

Also added some missing paragraph breaks while I was doing it.

Doc is staged to:

http://go/dac-stage/reference/android/net/wifi/WifiEnterpriseConfig#setDomainSuffixMatch(java.lang.String)

Exempt-From-Owner-Approval: Docs-only change
Bug: 110483059
Test: make ds-docs
Change-Id: I50b6eb70bf16c17dd0ae4e54711c5bb599c47c1a
2018-07-25 18:57:05 +00:00
Roshan Pius
80fb13753b WifiManager: Add callback for traffic poller
The current mechanism for traffic poller directly exposes the wifi
service's internal message handler to privileged apps. Move away from
this mechanism and expose an API to let apps register for callbacks from
traffic poller. This API uses binder IPC for registration and
invocation of callbacks. Clients are automatically removed on binder
death.
This will also let us mark WifiManager#getWifiMessenger() method
private to prevent any apps from getting access to this internal messenger.

Note: This is based on the existing SoftapCallback registration
mechanism.

Also, fixed a bunch of checkstyle errors that were not caught
previously.

Bug: 27074039
Test: Unit tests
Test: Verified the data indicators on Sysui
Change-Id: I505bd2398552be99ccca7b7d3c31a488aa72af70
2018-07-25 14:31:29 +00:00
Roshan Pius
8a73ce4877 WifiScanner: Add permission for start/stop pno scan APIs
Only wifi service should invoke these calls.

Bug: 69862744
Test: Unit tests
Test: Verified that pno still works.
Change-Id: Ib0ded6aeb994b78e6a8965d66f2adef233cb002e
2018-07-24 13:24:20 -07:00
TreeHugger Robot
ddd7c01b17 Merge "WifiScanner: Scanner enable/disable" 2018-07-24 01:08:30 +00:00
Roshan Pius
5ac661678f WifiScanner: Scanner enable/disable
Add a new method in WifiScanner to enable/disable scanning. This will be
used by WifiStateMachine to control scanning.

Bug: 110428211
Test: Unit tests
Test: Manual tests

Change-Id: Iebaf5ff81754bf1f14f7533ac16eddb882970b8c
2018-07-23 20:00:39 +00:00
Roshan Pius
7c59a10bb4 WifiManager: Remove unused param in getControllerActivityEnergyInfo
Bug: 34076874
Test: Compiles
Change-Id: I9a87d320ae8b2a3dd70b1f3109609b7cf429e124
2018-07-20 13:45:18 -07:00
Ecco Park
84d601fbda passpoint-r1: fix the wrong filed for PPS-MO.
Currently Passpoint-r1 follows the PPS-MO format to install passpoint
profile.

Howevever, one field(SubscriptionParameter) is not correct.
Normally passpoint-r1 doesn't use this field because this is used for
passpoint-r2 feature.
So, currently there is no issue with wrong field for using passpoint-r1.

But, it needs to be "SubscriptionParameters" according to the hostpot2.0
release 2.0 techinical specification.

Bug: 111449001
Test:  ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Idb6bb4d28913bd3d0905b330e25fbb20b99bbf2e
Signed-off-by: Ecco Park <eccopark@google.com>
2018-07-14 00:11:20 +00:00
TreeHugger Robot
90671be751 Merge "Update OWNERS file" 2018-07-07 02:22:38 +00:00
Rebecca Silberstein
1d48831106 Merge "SettingsBackupAgent: notify of apBand conversion" into pi-dev am: cbf554b78b
am: 5f5f4788f1

Change-Id: I8a260e47661912420c20634c390aef288afaf92b
2018-06-22 11:34:55 -07:00
Rebecca Silberstein
5f5f4788f1 Merge "SettingsBackupAgent: notify of apBand conversion" into pi-dev
am: cbf554b78b

Change-Id: I7f717d4d6d8a836fc86d67cc453a464830865508
2018-06-22 11:26:10 -07:00
Etan Cohen
ce198e2f22 Update OWNERS file
Bug: 110536740
Test: N/A
Change-Id: Id30f8e6254380a5bb7b01575687819d63f676b8a
2018-06-21 15:27:09 -07:00
Rebecca Silberstein
d41106c52e SettingsBackupAgent: notify of apBand conversion
Added support to notify user of a change to their softap configuration
preferences after being restored via SettingsBackupAgent.

Bug: 80251951
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: manually confirmed configs are converted for different device
Change-Id: I4cec15549d694cdb1a7b09f1426d027eec021122
2018-06-19 09:59:12 -07:00
Rebecca Silberstein
7e4368909d Merge "WifiManager: add call to see if apband conversion is required" into pi-dev am: 85bdd711ce
am: b14e1fdbff

Change-Id: I8899a793ea7e6825d301d151de3713130390b14b
2018-06-06 10:16:21 -07:00
Rebecca Silberstein
b14e1fdbff Merge "WifiManager: add call to see if apband conversion is required" into pi-dev
am: 85bdd711ce

Change-Id: I4f2c8e9ebcfd4bb92cad23f222218960188ca09b
2018-06-06 09:51:50 -07:00
Rebecca Silberstein
34f0631ec1 WifiManager: add call to see if apband conversion is required
Add call @hide allowing settings to check if the device requires softap
configs be converted from 5GHz only to ANY

Bug: 80251951
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: Id4d435eb55e2696d23ceb4d301e5d039e134d66a
2018-06-01 17:52:12 -07:00
Roshan Pius
d7fece947a Merge "WifiConfiguration: New temp disable network status for no internet" into pi-dev am: 95509057f8
am: dee99a1b2b

Change-Id: I9274ba934a102a17d554133caed5ede6cce551b0
2018-05-21 10:26:51 -07:00
Roshan Pius
dee99a1b2b Merge "WifiConfiguration: New temp disable network status for no internet" into pi-dev
am: 95509057f8

Change-Id: I73fc1ed24e79689315ed5d4501a412afce24f6e8
2018-05-21 10:20:11 -07:00
Roshan Pius
95509057f8 Merge "WifiConfiguration: New temp disable network status for no internet" into pi-dev 2018-05-21 17:04:10 +00:00
Etan Cohen
1ae59634c4 Merge "[RTT] Legacy RTT API: add attempted/succeeded counts" into pi-dev am: 9f9ce0462d
am: ad2ef030a7

Change-Id: Iddd2f1eed8274e59cca27c301f52411a7e19d25b
2018-05-17 08:28:30 -07:00
Etan Cohen
ad2ef030a7 Merge "[RTT] Legacy RTT API: add attempted/succeeded counts" into pi-dev
am: 9f9ce0462d

Change-Id: I2e21bc3ab963de5df240d921a92498a3327d6975
2018-05-17 08:20:56 -07:00
Etan Cohen
49821a11e1 [RTT] Legacy RTT API: add attempted/succeeded counts
Wi-Fi RTT legacy API is (now) a wrapper around the new API. Two
new result parameters were added to the new API but not propagated
to the corresponding legacy API:

- Count of attempted measurements
- Count of successful measurements

Bug: 79883720
Test: unit tests
Test: RangeApSupporting11McTest:test_legacy_rtt_80211mc_supporting_aps
Change-Id: Id000c691c22319474e3e98f5ba5d77e4bb4c343e
2018-05-16 17:50:53 -07:00
Roshan Pius
d61e3930ac WifiConfiguration: New temp disable network status for no internet
Add a new network disable reason to temporarily blacklist an
auto-connected network.

Bug: 72635747
Test: Manually verified that device switched away from an
auto-connected network when it detects no internet.
Change-Id: Id3d2de05f6b2869c0b64d5e427e14573e8912905
2018-05-14 14:18:57 -07:00
Etan Cohen
5c059bd984 Merge "[RTT] Update RTT preamble selection algorithm" into pi-dev am: 51f3c4481c
am: 057718d6e8

Change-Id: I38fd3bd4908e7212535abfd97ae5abd320afe830
2018-05-06 21:16:57 -07:00
Etan Cohen
057718d6e8 Merge "[RTT] Update RTT preamble selection algorithm" into pi-dev
am: 51f3c4481c

Change-Id: I7922b6d07c6327a597f76f1002b3c7652af7d165
2018-05-06 21:07:25 -07:00
Etan Cohen
67f5ffb7e8 [RTT] Update RTT preamble selection algorithm
Select preamble to use for RTT exchange using IEs advertised by the
AP rather than channel width (which is used as a backup method).

Bug: 69965964
Test: unit test & integration tests
Change-Id: I60ef31c4627795bd4da505f31998b49668d1a115
2018-05-05 05:01:31 +00:00
android-build-team Robot
4023ca9afa Merge "[AWARE] Update docs for service discovery callbacks" into pi-dev am: b9147471ec
am: 1191a4c5da

Change-Id: If81d0074074058ab41944e097dad22f1651b9f7b
2018-05-04 19:32:02 -07:00
android-build-team Robot
1191a4c5da Merge "[AWARE] Update docs for service discovery callbacks" into pi-dev
am: b9147471ec

Change-Id: I84f79736947e39addfa1b1f0b865e2bb523fb87d
2018-05-04 19:22:19 -07:00
android-build-team Robot
b9147471ec Merge "[AWARE] Update docs for service discovery callbacks" into pi-dev 2018-05-05 02:11:03 +00:00
Roshan Pius
2c8c9f8cd3 WifiConfiguration: Fix documentation for SSID am: 183a5f0a35
am: 7436da4317

Change-Id: I2948b9e19e5df5c34efe9c7530562279f63d7654
2018-05-04 15:41:52 -07:00
Roshan Pius
7436da4317 WifiConfiguration: Fix documentation for SSID
am: 183a5f0a35

Change-Id: I265fa98e6aa62a047ff6c7d6cf4c2fe3693dbc88
2018-05-04 15:26:06 -07:00
Roshan Pius
183a5f0a35 WifiConfiguration: Fix documentation for SSID
SSID strings can be UTF-8 encoded. Fix documentation to reflect that.

Bug: 78483295
Test: Compiles
Change-Id: Ib25967a52627a17a13b5d5b418fc3c3c3d05f7c8
2018-05-04 22:12:29 +00:00