Commit graph android_packages_modules_Co.../services/java/com/android/server
Message SHA1
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
Refine fix I53e91db7 to apply only to wifi network
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

Robert Greenwalt   commited 2010-01-25 16:23:56 -08:00
24e2d2b0e5
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

Robert Greenwalt   commited 2010-01-20 19:29:41 -08:00
f55ced9ef3
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

Robert Greenwalt   commited 2010-01-20 12:36:09 -08:00
bfb89af944
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

Robert Greenwalt   commited 2010-01-19 18:01:36 -08:00
52855a1a7d
resolved conflicts for merge of b954337d to master
Robert Greenwalt   commited 2010-01-15 10:45:11 -08:00
0aca4b8c8c
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

Robert Greenwalt   commited 2010-01-14 18:09:17 -08:00
d48f8ee465
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

Robert Greenwalt   commited 2010-01-13 09:36:31 -08:00
2adbc7f7a4
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

Robert Greenwalt   commited 2009-12-21 18:24:07 -08:00
3eeb603d10
am e6f856c9: am 0ca68a06: Cleanup of process-specific DNS.
Merge commit 'e6f856c916'

* commit 'e6f856c916':
  Cleanup of process-specific DNS.

Robert Greenwalt   authored and   Android Git Automerger   commited 2009-12-18 14:37:28 -08:00
5ff2dcfa4e
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

Robert Greenwalt   commited 2009-12-18 11:57:52 -08:00
0ca68a0633
am 112c980a: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2
Merge commit '112c980a3d'

* commit '112c980a3d':
  Implement API to have new broadcasts replace existing broadcasts.

Dianne Hackborn   authored and   Android Git Automerger   commited 2009-12-14 16:15:03 -08:00
ac474dbabd
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.

Dianne Hackborn   commited 2009-12-14 15:03:35 -08:00
a417ff8201
resolved conflicts for merge of 2a9c1a3e to master
Robert Greenwalt   commited 2009-12-08 13:30:56 -08:00
d1b12bd772
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

Robert Greenwalt   commited 2009-12-07 15:20:50 -08:00
6d7aa196cf
am 90d1b745: Merge change I53e91db7 into eclair
Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
  Filter out minor Connectivity Notifications.

Robert Greenwalt   authored and   Android Git Automerger   commited 2009-12-07 15:09:46 -08:00
d6b70351f8
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

Robert Greenwalt   commited 2009-12-07 14:20:08 -08:00
12c4455532
resolved conflicts for merge of dd3eff7d to master
Doug Zongker   commited 2009-12-07 14:12:02 -08:00
6e78d3fdc3
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.

Doug Zongker   commited 2009-12-04 10:31:43 -08:00
2fc962347d
Cleanup ConnectivityServices network configuration
Don't instantiate objects not needed for the device.

bug: 2226064

Robert Greenwalt   commited 2009-11-30 12:56:02 -08:00
ec05b3cd06
Fix ConnectivityManager permissions check.
bug: 2160462

Robert Greenwalt   commited 2009-10-06 17:52:40 -07:00
28f430176a
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

Robert Greenwalt   commited 2009-10-06 14:12:53 -07:00
a25fd71875
Work on issue #2163789: Way too much logging
Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311

Dianne Hackborn   commited 2009-10-04 14:48:47 -07:00
2fdd851867
Reduce the ConnectivityManager logging.
Same great info, just fewer chars.

Robert Greenwalt   commited 2009-09-30 22:10:41 -07:00
423dbbc68a
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

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

bug: 2128595

Robert Greenwalt   commited 2009-09-17 16:34:39 -07:00
149d5ac149
Fix for multi-apn MMS access.
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

Robert Greenwalt   commited 2009-09-10 18:01:01 -07:00
4666ed0e7e
Fix the removal of dns entries.
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

Robert Greenwalt   commited 2009-08-25 14:00:10 -07:00
8e5b853511
Fix a race condition for data change notification
We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106

Robert Greenwalt   commited 2009-08-24 16:19:42 -07:00
f3f045b284
Fix various issues found when testing Mms.
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

Robert Greenwalt   commited 2009-08-19 21:58:12 -07:00
a52c75ae24
ConnectivityService: Do not send broadcasts until the system is ready.
Signed-off-by: Mike Lockwood <lockwood@android.com>

Mike Lockwood   commited 2009-08-14 15:09:11 -04:00
fde2b76814
Add net type to mobile for mobile-required traffic
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.

Robert Greenwalt   commited 2009-08-12 16:08:25 -07:00
2034b91973
Whitespace cleanup prior to real work.
Robert Greenwalt   commited 2009-07-16 17:31:20 -07:00
0659da31df
Rewrite SyncStorageEngine to use flat files and in-memory data structures.
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.

Dianne Hackborn   commited 2009-05-05 15:40:53 -07:00
b1d251acd2
auto import from //depot/cupcake/@135843
The Android Open Source Project   commited 2009-03-03 19:31:44 -08:00
28527d2c5f
auto import from //depot/cupcake/@135843
The Android Open Source Project   commited 2009-03-03 18:28:45 -08:00
ae5a5399b4
auto import from //branches/cupcake/...@130745
The Android Open Source Project   commited 2009-02-10 15:44:00 -08:00
cffb11385e
Code drop from //branches/cupcake/...@124589
The Android Open Source Project   commited 2008-12-17 18:05:43 -08:00
0caef3f9f1
Initial Contribution
The Android Open Source Project   commited 2008-10-21 07:00:00 -07:00
54a942fddf