History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8f88e375252b7a9e2af233604b162f8e486ddff3 27-Apr-2016 Chen Xu <fionaxu@google.com> Merge "Info zero-rating for roaming based on carrier cfg" into nyc-dev
3d8c0f70a6fa7a53fda3c5d592de0ac3aa247e3c 21-Apr-2016 fionaxu <fionaxu@google.com> Info zero-rating for roaming based on carrier cfg

ignore non-metered roaming apn types when cleanup or setUpDatacall.

Bug: 26317905
Change-Id: Iae9a798c43fde020ba215b7a59e83e41559a97c9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
68f4f4a0bc8d4060b5775e7a24a97ea5b485989e 21-Apr-2016 fionaxu <fionaxu@google.com> Cold Sim issue fix part 2

implement a way to hide sign-in notification and bring it back
if out-of-credit sim is detected

Bug: 25203607
Change-Id: Ic16b88df87070bdb47a81376e218940808c6d38a
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
a02b6fd88953d783c32e6d7f84b7eddbc0d1faf1 08-Apr-2016 fionaxu <fionaxu@google.com> Cold Sim fix for DataConnection and DCT

Bug: 25203607
Change-Id: I3bbef77edf57eaa8d7da24d687cc9b5ab0ef111b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
0852a954be5937a1b0bca94df0c2007d7ee3c0c7 13-Apr-2016 Jack Yu <jackyu@google.com> Fixed that data retry didn't happen issue

When modem return -1 as the retry value in setup data call response,
we should interpret it correctly and retry the data connection.

bug: 27787361
Change-Id: I0a3e442f5125730dd9a196ce632120b44b880090
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
8b0a1cbd24977a1abbba79736cf9f481ced0703a 30-Mar-2016 Jack Yu <jackyu@google.com> Excluded certain APNs (e.g. IMS) from mobile data usage.

Added not_metered capability to a mobile network if none
of its associated APN types are metered. Also used not_metered
capability to determine if a network should be accounted for
data usage or not instead of using network type, which is
always MOBILE after refactoring. Will add VT usage support
in next phase.

bug: 20888836
Change-Id: Ic39c9ffc84e27566a5b10ebf9aaa4ee3d6bd3e49
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
b40308275e70d445c62fd9da062443dbbc53e513 10-Mar-2016 Jack Yu <jackyu@google.com> Merge "Added unit test cases for DataConnection" into nyc-dev
32971f02fc9b0290df0f33c3146a5fe643b76681 10-Mar-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix emergency ims pdn setup issue" into mm-wireless-dev
4a2acc7448e8ba4a91b8d48eef63198106b959dd 01-Feb-2016 Ajay Nambi <anambi@codeaurora.org> Fix emergency ims pdn setup issue

Add network capability EIMS for emergency apn type

Change-Id: I6ddc23c656fb2fc8e208f093879a2b5b1bc9f701
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
e3f497323441d0c9215f6cbad9ce950f054cce72 09-Mar-2016 Jack Yu <jackyu@google.com> Added unit test cases for DataConnection

bug: 25691077
Change-Id: I90920c7625ec7f8f716fbab15f65c7f4323628cc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
3a5b9323f422134b68a92c36813001ec8bed2866 26-Feb-2016 Jack Yu <jackyu@google.com> First unit test for DcController

bug: 25691379
Change-Id: I11d0a55f8efd1510478bd8dc6965a26118457802
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
7d6d7d6cb68ee37b4bee33588ba2594e9cf0c197 23-Feb-2016 Jack Yu <jackyu@google.com> Fixed data retry issues.

1. Fixed that data retry does not happen on time. Now we use the
exact timer to make sure retry will happen on time.
2. Fixed that data retry timer got started twice every time when retry
should happen.

bug: 27293537, 27158552
Change-Id: I05bbf0cb2717269984f3dc892af2a7a438ffd8f0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
5d5ec64fcd293928776aebe5c92278afb5bc019d 29-Jan-2016 Pavel Zhamaitsiak <pavelz@google.com> Modify CommandsInterface.setupDataCall()

- Change numeric parameters from String to int
- Move inside conversion of radioTechnology from RIL_RADIO_TECHNOLOGY_*
constants to values expected in RIL_REQUEST_SETUP_DATA_CALL parameter

Change-Id: I12e98c59ef115ee8d2454560a7a787e74dc95f49
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
9c32a1e9495f06905377c9e2b91c0ef9cdb0528f 26-Jan-2016 Jack Yu <jackyu@google.com> Reduced more radio log spam.

Reduced more radio log spam by some code path optimization.

bug: 25956251
Change-Id: If040543d0eb8e03a814225aa6694e22818c1d357
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
0e664d8c9ff3a1f2ab03d2bef4268615335ea1a2 17-Dec-2015 Jack Yu <jackyu@google.com> Data call retry refactoring

Moved retry manager from DataConnection to ApnContext.

bug: 22208242
Change-Id: I0baa80e06e6d815643782c2b549460547d0bfef9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
1a87ab3d7170d618f048c4f5af8c7504a587aaa5 10-Dec-2015 Jack Yu <jackyu@google.com> Merge from master

Change-Id: Ifbd86600111d2c444031ff608fab62fb2ee4b236
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
3f545d699edbff59ac301f3a47ead0ea223323fe 13-Oct-2015 Robert Greenwalt <rgreenwalt@google.com> Fix handling of connect req while connected.

Without this our generation number gets out of sync and
we ignore disconnection results.

bug:24462721
Change-Id: I348c70c4368c4d4d9ad466e4a6803f935bb43bc1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
1a1cc3f5759471edcf51294439f0e0b71922d6a0 23-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Fix connect during retry.

A previous fix to help us ignore obsolete messages introduced a bug:
in the DataConnection.mRetryingState if we get a request to CONNECT
we noted we already had that apnContext in our list and would not re-add.
This was a loose translation from when the list really was a list,
but now that it's a map we need to update the ConnectionParams with the
latest or we'll remember the old obsolete generation number.

The fix is a simple removal of the if(contains). The rest is some logging
improvements to help out next time.

bug:24242653
bug:22776917
Change-Id: I934cc6bdb4f165e84f19f9cdb05a86a44912bdf8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
37cacdfe7ed079d89fb9e80317b5dfd2acb975e5 16-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Fix other Disconnect msg senders

We changed the params on these messages from an ApnContext to a
Pair<ApnContext, Integer>. There were some call sites using the old
style and leading to errors.

bug:24115252
Change-Id: Ice3f075b3b93b9e76c0f0be7923f5ae2041f7ab1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
f892b4ddd020ce7876c7455572063756bce58e4e 15-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Merge "Ignore obsolete disconnect_completed msgs." into mnc-dr-dev
c9ddef3f0e72e76157b7b6b540b754d798fc5ccc 03-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Don't lose the apn data on RAT/DRS change

Even if we stated connected we'd wipe the extra field
in our network info object.

bug:23406274
Change-Id: Ib1556dec19c70fce55a81d175aaa3db1d8b1887c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
ea763d93b231bccf7e476b625fa028bef7874bf8 26-Aug-2015 Robert Greenwalt <rgreenwalt@google.com> Ignore obsolete disconnect_completed msgs.

Msg passing meant the disconnect_completed was getting processed after
a new connect request was received and acted on, so the disc_completed
would causes us to mark the state incorrectly and we'd get in trouble.

bug:22776917
Change-Id: I781c0619dade00554d368a649c3e43a32cf511dc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
5488b8a7a799bc89427a262a52cba74c26918ec3 15-Aug-2015 Amit Mahajan <amitmahajan@google.com> Change to not notify all of connected if EVENT_DISCONNECT is pending

Bug: 23067429
Change-Id: Ic3405608d7aadcf14b38e0ce4e35f7dcd1be0bf2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
6b8e1174d2ef221d6eeab348a819ce0003d3d5a4 08-Aug-2015 Chris Manton <cmanton@google.com> Save data registration roaming state

Some carriers require different APNs based upon
the roaming state returned in a previous registration
call. The carrier config has the option to override
roaming state. This change saves the proper roaming
state before the carrier config may override in order
to select the proper APN when setting up a data connection.

bug: 22990977
Change-Id: Id22a60efcbea9637018cc47e6d97f68eb053deb0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
1caf59d49e4713ad122bd9147c84759fcb935176 05-Aug-2015 Paul Jensen <pauljensen@google.com> Merge "Fix NOT_RESTRICTED network capability and enforce it." into mnc-dev
af171aa4dcf294bf2d1b9bed54ef9a6b0ec76361 31-Jul-2015 Paul Jensen <pauljensen@google.com> Fix NOT_RESTRICTED network capability and enforce it.

With this change:
1. NOT_RESTRICTED should be removed from NetworkRequests that bring up
special restricted carrier networks (e.g. IMS, FOTA).
2. NetworkRequests without NOT_RESTRICTED require CONNECTIVITY_INTERNAL
permission to register
3. Binding sockets to networks without NOT_RESTRICTED requires
CONNECTIVITY_INTERNAL permission

Bug:21637535
Change-Id: I5991d39facaa6b690e969fe15dcbeec52e918321
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
0d2abb5518d6a86619d2c2db04867c338b2092d4 17-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Support optional modem restart on certain errors.

Error counts are shared between all APNs, but fresh connect attempt
resets the counts.

bug:22455853
Change-Id: Id398a223d33d42f979b5cdc4a2bc263e92eb73cc
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
2dde8b1659b1eb231e667bc19307ef294b627beb 09-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Add logging for telephony network requests.

Try to track and retain what happens to requests to get to the bottom of
20731384.

bug:20731384
bug:21641873
Change-Id: Iabb01b3866c6748323a967e26c008246b29bdb17
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
6356f18e1120be1b90f18dcd647054a751c52a36 24-Jun-2015 Robert Greenwalt <rgreenwalt@google.com> Revive NetworkInfo's SUSPENDED state.

This got lost in the multinetwork work for L. It means
that if telephony stops having the ability to pass packets for a while
the rest of the platform doesn't know.

Telephony enters the suspended state if it enters a telephony call
while using certain radio access technologies, or if it switches to
one of those RATs while in a call. It also can enter this state if
it temporarily loses contact with the network - the modem will
not report the loss of the data call for an indeterminant time in
the hope that regaining the network will restore the connection
without harm to any ongoing ip layer interactions. For example
passing through a tunnel or taking an elevator trip may use this
mechanism.

bug: 19637156
Change-Id: I71d64d02088771df5d057eac8e8eba3785357e02
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
22ae2cc396de6231f06fbde617d79723092f17a5 04-Jun-2015 Feixiong Zhang <feixiong@google.com> add PhoneStateListener in DcController which fires at carrierNetworkChange event.

when DataConnection exits, it checks the mExecutingCarrierChange variable in
DcController. if it's under ExecutingCarrierChange, it updates the
reason field of networkInfo as carrierChange.

Bug: b/21706784
Change-Id: Ic9e7daf3bbc48db3cbe7be5ce1e2606f759d5edf
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
27b15ba477b11994dc61f8b96c666e4f8302a09d 13-May-2015 Vipin Sapra <vipin.sapra@gmail.com> Set reason code when disconnecting

Possible fix for https://code.google.com/p/android/issues/detail?id=152085

There is a bug identified in Android NetworkInfo API
(http://developer.android.com/reference/android/net/NetworkInfo.html)
since Android Lollipop 5.0.0 release. On Android 4.4 and prior, the
NetworkInfo API was correctly reporting disconnection reason. In
Android 5.0+, this NetworkInfo API does not correctly report the
reason of disconnection.

The submitted framework modification appears to fix this issue
and report the reason.

Change-Id: I4b43cf99983b2b369503c9484302972e3d0b2330
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
65bee39d7e417fb898c3948696d5d8a38046c449 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - tele service side

-redesigned based on ConnectivityService/NetworkCapabilities

Change-Id: I54074234e1117b41eb6ff761ead9241928585fc6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
0e42864afb21261d6bd2e9b4aa97f6d01d039a25 23-Feb-2015 Yashdev Singh <yashdevs@codeaurora.org> Telephony: Implementation of IWLAN

- Allow registration polling in radio off state.
- Disable default APN if current RAT is IWLAN.
- Allow non-default PDP activation in radio off state provided
current RAT is IWLAN.

Set data registration state in APM for IWLAN RAT
- APM causes data registration state to be POWER_OFF. Set it
to IN_SERVICE for iwlan case
- In APM, UNSOL_VOICE_NETWORK_STATE_CHANGED resets data RAT and
registration state to POWER_OFF. Ensure that this is done only
when current RAT is not IWLAN or when iwlan feature is not
available.

Change-Id: I419f3df987ef90bb5f31b0e381257a81dcc57c3b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
45eaa2335e64a8ff1ad8d5e8224c580ef996f370 12-Jan-2015 Wink Saville <wink@google.com> Add additional debug logging.

Bug: 18950975
Change-Id: I2d826dc4c355d7b940fee90f1bdff946128166e6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
957b01a07bfc7ffa29745b39970d930daf40f406 03-Dec-2014 Jeff Sharkey <jsharkey@android.com> Splice subscriber identity into NetworkMisc.

This gives us a path that strongly ties a network to the underlying
subscriber identity, which is needed for multi-SIM support.

Bug: 18012787
Change-Id: Ie8ddd2bd280af82fa1414c42c9ae4538557ca8a0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
ffdf8ce51e37e5e45791c9ea11604aa00dffc88e 15-Jul-2014 Jing Zhao <zhaojing@motorola.com> Separate voice and data roaming state & roaming type.

It is possible for voice and data registered on different network,
so the roaming state could be different.

Set voice and data roaming status and roaming type separately.

Bug: 17318123
Change-Id: Iede9132cbf94bc9971702bd9232374585edd5cd0
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
edb419cf73826d033065919f63e4ffdd7d76db81 25-Oct-2014 Robert Greenwalt <rgreenwalt@google.com> Add our subId to telephonys NetworkCapabilities.

Else it won't match people asking for this particular subId.

bug:18031008
Change-Id: If107042828c152ede51a2497a3859bc1a6c83694
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
8d4668a51a1ab0f7a240d76c1f59b1b7cb6e8c6b 24-Oct-2014 Amit Mahajan <amitmahajan@google.com> am d10a9057: am 796d3c22: Change to consider SIGNAL_LOST as permanenet failure only if not attached.

* commit 'd10a9057b2dd78ea698dd64c25f1a5eff0c07614':
Change to consider SIGNAL_LOST as permanenet failure only if not attached.
796d3c22f21041116110735c92d7e2c3a7c8f60d 24-Oct-2014 Amit Mahajan <amitmahajan@google.com> Change to consider SIGNAL_LOST as permanenet failure only if not attached.

Bug: 18062475
Change-Id: I6c1b220fbb3cc9798419ec190e83d3eaea16ec69
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
bc1e44907073900212fb87da372174483525f3ed 15-Oct-2014 Jay Shrauner <shrauner@google.com> Fix NPE when in initConnection()

Make sure mApnSetting is non-null.

Bug:18001406
Change-Id: Ieec252ae7252754c2967ef635085113e3f3ce36d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
d98d019d2a23bc7a8f96e8388021e5c87b71f158 02-Oct-2014 Gordon Gao <njh348@motorola.com> Optimize CDMA RATs TCP buffer sizes

1. Add CDMA 1xRTT buffer sizes
2. Add CDMA eHPRD buffer sizes

Bug: 17786212
Change-Id: I31633829576ced088d2bcf563205bbe216c648dd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
1484bfe9c58cfd2ddf59a5b8dad7373a36de946d 22-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Support bearer-specific DUN APN on CDMA

The DUN apn needs to be listed last, and this should only be used on networks
that don't show the apn editor.

bug:17571681
Change-Id: Iefa676d3c741ffb2eef201a8683429ed9dbe44d1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
aaf87159f290c573863038a4feb990f509d29ba0 25-Sep-2014 Sreeram Ramachandran <sreeram@google.com> Change type name of mobile from "Cellular" to "MOBILE".

Bug: 17609932
Change-Id: I22331426e04a5b45e73f9e768b7d88c1d4282c78
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
c149ab8bbbbf21b09b343878009d381bd4f2adf5 11-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Don't advertise dun insecurely

If there is a carrier specified apn from config.xml unless the current connection
is that setting, don't advertise dun.

If there is no carrier specified apn, the we're ok.

bug:17286525
Change-Id: I6c6f66e9b4dcc9a1dda6fa0fbfea7b7dcc155530
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
12fffcf0d8df6b8268806d9aa7cc7a662e73743b 30-Jul-2014 Jing Zhao <zhaojing@motorola.com> Fix improper mobile data connecting event

mAutoAttachOnCreation keeps DataConnection retry connecting
while ApnContext could still be turned into IDLE state.
Make mAutoAttachOnCreation configuable and keep consistency
between DataConnection and ApnContext

Bug: 17131842
Change-Id: Iebd4886959f5458c1b10c34d2e7f96f29c71d527
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
4a4195a11b125e56e25117e92c4c92543b14a5cb 21-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Handle case when switching phones.

If the DC exits the mApnContexts may be set to null - handle that case
and don't crash. We had nothing left to do anyway.

bug:17172374
Change-Id: I365c7903e91b9f7f6e95e23761ae57d138d57c0d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
8fa68fc28795817ce90fdf2a09b859a2d8453ffb 18-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Allow overriding Telephony tcp buffer sizes.

bug:16549611
Change-Id: Id2504b3f91d54eab459be11b61027394ea5dd80e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
27176514b825175a0f402fe7fc2eb4e281ce8bdd 07-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Set the tcp buffer sizes based on RAT.

Replicates the behavior from KK and before.
Also fixes the use of TelephonyManager constants instead
of RIL constants when setting bandwidth number.

bug: 16549611
Change-Id: I44cbd24974f1eaa0ac0c6a2310afb2e23ee94c8c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
e9701717e43cc5aacbcf624f77a53be92350662c 08-Aug-2014 w19976 <w19976@motorola.com> Configure MTU based on network PCO MTU parameter

Add logic to obtain the mtu from the network PCO parameter and set it to kernel
when the mobile data connection is established. When there is no PCO mtu configured
from the network, the mtu size defined in the corresponding APN will be used. In case
no mtu size is defined for an APN used for data connection, the MCC/MNC based MTU
defined in the framework overaly will be applied.

bug:17046179
Change-Id: I6465d4b8f2076aaa380ae3617fb3f24adbe136d4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
d781fb47e89bb978bae989d96928851c1197c7d2 25-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Notify the world when our LinkProperties change.

Change-Id: I19485346f0941e58c41ebdf5525a36f38800d081
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
305122cd621385652826cf7d8cd4e651dc6b5e9f 17-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Don't tear down existing cell connections.

NetworkFactories signals indicate if we're interested in making new
connections, but should not be used to tear things down.
ConnectivityService will communicate disconnects directly with NetworkAgents
when it wants them to tear down.

This fixes broken lingers and also potential score ties.

bug:15612739
Change-Id: Ib39ddadaac84898d080764afc365f09f7dce4ffa
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
91f8e19cdafe6382ec1469167e208e2e928123cc 13-Jun-2014 Wink Saville <wink@google.com> Merge "Merge kwd to master"
a8467dd0c524787104b1ccdddc5e8af10ba729ed 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
fd555a178c05e409917f22745743ed59402208e6 09-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Make NetworkCapabilities publicly immutable.

Applying API council comments.

bug: 15142362
Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
b372e78452b9432b51cda43f6264240b04d62dd4 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Correctly set NetCap for "*" APNs

bug: 15455750
Change-Id: I933502b417d7b15aaca98ec16f8d3c60de1e142d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
48579fcccf584fbddbff59eaae27d434316a4248 03-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Make requests for restricted networks not require unrestricted access.

Currently, calling startUsingNetworkFeature for a restricted APN
type (e.g., IMS or FOTA) will create a request that requires
NET_CAPABILITY_NOT_RESTRICTED. Because these APNs are restricted,
when we bring them up we conclude that it does not match the
unrestricted requirement, and we tear them down.

1. Clear the NET_CAPABILITY_NOT_RESTRICTED capability when
creating requests in startUsingNetworkFeature.
2. Refactor the code to a common function so this cannot happen
again.

Bug: 15191336
Change-Id: Id1ec79c58ff79b1a83457ffaecc57d50b61ed4e4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
62c954a7a7c4199956c127fcb575ed9114d44491 27-May-2014 Robert Greenwalt <rgreenwalt@google.com> Apply refactored NetworkFactory.

Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent.
Factory will track requests and by default give a single connect/disconnect api for ease
of use. Then NetworkAgent is created and destroyed as needed with very simple logic.

Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
(cherry picked from commit 071b9f85ac559a35430ed37c03a66271977b9d17)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
f3ab6ab303e1da929ce26b7c5d63565bff136221 23-May-2014 Robert Greenwalt <rgreenwalt@google.com> Revert "Switching to NetworkAgent API"

This reverts commit bce3d2575122929bb27ec8a37d56e96da39a3ca2.

Change-Id: Ia7d1752d4ba9f74f55657c7dbe4d64d60064394f
(cherry picked from commit 608588e9af271f0f5640236809f27c626f9d98e9)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
bce3d2575122929bb27ec8a37d56e96da39a3ca2 30-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Switching to NetworkAgent API

Change-Id: I7bca6f65ba1c616d821db50b0d24772520c787a7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
96cce86cf08e37e0f09ed5057b1196e26b302743 09-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Replace LinkCapabilities with NetworkCapabilities

bug:13885501
Change-Id: I4ebc184c29278c385364ab0993c8783dfd9086fb
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
9c180aedfc9f0d20525c0128487d3500e6c0a715 02-May-2014 Jason Monk <jmonk@google.com> Support renaming of ProxyProperties to ProxyInfo

Change-Id: I151bb50bfafac46ad375dec4908e0470f2823d8d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
53a0a7fd4954c3fd140e1123fcb0ac65d9e6c6c3 12-Nov-2013 Robert Greenwalt <rgreenwalt@google.com> Notify all ApnContexts on a conn of Disconnect

Without this you can end up with default thinking
it's connected when it's actually not.

bug:10212445
Change-Id: Iffe3bf2064ac6c9f8e68ddb0d2b5115deaac2033
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
4dbcf752298487d3af0ab778bfa804462ea24271 09-Aug-2013 Wink Saville <wink@google.com> am bc42667e: am 97978662: Restart, cleanup or retry inactve connections.

* commit 'bc42667e465b7dfacfe4592390b14c5518a05e41':
Restart, cleanup or retry inactve connections.
979786625e7ceacf4a545a25704ef8a15338a854 06-Aug-2013 Wink Saville <wink@google.com> Restart, cleanup or retry inactve connections.

Instead of retrying all inactive connections, restart radio on very bad
errors, clean those that are permanent failures and retry
the others.

Bug: 10131736
Change-Id: I2527b18d6cda52c55fb94be58fbb1a7a86818ef9
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
2ae42257ebafdbb0470cedeab41c2f1b418b285c 21-May-2013 Wink Saville <wink@google.com> DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
46f190903e93c653b90b970c1a21159bb957575b 18-Jun-2013 Wink Saville <wink@google.com> Fix NPE when exiting DcDefaultState.

Bug: 9263045
Change-Id: I62069114d5e9f2b0e90f892d2333b27fe693294d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
185370a905597ab107a8f2b0455440017e661321 04-Jun-2013 Wink Saville <wink@google.com> Merge commit 'c93dfda4' into fix-mergeconflict

* commit 'c93dfda4':
Do not retry forever in DataConnection.

Change-Id: I58bed4576638a459537d6b5a4c217e1f2fdb3826
fcc57e87d1620ab7dc877d65e7e85dca77132054 03-Jun-2013 Wink Saville <wink@google.com> Do not retry forever in DataConnection.

When we are initially to connect we limit the the number of
retries so as to go through the list of waiting apns. But if retry
forever is enabled, as it is with Verizon devices, we can burn the
battery down quickly because we're retrying with short initial
timeouts.

In this change I also increase the timeout between apn retries from
5 seconds to 20 seconds to further reduce battery drain when retrying.
And added a retry with a longer timeout if to keep the contract with
ConnectivityService that when enabled we will continue to retry.

Bug: 9240744
Change-Id: I45b9ec5300d602d838dbdeacdbd1fca0c4d65ee3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
203e588e3c42a81aa8a56f595119c181a63b12ca 31-May-2013 Wink Saville <wink@google.com> Handling data registration and radio technology changing.

When the DataRegistrationState (aka DRS) or RilDataRadioTechnology changes
aka Radio Access Technology or RAT) while retrying the DataConnection
StateMachine will return the connection as lost immediately. This allows
the connection to be retried with the correct handling of the changed
DRS or RAT quickly, rather than having to wait until retires are exhausted.

Changes:

- Pass RAT in bringUp
- Add the capability to register for DRS/RAT changes with SST
- When DRS/RAT changes in DcRetryState return LOST_CONNECTION to DcTracker

Bug: 9069568
Change-Id: Id4f29a63421af65ce153d24d646c09f7a1e8269b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
943b5090958bd8a2c0877218b1c8dbc72c4f8758 21-May-2013 Wink Saville <wink@google.com> DataConnection should not retry permanent errors.

Update DcFailCause with the "no retry" info from ril.h

Bug: 9040015
Change-Id: Ib94af9996c79800322251a45349b117e1f913269
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
1db7da14111228a5079d2970d7d0ce34173000b5 20-May-2013 Wink Saville <wink@google.com> Remap NONE to UNKNOWN on GENERIC_FAILURES for SETUP_DATA_CALL.

Bug: 9040003
Change-Id: I49340b88fe8cfe2c7895c7950e7b9ba0f947b145
(cherry picked from commit 912a45a1c0740a33938ec9c081d9f5baa984d376)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
9a480819c79acf31f328d254b1bb9fe6cfac2c34 03-May-2013 Wink Saville <wink@google.com> On EVENT_CONNECT in DcRetryingState do not go inactive.

Going to DcInactiveState from DcRetryingState on EVENT_CONNECT causes
us to forget we are retrying the original connection and if this is
a different connection we can disconnect completely when we shouldn't.

For example, when we're retrying the default connection and we get a
request to connect to supl or mms which are short lived connections
we'll become completely disconnected.

Bug: 8770139
Change-Id: Id271bc7f88d12e6d9fe9451b09f9c9412e6959f4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
c3b7c73fd6a494483e941adddcb3c0c23f4f0a70 28-Mar-2013 Wink Saville <wink@google.com> Add fix and add some debugging.

Bug: 8492574
Change-Id: I9cb1ab4ec3efb8186a4dd83736781835e1847720
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
2cc8c148fa4cb6cba5deac6b011268b4174a0b02 25-Mar-2013 Wink Saville <wink@google.com> Use Build.IS_DEBUGGABLE

Change-Id: I8d4a2e83b8cdcf86cafb622013868f117d0701ef
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
454b1dfd508844b42eb775e4ab2359be74d3672b 23-Mar-2013 Wink Saville <wink@google.com> Rename a few files and variables.

Change-Id: I4e90dbf57797b9485920f943e24fa7a4c29d070b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
ff4e317d24f0d23bdc0f306d53ddc51f2f1ecf6a 22-Mar-2013 Wink Saville <wink@google.com> Move retrying into DC.

This is the first step in refactoring for bug 4772191.

Bug: 4772191
Change-Id: Id54a20ab192783c63939158670faaf531a527640
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
22d85a8e3a575a6d01d2c788587971657dfe20c6 23-Feb-2013 Wink Saville <wink@google.com> Clean up member variables.

Change-Id: Ib60f350131ade626aca682407ea0b4377b16f6c6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
cbaa45bbf2cab852b6c9c3a887e9f803d4e857ea 23-Feb-2013 Wink Saville <wink@google.com> Clean up

- Add @Overrides where needed.
- Update javadoc comments
- Remove extra semi-colons
- Rename DataConnection.java to DataConnectionBase.java
- Rename GsmDataConnection.java to DataConnection.java
- Add defaults to switch statements
- Remove/fix most "if (false)" statements. Fixed by using a CONSTANT
- Fix hidden variables by hoisting to base class or renaming
- Tweak some debug output

Change-Id: If38de2fdeaacafbf40cdfd7f84dc5c52030ba2a3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java
4918296afe1c667e9523cdfc799f558f7ebc2bfb 21-Feb-2013 Wink Saville <wink@google.com> Move DataConnection related classes to their own package.

Change-Id: I34ee9e87545e6b15ebf4d3ec101d4ed3d322f7b2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DataConnection.java