summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ConnectivityService.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Add a Dummy data connection for testing purposes.Robert Greenwalt2010-12-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable with: <string-array translatable="false" name="networkAttributes"> <item>"wifi,1,1,1"</item> <item>"dummy,7,7,0"</item> </string-array> in your config.xml Change-Id: I3965edaeb4873e95131f4083b8d23d682ce17841
* | | Make Proxy change broadcast stickyRobert Greenwalt2010-12-061-1/+1
| | | | | | | | | | | | | | | | | | Makes it easier for apps who care. Includes the current values. Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
* | | Don't clobber the net hostname if it's already set.Robert Greenwalt2010-12-061-5/+7
| | | | | | | | | | | | | | | | | | Be a good citizen. Change-Id: Ic58aeab013e2ff34201be71e01e399390edbbb5f
* | | Cleanup logging.Wink Saville2010-12-031-82/+88
| | | | | | | | | | | | Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
* | | Load persisted global proxy settings.Robert Greenwalt2010-12-021-1/+17
| | | | | | | | | | | | | | | | | | Was persisted before, but not loaded at boot. Change-Id: I6d6b69ede3d212a8266847d73d07a037ae917788
* | | Notify all VMs when proxy changes.Robert Greenwalt2010-11-191-5/+138
| | | | | | | | | | | | | | | bug:2700664 Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
* | | Tell each VM to flush their DNS cache.Robert Greenwalt2010-11-041-0/+6
| | | | | | | | | | | | | | | bug:3095357 Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
* | | am 83d97f46: am 96619f9f: Merge "Add some error-case logging." into gingerbreadWink Saville2010-10-111-16/+13
|\| | | | | | | | | | | | | | | | | | | | Merge commit '83d97f460412f117998f4d446fd65ca79761a294' * commit '83d97f460412f117998f4d446fd65ca79761a294': Add some error-case logging.
| * | am 96619f9f: Merge "Add some error-case logging." into gingerbreadWink Saville2010-10-101-16/+13
| |\| | | | | | | | | | | | | | | | | | | Merge commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696' into gingerbread-plus-aosp * commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696': Add some error-case logging.
| | * Add some error-case logging.Robert Greenwalt2010-10-101-16/+13
| | | | | | | | | | | | | | | | | | | | | Turning off all debug logging is a good thing, but it leaves us blind when errors come in. bug:3075537 Change-Id: I8a4e7f2ce094574ec45cec268bdbc46449540c9f
* | | Turn on some debugging infoRobert Greenwalt2010-10-051-1/+1
| | | | | | | | | | | | | | | bug:3060742 Change-Id: I86f4e0b3f678c80e1bee11abd32ab0b9e0563b09
* | | resolved conflicts for merge of 6a3eddb4 to masterDianne Hackborn2010-09-301-1/+1
|\| | | | | | | | | | | Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
| * | am 0a69f597: Merge "Rub in a little \'ol log-b-gone." into gingerbreadDianne Hackborn2010-09-301-1/+1
| |\| | | | | | | | | | | | | | | | | | | Merge commit '0a69f597604254bc37721b135ab612eaacdd0cbd' into gingerbread-plus-aosp * commit '0a69f597604254bc37721b135ab612eaacdd0cbd': Rub in a little 'ol log-b-gone.
| | * Rub in a little 'ol log-b-gone.Dianne Hackborn2010-09-301-1/+1
| | | | | | | | | | | | | | | | | | Mmmmmm... great fresh scent! Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
* | | resolved conflicts for merge of 2d457a32 to masterRobert Greenwalt2010-09-241-96/+210
|\| | | | | | | | | | | Change-Id: I08fc7881010083407a102f471483cd6d5b9774b4
| * | am 8f97fe55: Merge "Move long Connectivity tasks to handler thread." into ↵Robert Greenwalt2010-09-241-92/+198
| |\| | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '8f97fe551e7bd95abf395eed303b975eaa8f0158' into gingerbread-plus-aosp * commit '8f97fe551e7bd95abf395eed303b975eaa8f0158': Move long Connectivity tasks to handler thread.
| | * Move long Connectivity tasks to handler thread.Robert Greenwalt2010-09-231-92/+198
| | | | | | | | | | | | | | | | | | | | | Reduce ANR potential. bug:2942829 Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1
* | | am f532e958: am 6548f395: Merge "Inet status bug fix" into gingerbreadRobert Greenwalt2010-09-211-0/+16
|\| | | | | | | | | | | | | | | | | | | | Merge commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf' * commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf': Inet status bug fix
| * | am 6548f395: Merge "Inet status bug fix" into gingerbreadRobert Greenwalt2010-09-211-0/+16
| |\| | | | | | | | | | | | | | | | | | | Merge commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef' into gingerbread-plus-aosp * commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef': Inet status bug fix
| | * Inet status bug fixRobert Greenwalt2010-09-211-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Don't wipe out the connected status every time we get a cellular status change. Don't filter out disconnect event for wifi - we need them. bug:3009923 Change-Id: I68cadac5f44d6eb4e0fe711fda7c5d218abb45bd
* | | resolved conflicts for merge of 749e6bc5 to masterRobert Greenwalt2010-09-211-0/+27
|\| | | | | | | | | | | Change-Id: Ica492307505d53e57863d4363b5f75abd798bcd8
| * | am 313af5a3: Merge "Add Inet Condition log to bugreports" into gingerbreadRobert Greenwalt2010-09-201-0/+27
| |\| | | | | | | | | | | | | | | | | | | Merge commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a' into gingerbread-plus-aosp * commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a': Add Inet Condition log to bugreports
| | * Add Inet Condition log to bugreportsRobert Greenwalt2010-09-201-0/+27
| | | | | | | | | | | | | | | | | | Reports who reports what condition on which network at what time. Where is implied. Change-Id: I89fbc7323dec438041859fcc934169fa325f0133
* | | Enhance http proxy supportRobert Greenwalt2010-09-171-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | Make it read proxys the correct way from CS so it works for all network types. Add utility class for apache http client support. bug:2700664 Change-Id: If81917b19b5f0636247a6519a1ec78bd8dbf3596
* | | am f434dd16: am 134b28a7: Merge "Update Inet Connection Status display" into ↵Robert Greenwalt2010-09-151-2/+10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit 'f434dd1660f222a1ee85e77c98893b90857805c2' * commit 'f434dd1660f222a1ee85e77c98893b90857805c2': Update Inet Connection Status display
| * | am 134b28a7: Merge "Update Inet Connection Status display" into gingerbreadRobert Greenwalt2010-09-151-2/+10
| |\| | | | | | | | | | | | | | | | | | | Merge commit '134b28a7f049719cb74fd5baadbbcc5915bc861b' into gingerbread-plus-aosp * commit '134b28a7f049719cb74fd5baadbbcc5915bc861b': Update Inet Connection Status display
| | * Update Inet Connection Status displayRobert Greenwalt2010-09-151-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cellular signal strength should also be green - these assets aren't, but the art guys are working on that. Also using a new intent so we don't overload the CONNECTIVITY_ACTION and confuse the apps. bug:2994024 Change-Id: I6fe8f65dd6e9869d9724064c4fae45340491a4d8
* | | Fix the buildRobert Greenwalt2010-09-091-3/+1
| | | | | | | | | | | | | | | | | | broken merge resolution. Change-Id: Idf1abef1ef79ddc43b9eaba1e0e523085702e2fe
* | | resolved conflicts for merge of ec52c98d to masterRobert Greenwalt2010-09-091-0/+91
|\| | | | | | | | | | | Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed
| * | am 0727a865: Merge "Add network condition reporting." into gingerbreadRobert Greenwalt2010-09-091-0/+89
| |\| | | | | | | | | | | | | | | | | | | Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp * commit '0727a865d83b944c2fecc0bf1228a36976fe5300': Add network condition reporting.
| | * Add network condition reporting.Robert Greenwalt2010-09-091-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | Apps can report if they like their connection to the nets and we display either not-really-connected or fully-connected icons. Final icons TBD. bug:2978624 Change-Id: I28be52085edfe54571c0d4559aba0df883548654
| * | resolved conflicts for merge of b998f311 to gingerbread-plus-aospRobert Greenwalt2010-08-251-2/+33
| |\ \ | | |/ | |/| | | | Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505
| | * Add an API to request route to an IPv6 host.Banavathu, Srinivas Naik2010-08-191-2/+33
| | | | | | | | | | | | | | | | | | | | | Add API to create a route to an IPv6 host through a particular interface. Change-Id: I7649051e94832576e02b5f5ad17abe093d21d48e
* | | Fix and simplify ConnectivityService singleton.Wink Saville2010-09-021-41/+13
| | | | | | | | | | | | Change-Id: Idb74854db9d801c1cc138eb5ca866cf01940ff6d
* | | Revert "Changed ConnectivityService#getServiceInstance so its a singleton."Joe Onorato2010-09-011-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 28961cc02f350ccd1770fb5af2f0d4c9793e4aec which causes this exception: E/SystemServer( 2653): Failure starting Connectivity Service E/SystemServer( 2653): java.lang.IllegalMonitorStateException: object not locked by thread before wait() E/SystemServer( 2653): at java.lang.Object.wait(Native Method) E/SystemServer( 2653): at java.lang.Object.wait(Object.java:358) E/SystemServer( 2653): at com.android.server.ConnectivityService$ConnectivityThread.getServiceInstance(ConnectivityService.java:186) E/SystemServer( 2653): at com.android.server.ConnectivityService.getInstance(ConnectivityService.java:200) E/SystemServer( 2653): at com.android.server.ServerThread.run(SystemServer.java:262) Change-Id: Idd139e426e61a1913b0bf343e2f0a0b1990ba8bb
* | | Add a default dns entry if none is providedRobert Greenwalt2010-09-011-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | Fixes part of emulator which isn't telling us about dns servers. Gets some stuff running, but browser is still broken. bug:2961703 Change-Id: I53b946eba434aca1bb524c2acaf77922377948d1
* | | Changed ConnectivityService#getServiceInstance so its a singleton.Wink Saville2010-09-011-6/+5
| | | | | | | | | | | | Change-Id: I27b5688a50917b01fb2fcd1c124da77ccae226b5
* | | Rename NetworkProperties to LinkPropertiesRobert Greenwalt2010-08-301-9/+8
| | | | | | | | | | | | | | | | | | Also add copy constructors and use them when giving out data. Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
* | | resolved conflicts for merge of 4ea54f44 to masterRobert Greenwalt2010-08-271-5/+30
| | | | | | | | | | | | Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
* | | am 510f9f86: am 6d734693: Merge "Send all Connectivity broadcasts." into ↵Robert Greenwalt2010-08-241-3/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0' * commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0': Send all Connectivity broadcasts.
| * | Send all Connectivity broadcasts.Robert Greenwalt2010-08-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | We were using a flag so new broadcasts replaced old. If people are expecting to see all the broadcasts they sometimes would fail. bug:2892383 Change-Id: I63df17fe8f8c68f59e1ad6297fe93e169b4463b4
| * | DO NOT MERGE Always set/remove default routes.Robert Greenwalt2010-08-131-62/+48
| |/ | | | | | | | | | | | | | | | | | | | | Must clean up default route if a default 3g connection is replaced by a non-default (ie, mms) connection on teh same interface. Also stop mucking with all connections dns and routes - do it only for the connection that has changed. bug:2865974 Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
* | bluetooth tetheringDanica Chang2010-08-181-1/+11
| | | | | | | | Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
* | Add documentation to NetworkStateTracker and a small change to the API.Wink Saville2010-08-131-30/+5
| | | | | | | | | | | | | | | | | | Also, removed some unused NetworkStateTracker event codes. The API change was to add context and target to startMonitor, this makes it easier to document what the actual interface contract is. Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
* | Split WifiStateMachine from WifiStateTrackerIrfan Sheriff2010-08-101-18/+3
| | | | | | | | | | | | | | Notifications handled in WifiService. WifiStateTracker tracks state for connectivity service Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
* | Fix runtime reset (missing case break).Daniel Sandler2010-08-041-0/+1
| | | | | | | | | | Bug: 2895437 Change-Id: If061c02811144031833f75ad47ae313e2208701c
* | Always try to set/remove default routesRobert Greenwalt2010-08-021-77/+54
| | | | | | | | | | | | | | | | | | | | | | Must clean up default route if a default 3g connection is replaced by a non-default (ie, mms) connection on the same interface. Also stop mucking with all connections dns and routes - do it only for the connection that has changed. bug:2865974 Change-Id: I589a0b2768b5e67b608fde181e7ddbd7fce4f491
* | Refactor WifiStateTrackerIrfan Sheriff2010-07-271-0/+5
| | | | | | | | | | | | Implement WifiStateTracker as a HSM. Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
* | Pass network properties to ConnectivityService.Robert Greenwalt2010-07-131-68/+62
| | | | | | | | | | | | | | | | Used as a bag to hold ipaddr, gateway, dns, proxy info. addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code bug:2655015 Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
* | Move the net transition wakelock to ConnService.Robert Greenwalt2010-06-161-4/+69
| | | | | | | | | | | | | | | | | | | | When the default network goes down we lose the wake-on-incoming-data capability until the new net is brought up and apps rebuild their connections. We fixed this in Wifi, but it's a general connectivity issue, not a wifi issue so moving the mechanism to connecitivty so other networks can use it. bug:2734419 Change-Id: I39b5d825eb6b548bd9bb8f179b89254f4db53147