commit | 3ec851ef03d60308a9ecc57557f378a186bb9ac0 | [log] [tgz] |
---|---|---|
author | Mark <markchien@google.com> | Fri May 19 08:50:38 2023 +0000 |
committer | Mark Chien <markchien@google.com> | Wed May 24 17:00:41 2023 +0000 |
tree | 85f7265f7c2f9774021db6225a741a142a1f1b8b | |
parent | 3fabc1b0e0cc3b45246fb1e01f33d41dc2804ff7 [diff] |
Add mDesiredServingState field in BaseServingState As the suggestion from: https://android-review.git.corp.google.com/c/platform/packages/modules/Connectivity/+/2489359/9/Tethering/src/android/net/ip/IpServer.java#b1176 Make BaseServingState an abstract class to prevent it from being used directly. Additionally, move the handleNewPrefixRequest method into BaseServingState because it is the only class that uses it. To avoid TetheredState and LocalHotspotState from having to implement their own enter function, add the mDesiredInterfaceState field to BaseServingState. Bug: 233175023 Test: atest TetheringTests Change-Id: I03269c37e666345efb0c61039a2bb213f223a5a2