Commit Graph

73838 Commits

Author SHA1 Message Date
Jean-Baptiste Queru
c2475fbb4c resolved conflicts for merge of 6c9a3004 to master
Change-Id: Ia1a8a2015c087004d3dfc64681dbe0315558dc95
2010-06-21 11:44:49 -07:00
Robert Greenwalt
93dc104209 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
2010-06-16 11:04:37 -07:00
The Android Open Source Project
2198ddbc38 merge from open-source master
Change-Id: I0684cac9eb230d864614aef0634c072f4e3ef6a3
2010-06-15 11:37:17 -07:00
Szymon Jakubczak
c23dbd2557 - updates NetUtils to use new libnetutils headers
- updates WifiStateTracker to track net.XXX.dnsX properties for name servers
- removes dhcp from WifiNative (use NetworkUtils instead)

Change-Id: Ic69ff253e8784cad34e9291e7970ee38bfa235b9
2010-06-15 10:22:25 -07:00
Brian Muramatsu
20a98ac150 Prohibit Listening Ports on Devices
Bug 2732034

Check that devices do not have any listening ports open by
scanning files in the /proc/net directory.

Change-Id: Ic6204667809b3a0c136e38f35fe536bc6d79dcad
2010-06-14 15:02:53 -07:00
Irfan Sheriff
7f132d9680 Make NetworkStateTracker an interface
As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
2010-06-10 10:55:23 -07:00
Robert Greenwalt
d391e894a3 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
2010-06-09 16:52:01 -07:00
Kenny Root
ef79060f4e Add more error checking for ndc
In NativeDaemonConnector.doCommand() calls, there was inconsistent error
checking. This change adds error checking for every call and makes it so
that any call to .doCommand() that gets an error code won't cause the
code to hang forever.

Change-Id: I4584953a759a48ad16adfe8ee9e564b5f5796680
2010-06-01 13:29:04 -07:00
Dan Egnor
71d780a711 Fix sim build (sim doesn't have strl*() reliably...)
Just stub out the TrafficStats code for the sim.
Bug: 2578938

Change-Id: Ie555f67f581d05ee446ea29cb2223feb350c52f9
2010-04-08 23:47:06 -07:00
Dan Egnor
4706a3af15 CTS test for android.net.TrafficStats
Change-Id: I35fecea2a343fe2483d8c723b7f3a2d9916d47f2
2010-04-08 14:02:54 -07:00
Dan Egnor
eaeb70241c Change TrafficStats to a new JNI implementation.
Also change phone's ConnectionStateTrackers to use it directly,
rather than through the INetStat binder interface.

Bug: 2578938
Change-Id: I8858e2609cbec3be845a0ce5178cb03f67e01b41
2010-04-07 19:06:29 -07:00
Kenny Root
07726310ae Compact when NativeDaemonConnector hits buffer limit
If NativeDaemonConnector hits its buffer limit, it would truncate the
data and lose some information. This change compacts the buffer and then
retries to read the rest of the data.

Change-Id: I0d5fee097bdd6808212ef3ad6fb4abbc6310fd4a
2010-03-22 18:02:45 -07:00
jsh
bfa8172505 Add definitions for WiMAX and iDen network types.
b/2509185

Change-Id: Icf07ce857874e200712218713edbdbb47e646297
2010-03-15 15:31:08 -07:00
Irfan Sheriff
324ec572ab Run WifiWatchdogServiceThread only on wifi enable
Bug: 2508997
Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006
2010-03-12 13:16:47 -08:00
Robert Greenwalt
c0b6c60d14 Stop creating threads for tethering.
Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
2010-03-11 15:39:30 -08:00
Robert Greenwalt
46ceefadaa 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
2010-03-10 16:19:18 -08:00
Robert Greenwalt
129843273d Fix NO_CONNECTIVITY flag in some cases.
Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
2010-03-09 14:55:08 -08:00
Brett Chabot
c4b56b887f Fix NetworkInfoTest#testAccessNetworkInfoProperties
Bug 2483701

Change-Id: I98c0fc74471d9a7a9511c224d5eaa52542a8d68f
2010-03-03 19:16:18 -08:00
Robert Greenwalt
4283ded6b4 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.
2010-03-03 15:14:29 -08:00
Brian Carlstrom
cd7a8fa373 SslCertificate should provide Date interface
While working on out openssl code, I found a Y2k bug that the dates
from invalidate certificates could be shown as 1909 instead of 2009.
The reason was because SslCertificate/BrowserActivity passed the
values around as Strings even though the started as Dates (from
X509Certificate) and were converted backed to Dates before
presentation by BrowserActivity's reformatCertificateDate.

SslCertificate now maintains date fields internally as Date objects
without converting them to Strings. The constructor and String
accessors, which are now @deprecated, now specify the format as an ISO
8601 date string which uses 4 digit years.

BrowserActivity now reformatCertificateDate is now simply
formatCertificateDate and no longer has to convert from String to Date
and back to String to get proper Locale formatting.

CTS SslCertificateTest also updated.
2010-03-02 10:01:45 -08:00
Joe Onorato
c2386bb60a Switch the services library to using the new Slog 2010-03-01 13:06:50 -08:00
Joe Onorato
f7791634a2 Switch the services library to using the new Slog 2010-03-01 13:06:50 -08:00
Robert Greenwalt
f1b66e1be1 Add build options for tethering.
Dun-required bool and list of allowed upstream ifaces.
2010-02-26 17:48:09 -08:00
Robert Greenwalt
72451bf6b6 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
2010-02-25 12:04:29 -08:00
Robert Greenwalt
1b21f6c058 Add mobile data on/off switch.
bug:2251458
2010-02-24 18:14:07 -08:00
San Mehat
6eec2a8bf5 NativeDaemonConnector: Improve bad list IPC diagnostics
Signed-off-by: San Mehat <san@google.com>
2010-02-17 09:05:16 -08:00
Robert Greenwalt
8e87f12bed Update Tethering.
Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
2010-02-16 16:56:09 -08:00
San Mehat
f0d2199fc7 NativeDaemonConnector: Improve error reporting and debug formatting
Updated:
  NativeDaemonConnector: Put debugging behind a conditional

Signed-off-by: San Mehat <san@google.com>
2010-02-08 19:29:58 -08:00
The Android Open Source Project
b097973491 am 9b2534cf: am acfd2380: reconcile main tree with open-source eclair
Merge commit '9b2534cf5610f6680f9ed50cd265479a51d66259'

* commit '9b2534cf5610f6680f9ed50cd265479a51d66259':
  android-2.1_r1 snapshot
  Use 128p map tiles for high dpi devices.
  Throttle nitz updates as the are too numerous on cdma.
  don't request a sync when temp providers are created
  Increase light sensor delay from one to two seconds.
  Revert jparks code from IPCThreadState.
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
2010-02-05 14:23:32 -08:00
The Android Open Source Project
9b2534cf56 am acfd2380: reconcile main tree with open-source eclair
Merge commit 'acfd23809fb5e3923cdc91c0c674521b94d46bcf' into eclair-plus-aosp

* commit 'acfd23809fb5e3923cdc91c0c674521b94d46bcf':
  android-2.1_r1 snapshot
  Use 128p map tiles for high dpi devices.
  Throttle nitz updates as the are too numerous on cdma.
  don't request a sync when temp providers are created
  Increase light sensor delay from one to two seconds.
  Revert jparks code from IPCThreadState.
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
  Fix regression.
  Fix broken build.
  Bluetooth A2DP suspend/resume functionality
  EventLog when a database file is deleted due to corruption.
  Don't forget to clear "backup in progress" state when finishing a pass
  Fix issue #2148939: Sholes slow to wake up in landscape mode
  Fix Cdma re-start of default connection.
  Merge change 26821 into eclair
  Not all WebView's host have permission to read the history.
  Merge change 26908 into eclair
2010-02-05 08:48:38 -08:00
The Android Open Source Project
c710405130 am a63efa5c: reconcile main tree with open-source eclair
Merge commit 'a63efa5cd15b125d7683cc5afb904e13503557a3' into eclair-plus-aosp

* commit 'a63efa5cd15b125d7683cc5afb904e13503557a3':
  android-2.1_r1 snapshot
2010-02-05 08:47:30 -08:00
The Android Open Source Project
acfd23809f reconcile main tree with open-source eclair 2010-02-05 08:09:38 -08:00
Ken Shirriff
c9b5476b73 API review: TrafficStats: rename Pkts to Packets
Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(),
getMobileRxPackets()

bug 2420318
2010-02-04 14:37:21 -08:00
Robert Greenwalt
0c4828c25d First pass at USB Tethering.
bug:2281900
2010-02-04 09:15:06 -08:00
San Mehat
a52a743959 NativeDaemonConnector: Improve NativeDaemonException reporting to include the actual error response
Signed-off-by: San Mehat <san@google.com>
2010-02-03 14:37:43 -08:00
The Android Open Source Project
5f9ac31c88 reconcile android-2.1_r1 snapshot 2010-01-29 14:09:16 -08:00
The Android Open Source Project
1b6d5753bd reconcile android-2.1_r1 snapshot 2010-01-29 14:07:35 -08:00
San Mehat
0e0980b533 NativeDaemonConnector: Cleanup socket code and use a proper exception
Signed-off-by: San Mehat <san@google.com>
2010-01-29 06:30:23 -08:00
Robert Greenwalt
fe630655d2 am 4777fd12: am 3cc68d33: Fix the reporting of NO_CONNECTIVITY.
Merge commit '4777fd12d863a78ef378b322f1929690341946a5'

* commit '4777fd12d863a78ef378b322f1929690341946a5':
  Fix the reporting of NO_CONNECTIVITY.
2010-01-28 14:46:55 -08:00
Robert Greenwalt
2174048ea2 am 0070ee42: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair
Merge commit '0070ee42201c3d1c005828234ece3e25e620dcc9'

* commit '0070ee42201c3d1c005828234ece3e25e620dcc9':
  Refine fix I53e91db7 to apply only to wifi network
2010-01-28 13:44:45 -08:00
San Mehat
f2b0adabbd NativeDaemonConnector: fix doListCommand() to return *all* list elements
Signed-off-by: San Mehat <san@google.com>
2010-01-26 13:18:03 -08:00
Robert Greenwalt
793a52486f resolved conflicts for merge of 902a8dd6 to master 2010-01-26 10:09:52 -08:00
Robert Greenwalt
4777fd12d8 am 3cc68d33: Fix the reporting of NO_CONNECTIVITY.
Merge commit '3cc68d3379689b0c970ce33a56749a61a73047bd' into eclair-plus-aosp

* commit '3cc68d3379689b0c970ce33a56749a61a73047bd':
  Fix the reporting of NO_CONNECTIVITY.
2010-01-25 18:56:32 -08:00
Robert Greenwalt
3cc68d3379 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
2010-01-25 17:54:29 -08:00
Robert Greenwalt
0070ee4220 am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair
Merge commit '5381e4ef4ef1a05b25fa39ff942f4a95e0ae4750' into eclair-plus-aosp

* commit '5381e4ef4ef1a05b25fa39ff942f4a95e0ae4750':
  Refine fix I53e91db7 to apply only to wifi network
2010-01-25 16:54:28 -08:00
Robert Greenwalt
24e2d2b0e5 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
2010-01-25 16:23:56 -08:00
Robert Greenwalt
58a72c1740 am 2b17d4bf: (-s ours) am 1a337547: Merge "Add bugreport info about network feature use. DO NOT MERGE" into eclair
Merge commit '2b17d4bf67be078e262fd5104277f6ffe725ca5d'

* commit '2b17d4bf67be078e262fd5104277f6ffe725ca5d':
  Add bugreport info about network feature use. DO NOT MERGE
2010-01-25 06:03:49 -08:00
Robert Greenwalt
32b5f2ea98 am b7df5e29: am 8c166512: Merge "Cleanup of process-specific DNS." into eclair
Merge commit 'b7df5e2992e657e7167141231220db7acd2b46eb'

* commit 'b7df5e2992e657e7167141231220db7acd2b46eb':
  Cleanup of process-specific DNS.
2010-01-22 17:05:05 -08:00
The Android Open Source Project
69169b22ae merge from open-source master 2010-01-21 11:20:48 -08:00
Robert Greenwalt
902a8dd611 am 9fdf82e0: Merge "Try to switch to another default net on connection failure." into eclair
Merge commit '9fdf82e080ea20086378e751ace245a4a1b022dc' into eclair-plus-aosp

* commit '9fdf82e080ea20086378e751ace245a4a1b022dc':
  Try to switch to another default net on connection failure.
2010-01-21 10:05:13 -08:00