History log of /frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9b78f8254d31b03aaeb83d92be830dd2ba36787e 20-Jan-2018 Etan Cohen <etancohen@google.com> [AWARE] Remove ability to accept connections from ANYONE

Wi-Fi Aware data-path (NDP) setup requires an Initiator and a Responder.
Both Initiator and a Responder are set up with the MAC address of the
peer to which to connect to as well as a security configuration (Open,
PMK, Passphrase).

The original API (27) allowed a Responder to be configured to accept
a connection from anyone (e.g. using a null MAC address). This creates
ambiguous semantics when an NDP already exists. The second Responder
request could refer to the previously setup NDP or to a new one to be
created. We cannot tell the difference up-front.

Remove the "Accept request from ANYONE" API for newer APIs.

Bug: 72175022
Test: unit tests and integration tests
Change-Id: I194cc15402c33c2f1c62834d64646f2489274c35
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
f319fccd79e10836f785c19251fb1ca0bfffc7dd 20-Sep-2017 Etan Cohen <etancohen@google.com> [RTT2] Remove Aware RTT code

Original WIP Aware RTT API routed RTT through the Aware manager. This
will be replaced by direct usage of the WifiRttManager API. First step
is to remove the old code.

Bug: 65015034
Test: unit tests pass
Change-Id: I850d285d3f2a3dec6425d933614d18020745b9d4
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
c0fabefba46c4736bf2858a0a88202660bed9e9d 06-Jul-2017 Etan Cohen <etancohen@google.com> [AWARE] Fix close guard method name

Close guard prints out a message when it is triggered. The message
should be the method which should have been called. The method has
been renamed from 'destroy' to 'close' - but the log message wasn't
updated.

Bug: 37514387
Test: N/A (string change)
Change-Id: I8ee0b9539692095c771829fffe9fa4bf60aaa504
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
486a4112240c11fc0971d2fe730c228aaaf643e2 07-Jun-2017 Etan Cohen <etancohen@google.com> [AWARE] Add validity check on PMK/Passphrase lengths

Bug: 62376042
Test: unit tests + inegrated (sl4a) tests
Change-Id: Ib6383a0ba9ef61114eb72b9a04cc683792b8e89d
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
8039e6d48d9f77e83f9aa3ccceed6315fd15ac0e 21-Apr-2017 Etan Cohen <etancohen@google.com> [AWARE] Add AutoCloseable interface/implementation

Make resource holding classes AutoCloseable. These are objects
which (already) require the client to call a destroy() method.

Note: the destroy() method was renamed to close() - no sense in
identical/duplicate methods.

(cherry-pick of commit 6a4572c89671d9320620eb0ef071dfe0a01de901)

Bug: 37514387
Test: unit tests and integration (sl4a) tests passing.
Change-Id: Ia14065ab9dcd92481412532bfdb198f2e8d9f83c
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
0824bbc91aae24fa65b4ac671078dacfa5a35d55 18-Apr-2017 Lorenzo Colitti <lorenzo@google.com> Merge "[AWARE] Implement custom Wi-Fi Aware network specifier" am: a9cbda5bd8 am: 1d82eb0612 am: 0d89fcc628
am: dadd384808

Change-Id: Iebc1f993e0a3ccf86e813a52168431b624aa7716
a5028455a4b7592091f12c80d4b4d42c9c866d66 30-Mar-2017 Etan Cohen <etancohen@google.com> [AWARE] Implement custom Wi-Fi Aware network specifier

Convert Wi-Fi Aware connectivity requests to use a custom
network specifier (as opposed to a string). Aside from
simplifying code, allows for more control of information
printed out, and of additional information to be packaged
and used in network decisions (uid - TBD).

Bug: 36275276
Bug: 36053921
Test: unit tests and integration (sl4a) tests passing.
Change-Id: I776fb348b15ec4830f890a8ac5c41f24594e12a7
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
492e9e851cadca62df84eaff1a3c1ba788492fba 22-Mar-2017 Narayan Kamath <narayan@google.com> Properly guard access to CloseGuard in finalizers.

CloseGuard instances are allocated in constructors and usually
assigned to final fields. This implies they're non-null in finalizers
except in the case where the constructor throws. We add a null check
to make sure we can continue cleaning up other state in the finalizer
(if applicable).

Also, this change decouples closeguard warnings in constructors
from other state based logic. This because the logic there is usually
duplicated with the call to close().

NOTE: This change is not a "complete" fix. Many of these finalizers
are broken in the case where <init> throws. The only objective of
this change is to make such errors more obvious.

Note that some of these classes don't have CTS tests.

Test: make, CtsMediaTestCases.
Bug: 35609098

Change-Id: I24d9e0215f80e44914dba8ab99b6312fd6ed1fc0
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
3a764c19d1fc7bbe72231c212dfbae1ef40f83f6 08-Mar-2017 Etan Cohen <etancohen@google.com> [AWARE] Update network API: make open/encrypted explicit

Replace the older (implicitly) open network with 3 network
creation APIs:
- Open
- Passphrase-based
- PMK (SystemApi only)

Bug: 26564544
Bug: 35702875
Test: unit tests and integration (sl4a) tests
Change-Id: I29a1d668d245853755cd2dfaaa6c65fbb43989f7
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
62a2f9f6ab3e00e2fc1885a01dd3b5a153fc3ae7 21-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Add data-path security configuration (Passphrase)

Add API to optionally provide a passphrase to
configure security on a data-path.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: Ie011345348a3918a412957e38610cabe147c35fa
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
954111a2522677ce2954910553762fd0379e6d4d 21-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Add data-path security configuration (PMK)

Add API to optionally provide a pairwise master key (PMK)
to configure security on a data-path.

Clarify the default API to mean open (unencrypted) data-path.

Bug: 33552694
Test: unit tests and integration (sl4a) tests
Change-Id: I43fe704547f2921b3207f215e42d253837aa04e9
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
7c9c4785fcade9f36fd0a30bcab0efe838592f23 24-Feb-2017 Etan Cohen <etancohen@google.com> [AWARE] Remove (hide) sendMessage with retryCount API

Remove the sendMessage(..., retryCount) API (the version
without retryCount) remains. Baseline API already retries
transmissions (at the PHY/MAC layers) - no reason to add
framework-layer retries.

Bug: 35755823
Test: unit tests and integration (sl4a) tests
Change-Id: I49d8bd1e836c09d56f3a9343313f5647eac5c32d
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
6a4b323f08cea4eb538883127ff07302c3b10c46 10-Jan-2017 Etan Cohen <etancohen@google.com> [AWARE] Unhide Wi-Fi Aware API (baseline)

Baseline Wi-Fi Aware API providing discovery and connectivity (data-path).

Bug: 30983968
Test: unit tests + integration (sl4a) tests passing.
Change-Id: Idd7c6a625f168717b083d5f13e291ce916571933
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
b84ad8062dc7e7e0cbc87e6a6769741b66dd4568 24-Dec-2016 Etan Cohen <etancohen@google.com> [AWARE] Remove reason from discovery session terminate callback

Only valid reason is per request (destroy or timeout/count).

Bug: 32670068
Test: unit tests & integration tests (sl4a) passing
Change-Id: I85d417442e26a16d7f09d6d2d4cbb8ae7a9eba7e
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java
3de35a5e5573828838bfa6359a1ac1bf22b19303 20-Dec-2016 Etan Cohen <etancohen@google.com> [AWARE] Simplify Wi-Fi Aware API namespace

Simplify Wi-fi Aware API namespace. Rely on project and remove WifiAware
prefix from most classes.

(pure rename operation: no functional changes)

Bug: 31470256
Test: unit-tests + integration (sl4a) tests.
Change-Id: I38b8137c1730c8f40c482c6770caafcaeafd5c46
/frameworks/base/wifi/java/android/net/wifi/aware/DiscoverySession.java