History log of /frameworks/base/wifi/java/android/net/wifi/aware/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.java
830f4db2313066ecf62a17e8e5e665178ec52c3f 12-Jun-2017 Etan Cohen <etancohen@google.com> [ErrorProne] Fix Error Prone warnings in aware/p2p code

Bug: 33104624
Test: builds
Change-Id: Ibf17a02c81aebfa28903fe440a75e3c2e9244a19
/frameworks/base/wifi/java/android/net/wifi/aware/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.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/WifiAwareSession.java
1ddf6a6d3ab69e1c915e1e86892b3cedbc7b161d 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. Remove API parameter which allowed caller
to specify role.

(cherry-pick of commit 9c7483fec41db681a2d6de93a9061fb8764ecba5)

Bug: 32883026
Test: unit-tests and integration (sl4a) tests passing.
Change-Id: I889eacda9416d9ecd04caa0c72413f984611d40c
/frameworks/base/wifi/java/android/net/wifi/aware/WifiAwareSession.java
6831f93725f9efd9c13a278acac62a5d7dcf4a4d 16-Nov-2016 Etan Cohen <etancohen@google.com> [AWARE] Update API per review

- Move Handler to last position
- Peer ID changed from 'Object' -> opaque class
- Rename onMessageSent -> onMessageSendSucceeded

(cherry pick of commit 1fef08507aeb49bb2e4e7be4804a378ba2cf7770)

Bug: 31470256
Test: unit tests & integration (sl4a) tests pass
Change-Id: I5530d310e982ea16a63a5af1f704625fd24e436c
/frameworks/base/wifi/java/android/net/wifi/aware/WifiAwareSession.java
0849ded00879dc05175c079011aa038c5ba0770a 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!

Remove android.net.wifi.nan.STATE_CHANGED from manifest:
redundant/remnant of an older configuration.

(cherry-pick of commit a61b9fb569153917a650f1d48efa20ba8846a9f3)

Bug: 32263750
Test: All unit tests and integration (sl4a) tests pass.
Merged-In: Ie4ff675fa61041e8fcf6a9bf9900ea835d0a7614
Change-Id: I4206d2fd722dc7dec9df4aee5c818101d7f9dccc
/frameworks/base/wifi/java/android/net/wifi/aware/WifiAwareSession.java