Commit Graph

73838 Commits

Author SHA1 Message Date
Robert Greenwalt
f55ced9ef3 Try to switch to another default net on connection failure.
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
2010-01-20 19:29:41 -08:00
San Mehat
4a32297c1e NativeDaemonConnector: Add a convenience method for obtaining lists
Signed-off-by: San Mehat <san@google.com>
2010-01-20 15:32:02 -08:00
Robert Greenwalt
2b17d4bf67 am 1a337547: Merge "Add bugreport info about network feature use. DO NOT MERGE" into eclair
Merge commit '1a337547d5377c57dbb10a24d4d73ad6bda829ea' into eclair-plus-aosp

* commit '1a337547d5377c57dbb10a24d4d73ad6bda829ea':
  Add bugreport info about network feature use. DO NOT MERGE
2010-01-20 13:30:11 -08:00
Robert Greenwalt
bfb89af944 Add bugreport info about network feature use. DO NOT MERGE
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
2010-01-20 12:36:09 -08:00
Robert Greenwalt
b7df5e2992 am 8c166512: Merge "Cleanup of process-specific DNS." into eclair
Merge commit '8c166512a7e6ffaf87e41cd3a85d55993648fe9b' into eclair-plus-aosp

* commit '8c166512a7e6ffaf87e41cd3a85d55993648fe9b':
  Cleanup of process-specific DNS.
2010-01-20 11:12:40 -08:00
Robert Greenwalt
52855a1a7d Cleanup of process-specific DNS.
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
2010-01-19 18:01:36 -08:00
Robert Greenwalt
0aca4b8c8c resolved conflicts for merge of b954337d to master 2010-01-15 10:45:11 -08:00
Robert Greenwalt
d48f8ee465 Set net.hostname sys property to our unique ID.
Give us a default name networking wise so that wifi (at least) can use it.

Bug:2327089
2010-01-14 18:09:17 -08:00
Robert Greenwalt
b954337d20 am 2adbc7f7: Backport l53e91db7 from master.
Merge commit '2adbc7f7a4a4a827360f8a585e7306f07f2fd718' into eclair-plus-aosp

* commit '2adbc7f7a4a4a827360f8a585e7306f07f2fd718':
  Backport l53e91db7 from master.
2010-01-13 17:09:40 -08:00
Robert Greenwalt
993d19f923 Fix Javadoc errors so the sdk can build.
I unhid some API in a previous install, triggering javadoc processing on
their buggy comments.

Fixing build.
2010-01-13 11:47:50 -08:00
Robert Greenwalt
c0ee47ffc5 Unhide some CM constants to support unbundling.
The MOBILE_MMS, MOBILE_SUPL, MOBILE_DUN and MOBILE_HIPRI net types used
by location, messaging, and vending needed to be exposed.

Bug: 2363272
Change-ID: I6d2361d3642064db619b283b9217512563eb3439
2010-01-13 10:01:44 -08:00
Robert Greenwalt
2adbc7f7a4 Backport l53e91db7 from master.
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
2010-01-13 09:36:31 -08:00
The Android Open Source Project
8c81965feb android-2.1_r1 snapshot 2010-01-12 15:18:07 -08:00
San Mehat
8592334382 services: Introduce NativeDaemonConnector class
This class provides an interface to communicate with native daemons using the
libsysutils framework communication code.

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: fix whitespace

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: Fix review comments

Signed-off-by: San Mehat <san@google.com>

NativeDaemonConnector: On an error, re-try the connection

Signed-off-by: San Mehat <san@google.com>
2010-01-12 13:55:39 -08:00
The Android Open Source Project
16a5fa3ce2 empty initial commit 2010-01-11 14:33:36 -08:00
Robert Greenwalt
3eeb603d10 Add bugreport info about network feature use.
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
2009-12-21 18:24:07 -08:00
Robert Greenwalt
5ff2dcfa4e am e6f856c9: am 0ca68a06: Cleanup of process-specific DNS.
Merge commit 'e6f856c916c172ebd54e40fa11c356845c347ca2'

* commit 'e6f856c916c172ebd54e40fa11c356845c347ca2':
  Cleanup of process-specific DNS.
2009-12-18 14:37:28 -08:00
Robert Greenwalt
e6f856c916 am 0ca68a06: Cleanup of process-specific DNS.
Merge commit '0ca68a063353bbc413d9a670f598fdec644a2055' into eclair-mr2-plus-aosp

* commit '0ca68a063353bbc413d9a670f598fdec644a2055':
  Cleanup of process-specific DNS.
2009-12-18 14:33:55 -08:00
Robert Greenwalt
0ca68a0633 Cleanup of process-specific DNS.
Removes entries sooner.  A bug.
Doesn't add one for phone process at all.  This was intended to be removed long ago.

bug: 2329900
2009-12-18 11:57:52 -08:00
Android Git Automerger
e76e85a7f7 Merge commit 'goog/eclair-plus-aosp' 2009-12-15 00:44:42 -08:00
Dianne Hackborn
ac474dbabd am 112c980a: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2
Merge commit '112c980a3d3fd8873dbc44006436aff80535808e'

* commit '112c980a3d3fd8873dbc44006436aff80535808e':
  Implement API to have new broadcasts replace existing broadcasts.
2009-12-14 16:15:03 -08:00
Dianne Hackborn
112c980a3d am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2
Merge commit '3a3fd2ba1ffc6171725375396cc59711a34bb39e' into eclair-mr2-plus-aosp

* commit '3a3fd2ba1ffc6171725375396cc59711a34bb39e':
  Implement API to have new broadcasts replace existing broadcasts.
2009-12-14 16:10:13 -08:00
Dianne Hackborn
a417ff8201 Implement API to have new broadcasts replace existing broadcasts.
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.
2009-12-14 15:03:35 -08:00
Brett Chabot
7aa0090ef5 Fix ConnectivityManagerTest testRequestRouteToHost and testGetAllNetworkInfo.
Bugs 2138046 and 2138034.

Change-Id: I2c3973be9166892caaf2deb07bc15344b897b552
2009-12-08 19:52:35 -08:00
Robert Greenwalt
15b31036b1 am cc466154: (-s ours) am f59a2ae6: am 9ae9763b: (-s ours) Merge change Ib097fbbf into eclair
Merge commit 'cc46615416ed5620e8e3437ee7c374ee69e0943f'

* commit 'cc46615416ed5620e8e3437ee7c374ee69e0943f':
  DO NOT MERGE  Reverting change I53e91db7.
2009-12-08 14:50:31 -08:00
Robert Greenwalt
d1b12bd772 resolved conflicts for merge of 2a9c1a3e to master 2009-12-08 13:30:56 -08:00
Ken Shirriff
c640964e95 Migration to TrafficStats.
TrafficStats is the SDK version of NetStat.
2009-12-08 11:14:03 -08:00
Ken Shirriff
ae521152dd Add TrafficStats class to SDK.
This class (a rename of NetStat) provides network byte and packet statistics.
NetStat will be removed separately, to avoid breaking other packages when submitting.
2009-12-08 10:50:25 -08:00
Robert Greenwalt
cc46615416 am f59a2ae6: am 9ae9763b: (-s ours) Merge change Ib097fbbf into eclair
Merge commit 'f59a2ae61e985a54f897c5f95977dc0d08e8dbe6' into eclair-mr2-plus-aosp

* commit 'f59a2ae61e985a54f897c5f95977dc0d08e8dbe6':
  DO NOT MERGE  Reverting change I53e91db7.
2009-12-07 15:36:25 -08:00
Robert Greenwalt
f59a2ae61e am 9ae9763b: (-s ours) Merge change Ib097fbbf into eclair
Merge commit '9ae9763b7e5dd872619b13c889b72b0df176f956' into eclair-mr2

* commit '9ae9763b7e5dd872619b13c889b72b0df176f956':
  DO NOT MERGE  Reverting change I53e91db7.
2009-12-07 15:31:50 -08:00
Robert Greenwalt
37ca75d9db am 9ae9763b: Merge change Ib097fbbf into eclair
Merge commit '9ae9763b7e5dd872619b13c889b72b0df176f956' into eclair-plus-aosp

* commit '9ae9763b7e5dd872619b13c889b72b0df176f956':
  DO NOT MERGE  Reverting change I53e91db7.
2009-12-07 15:31:29 -08:00
Robert Greenwalt
6d7aa196cf DO NOT MERGE Reverting change I53e91db7.
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
2009-12-07 15:20:50 -08:00
Robert Greenwalt
2a9c1a3e42 am d6b70351: am 90d1b745: Merge change I53e91db7 into eclair
Merge commit 'd6b70351f823af91a97b9238b219653181cf8dca' into eclair-mr2-plus-aosp

* commit 'd6b70351f823af91a97b9238b219653181cf8dca':
  Filter out minor Connectivity Notifications.
2009-12-07 15:13:51 -08:00
Robert Greenwalt
d6b70351f8 am 90d1b745: Merge change I53e91db7 into eclair
Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
  Filter out minor Connectivity Notifications.
2009-12-07 15:09:46 -08:00
Robert Greenwalt
282c1ed5d3 am 90d1b745: Merge change I53e91db7 into eclair
Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-plus-aosp

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
  Filter out minor Connectivity Notifications.
2009-12-07 15:09:30 -08:00
Robert Greenwalt
12c4455532 Filter out minor Connectivity Notifications.
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
2009-12-07 14:20:08 -08:00
Doug Zongker
6e78d3fdc3 resolved conflicts for merge of dd3eff7d to master 2009-12-07 14:12:02 -08:00
Doug Zongker
dd3eff7df7 am 48476b0a: Merge change Iab5c49c7 into eclair-mr2
Merge commit '48476b0ade7594a64612db2b867792737193b2ec' into eclair-mr2-plus-aosp

* commit '48476b0ade7594a64612db2b867792737193b2ec':
  move event log tags used by system server into this package
2009-12-04 12:02:09 -08:00
Doug Zongker
2fc962347d move event log tags used by system server into this package
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.
2009-12-04 10:31:43 -08:00
Robert Greenwalt
ec05b3cd06 Cleanup ConnectivityServices network configuration
Don't instantiate objects not needed for the device.

bug: 2226064
2009-11-30 12:56:02 -08:00
Jean-Baptiste Queru
312b4e2421 merge from open-source master 2009-11-15 14:55:20 -08:00
Jean-Baptiste Queru
c680052751 merge from open-source master
Merge commit 'goog/stage-korg-master^' into HEAD
2009-11-15 14:03:15 -08:00
Jean-Baptiste Queru
2eb29a4ef6 eclair snapshot 2009-11-13 13:53:39 -08:00
Brett Chabot
1bf60c89bb Fix MailToTest.
Changed the toString assertions to be parameter order independent.
2009-11-03 15:57:26 -08:00
Robert Greenwalt
28f430176a Fix ConnectivityManager permissions check.
bug: 2160462
2009-10-06 17:52:40 -07:00
Robert Greenwalt
a25fd71875 Turn some logging back on in ConnectionManager
Trimmed a bunch of logging out, but turned it on so we get the critical stuff.

bug: 2168291
2009-10-06 14:12:53 -07:00
Dianne Hackborn
2fdd851867 Work on issue #2163789: Way too much logging
Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
2009-10-04 14:48:47 -07:00
Robert Greenwalt
423dbbc68a Reduce the ConnectivityManager logging.
Same great info, just fewer chars.
2009-09-30 22:10:41 -07:00
Robert Greenwalt
affc3a1c31 Fix network-feature timeout code.
Track requests independently with seperate timers.  Clean up on expiration
by just stopping that particular request, not immediately restoring the default.

bug: 2127590
2009-09-29 13:18:17 -07:00
Robert Greenwalt
149d5ac149 Report NO_CONNECTIVITY when failover net unavail
Fix ConnectivityService so that it reports connection status correctly.

bug: 2128595
2009-09-17 16:34:39 -07:00