diff options
author | Erik Kline <ek@google.com> | 2018-03-02 16:51:13 +0900 |
---|---|---|
committer | Erik Kline <ek@google.com> | 2018-03-05 19:29:26 +0900 |
commit | b152cd0aa4f333b721615bb17773b35a989245fb (patch) | |
tree | c23e80496ccff661c66649af3ff29c2908ffcce0 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 1451124f86c70b70eeb6908dd9a8248f9e8e2ea6 (diff) |
Fail if the interface is not available when starting
Addresses a long-standing TODO. Now, when calling IpClient's
startProvisioning(), the interface has to be available (i.e.
InterfaceParams#getByName() must return non-null).
Also:
- add a test
- refactor for testability
- delete some constructors no longer used
- properly handle passed-in null IpClient.Callback
- some more IpManager -> IpClient renaming
- permit recording metrics before starting a provisioning
attempt (logging immediate errors) without Log.wtf().
Test: as follows
- built
- flashed
- booted
- runtest frameworks/opt/net/wifi/tests/wifitests/runtests.sh passes
- runtest frameworks-net passes
- basic WiFi IpClient connections works fine
Bug: 62476366
Bug: 73487570
Change-Id: Ic83ad2a65637277dcb273feb27b2d1bb7a11eb2b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions