Migrate Tethering#dump to use runWithScissorsForDump
This change includes: 1. Refactor the logic in Tethering#dump into utils class. 2. Move the utils class to a common place which could be referenced from other sub-modules. 3. Add @MonitorThreadLeak annotation to enforce there is no thread leak problem. Test: atest FrameworksNetTests NetworkStaticLibTests Test: atest ConnectivityCoverageTests:com.android.networkstack.tethering.TetheringTest#testDumpTetheringLog Test: adb shell dumpsys tethering (with hardcoded exception) Fix: 312669345 Change-Id: Ia6fdfeeec2110afa0ec9e056e9db3843748845c3
Showing
- Tethering/src/com/android/networkstack/tethering/Tethering.java 4 additions, 27 deletions...ing/src/com/android/networkstack/tethering/Tethering.java
- Tethering/tests/unit/src/com/android/networkstack/tethering/TetheringTest.java 0 additions, 2 deletions...src/com/android/networkstack/tethering/TetheringTest.java
- service/src/com/android/server/ConnectivityService.java 3 additions, 3 deletionsservice/src/com/android/server/ConnectivityService.java
- staticlibs/Android.bp 1 addition, 0 deletionsstaticlibs/Android.bp
- staticlibs/device/com/android/net/module/util/HandlerUtils.java 105 additions, 0 deletions...libs/device/com/android/net/module/util/HandlerUtils.java
- staticlibs/tests/unit/src/com/android/net/module/util/HandlerUtilsTest.kt 5 additions, 3 deletions.../unit/src/com/android/net/module/util/HandlerUtilsTest.kt
Loading
Please register or sign in to comment