History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
173f6b862ac39e12d4230413fb767f8ae4fd91de 06-Dec-2016 Wei Huang <wei.x.huang@sonymobile.com> DO NOT MERGE Fix : Reconnection not triggered when APN changed

When APN is changed, connections whose ApnSetting change will be cleaned
up. However, as ApnSetting#equals doesn't check mmsPort, username and
password, connection will not be cleaned up even if user changes them.
To fix the issue, add logic to check them and also introduced test case
to prevent same failure in the future.

Bug: 30207789 31172711
Test: Telephony unit test
Change-Id: I4ac75ebac1755a42c4e88da60b059874ea9f693c
(cherry picked from commit dae587b5bb307972b71baa760799948219e3081b)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
9cfc7dc5c097a8cba802a7b2256f2e6c27316492 02-Dec-2016 Jack Yu <jackyu@google.com> Fixed that MMS incorrectly treated as metered data traffic.

The metered APN types cache was built before carrier config
is ready. Get rid of the cache because it doesn't buy us too much
in terms of performance as carrier config already has its own
cache. This will ensure we load the up to date configuration
when we bring up the data call.

Test: Manually sent mms on Vzw network.
bug: 31233558
Change-Id: Id0c243a7a92bd6ab3e7a46053e173bf727041015
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
40b0e247a4a79e83f10b6410025ef1d7cc537692 24-Oct-2016 Robert Greenwalt <rgreenwalt@google.com> Use preferred APN for IA if it'll work.

The old behavior would prefer the first IA APN over the
preferred APN even if the preferred APN listed IA. Crazy!

Reworked ApnSetting.canHandleType to incorporate the "wildcard (*)
doesn't work for IA - that has to be explicitly listed" idea
and added tests for the function.

Test: added ApnSettingTest.testCanHandleType unit test
bug:31949444
Change-Id: I7d72dcbb3e068c2defcf4cfbc0c2a5a0f69f26b8
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
f6d865fd88a8326126e2b3f836b94cfebba3a5a7 25-May-2016 Derek Tan <derektan@google.com> Use getConfigForSubId instead of getConfig(int).

Per API review, we want to revert getConfig(int) to
getConfigForSubId(int) (ag/1075011). This CL changes all
callers to use getConfigForSubId(int).

Bug: 28295813
Change-Id: Ib55064226da5371d5acf014c0e0c20f3724d02c4
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
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/ApnSetting.java
783061ca03572618c01ce244d70d82fa4328d45f 01-Apr-2016 fionaxu <fionaxu@google.com> Infer Zero Rating based on NetworkCapabilities

when user toggle Disabled Cellular Data, we teared down all
DataConnections which are Metered(every APN type in the APN settings
are non-metered otherwise metered).

bug: 27788524
Change-Id: I0228e6ca166516f4f43e1c15d505fc29c31356df
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.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/ApnSetting.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/ApnSetting.java
63913dc903872c45bab7d2483d633d845dd9c5d6 13-May-2015 Amit Mahajan <amitmahajan@google.com> Move apn related helper functions from DcTracker to ApnSetting.

Bug: 10719093
Change-Id: I942ce59995afffd395f7d73e4fd70674db0f643f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
aaf0e8d623b1e94004557573aef9235177ca19e3 16-Apr-2015 Amit Mahajan <amitmahajan@google.com> Adding bearer_bitmask support.

Change-Id: I4da0bdd6de16963a60218789154da17f40fec8cd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
3262c21feb1eede2917450cfdfd3faa86ee70cab 25-Aug-2014 Shishir Agrawal <shishir@google.com> Allow MVNO tethering APNS through gservices flags.

The change allows multiple APNs to be specified in
Settings.Global.TETHER_DUN_APN. It also adds mvnoType, and mvnoMatchData
support to the ApnSetting class.

Bug: 12977533

Change-Id: I424fc405c1e6270bf55eadb130ed839d50575cf1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.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/ApnSetting.java
9d4ec7d45061f1da05f16cd244eb0a798e7f36bb 13-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "Revert "add apn setting parameters, and set apn parameters to bp""

This reverts commit 01f27d2c616797e5ba821159f8aca7b75aa54ae1.

Change-Id: Id9e7cf180092f320f635084f805b97f6409d0f03
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
01f27d2c616797e5ba821159f8aca7b75aa54ae1 12-Aug-2014 Amit Mahajan <amitmahajan@google.com> Revert "add apn setting parameters, and set apn parameters to bp"

This reverts commit f4b74430a8c22ab58c3fbbd6c9e7a594514a8615.

Change-Id: I1f300741d858ff39ae573e576479613b084e4616
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
f4b74430a8c22ab58c3fbbd6c9e7a594514a8615 10-Aug-2014 Hui Wang <huiwang@motorola.com> add apn setting parameters, and set apn parameters to bp

Change-Id: I395b499eb0730894620614b3261bb6a784d53f46
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.java
3ae69aa0ef2e02f140a2229e6a31cfd291528295 30-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Fix DUN based Tethering.

Turns out there was a case issue where the DUN commonly found in the tethering
apn config (in config.xml) didn't match the dun in PhoneConstants.APN_TYPE_DUN
so the NetworkCapabilities generating code din't mark it as DUN capable.

Fixed in the APNSetting as this is constructed infrequently.

bug:16242255
Change-Id: I90504e36bf58ee9b4eb1a757e7daf4786d47a875
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnSetting.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/ApnSetting.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/ApnSetting.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/ApnSetting.java