8cc4eb79d23948a2954308be95b6324897fd8961 |
|
25-May-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManager: setWifiApEnabled always returns false The method setWifiApEnabled should not be used. Introduction of the start/stopTethering API left this call in an intermediate state, thus introducing race conditions. Callers with proper permissions should be calling ConnectivityManager.startTethering or WifiManager.startLocalOnlyHotspot. Note: integration tests are being updated to reflect this change. Bug: 38436732 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: I84b9514bf6bb67d733fd1a32492e0e0d485e2cd6
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
967dfb4451d8dea42bba250fb17caa7b840764a4 |
|
18-May-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManager: get startLOHS packageName When an application calls startLocalOnlyHotspot, we need to send the package name from the manager-side of the call. This CL updates the call to WifiServiceImpl.startLocalOnlyHotspot and the relevant aidl file. Bug: 31466854 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: I1dd0142dc58c767336c9323986d20e38bf11220d
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
695cea5929373a6eeda40578494cca214f1d83d2 |
|
02-May-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManagerTest: alt way to check callback We are seeing failures on automated tests. This is occuring when the thread id is retrieved from the TestLooper. Since we do not have control over exactly which thread is used in the TestLooper for these environments, this CL changes the checks to make sure the the callback is called, and also that we never attempt to get the main looper (the behavior when the provided handler is null). Bug: 37828843 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: I853c423b5f383225c250357d638c4cfd2c098edc
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
23d79bf144c272b9c11cb044082ef85c88834bfd |
|
02-May-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManagerTest: test for startLOHS return code Add a test checking the return code value for startLocalOnlyHotspot. This test verifies that the error code supplied by WifiServiceImpl is passed to the caller via the onFailed(reason) callback. Bug: 36760523 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: I37eb788d62df89e0b2a133be4368a375e29e39e3
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
6d7b130e23b8ca411b05eff39653a34929107e4d |
|
30-Apr-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManager: update API for LOHS Add a return code for disallowed tethering for the user. Also updated call to startLocalOnlyHotspot in WifiServiceImpl to return a code instead of a config. This allows us to return different failure modes to the application instead of assuming an incompatible mode error. Also updated method name to retrieve the wifi config. Bug: 37073685 Test: frameworks/base/wifi/tests/runtests.sh Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Iaa442f7062145dbfbdc8e26ae5479d14307addf8
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
4871da6b0715bf09b14fb593cfe112733d0c53ef |
|
27-Apr-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManager: implement watch LocalOnlyHotspot Implement new calls to watchLocalOnlyHotspot and unregisterLocalOnlyHotspotObserver along with the classes LocalOnlyHotspotObserver and LocalOnlyHotspotSubscription. Added tests for watching LOHS and cancelling a LOHS subscription. The calls will be exposed in a later CL. Bug: 36704763 Test: compiles Test: frameworks/base/wifi/tests/runtests.sh Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: Ia0a528191ae0897742304d8b61e9779ad721a450
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|
ce74fc29b0247443199671d89d6bda58bb399a13 |
|
25-Mar-2017 |
Rebecca Silberstein <silberst@google.com> |
WifiManager: implement start/stopLocalOnlyHotspot Implement new calls to startLocalOnlyHotspot and cancelLocalOnlyHotspotRequest along with the classes LocalOnlyHotspotCallback and LocalOnlyHotspotReservation. Added tests for starting LOHS and cancelling a LOHS request. The calls will be exposed in a later CL. Bug: 36704763 Test: compiles Test: frameworks/base/wifi/tests/runtests.sh Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh Change-Id: If54a89cb8dfd235bc18ef3e6c89f9d30882136a3
/frameworks/base/wifi/tests/src/android/net/wifi/WifiManagerTest.java
|