Files
android_packages_modules_Co…/framework/src/android/net
Lorenzo Colitti 333d5e52f5 Add a method to create a TAP interface without bringing it up.
In S, the behaviour of createTunInterface and createTapInterface
changed so that they bring up the interface before returning it.
This makes it difficult to test code that brings interfaces up
itself, such as IpClient or EthernetManager, because the tests
cannot predict whether that code will see the interface up
or not. This leads to flaky tests and can even make it impossible
to reliably test some behaviour.

Add a method that allows the caller to specify whether to bring
up the interface or not.

Test: new codepath tested by other CL in topic
Test: existing codepaths already well-covered
Change-Id: I0f7698f4dad132f201db4203e65a78c6af564ab2
2022-03-17 13:42:34 +00:00
..
2021-03-23 19:14:21 -07:00
2021-12-01 14:46:29 +08:00
2021-06-08 00:17:37 +00:00
2021-06-08 00:17:37 +00:00
2021-04-27 20:01:22 +09:00
2021-12-16 23:03:42 +09:00