History log of /frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
afca3e98af3129edc899d414301ba7f5b575e9bc 21-Mar-2018 Etan Cohen <etancohen@google.com> [AWARE] Change PeerHandle internal ID to device-wide unique

Change the PeerHandle internal ID to be device-wide unique as opposed
to only session-wide unique.

Helps in debugging and reducing probability/impact of wrong usage (i.e.
wrong usage will be clearer).

Bug: 76033682
Test: unit tests pass
Test: MessageTest integration tests
Change-Id: I0bafb326ddb8ba454024501bef4b81b85cdac329
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
05dbaa4579483e9f53f4b6c6e02c02d620f1890f 13-Mar-2018 Etan Cohen <etancohen@google.com> [AWARE] Metrics for Discovery + Ranging

Add metrics for Wi-Fi Aware discovery with ranging constraints.

Bug: 63906015
Test: unit tests for aware
Test: integration tests ThroughputTest
Change-Id: I06330edb906a72de33b8777587deed4f27fc6f41
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
d187886254382d86f6884f593d851594575acd0c 14-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Restructure debugging flags to enable dynamic updates

Restructure the debugging flags to allow dynamic updates of the debug
flag. Each class has a static VDBG and a dynamically updated mDbg.

Note: there are no (or minimal changes) to the actual debugging - all
of which is gated by VDBG. A subsequent CL will move some messages to
the lower-level mDbg.

Bug: 69432628
Test: builds, runs, toggle debug flag
Change-Id: I61df2a0bb790832c7136aa1ad67a745eb388b1da
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
3709e0d8752b945e19f4c7c9f75b929ee261dfe4 13-Nov-2017 Etan Cohen <etancohen@google.com> [AWARE] Aware ranging (RTT) to Aware discovery

Add configuration of ranging information (enabling, specifying
geofence) to the Aware discovery process:
- Pipe information to HAL
- Call location-specific discovery callback

Bug: 33821639
Test: unit tests and (non-functioning) integration tests
Change-Id: I66c674b5c97f286311ff3c0e35d23c6e89305043
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
eddf3faabf426d18b7d3dff187ec91fe6a96665d 13-Jul-2017 Etan Cohen <etancohen@google.com> [AWARE] Create a locally maintained peer ID instead of firmware ID

The firmware provides a peer requestor ID + peer MAC to identify the
peer. The peer requestor ID alone is insufficient.

Original code used the peer requestor ID as the only identifier. This
failed once started testing with >2 devices.

Allocate a local (unique) peer ID which is mapped to the peer requestor
ID and peer MAC by the framework.

Bug: 63642354
Test: all unit tests + integration (sl4a) tests
Change-Id: Ic1b3a97b9675be8d8561f4500e8c777ddff42950
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
d8135fd1779f30c7934d87fd65fbfa678db14548 27-Jun-2017 Etan Cohen <etancohen@google.com> [AWARE] Metrics for discovery sessions

Bug: 26565416
Test: (new) unit tests passing
Change-Id: I0d3f2eb159c8f517156431fb0b09deb4c90fd4b9
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
0d8e6a7d72e6bd953939dc6976c00eafc08b8fce 18-May-2017 Etan Cohen <etancohen@google.com> [AWARE] Fix update publish/subscribe

When updating an existing publish/subscribe discovery session the
native API must take the session ID of the existing session. The code
provided 0 - which was an indication to create a new discovery session.

Bug: 38397363
Test: unit tests and integration (sl4a) tests
Change-Id: I8657493a39fe39d12a55af2bdee140b850351c1f
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
26f57d4921a2390f90d4bf474cb76ec3761d6c69 04-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Send message: error code handling

Send message operates by queueing messages to the firmware
and then reacting to the status of the queue and the actual
over-the-air transmission.

Added:
- Code to handle immediate queueing failure (need to be more
concerned with transition to HIDL - likelihood of immediate
errors increased, e.g. due to service failure).
- Code to differentiate QUEUE FULL error code from other firmware
errors.
- More robust testing framework: including a model of the device
and randomized responses.

Bug: 29061728
Bug: 29459286
Test: unit tests + integration (sl4a) tests
Change-Id: I218ec9b9107fae0efc7299341ad02e19034d2f09
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
5254a256676974e9db86fcb86b2f41af7d4a59f5 01-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Handle HAL failure correctly

HAL calls may fail asynchronously or synchronously. The frameworks finds
out about async failures through notification callbacks - already handled.
The synchronous failures happen immediately on HAL API calls. These are
rarer and have not been handled until now. Add code to handle the sync
failures - by calling appropriate failure callbacks. Add unit tests.

Bug: 29061728
Test: unit tests + integration (sl4a) tests pass.
Change-Id: I7ad35c989aa146f74eaad4eaa781d2e628586846
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
db3c9d35a7f08de03beec81e801d917a5375f63e 30-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Wi-Fi Aware HAL: move to HIDL

Transition from JNI-based HAL to HIDL-based HAL.

Bug: 32315992
Test: unit tests + integration (sl4a) tests passing
Change-Id: I8deeaa501b90b1b2a92c3f57a7e0251f21cc40ff
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
d45abba86c33bd93863fc9d8f7c84ca28deb17b2 14-Dec-2016 Etan Cohen <etancohen@google.com> [AWARE] Use WifiInjector in WifiAware library

Convert the WifiAware library to use the WifiInjector.
- Reduces use of reflection to configure unit tests
- Lays the ground work for merging all Wi-Fi handler threads

Bug: 27924886
Test: boots & unit tests passing
Change-Id: I43f1896182a64bc89249e49b6e2bbce238f68f82
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
c2d0f22f7b29507d29e517c329d82a0d30342f44 16-Nov-2016 Etan Cohen <etancohen@google.com> [AWARE] Data-path creation roles hard-coded for discovery sessions

Data-path roles (initiator & responder) are hard-coded for discovery
session participants by the spec: subscriber <-> initiator and
publisher <-> responder.

Added checks for role to session type mismatch. Added unit-tests
to validate negative condition: i.e. no data-path setup on such
mismatched requests.

(cherry-pick of commit 80a2a2558b3b64918a20434422a5307b03b68799)

Bug: 32883026
Test: unit-tests and integration (sl4a) tests passing.
Change-Id: Iad0727e5ad522e67222a6053918ce99fda1260b4
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java
c29acea6ceda3aa4ee537c05ce7d05dac2655cf9 26-Oct-2016 Etan Cohen <etancohen@google.com> [NAN-AWARE] Rename NAN to Aware

Rename only (and any reformatting needed to pass lint) - no
functional changes!

(cherry-pick of commit a61b9fb569153917a650f1d48efa20ba8846a9f3)

Bug: 32263750
Test: All unit tests and integration (sl4a) tests pass.
Merged-In: Idd8d0ad8d1fa1058c1bcd0de169a02e1fad9d070
Change-Id: I761b8f5b588d74eea66d7150a2f9a1e1ac5c1dfd
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/WifiAwareDiscoverySessionState.java