History log of /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c2d924a70f1e5167fe8aae729f79425661c31572 26-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Add HAL 1.2 support for NDP channel info

Update to support HAL 1.2 adding NDP channel information to the
confirmation message and an additional indication called whenever
the NDP channel is updated.

Bug: 37007030
Test: integration and unit tests
Change-Id: If29849c9d2d916355d437df9a6f794d2026a1fa7
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
29ad45cb86b1d431cda152877b41a06925f88914 12-Dec-2017 Etan Cohen <etancohen@google.com> [AWARE] Only create Aware HAL interface when needed

Will only create the Aware HAL interface when needed (i.e. Aware
is being enabled) and will release when Aware is shut-down.

Previous implementation was to create the Aware HAL interface as
soon as it became possible (i.e. no higher priority interface blocked
its creation) - even if it wasn't necessary. The problem is that
this would cause lower priority interfaces to never get a chance -
even when it should be possible to use them. Specifically, the
possible STA+STA feature where 2nd STA has lower priority than
Aware.

Bug: 69863101
Test: unit tests and integration tests (including stress tests)
Change-Id: I77efd60cd7544a744bcb6ee52cb8a9c1dc3a25fd
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
776132d6c856d8869c026fc87e51366acf5225ae 05-Dec-2017 Etan Cohen <etancohen@google.com> [HDM] Interface availability semantics change to call on change

Modify the interface availability listener semantics:

WAS: call any time interface is available

NOW:
- Called on interface available or not available
- Only called if that specific listener was not called before
or called with a different value

Bug: 69863101
Test: unit tests, integration time, manual test
Change-Id: I152ce8d813194f4fb178a1e9b73cf9e1b6815cb7
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
968a755132c525e5e1f1224a05eef7a58809fbd9 20-Nov-2017 Roshan Pius <rpius@google.com> HalDeviceManager: Send iface name in destroyed listener

This will help clients managing mulitple ifaces to map the iface
being destroyed.

Bug: 69562278
Test: Unit tests
Test: Device boots up and connects to wifi networks.
Change-Id: I87b57b68c8df7402f7b31d5b855a778a0634807a
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
0d5a9d5c9f0914ad145926beb96fb72b39089e02 30-Oct-2017 Etan Cohen <etancohen@google.com> [HDM] Run Destroy notification immediately after creation

Change priority of Destroy notifications to run as soon as possible -
by running them in front of the queue.

Requires changing the API to accept a Handler instead of a Looper.

Bug: 68385222
Test: unit tests, manual test
Change-Id: I9dffc43695e508a887b1f45a7810208991fa43d3
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
eb7eaf9747051e75519bd12c93c40bca866c456c 25-Apr-2017 Etan Cohen <etancohen@google.com> [AWARE] Fix broken unit test due to init mod to NativeManager

Initialization of WifiAwareNativeManager was changed to prevent
a race condition: moved from constructor to a separate (lazy init)
start() method.

The unit-test was not modified to call this new method and so was
failing.

Bug: 37660993
Test: unit tests now pass
Change-Id: If0714fb57e959307fa40bc71327e108795b795cc
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
331184d17817a25263e2e731f87a3bc68bc831ef 28-Mar-2017 Etan Cohen <etancohen@google.com> [AWARE] Fix unit tests

Update to reflect new mockito semantics.

No functional change, no change to test semantics!

Bug: 36658906
Bug: 36658964
Bug: 36658672
Bug: 36658428
Test: unit tests now passing
Change-Id: I2a500859608789301c17133d521089944b0d1fb2
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
da7d73da44a47933cfc99660c2d247c24fd72544 24-Mar-2017 mukesh agrawal <quiche@google.com> disable failing tests

Disable failing unit tests, except for the ones where
a) we already have fixes up for review, or
b) the test was failing before the Mockito update

The tests are disabled via a new annotation, so that
we can more easily track progress on updating the
tests to work with the new version of Mockito.

Bug: 36407367
Test: runtests.sh -e notClass com.android.server.wifi.WifiVendorHalTest,com.android.server.wifi.hotspot2.PasspointManagerTest,com.android.server.wifi.WifiConfigManagerTest,com.android.server.wifi.p2p.SupplicantP2pIfaceHalTest#testCancelServiceDiscovery_exception

Change-Id: Idca42fe735821a29a6dc0ca975bf5d39909ec508
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.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/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
448a7b6b7b16cf39ed25729ceaf61edb30368567 27-Jan-2017 Etan Cohen <etancohen@google.com> [HAL Device Manager] Available for request API + STA/STA request bug

Updated available for request API:
- Simple register/unregister API
- Will be called immediately on registration (if valid)
- Will be registered until unregistered
- Only a single copy is kept (duplicates detected)

Fixed issue whereby the requested interface wasn't counted toward
the total of required interfaces. So with only one STA allowed, a
second STA would have been allowed.

Bug: 34474043
Test: unit tests pass (with new unit tests added)
Change-Id: Ic19731b66a609b828cda07f8065ef27ead077b2d
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
3145bb4d3359647cccd9b4aba1734066f36bb2e6 26-Jan-2017 Etan Cohen <etancohen@google.com> [Wi-Fi HAL Device Manager] Status callback semantics change

Change behavior of status callback/API:
- Listener provides a status change only (onStatusChange)
- Triggered when Wi-Fi is started or stopped
- Triggered when Wi-Fi HAL service dies or restarts
- API for
- isStarted(): indicates if Wi-Fi is started or stopped
- isReady(): indicates if Wi-Fi HAL service is alive

Bug: 34474043
Test: unit tests
Change-Id: I8babb00ea8a2c8c485d1661255644434f0787d8e
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java
64ce9f185eb6097c1c358c44710be6e1ca7c7055 21-Jan-2017 Etan Cohen <etancohen@google.com> Wi-Fi HAL device manager: add interface API

Added interface management API and infrastructure.
The create API does not function.

Bug: 34474043
Test: builds - no unit tests
Change-Id: I71983d7d6c4ca941689112f0112d692e06574b3a
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/WifiAwareNativeManagerTest.java