Commit graph android_packages_modules_Co.../services/java/com/android
Message SHA1
am 325eed46: am 6548f395: Merge "Inet status bug fix" into gingerbread
Merge commit '325eed464f'

* commit '325eed464f':
  Inet status bug fix

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-21 10:44:26 -07:00
b1c4c8d23c
resolved conflicts for merge of 20979077 to master
Change-Id: Ica492307505d53e57863d4363b5f75abd798bcd8

Robert Greenwalt   commited 2010-09-21 10:27:59 -07:00
9f758cdd31
am 6548f395: Merge "Inet status bug fix" into gingerbread
Merge commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef' into gingerbread-plus-aosp

* commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef':
  Inet status bug fix

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-21 08:22:59 -07:00
325eed464f
Inet status bug fix
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

Robert Greenwalt   commited 2010-09-21 05:38:36 -07:00
b2a9e4957a
am 313af5a3: Merge "Add Inet Condition log to bugreports" into gingerbread
Merge commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a' into gingerbread-plus-aosp

* commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a':
  Add Inet Condition log to bugreports

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-20 21:31:29 -07:00
2097907748
Add Inet Condition log to bugreports
Reports who reports what condition on which network at what time.  Where is implied.

Change-Id: I89fbc7323dec438041859fcc934169fa325f0133

Robert Greenwalt   commited 2010-09-20 16:00:44 -07:00
0e80be1a8d
Enhance http proxy support
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

Robert Greenwalt   commited 2010-09-17 16:14:10 -07:00
9f0ee4fcde
am 7d6070c3: am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread
Merge commit '7d6070c3fd'

* commit '7d6070c3fd':
  Update Inet Connection Status display

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-15 19:49:53 -07:00
978f509cea
am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread
Merge commit '134b28a7f049719cb74fd5baadbbcc5915bc861b' into gingerbread-plus-aosp

* commit '134b28a7f049719cb74fd5baadbbcc5915bc861b':
  Update Inet Connection Status display

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-15 18:02:59 -07:00
7d6070c3fd
Update Inet Connection Status display
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

Robert Greenwalt   commited 2010-09-15 17:54:17 -07:00
d3401f9b40
Fix the build
broken merge resolution.

Change-Id: Idf1abef1ef79ddc43b9eaba1e0e523085702e2fe

Robert Greenwalt   commited 2010-09-09 14:05:10 -07:00
cf1a56c8ba
resolved conflicts for merge of ee6dfc50 to master
Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed

Robert Greenwalt   commited 2010-09-09 13:15:32 -07:00
24118e8a28
am 0727a865: Merge "Add network condition reporting." into gingerbread
Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp

* commit '0727a865d83b944c2fecc0bf1228a36976fe5300':
  Add network condition reporting.

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-09-09 09:49:15 -07:00
ee6dfc507a
Add network condition reporting.
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

Robert Greenwalt   commited 2010-09-09 09:33:02 -07:00
986c741ac1
Fix and simplify ConnectivityService singleton.
Change-Id: Idb74854db9d801c1cc138eb5ca866cf01940ff6d

Wink Saville   commited 2010-09-02 19:23:52 -07:00
775aad68d3
Revert "Changed ConnectivityService#getServiceInstance so its a singleton."
This reverts commit 7323ea10cd 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

Joe Onorato   commited 2010-09-01 21:18:22 -07:00
56023ad2c6
Add a default dns entry if none is provided
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

Robert Greenwalt   commited 2010-09-01 15:25:51 -07:00
94daa185b8
Changed ConnectivityService#getServiceInstance so its a singleton.
Change-Id: I27b5688a50917b01fb2fcd1c124da77ccae226b5

Wink Saville   commited 2010-09-01 14:48:29 -07:00
7323ea10cd
Rename NetworkProperties to LinkProperties
Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615

Robert Greenwalt   commited 2010-08-30 15:54:37 -07:00
1f1bcfe6a2
resolved conflicts for merge of 4ea54f44 to master
Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56

Robert Greenwalt   commited 2010-08-27 11:05:11 -07:00
7fe44cbc2b
resolved conflicts for merge of b998f311 to gingerbread-plus-aosp
Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505

Robert Greenwalt   commited 2010-08-25 17:48:47 -07:00
7ac5d3748d
am a488bc40: am cb749fbc: Merge "Send all Connectivity broadcasts." into gingerbread
Merge commit 'a488bc40a3'

* commit 'a488bc40a3':
  Send all Connectivity broadcasts.

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-08-24 15:21:08 -07:00
ded8148cb4
Send all Connectivity broadcasts.
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

Robert Greenwalt   commited 2010-08-24 11:47:10 -07:00
ab5c8b15df
Add an API to request route to an IPv6 host.
Add API to create a route to an IPv6 host through a particular
interface.

Change-Id: I7649051e94832576e02b5f5ad17abe093d21d48e

Banavathu, Srinivas Naik   authored and   Banavathu Srinivas Naik   commited 2010-08-19 12:50:35 -07:00
7601f575aa
bluetooth tethering
Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767

Danica Chang   commited 2010-08-18 15:07:50 -07:00
965670546b
Add documentation to NetworkStateTracker and a small change to the API.
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

Wink Saville   commited 2010-08-13 16:11:42 -07:00
7fabfa2e6c
DO NOT MERGE Always set/remove default routes.
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

Robert Greenwalt   commited 2010-08-13 15:53:13 -07:00
0ef6875b30
Split WifiStateMachine from WifiStateTracker
Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053

Irfan Sheriff   commited 2010-08-10 15:18:25 -07:00
25be076f74
Fix runtime reset (missing case break).
Bug: 2895437
Change-Id: If061c02811144031833f75ad47ae313e2208701c

Daniel Sandler   commited 2010-08-04 23:57:00 -04:00
4a1052ea35
Always try to set/remove default routes
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

Robert Greenwalt   commited 2010-08-02 15:40:21 -07:00
3afbead19f
Refactor WifiStateTracker
Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb

Irfan Sheriff   commited 2010-07-27 11:59:29 -07:00
653e2a2f64
Pass network properties to ConnectivityService.
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

Robert Greenwalt   commited 2010-07-13 18:07:41 -07:00
a7dfbd3a1d
Move the net transition wakelock to ConnService.
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

Robert Greenwalt   commited 2010-06-16 11:04:37 -07:00
93dc104209
Make NetworkStateTracker an interface
As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936

Irfan Sheriff   commited 2010-06-10 10:55:23 -07:00
7f132d9680
Clean up APN notifications.
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

Robert Greenwalt   commited 2010-06-09 16:52:01 -07:00
d391e894a3
Run WifiWatchdogServiceThread only on wifi enable
Bug: 2508997
Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006

Irfan Sheriff   commited 2010-03-12 13:16:47 -08:00
324ec572ab
Stop creating threads for tethering.
Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c

Robert Greenwalt   commited 2010-03-11 15:39:30 -08:00
c0b6c60d14
Make HiPri work when already connected.
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

Robert Greenwalt   commited 2010-03-10 16:19:18 -08:00
46ceefadaa
Fix NO_CONNECTIVITY flag in some cases.
Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544

Robert Greenwalt   commited 2010-03-09 14:55:08 -08:00
129843273d
Add error reporting for Tethering.
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.

Robert Greenwalt   commited 2010-03-03 15:14:29 -08:00
4283ded6b4
Switch the services library to using the new Slog
Joe Onorato   commited 2010-03-01 13:06:50 -08:00
c2386bb60a
Add build options for tethering.
Dun-required bool and list of allowed upstream ifaces.

Robert Greenwalt   commited 2010-02-26 17:48:09 -08:00
f1b66e1be1
Fix no-mobile-data after wifi.
Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458

Robert Greenwalt   commited 2010-02-25 12:04:29 -08:00
72451bf6b6
Add mobile data on/off switch.
bug:2251458

Robert Greenwalt   commited 2010-02-24 18:14:07 -08:00
1b21f6c058
Update Tethering.
Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855

Robert Greenwalt   commited 2010-02-16 16:56:09 -08:00
8e87f12bed
First pass at USB Tethering.
bug:2281900

Robert Greenwalt   commited 2010-02-04 09:15:06 -08:00
0c4828c25d
am 4777fd12: am 3cc68d33: Fix the reporting of NO_CONNECTIVITY.
Merge commit '4777fd12d8'

* commit '4777fd12d8':
  Fix the reporting of NO_CONNECTIVITY.

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-01-28 14:46:55 -08:00
fe630655d2
am 0070ee42: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair
Merge commit '0070ee4220'

* commit '0070ee4220':
  Refine fix I53e91db7 to apply only to wifi network

Robert Greenwalt   authored and   Android Git Automerger   commited 2010-01-28 13:44:45 -08:00
2174048ea2
resolved conflicts for merge of 902a8dd6 to master
Robert Greenwalt   commited 2010-01-26 10:09:52 -08:00
793a52486f
Fix the reporting of NO_CONNECTIVITY.
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

Robert Greenwalt   commited 2010-01-25 17:54:29 -08:00
3cc68d3379