Commit graph android_packages_modules_Co.../services
Message SHA1
Rewrite startUsingNetworkFeature for new API
bug:14993207
Change-Id: I041a80faa07bf3094af13a6c606f3b15aa03f789

Robert Greenwalt   commited 2014-05-27 13:24:14 -07:00
2000cddea0
Merge "Battery monitoring fixes:"
Dianne Hackborn   authored and   Android (Google) Code Review   commited 2014-05-22 17:22:15 +00:00
511d573149
Battery monitoring fixes:
- Improve monitoring of level changes to not be confused
  when it goes up while draining or down while charging.
- Put back in connectivity service code to tell battery
  stats about the interfaces.
- Turn back on reporting of mobile radio active state
  from the RIL.
- Fix bug in marshalling/unmarshalling that would cause
  the UI to show bad data.

Change-Id: I733ef52702894cca81a0813eccdfc1023e546fce

Dianne Hackborn   commited 2014-05-22 09:43:18 -07:00
8d6d6336c9
Move dis/enable of mobile data to Telephony
ConnectivityService doesn't do this anymore.

bug:15077247
Change-Id: I3208c91b2c0369b594987f39ca29da7478435513

Robert Greenwalt   commited 2014-05-21 21:34:05 -07:00
cc0c60d960
Delete the EthernetDataTracker.
Code search says these are the only two files that use it. The
tracker will be resurrected in a slightly different form in
frameworks/opt/net/ethernet.

Bug: 14993642
Bug: 14981801
Change-Id: I2477668ca78dfe46661dda1d97c7f786fd7eba35

Lorenzo Colitti   commited 2014-05-21 16:40:46 -07:00
aaa2131694
Add NetworkFactory names and unregistration.
Some Factories come and go (Telephony) and so they need to be able to unregister.
Also, debugging is tough when the factories are anonymous, so add names for logging.

Lastly, only send single set of NetworkRequests to a newly registered NetworkFactory
and only send the requests.

Change-Id: I717d63363f25c446f8ecf38d933b1a35d744af6e

Robert Greenwalt   commited 2014-05-20 09:03:57 -07:00
e20d3ec4a7
Fix the build
Change-Id: I18f78f6055f6f9c14571058d6834c8dec01aa732

Robert Greenwalt   commited 2014-05-19 11:00:12 -07:00
b5ff43f857
Add javadoc for NetworkRequest.
Also moved the requestId serial number out of this public class into CS.

Had to leave NetworkRequest hidden for now because the docs refer to things still hidden
in ConnectivityManager.

Change-Id: I14d1fe52d992adf5e4dc197b8f5433e40b0adfe6

Robert Greenwalt   commited 2014-05-19 08:17:05 -07:00
469fa2a36d
Merge "Decouple network_sampling frequency from VDBG"
Robert Greenwalt   authored and   Android (Google) Code Review   commited 2014-05-18 14:43:12 +00:00
a6c732ff4b
Decouple network_sampling frequency from VDBG
Add a special debug flag for testing network sampling.

Change-Id: Ibe572c3b5648ca25f1e5be2c61e5c5ad2979b2cb

Robert Greenwalt   commited 2014-05-16 17:19:24 -07:00
bf4328dcb2
Merge "Stop clatd when starting the Nat464Xlat service."
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2014-05-16 23:52:52 +00:00
c61f27b91d
Stop clatd when starting the Nat464Xlat service.
If a runtime restart happens while clatd was running, we try to
start clatd, which causes a fatal exception because netd returns
a 400 error (clatd already started.

Bug: 13450716
Bug: 15012035
Change-Id: I102a06d6193fb5f4a1ebe5ad52e5647ff72ca0da

Lorenzo Colitti   commited 2014-05-16 14:02:13 -07:00
5548999174
Merge "Clean up when we switch networks."
Robert Greenwalt   authored and   Android (Google) Code Review   commited 2014-05-16 17:16:19 +00:00
eda0ac038b
Clean up when we switch networks.
Need to unhitch mNetworkForRequestId when a network is no longer
satisfying a request.

Change-Id: I3b3cde7dd92ec87a76ae7a0825ad22e892fa8fd5

Robert Greenwalt   commited 2014-05-16 08:54:07 -07:00
5fe706b595
Add net.dns system properties
Some apps rely on them.

bug: 14992618
Change-Id: I5766f26b77004e9cfcc90fac657817eab67f9ac7

Robert Greenwalt   commited 2014-05-15 16:29:40 -07:00
a1aa9cf108
Merge "Add networks and requests to CS.dump"
Robert Greenwalt   authored and   Android (Google) Code Review   commited 2014-05-14 13:44:26 +00:00
c9558f6f04
Add networks and requests to CS.dump
Adds debugging.

Change-Id: I352dfe970c990fd210f3d1598519e321bbdd6ed5
(cherry picked from commit 2a202f0341801ffdebae19bff867e49e4d82b114)

Robert Greenwalt   commited 2014-05-14 13:12:23 +00:00
31a4052e71
Add Multinetwork API
Change-Id: I3a9cef0d416db96d05098dd989ee3fef3b1e9274
(cherry picked from commit d2a1edf5369707b53f63778a029bf70c25551bb6)

Robert Greenwalt   commited 2014-05-14 13:06:56 +00:00
2bebbfb357
Handle legacy synchronous inspectors
getNetworkInfo, getActiveNetworkInfo, etc

Conflicts:
	services/core/java/com/android/server/ConnectivityService.java

Change-Id: I4611d6481b1a76fe4a4ce22232a2a329de2a6e0c

Robert Greenwalt   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:35 -07:00
54d534f96c
Get clatd/Nat464Xlat working with new NetworkAgents.
Change-Id: I65dfb59ce519a42bdb872940d229039b5403fd92

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:35 -07:00
7d854049c8
Fix compile errors after merge.
These are due to changes to ConnectivityService that were made
after master-multinetwork-dev branched off. They mostly didn't
cause merge conflicts because they were in different parts of
the file from the multinetwork changes, but they cause compile
errors now. These particular changes should be fine - they are
all in dead code anyway, and their functionality had already
been re-implemented in the new code.

Change-Id: I0ac9e39c3c975c8e8dc04ad11b6b85366693865c

Lorenzo Colitti   commited 2014-05-14 03:56:34 -07:00
0980701a6b
Disable calls to MobileDataStateTracker.isProvisioning() as there is no more
MobileDataStateTracker so these just crash.

Change-Id: Ib45a85db505c0a99fb65d9a6d0c39b860f9d019d

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:34 -07:00
c72bce7591
Add NetworkMonitor.
At present the network evaluation / captive portal detection
is disabled pending addition of API to bind socket to network.

Change-Id: I5d1f5dc86d4dd9481d52dd45d6da0732054c8315

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:34 -07:00
3842b5276e
Separate network and interface addition/removal netd APIs.
This should facilitate stacked interfaces (i.e. clatd).

Change-Id: Ib3e7a4d3847ef6ec4449451f6da42e75959baa4f

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:34 -07:00
6b19753e89
Enabling internal msg apis
NetworkFactory and NetworkAgent.  First trying with wifi and
getting rid of WifiStateTracker.

Conflicts:
	api/current.txt
	services/core/java/com/android/server/ConnectivityService.java

Change-Id: I7f0ec13d7d8988b32f3c6dc71f72012f3349fe02

Robert Greenwalt   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:34 -07:00
db6fac5aad
Fix build.
Change-Id: I5dab09d2d8a9cff56fa17bb4e8c14b365449399b

Sreeram Ramachandran   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:33 -07:00
9ccfb02776
Specify netId when adding/removing routes.
Change-Id: I07fd950aee726e9721153f75c3e4c10d8e19d8e9

Sreeram Ramachandran   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:33 -07:00
a5b0928e5a
Set and clear the default network.
Change-Id: I305951e0c4735d708804baa597cc2d9b10f501c0

Sreeram Ramachandran   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:33 -07:00
a5c33ff4f2
Get ConnectivityServiceTest building again after 307dd58.
Change-Id: I4520011ba2076d8fac1ca234cb9a79c774992671

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:33 -07:00
e54dc09048
Use NetId instead of interface name when communicating DNS changes to netd.
Change-Id: Ic82b73de6f50d39d56c5e1a32f5b1f3ebb80bb7d

Paul Jensen   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:33 -07:00
5996033e08
Stop adding host routes for dns
bug:13550136
Change-Id: I748e13b96dab111f8f6a4b11d9beaf2a72d0742b

Robert Greenwalt   authored and   Lorenzo Colitti   commited 2014-05-14 03:56:32 -07:00
f80067d790
Add NetworkFactory support.
This is a protocol allowing transports to dynamically register with CS for
Handler to Handler communications.

bug:13885501
Change-Id: Ic7275e3724a15efc7e5f80981560c4cb3106007b

Robert Greenwalt   commited 2014-05-13 21:21:49 -07:00
948aea53b0
Comment out some new netd calls to fix networking.
bug:14869053
Change-Id: Ifc44f3cbadd0402c7b06e01962695e6b65dc48b3

Robert Greenwalt   commited 2014-05-13 06:34:23 -07:00
af0903c92d
Replace LinkCapabilities with NetworkCapabilities
Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3

Robert Greenwalt   commited 2014-05-12 16:52:56 -07:00
4d97cb04ba
First pass on multinetwork framework
Starting to switch netd to use NetId.
Adding the Network identifying class

bug:13550136
Change-Id: Ie0db4fb17c9300bfafb63329adfa02339911b33d

Robert Greenwalt   commited 2014-05-12 10:59:44 -07:00
a1402dfa04
Fix Global Proxy when used with PAC
Since PAC needs to relay the local proxy port back to the
ConnectivityService it ends up calling handleApplyDefaultProxy...
This works fine for PAC on WiFi, but when tested on global proxy
(not currently used anywhere), it sets the mDefaultProxy.  This
mDefaultProxy does not get cleared when the global proxy is cleared
and requires a reboot to get things cleared out.

This CL adds a check to overwrite mGlobalProxy rather than
mDefaultProxy in this use case.

Change-Id: I92782d11e213b91f8ddda2faaf996a7252273fc3

Jason Monk   commited 2014-05-08 13:46:26 -04:00
18e669e5d0
Make proxy API public
Also exposed proxy-related functions that were on the
ConnectivityManager.

Change-Id: I9fb5f1bcc257a6198679ea1d56e18da2ec5a3b33

Jason Monk   commited 2014-05-07 14:23:53 -04:00
1e3df5d297
am 7f623d6b: am 9506e84b: am 0b397ad9: am 1fce89d9: am 38dc9b4e: Merge "Include the interface for clearDnsInterfaceForUidRange" into klp-dev
* commit '7f623d6b9459bc982c49f0a74aa2c9911f8e1dd8':
  Include the interface for clearDnsInterfaceForUidRange

Chad Brubaker   authored and   Android Git Automerger   commited 2014-03-24 19:35:20 +00:00
92975d62fe
am 1fce89d9: am 38dc9b4e: Merge "Include the interface for clearDnsInterfaceForUidRange" into klp-dev
* commit '1fce89d946760a1bcf3a733f55494f963eab00c2':
  Include the interface for clearDnsInterfaceForUidRange

Chad Brubaker   authored and   Android Git Automerger   commited 2014-03-21 21:02:43 +00:00
0b397ad924
Merge "Include the interface for clearDnsInterfaceForUidRange" into klp-dev
Chad Brubaker   authored and   Android (Google) Code Review   commited 2014-03-21 20:52:05 +00:00
38dc9b4e9a
Merge "Catch Netd exceptions to avoid runtime restart"
Etan Cohen   authored and   Android (Google) Code Review   commited 2014-03-19 21:30:15 +00:00
1f025e18eb
Catch Netd exceptions to avoid runtime restart
bug:13475636
Change-Id: If36a0051a957fc066711fe8225f8981bc07add04

Robert Greenwalt   commited 2014-03-19 14:26:28 -07:00
37bf0ed5af
resolved conflicts for merge of 0bff77d6 to master
Change-Id: Ia4c86126079740978658a05579b56d59d41a7b01

Robert Greenwalt   commited 2014-03-19 12:41:54 -07:00
83a6089fba
am bd84f01c: am cb58a2fc: Merge "Handle provisioning APN by turning off/on data." into klp-dev
* commit 'bd84f01c6ce122ab58fc7c5b687dc8bfb0fb03e6':
  Handle provisioning APN by turning off/on data.

Robert Greenwalt   authored and   Android Git Automerger   commited 2014-03-19 19:08:44 +00:00
2bc1361cee
Merge "Handle provisioning APN by turning off/on data." into klp-dev
Robert Greenwalt   authored and   Android (Google) Code Review   commited 2014-03-19 16:12:01 +00:00
cb58a2fc42
Update the tests to deal with the new timestamps in idletimer module.
Change-Id: I1a8368d84ef806f1501b0a1f5e817388a1d10518

Ashish Sharma   commited 2014-03-18 16:38:58 -07:00
5a07255d7e
Include elapsed realtime (nanos) of the event in the radio state change notifications.
Bug: 13247811
Change-Id: I3454aa159a68b9087b4762df947b41965b5a3941

Ashish Sharma   commited 2014-03-18 21:42:02 +00:00
601fba91e3
Handle provisioning APN by turning off/on data.
This is a start and two tests succeed:

Tested expired AT&T SIM and waiting 15min for alarm to fire.
Tested a provisioned Verizon SIM and works normally.

I've NOT tested AT&T where I've properly completed the provisioning.
I've NOT tested T-Mobile SIM either provisioned or not-provisioned.
I've NOT tested provisioning over WiFi.
I've NOT tested that WiFi <-> Mobile works
I've NOT tested voice calls, SMS, MMS
...

The current bug is below, but it is poorly named either it should be
renamed or a new bug created.

Bug: 13190133
Change-Id: I0a09f642614cd27a8655e9dae764b8999ce485b8

Wink Saville   authored and   Robert Greenwalt   commited 2014-03-18 10:58:40 -07:00
22163fbd49
Include the interface for clearDnsInterfaceForUidRange
With netd allowing overlapping rules for uid range rules the interface
name is needed to make sure only the correct rule is removed.

Bug: 12134439
Change-Id: I94f77f154f49ca8d5f6cf49683a4473cc92c3eb7

Chad Brubaker   commited 2014-03-15 15:31:47 -07:00
6404b926af
am 4ecd833e: am 6f3e6dd0: Merge "ConnectivityService: add support to set TCP initial rwnd" into klp-dev
* commit '4ecd833ee35d1120f8c1ae52367947cacfc263a4':
  ConnectivityService: add support to set TCP initial rwnd

JP Abgrall   authored and   Android Git Automerger   commited 2014-03-14 16:28:09 +00:00
f118689ceb