summaryrefslogtreecommitdiffstats
path: root/core/java/android/net
Commit message (Collapse)AuthorAgeFilesLines
* 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/+16
| | | | Same great info, just fewer chars.
* Fix ConnectivityManager's handling of apn switch.Robert Greenwalt2009-09-252-7/+18
| | | | | | | | | It was clearing the interfacename when it was needed later in the process - the prevented us from clearing the route to private dns servers and clearing the flag that this was set. Consequently future uses would not set the private dns servers (since it thought they were already set) and our lookups would fail. bug: 2146929
* Support IPv6 literal URLs, e.g., http://[2001:4860:b004::68]/ as per RFC 3896Lorenzo Colitti2009-09-231-1/+1
| | | | | | section 3.2.2. Change-Id: I6166753fac2c141440fc3c860ab644b29b188d76
* Remove the network connection logic from RequestQueue.Patrick Scott2009-09-172-182/+16
| | | | | This doesn't always work right and is causing some problems if the network comes back up without sending the broadcast.
* Fix for multi-apn MMS access.Robert Greenwalt2009-09-102-4/+6
| | | | | | | | | | 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
* Note net availability even when apn not enabledRobert Greenwalt2009-08-241-1/+3
| | | | | | | | Fixes a problem where mms apn was on when we lost the network (airplane mode) but mms was off when airplane mode was turned off so it kept thinking we didn't have access and future mms always failed. bug: 2075145
* Fix a race condition for data change notificationRobert Greenwalt2009-08-242-1/+2
| | | | | | | We could sometimes not be told about network state changes breaking subsequent mms access. Turning on more logging too. bug: 2069106
* Framework changes to support HSDPA/HSUPA/HSPALi Zhe2009-08-211-0/+12
| | | | | | | | | | | | | | | | | | HSDPA: High-Speed Downlink Packet Access HSUPA: High-Speend Uplink Packet Access HSPA: High-Speed Packet Access Add support for HSDPA/HSUPA/HSPA: 1) extend TelephonyManager.NETWORK_TYPE for HSDPA/HSUPA/HSPA 2) extend ServiceState.RADIO_TECHNOLOGY for HSDPA/HSUPA/HSPA 3) set radioTechnology into ServiceState in GsmServiceStateTracker 4) change the implementation of TelephonyManager.getNetworkType to solve the competition timing issue between the time of setting system property and the time of receiving notification through PhoneStateListener 4.1) add a getNetworkType interface in ITelephony.aidl 5) add icons resources for HSDPA/HSUPA/HSPA 6) make use of HSDPA/HSUPA/HSPA icons in StatusBarPolicy
* am e97c2006: Updated Browser and MCS to use shared default trust manager ↵Bob Lee2009-08-202-60/+8
|\ | | | | | | | | | | | | | | | | instead of initializing their own copies. Merge commit 'e97c2006bf7c391c933307e520a392e532aa5d6a' into eclair * commit 'e97c2006bf7c391c933307e520a392e532aa5d6a': Updated Browser and MCS to use shared default trust manager instead of initializing their own copies.
| * Updated Browser and MCS to use shared default trust manager instead of ↵Bob Lee2009-08-202-60/+8
| | | | | | | | initializing their own copies.
* | Fix various issues found when testing Mms.Robert Greenwalt2009-08-191-8/+16
| | | | | | | | | | | | | | | | | | 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
* | Fix Wifi+Cell on boot after wifi in use.Robert Greenwalt2009-08-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gist of it is: Ignore reconnect fail of default APN during boot. A long path: 1 If wifi is started at boot it starts fast - before the PhoneService is available. 2 Wifi starts by failing - you get DISCONNECTED/Scanning events so CM starts the other default network (mobile). 3 Trying to restart mobile fails because the phone service isn't up yet. 4 The failure is noted and the net is marked as not-enabled. 5 The phone trys to auto-start the mobile network and succeeds, sending state-changed events 6 The CM ignores the state-changed events because the net isn't enabled (see 4). The long term fix is to remove two-way state tracking from the MobileDataStateTracker and instead just consume the state fed to us in state-change events. Near term fix is to not mark the default net disabled when we have failure (step 4) if the phone service isn't available.
* | Fix for Mms without wifi.Robert Greenwalt2009-08-181-66/+101
| | | | | | | | | | | | | | | | | | Need to change MOBILE_MMS network into connnected state if the current apn can already support the traffic. Bug:2058212 Bug:2055065 Bug:2046882
* | Fix CDMA to startup/shutdown based on apn en/disabRobert Greenwalt2009-08-171-7/+7
| | | | | | | | | | Fixes MMS during wifi. Also fixes CDMA for ConnectivityManager change.
* | Add net type to mobile for mobile-required trafficRobert Greenwalt2009-08-124-187/+214
| | | | | | | | | | 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.
* | resolved conflicts for merge of b8802b21 to masterGrace Kloba2009-08-033-3/+11
|\ \ | |/
| * Fix #2025900. If a https request is canceled while openConnection is calledGrace Kloba2009-07-303-3/+11
| | | | | | | | | | and a ssl error happened, the http thread can be blocked for up to 10 min. Added code to detect this case and unlock the thread.
* | Fix 1993520 where page cycler fails.Grace Kloba2009-07-241-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Recover the old logic before removing network management. Remove the empty list for the host after consuming the last entry. As we should never have an empty list, it is safe to call removeFirst without checking whether it is empty. Currently, in getRequest() or removeFrist(), if we found an empty list, we remove it. Then we return null for the request even there are requests in another list. So the page stops loading until the next getRequest() or removeFirst() is called. If they are not called, those requests will never be accessed.
* | Allow 205 and 305 to have content.Patrick Scott2009-07-211-2/+1
| | | | | | | | | | | | | | | | | | | | 205 is interpreted by Safari to be like 200 and show the given content. Change canHaveResponseBody to allow 205 to have a body. 305 is a very rare server response indicating to the client to use the given Location header as a proxy and reissue the original request. Curl doesn't do anything with this header and neither does internal networking code. For now, we will just allow the response body to propagate to webcore.
* | Correctly set the thread priority for ConnectionThreads.Patrick Scott2009-07-201-0/+1
| | | | | | | | | | | | | | | | | | | | This does not change the actual thread priority but if the default priority changes, this will have the desired result of being slightly less favorable. I tried messing with the priorities to see if a higher or lower priority helped but it seemed to do more harm than good. It might be worth more investigation to find out where all the thread time is being spent so we can determine the correct priority.
* | Remove all our old high priority knowledge since WebCore will manage it.Patrick Scott2009-07-153-77/+31
| | | | | | | | Also removed an unused variable in RequestQueue.java.
* | am 2d791055: Merge change 6820 into donutAndroid (Google) Code Review2009-07-121-16/+13
|\ \ | |/ | | | | | | | | | | Merge commit '2d7910555ab6b376e8cd1646db6c329c1cd1adb7' * commit '2d7910555ab6b376e8cd1646db6c329c1cd1adb7': Fixed NPE bugs in Uri. Fixes internal issue #1724719.
| * Fixed NPE bugs in Uri. Fixes internal issue #1724719.Bob Lee2009-07-101-16/+13
| | | | | | | | Modified getQueryParameter() to use the encoded query string. Fixes internal issue #1749094.
* | Merge change 6823Android (Google) Code Review2009-07-101-0/+3
|\ \ | | | | | | | | | | | | * changes: wifi: Keep the WLAN network interface up whenever wifi is enabled.
| * | wifi: Keep the WLAN network interface up whenever wifi is enabled.Mike Lockwood2009-07-101-0/+3
| | | | | | | | | | | | | | | | | | | | | We now only bring it down briefly and bring it back up again when we want to reset the interface. Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | resolved conflicts for merge of ad94a983 to masterBob Lee2009-07-101-9/+12
|\ \ \ | |/ / |/| / | |/
| * Uri.EMPTY.toString() was returning null due to an initialization order bug. ↵Bob Lee2009-07-101-9/+12
| | | | | | | | Fixes internal issue #1957015.
* | Fixed typo, RFC3296 is for LDAP, RFC2396 is for URISimon Schoar2009-07-071-1/+1
| |
* | Fix the performance collection in the http thread. A connection can be ↵Grace Kloba2009-07-022-11/+29
| | | | | | | | reused. Change the thread time collection based on per request.
* | am 7a573862: Merge change 5720 into donutAndroid (Google) Code Review2009-07-011-3/+3
|\ \ | |/ | | | | | | | | | | Merge commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60' * commit '7a5738624fa78e328b5f36c687c20b9cf0eb5a60': Fix #1876303. Even rfc2616 4.2 says that "Field names are case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
| * Fix #1876303. Even rfc2616 4.2 says that "Field names are ↵Grace Kloba2009-06-291-3/+3
| | | | | | | | case-insensitive.", servers including Google internal uses case-sensitive checking for "Cookie". So change it.
* | Revert "ConnectivityManager: Add support for bringing up the default APN."Mike Lockwood2009-06-301-4/+0
| | | | | | | | | | | | | | This reverts commit a84b6faffbe7ef5981f3202be0f68a8b44d61a76. I will work on a better mechanism for bringing up the default APN when Wifi is enabled.
* | ConnectivityManager: Add support for bringing up the default APN.Mike Lockwood2009-06-261-0/+4
| | | | | | | | | | | | | | The default APN can now be requested by calling ConnectivityManager.startUsingNetworkFeature(Phone.FEATURE_ENABLE_DEFAULT). Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Fix #1907439. If there is uncommitted content when gzipped content got ↵Grace Kloba2009-06-091-2/+7
| | | | | | | | EOFException, we need to commit them.
* | Order high priority requests in the same order they are requested.Patrick Scott2009-05-201-19/+54
| | | | | | | | | | | | | | Use a class to hold the high priority requests and low priority requests. Each request is appended to the correct list in the order received. If a request needs to be requeued after an error, it is placed at the head of the corresponding list.
* | am 1c9a92fd: Merge change 1690 into donutAndroid (Google) Code Review2009-05-141-7/+9
|\ \ | |/ | | | | | | | | | | Merge commit '1c9a92fd9fbe192f24e53c26cddeab401cefb108' * commit '1c9a92fd9fbe192f24e53c26cddeab401cefb108': Rework some code so that it works the way it was supposed to work.
| * Rework some code so that it works the way it was supposed to work.Marco Nelissen2009-05-141-7/+9
| |
* | Fix #1807059. If it is "POST", always use BasicHttpEntityEnclosingRequest ↵Grace Kloba2009-05-081-2/+7
| | | | | | | | even bodyProvider is null. This ensures the content-type, content-encoding and content-length are set correctly.
* | Add '_' to the allowable characters in a host name.Patrick Scott2009-04-271-1/+1
|/ | | | | This does not fix the underscore problem in host names but it moves it from a Browser issue to a libc issue.
* telephony: Add support for bringing up GSM data connections for GPS SUPL.Mike Lockwood2009-04-141-3/+8
| | | | Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge branch 'readonly-p4-donut' into donutEric Shienbrood2009-04-131-7/+3
|\
| * AI 145980: am: CL 145881 Adding on to CL 145383, unhiding some additional ↵Eric Shienbrood2009-04-131-7/+3
| | | | | | | | | | | | | | | | | | | | | | | | methods and constants that ought to be exposed. Hid and deprecated the single-arg public constructor for NetworkInfo, and modified a CTS test that was testing it. Ran the android.net test package to make sure it still works. Original author: ers Merged from: //branches/cupcake/... Automated import of CL 145980
* | Remove references to android.util.ConfigDave Bort2009-04-091-3/+6
|/ | | | | | | The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
* AI 144185: Integrate cdma into the main code base.Wink Saville2009-04-021-30/+40
| | | | Automated import of CL 144185
* Automated import from //branches/donutburger/...@141355,141355Bob Lee2009-03-242-92/+90
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-2/+5
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0349-0/+13696
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0349-13708/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-033-129/+143
|