OSDN Git Service

[CS] Remove timeout event after first available
authorEtan Cohen <etancohen@google.com>
Thu, 27 Oct 2016 22:05:50 +0000 (15:05 -0700)
committerEtan Cohen <etancohen@google.com>
Mon, 21 Nov 2016 19:15:10 +0000 (19:15 +0000)
commit681fcda5896fd6c94f8a543ef9983c0a0644e87e
treea1d50fcefdfd2c6c7ebd795f8ad0780a482ab883
parent66f6547ba9e0ae1167e1701b9ec59b044370b4a0
[CS] Remove timeout event after first available

Guarantees that timeouts are only delivered if a network never
becomes available. Once a network is available the timeout is
canceled.

Bug: 31402633
Test: all timeout related unit tests pass (new one added)
Change-Id: I2b7adffd82173cf8b99084cbfe5399961d51e148
services/core/java/com/android/server/ConnectivityService.java
tests/net/java/com/android/server/ConnectivityServiceTest.java