summaryrefslogtreecommitdiff
path: root/core/java/android/net/DummyDataStateTracker.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove dead code.Robert Greenwalt2014-07-071-219/+0
| | | | | | Also adds a TYPE_VPN so the VPN can be strongly typed. Change-Id: Ibf39450c480f16ce5ab4c25b47965691b844fb92
* Replace LinkCapabilities with NetworkCapabilitiesRobert Greenwalt2014-05-121-7/+0
| | | | | | | Also remove unused LinkSocket and LinkSocketNotifier. bug:13885501 Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
* Remove captive portal code that has no effect.Narayan Kamath2013-10-161-5/+0
| | | | | | | | | | | | | | | | | | | Note that this CL does not change any behaviour. At the center of this change is CaptivePortalTracker#detectCaptivePortal(), which does nothing except call back into ConnectivityService. Removing it allows us to simplify code in ConnectivityService. It also allows us to remove ConnectivityService#captivePortalCheckComplete which was only ever called in response to this method. While this does not change any behaviour, it preserves existing bad behaviour, i.e, that the CAPTIVE_PORTAL_CHECK NetworkInfo state does not correspond to actual captive portal detection. We transition into that state and immediately (and unconditionally) out of it and into CONNECTED. Change-Id: Ib3797f956d2db5e3cacaaa53e899d81aa8e958af
* Introduce network link quality statisticsVinit Deshapnde2013-08-211-5/+1
| | | | | | | | | | | | | | | | | | This change starts tracking traffic quality data for WiFi and mobile networks. The quality is tracked based on incidental traffic, and not on specific measurements. Theoretical bandwidths are hard-coded, as well as sampling interval; although sampling interval can be changed by setting a system policy. Bugs filed to remove shortcomings of this change - 10342372 Change LinkInfo name to something better 10342318 Move hardcoded values of MobileLinkInfo to resources so they can be updated without changing code Bug: 10006249 Change-Id: I83d8c7594da20fe53abbd5e1f909b1f606b035bb
* If in a mobile captive portal is detected enable fail fast.Wink Saville2013-08-071-0/+6
| | | | | | | | | | | When captive portal checking completes pass back the result. This is used to enable/disable failing fast for mobile. When failing fast is enabled we don't check for data stalls and thus won't be continually trying to do recovery operations, such as restarting the radio. Bug: 9462512 Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
* Add BT - DataTracker connectionRobert Greenwalt2013-03-271-0/+6
| | | | | | | | Allows the external BT stack the means to communicate with ConnectivityService during reverse tethering. bug:8445208 Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
* Add stacking to the NetworkStateTrackers.Lorenzo Colitti2013-03-151-0/+10
| | | | | Bug: 8276725 Change-Id: I55a107fea78f9cc84f15bd6c75292138fb35a1b6
* Captive portal handlingIrfan Sheriff2012-08-271-0/+4
| | | | | | | | | | We now notify the user of a captive portal before switching to the network as default. This allows background applications to continue to work until the user confirms he wants to sign in to the captive portal. Also, moved out captive portal handling out of wifi as a seperate component. Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
* Fix several cases of broken droiddoc syntaxJeff Smith2012-07-251-1/+1
| | | | | | | | external issue 35214 patch contributed by Jeff Smith <whydoubt@yahoo.com> Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
* Proactively disable data when over policy limit.Jeff Sharkey2011-08-231-4/+8
| | | | | | | | | | | | | | Add policy controls to NetworkStateTracker which are combined with other user preference and internal flags to decide if data connection should be established. Better locking around enabled flags. When data network would be over limit, proactively disable data on that network. Enable when policy is snoozed or when cycle resets. Track and dismiss notifications from now-stale policies. Bug: 4587023, 5178147 Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
* Add external dependency API.Robert Greenwalt2011-04-071-0/+4
| | | | | | | An APN will not be connected to if some external dependency is not met. bug:3486704 Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
* Remove some unused code.Robert Greenwalt2011-02-211-21/+0
| | | | Change-Id: Id29bf7d2118065e2e772b22d910bda1c6de2a475
* Have MobileDataStateTracker & DataConnectionTracker communicate directly.Wink Saville2010-12-071-0/+3
| | | | | | | | | Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled via the ConnectivityService. It is anticipated that the communication channel will be used for additional commands and to receive unsoliciated commands from DataConnectionTracker back to MobileDataStateTracker. Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
* Add a Dummy data connection for testing purposes.Robert Greenwalt2010-12-071-0/+219
Enable with: <string-array translatable="false" name="networkAttributes"> <item>"wifi,1,1,1"</item> <item>"dummy,7,7,0"</item> </string-array> in your config.xml Change-Id: I3965edaeb4873e95131f4083b8d23d682ce17841