summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ConnectivityService.java
Commit message (Collapse)AuthorAgeFilesLines
...
* | Make NetworkStateTracker an interfaceIrfan Sheriff2010-06-101-8/+201
| | | | | | | | | | | | | | As part of the WifiStateTracker cleanup, need to have NetworkStateTracker as an interface. Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
* | Clean up APN notifications.Robert Greenwalt2010-06-091-11/+2
|/ | | | | | | | | | | | Add APNType info to notifications so you can tell what's happening. Now, even if a new APN shares a connection with an already-connected-to- apn type, the new type will get all the connecting and connected messages on connect and disconnecting/disconnected on disconnect even though the shared connection remains connected. Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation. bug:2226092 Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
* Run WifiWatchdogServiceThread only on wifi enableIrfan Sheriff2010-03-121-4/+1
| | | | | Bug: 2508997 Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006
* Stop creating threads for tethering.Robert Greenwalt2010-03-111-1/+1
| | | | | | Use the passed in looper and save threads. Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
* Make HiPri work when already connected.Robert Greenwalt2010-03-101-1/+3
| | | | | | | | | | | | | A recent change made the HiPri MobileDataStateTracker listen for notifications about the default connection (which HiPri shadows). Local code was sending itself a notification using the old HiPri badging instead of the new Default badging and those notifications where therefore ignored. Manifested itself on HiPri connections when we were already on 3g. See change 42422 on master platform/frameworks/base for the change this is completing. Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
* Fix NO_CONNECTIVITY flag in some cases.Robert Greenwalt2010-03-091-0/+2
| | | | | | | Airplane mode seemed to hit this bug. bug:2498268 Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
* Add error reporting for Tethering.Robert Greenwalt2010-03-031-4/+30
| | | | | | | Also make the usb interface configuration more robust so retries are possible. Makes all Tethering errors recoverable - no harm letting them try again anyway. Worst case is they need to reboot.
* Switch the services library to using the new SlogJoe Onorato2010-03-011-43/+43
|
* Add build options for tethering.Robert Greenwalt2010-02-261-3/+10
| | | | Dun-required bool and list of allowed upstream ifaces.
* Fix no-mobile-data after wifi.Robert Greenwalt2010-02-251-0/+9
| | | | | | | Missed a case - if you disabled mobile data and then cycled wifi, 3g would be turned back on. bug:2251458
* Add mobile data on/off switch.Robert Greenwalt2010-02-241-0/+49
| | | | bug:2251458
* Update Tethering.Robert Greenwalt2010-02-161-4/+42
| | | | | | | Adds telephony support, async model, multiple tethered iface suport, better notifications, device config. bug:2413855
* First pass at USB Tethering.Robert Greenwalt2010-02-041-0/+38
| | | | bug:2281900
* am 3e229076: am cc4b4016: Fix the reporting of NO_CONNECTIVITY.Robert Greenwalt2010-01-281-13/+20
|\ | | | | | | | | | | | | Merge commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c' * commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c': Fix the reporting of NO_CONNECTIVITY.
| * Fix the reporting of NO_CONNECTIVITY.Robert Greenwalt2010-01-251-13/+20
| | | | | | | | | | | | | | | | | | A refactoring of handleDisconnect instroduced a bug - we were reporting NO_CONNECTIVITY after any non-primary network (supl, mms, hipri) was lost. bug:2395006 Change-Id: Ifa9e008872ec646981a35f2c316120cb9685a6a4
* | am 6d626d41: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi ↵Robert Greenwalt2010-01-281-2/+9
|\| | | | | | | | | | | | | | | | | network" into eclair Merge commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0' * commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0': Refine fix I53e91db7 to apply only to wifi network
| * Refine fix I53e91db7 to apply only to wifi networkRobert Greenwalt2010-01-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original fix eliminated duplicate wifi connectivity changes stemming from location provder scan's for APs. These would generate two DISCONNECTED broadcasts every two minutes and many apps mis-interpreted them. The fix was to ignore notifications where the major state was the same as the previous one for each network. Unfortunately the state of per-apn notifications on cellular is hacky and so the wifi fix was breaking mms (mms when you're on cellular with a common default+mms apn does not generate a disconnect notification (apn still connected) so subsequent connect notifications get dropped as duplicates). This change refines the previous change so that it only applies to wifi networks. bug:2392061 Change-Id: I05d8a46a4b55f8d28df8af12e05284e5e68bfc02 drno: ryanpc
* | resolved conflicts for merge of 1f2f23bd to masterRobert Greenwalt2010-01-261-19/+42
|\|
| * Try to switch to another default net on connection failure.Robert Greenwalt2010-01-201-21/+43
| | | | | | | | | | | | | | | | This shouldn't be required, but there seems to be something odd going on in wifi and it doesn't hurt to try other available options. Makes a connection failure case work like a disconnected case. bug: 2378462
| * Add bugreport info about network feature use. DO NOT MERGERobert Greenwalt2010-01-201-8/+37
| | | | | | | | | | | | | | | | | | | | | | Backported from master change Ib9285359. We've had a couple bug reports showing the effects of a left-live feature request. We need a bit more bugreport-time logging. bug: 2323226 bug: 2377507 change-id: I296b2887101c260aea678bf6db91144535cbad7e
| * Cleanup of process-specific DNS.Robert Greenwalt2010-01-191-1/+1
| | | | | | | | | | | | | | | | | | | | Backport of MR2 change 421c72b6. Removes entries sooner. A bug. Doesn't add one for phone process at all. This was intended to be removed long ago. bug: 2329900 bug: 2377507
* | resolved conflicts for merge of 90528645 to masterRobert Greenwalt2010-01-151-2/+2
|\|
| * Backport l53e91db7 from master.Robert Greenwalt2010-01-131-5/+19
| | | | | | | | | | | | | | | | | | Prevents sending out ConnectivityManager broadcasts when the connection is repeating the same major state. This means continued wifi scanning does not generate CM broadcasts (though wifi state broadcasts continue). bug: 2265222 Dr No approval: jsh
| * DO NOT MERGE Reverting change I53e91db7.Robert Greenwalt2009-12-071-21/+7
| | | | | | | | | | | | | | | | | | Accidentally submitted into eclair instead of eclair-mr2. I apparently rebased my mr2 working dir to eclair by mistake. Do not merge this so the desired change will survive on mr2 as intended. bug: 2265222
* | Set net.hostname sys property to our unique ID.Robert Greenwalt2010-01-141-0/+9
| | | | | | | | | | | | Give us a default name networking wise so that wifi (at least) can use it. Bug:2327089
* | Add bugreport info about network feature use.Robert Greenwalt2009-12-211-8/+37
| | | | | | | | | | | | | | We've had a couple bug reports showing the effects of a left-live feature request. We need a bit more bugreport-time logging. bug: 2323226
* | am 24317443: am 421c72b6: Cleanup of process-specific DNS.Robert Greenwalt2009-12-181-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Merge commit '24317443fde973c762afbea1a3f6f2c830dfe3dd' * commit '24317443fde973c762afbea1a3f6f2c830dfe3dd': Cleanup of process-specific DNS.
| * | Cleanup of process-specific DNS.Robert Greenwalt2009-12-181-1/+1
| | | | | | | | | | | | | | | | | | | | | Removes entries sooner. A bug. Doesn't add one for phone process at all. This was intended to be removed long ago. bug: 2329900
* | | am 83652ebf: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2Dianne Hackborn2009-12-141-14/+11
|\| | | | | | | | | | | | | | | | | | | | Merge commit '83652ebfe1963bcecdcf24383165904223baca6e' * commit '83652ebfe1963bcecdcf24383165904223baca6e': Implement API to have new broadcasts replace existing broadcasts.
| * | Implement API to have new broadcasts replace existing broadcasts.Dianne Hackborn2009-12-141-14/+11
| | | | | | | | | | | | | | | | | | Use this in various places where it should serve no purpose to deliver both broadcasts. This is intended to reduce somewhat the flurry of broadcasts that we churn through during boot.
* | | resolved conflicts for merge of 47a2573e to masterRobert Greenwalt2009-12-081-7/+21
|\| |
| * | am 90d1b745: Merge change I53e91db7 into eclairRobert Greenwalt2009-12-071-7/+21
| |\| | | | | | | | | | | | | | | | | | | Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2 * commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3': Filter out minor Connectivity Notifications.
| | * Filter out minor Connectivity Notifications.Robert Greenwalt2009-12-071-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | Don't send a connectivity change notification if the change is in detailed state only. IE, Disconnect/Idle -> Disconnect/Scanning should not trigger a connection change notification. bug: 2265222
* | | resolved conflicts for merge of 5a2fdbba to masterDoug Zongker2009-12-071-4/+1
|\| |
| * | move event log tags used by system server into this packageDoug Zongker2009-12-041-4/+1
| | | | | | | | | | | | | | | | | | We can now locate event log tag definitions in individual packages (and java constants for the tag numbers get auto-generated), so move all the tags used by the system server into the package.
* | | Cleanup ConnectivityServices network configurationRobert Greenwalt2009-11-301-110/+115
|/ / | | | | | | | | | | Don't instantiate objects not needed for the device. bug: 2226064
* / Fix ConnectivityManager permissions check.Robert Greenwalt2009-10-061-1/+3
|/ | | | bug: 2160462
* Turn some logging back on in ConnectionManagerRobert Greenwalt2009-10-061-15/+1
| | | | | | Trimmed a bunch of logging out, but turned it on so we get the critical stuff. bug: 2168291
* Work on issue #2163789: Way too much loggingDianne Hackborn2009-10-041-1/+1
| | | | | | Dr.No from mcleron. Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
* Reduce the ConnectivityManager logging.Robert Greenwalt2009-09-301-8/+9
| | | | Same great info, just fewer chars.
* Fix network-feature timeout code.Robert Greenwalt2009-09-291-73/+118
| | | | | | | Track requests independently with seperate timers. Clean up on expiration by just stopping that particular request, not immediately restoring the default. bug: 2127590
* Report NO_CONNECTIVITY when failover net unavailRobert Greenwalt2009-09-171-0/+2
| | | | | | Fix ConnectivityService so that it reports connection status correctly. bug: 2128595
* Fix for multi-apn MMS access.Robert Greenwalt2009-09-101-13/+7
| | | | | | | | | | Mark cellular variants with the same availability, regardless of which are currently in use. Availability just means the radio is enabled and sees the network, but has no guarantees that we could connect to an APN if requested. Fix the requestRouteToHost logic to support apn switches without WIFI. bug:2093841
* Fix the removal of dns entries.Robert Greenwalt2009-08-251-1/+3
| | | | | | | | When switching default networks we should erase any excess dns server entries. The old code used the wrong index and didn't erase all of them properly. Found in conjunction with bug: 2077628
* Fix a race condition for data change notificationRobert Greenwalt2009-08-241-0/+9
| | | | | | | We could sometimes not be told about network state changes breaking subsequent mms access. Turning on more logging too. bug: 2069106
* Fix various issues found when testing Mms.Robert Greenwalt2009-08-191-2/+5
| | | | | | | | | Fix some race conditions (check isTeardownRequested). Fix the passing of mInterfaceName to subtypes (mms, etc). Fix the generation of CONNECTED message to already active subtypes. Fix the enabling of Data in DataConnectionTracker. bug: 2065037
* ConnectivityService: Do not send broadcasts until the system is ready.Mike Lockwood2009-08-141-3/+32
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Add net type to mobile for mobile-required trafficRobert Greenwalt2009-08-121-205/+638
| | | | | This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc. Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
* Whitespace cleanup prior to real work.Robert Greenwalt2009-07-161-81/+118
|
* Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.