summaryrefslogtreecommitdiff
path: root/core/java/android/net/DhcpStateMachine.java
Commit message (Collapse)AuthorAgeFilesLines
* {,Base}DhcpStateMachine is no moreErik Kline2016-02-181-462/+0
| | | | | Bug: 26991160 Change-Id: I21f8c30627bf2a7fbcd5b4d5f1f1ad1a2dda759b
* Add DhcpStateMachine PollingState.Erik Kline2015-04-011-57/+120
| | | | | | | | This state leaves dhcpcd running and polls for results, with exponential backoff to once every 32 seconds. Bug: 19422416 Change-Id: I87f481969629ba104491f25ea36de1efc4ad105a
* DHCP: Add a superclass for DhcpStateMachine.Lorenzo Colitti2015-03-161-1/+3
| | | | | | | | | | This can be used to switch between different DHCP client implementations. The caller can declare objects of type BaseDhcpStateMachine, and call its methods, without needing to care what implementation is in use. Bug: 19704592 Change-Id: Icefad9b0d0f83b349681388b1fa16b5e2e37c042
* Fix build & preserve DHCP scheduling as-isChristopher Tate2013-07-181-1/+1
| | | | Change-Id: I4063b18532c476280f343658bf3641495e526ed4
* Revert of Ifd0c4081a. Turning off logging.Robert Greenwalt2013-03-151-1/+0
| | | | | | | Found our bug, so switching the logging back off. bug:8377625 Change-Id: I254bd83c48f1dd8dd62db1fcb162d460328169c5
* Merge "Revert "Turn on more logging to find this bug."" into jb-mr2-devRobert Greenwalt2013-03-151-1/+1
|\
| * Revert "Turn on more logging to find this bug."Robert Greenwalt2013-03-151-1/+1
| | | | | | | | | | | | This reverts commit bb5bcaaaed37e6215f5f253d968afcb10c1b2f3d bug:8377625 Change-Id: I9663a4646f7581c86b2303aec2655cbf3742fd80
* | Don't update routes if Dhcp fails.Robert Greenwalt2013-03-151-1/+1
|/ | | | | bug:8377625 Change-Id: I11d2c29728078813bfb1245cc46e8cce2b307a2c
* Turn on more logging to find this bug.Robert Greenwalt2013-03-141-1/+1
| | | | | bug:8377625 Change-Id: I0c086402122d45fc409d237a3b96d96146f1f74c
* Add logging to track down bugRobert Greenwalt2013-03-131-1/+2
| | | | | bug:8377625 Change-Id: Ifd0c4081a2f1238dbbc39c6904b993e2fb95455a
* Merge "Remove DhcpInfoInternal"Robert Greenwalt2012-11-091-10/+9
|\
| * Remove DhcpInfoInternalRobert Greenwalt2012-11-091-10/+9
| | | | | | | | | | | | | | First step in accepting a set of patches. bug:6799630 Change-Id: I6c894c60aeb3022960c2aaa45451bb1dde2b493b
* | Stop supplicant and dhcp before startIrfan Sheriff2012-11-061-0/+2
|/ | | | | Bug: 7227463 Change-Id: Iaa0df7522edc38d25fae2bbda8d24490e997e733
* Fix DHCP handling at disconnect/reconnectIrfan Sheriff2012-08-291-1/+7
| | | | | | | | | | | | | | Wifi can have a quick disconnection followed by a reconnection. We used to create a new DHCP state machine thread for every new connection and never really waited until it quit after disconnect. This may have lead to situations where repeated disconnect/reconnects resulted in multiple dhcp start calls. We now keep the statemachine after a disconnect and only shut it at supplicant stop. Bug: 6417686 Change-Id: Icf66efdc654be886e3eb46c81f09f8cce536f2f6
* Enhance StateMachine Quitting and logging support.Wink Saville2012-05-291-4/+13
| | | | | | | | | | | | | | | | | | Make StateMachine#quit non-conditional and remove the need to process the SM_QUIT_CMD it is now private. Rename halting to onHalting. Add onQuitting Change the message specific logging to be more generic and change the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add addLogRec(String) and addLogRec(String, State) as the generic logging methods. bug: 5678189 Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7
* Add support for infinite dhcp lease timeIrfan Sheriff2011-11-211-15/+19
| | | | | Bug: 5649076 Change-Id: I29e3b41d8bd1173b155f3173e65a3b45ad17a45c
* Reduce/Fix system loggingIrfan Sheriff2011-10-041-4/+4
| | | | | Bug: 5410239 Change-Id: I2f91dfde0b701e8905a1235696591b3154693c7c
* Retain DNS information from DHCP requestIrfan Sheriff2011-09-161-0/+5
| | | | | | | | DHCP renewal can fail to fill DNS information. In such a case retain info from DHCP request Bug: 5314392 Change-Id: I2413f738be7c8c965ef9e7ffbc348e2738aa68b5
* am ecce539f: Merge "Release wakelock after use" into honeycomb-mr2Irfan Sheriff2011-06-221-1/+9
|\ | | | | | | | | * commit 'ecce539f3d739fbf4b395639a485fddf51f688d6': Release wakelock after use
| * Release wakelock after useIrfan Sheriff2011-06-211-1/+9
| | | | | | | | | | | | | | | | | | | | | | DHCP renewal can finish pretty quick most times and holding a timed wakelock wastes battery. Hold a non-reference counted lock and release it immediate while having the safety of a 40s release Bug: 4575773 Change-Id: I49d2e8c27b2723690aef26417c4b9a145843a401
* | am 41b35884: Revert "DO NOT MERGE Revert "Fix lease duration handling""Irfan Sheriff2011-06-221-7/+18
|\| | | | | | | | | * commit '41b35884ff68a62f5fc8f65dcc26342d0889113d': Revert "DO NOT MERGE Revert "Fix lease duration handling""
| * Revert "DO NOT MERGE Revert "Fix lease duration handling""Irfan Sheriff2011-06-211-7/+18
| | | | | | | | This reverts commit 7dd120058972226158176b292c00841efecc259f.
* | resolved conflicts for merge of 914ed90f to honeycomb-LTEIrfan Sheriff2011-06-221-0/+353
|\| | | | | | | Change-Id: I616b7ba5c27d0cc4247f5cce4303effe14658e1e
| * Revert "DO NOT MERGE Revert "DO NOT MERGE Add DhcpStateMachine""Irfan Sheriff2011-06-211-0/+353
|/ | | | This reverts commit 58d1bb497e0d83e28a02fbcdc1f33f29a992db7e.
* DO NOT MERGE Revert "DO NOT MERGE Add DhcpStateMachine"Irfan Sheriff2011-06-211-353/+0
| | | | | | This reverts commit fe3b33d4ead06c546202753e38188db5e2eaa7fa. Change-Id: I3a9ae1f0d17e7a154d27d4f3f3eb1efa21a34f64
* DO NOT MERGE Revert "Fix lease duration handling"Irfan Sheriff2011-06-211-18/+7
| | | | This reverts commit 56878760c3f0255dbcc8d78572f784b96ee36cb0.
* Fix lease duration handlingIrfan Sheriff2011-06-151-7/+18
| | | | | | | Convert lease time in seconds to long before alarm set up and add sanity check Change-Id: I99524c97d9a643ffa8234d016d0e819a284977a1
* DO NOT MERGE Add DhcpStateMachineIrfan Sheriff2011-05-121-0/+353
Add DhcpStateMachine for interation with dhcpcd - Supports wakeup and renewal on dhcp - Supports multiple controllers to use the state machine simultaneously - Optionally, a controller can request a notification prior to DHCP request/renewal being sent Change-Id: I5324814b19ff19863aa6fa89f1e3f0a202930c98