summaryrefslogtreecommitdiff
path: root/src/com/android/server/NetworkStackService.java
diff options
context:
space:
mode:
authorXiao Ma <xiaom@google.com>2019-10-30 12:31:12 +0900
committerXiao Ma <xiaom@google.com>2019-10-30 20:28:59 +0900
commiteb61ab9aad76e896782c400015dbd2f1d9c62314 (patch)
tree7fadff3a88b9fe300caeaf395c151bfc989054a2 /src/com/android/server/NetworkStackService.java
parentf3f5f36d71ff21eeb987781a8de4076bb35a232c (diff)
Separate the timeout behavior from PacketRetransmittingState class.
The purpose is to make subclass that only requires timeout method could extend from TimeoutState instead of PacketRetransmittingState, avoiding the anti-pattern of using inheritance for code reuse only. After refactoring, class inheritance relationship looks like: LoggingState <-- TimeoutState <-- PacketRetransmittingState <-- DhcpInitState Bug: 140223017 Test: atest FrameworksNetTests NetworkStackTests Test: atest NetworkStackIntegrationTests Change-Id: I1fed3ff3ef8b0bdf3645188949e38c3a332f9d6e
Diffstat (limited to 'src/com/android/server/NetworkStackService.java')
0 files changed, 0 insertions, 0 deletions