History log of /frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
472276a874316b725027098b79e1c9f03c62cad2 18-May-2018 Erik Kline <ek@google.com> Clear IPv4 address on tethering teardown.

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- wlan0 in STA mode, wlan1 up/down in AP mode
no lingering IPv4 mode
- USB tethering up/down works
- bluetooth tethering yields:
05-18 17:50:49.726 719 756 D TetherController: untetherInterface(bt-pan)
05-18 17:50:49.729 1194 1230 E Tethering: [bt-pan] ERROR Failed to clear IPv4 address on interface bt-pan: java.lang.IllegalStateException: command '224 interface setcfg bt-pan 0.0.0.0 0' failed with '400 224 Failed to clear address (No such device)'
which is acceptable (no actual crash, just a log message)
Bug: 79905644
Change-Id: Iaf29788a6692d810f3160e3f21d06b7452ecbaa6
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
6c02f9942aaf4f6665018e0c7f07aeceb5ae752e 09-Mar-2018 Remi NGUYEN VAN <reminv@google.com> Use InterfaceSet for upstream interfaces.

Allows using different upstream interfaces for IPv4 and IPv6.

Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Bug: 64380515
Test: runtest frameworks-net, manual (with aosp/644099 applied)
(cherry-pick of aosp I3db63f7aa5255a0229253187def7590a386c5133)
Merged-In: Ic8602dd029b5a9626aaf6651315b82ab6327037c
Merged-In: I015ac946afa581be1d94f10ab766ac00f5a4ede0

Change-Id: I8c48dab5eb67e60dadbfa974122fc884f4badd15
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
5d0dc453e90554e739c5994a417e73a560edc547 15-Mar-2018 Remi NGUYEN VAN <reminv@google.com> Add tests for IPv4 of dual stack tethering.

Also refactoring some Tethering and TetherInterfaceStateMachine calls
to address testability issues.

This is in preparation of other work to have IPv6-only or 464xlat
tethering working.

Test: runtest frameworks-net
Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Merged-In: I3b91125b1a715690c2cd417b1e937e568c755d9f
Merged-In: I05de77d9b90d147bf1d6ee7f7ee19a049afddfa1
(cherry-pick of aosp I721aca4789ddfbee5a97316aae0b378d79ee2107)

Change-Id: Idfdd1b9cd5419c1f51f0fbb1eba2f36a9c12474b
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
dd4d5820344205085c19dc142aec252ea9ac220b 12-Jun-2017 Erik Kline <ek@google.com> Make interface IP serving code set LinkProperties

Additionally, clean up awkward IPv6TetheringInterfaceServices
instantiation mechanics. In future, this class will be absorbed
by TetherInterfaceStateMachine (prior to its renaming to IpServer).

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug: 29337859
Bug: 32163131

Change-Id: Ib620e3df182f9f8e2c019aae1cd8981eb0b29376
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
94ae4c99c5a0d580f5898d480e1e1d08a292d060 13-Jun-2017 Erik Kline <ek@google.com> Merge IPv6TetheringInterfaceServices into TetherInterfaceStateMachine

Ideally this would have been done immediately after IPv6 tethering code
was made part of an official named release. Getting this in now should
help with the relaying of LinkProperties that is required for offload.

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
- runtest frameworks-wifi passes
Bug: 29337859
Bug: 32163131

Change-Id: I015fa3cb05a15624f9e80b7aa5a871cefef431b7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
ab6439b0f8dd0a67c81235a3fc4d9c149de3780d 06-Jun-2017 Erik Kline <ek@google.com> Convert IControlsTethering from interface into callback

Additionally:
- add updateLinkProperties() method to new callback
- skeletally connect LinkProperties updates through
to OffloadController

TODOs liberally sprinkled through out.

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Change-Id: I631d17b26be153534551a1615931fc98b598b953
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
7747fd4ce055e8e1f6381062a58b867728f57d85 12-May-2017 Erik Kline <ek@google.com> Expand logging capabilities of Tethering subsystem

Introduce a SharedLog that can be shared among all Tethering
components. All log entries go to the same log, and each includes
its subsystem name. Additionally, all entries emitted to the
system log shared the same tag, so can easily be watched.

More subsystems can inherit a SharedLog, but to minimize cherry-pick
conflicts we limit ourselves to these changes only.

Test: as follows
- built
- flashed
- booted
- log output observed via dumpsys
- runtest frameworks-net passes
Bug: 32163131
Bug: 36988090
Bug: 38218697
Change-Id: I1229d4c55987402d84b0d4a2c8a595e0c829aa3e
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
ca41be796a56fab152cd07bbeaf9283de7e8be90 20-Apr-2017 Erik Kline <ek@google.com> Clarify IControlsTethering LOCAL_ONLY state name

Test: as follows
- build
- flashed
- booted
- "runtest frameworks-net" passes
- manually starting tethering shows Settings and icon updates
Bug: 31466854
Bug: 32163131

Change-Id: I1f45511f00aca37480f894be4a9a004f1a3b35d7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
ea9cc488eb0f096c9fd402eff49e3d30f5b6de2e 10-Mar-2017 Erik Kline <ek@google.com> Tethering: support Local-only Hotspot mode for downstreams

Test: as follows
- built (bullhead)
- flashed
- booted
- "runtest frameworks-net" passes
Bug: 31466854

Change-Id: Ia50e28c8ce0af8cdd7ac63217d921aff213668e7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
624bf3d7f66e496952c5ae8917dc785676921c99 14-Feb-2017 Erik Kline <ek@google.com> Verify duplicate upstream notifications are ignored

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32163131

Change-Id: I3c097d766fe4c416a8e3f02640809fe1199c6ef2
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
8ea45483fc59ef63851a64640ed1bb18c09f7ea9 13-Feb-2017 Erik Kline <ek@google.com> Cleanup in the face of upstream error

If either enableNat() or startInterfaceForwarding() fail, be sure
to cleanup any commands that might have succeeded.

Most of this change is a refactoring of cleanupUpstreamIface() into
two methods, one of which (cleanupUpstreamInterface()) is reused
in error handling scenarios.

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32031803
Bug: 32163131

Change-Id: Ia4d56e03beeab1908d8b8c2202e94992f1aa58a4
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
a954be956315e6d25a63e961fc9befe9916e1cbd 13-Feb-2017 Erik Kline <ek@google.com> Add test coverage for cleanup bug to be fixed.

The test calls that need to pass but do not currently are commented out.

Test: as follows
- built (bullhead)
- flashed
- booted
- runtest -x .../tethering/TetherInterfaceStateMachineTest.java passes
Bug: 32031803
Bug: 32163131

Change-Id: I68ed476920bef882f353d8e8a54c72120bc27002
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
5bce5a16b17498981253d7a2d1a490667cd71798 28-Oct-2016 Lorenzo Colitti <lorenzo@google.com> DO NOT MERGE: Unbreak TetherInterfaceStateMachineTest.

This was broken by the implementation of IPv6 tethering, which
relies on various private classes which end up calling unmockable
final classes like NetworkInterface.

Making everything public like this is almost certainly not the
best way of fixing this test, but on the other hand there is
value to the test continuing to pass.

Test: runtest frameworks-net # Everything passes.
Test: IPv6 tethering continues to work.

(cherry picked from commit 7e0eeca8ba4063d0d35dda9a8dfcc612e45efb87)

Change-Id: I8a3cf466871c026f4ae0f5cfa73071338cdf5b7e
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java
7ceef950a02b22bdf90609bdab8119b4bcd88edf 27-Oct-2016 Lorenzo Colitti <lorenzo@google.com> DO NOT MERGE: Move the connectivity tests to frameworks/base/tests/net.

This will give us a good place to put all the networking tests.

Fix: 31479480
Test: adb shell am instrument -w -e notClass com.android.server.connectivity.tethering.TetherInterfaceStateMachineTest 'com.android.frameworks.tests.net/android.support.test.runner.AndroidJUnitRunner' # PASS

(cherry picked from commit ecc986d430f4b8158f177ed97d2edb741f11ff71)

Change-Id: I993eeaa5dec001c39389023f355f506129b356e7
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/TetherInterfaceStateMachineTest.java