Fixed
Status Update
Comments
nk...@google.com <nk...@google.com>
nk...@google.com <nk...@google.com> #2
I've found this code fragment in the newest API 23 SDK's source code
WifiServiceImpl.java Line964
if (!canReadPeerMacAddresses && !isActiveNetworkScorer && !isLocationEnabled()) {
return new ArrayList<ScanResult>();
}
It could explain this issue.The method "isLocationEnabled" read Location settings then returns false at this condition, and getScanResults returns null.
WifiServiceImpl.java Line964
if (!canReadPeerMacAddresses && !isActiveNetworkScorer && !isLocationEnabled()) {
return new ArrayList<ScanResult>();
}
It could explain this issue.The method "isLocationEnabled" read Location settings then returns false at this condition, and getScanResults returns null.
nk...@google.com <nk...@google.com> #3
Thank you for your comment.
getScanResults() returns current results on Lollipop and older even if GPS is disabled.
Scan results should have no relation to GPS.
getScanResults() returns current results on Lollipop and older even if GPS is disabled.
Scan results should have no relation to GPS.
ma...@gmail.com <ma...@gmail.com> #4
I had confirmed the same with Nexus 5 Preview 3 (build num.: MPA44G).
Description
Library used (Espresso, Runner, Rules etc.): Runner
Version used: 1.0.0
What steps will reproduce the problem?
See project here:
How are you running your tests (via Android Studio, Gradle, adb, etc.)?
Gradle
What is the expected output? What do you see instead?
Test should be found and run but instead a No tests found error is reported. Using the 0.5 version of runner successfully executes the tests. This appears to be a regression between 0.5 and 1.0.0.