History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c2a3cd0bb99f1db4ebea7d1e2d4fb1f9ae1ff2d6 14-Jan-2015 Wink Saville <wink@google.com> Merge "Add additional debug logging." into lmp-mr1-dev
33d14d71f4b43d82d6c1b87d1d30cd86d13c5372 13-Jan-2015 Wink Saville <wink@google.com> Rename reg/unreg OnSubscriptionsChangedListener.

To addOnSubscriptionsChangedListener and
removeOnSubscriptionsChangedListener.

Bug: 18984103
Change-Id: I6636905093812af89c1c3702840e44c8c5ea891f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.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/DcTrackerBase.java
2bb2331aa5c5285f70a7404d61ee71ede4831056 06-Jan-2015 Shishir Agrawal <shishir@google.com> Data roaming/enable settings should be per phone on a single SIM device.

On a multi-sim device it is dependent on the subId. But for a single SIM
device it should be a property of the device.

Bug: 18814559
Change-Id: I53ae2604db856914453aa4861e12b051700d187c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
25e3f0d82828ddefcd1d58570b96c699b5017375 18-Dec-2014 Wink Saville <wink@google.com> Have SubscriptionInfo.getDataRoaming return proper value.

In DcTrackerBase.setDataOnRoamingEnabled
call mSubscriptionManager.setDataRoaming so SubscriptionInfo.getDataRoaming
returns valid information.

Bug: 18784668
Change-Id: Ibeef8049cfa2673fd6044ed726b0750383c8a355
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
c03103f7525d900f509283db959c2f8ae82b3fec 16-Dec-2014 Amit Mahajan <amitmahajan@google.com> Change to register content observer for data_roaming only after subId is
updated.

Bug: 18468163
Change-Id: Ie5358fb05c84939fe85eec262e3d07029732f712
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
8002387711e57456dbb4353eb894714592f303fb 11-Dec-2014 Wink Saville <wink@google.com> Change tests against INVALID_SUBSCRIPTION_ID to use isValidSubscriptionId.

Rename isValidSubId to isValidSubscriptionId.

Bug: 18668873
Change-Id: Ie937d20b1bc6d3d63b658abe48e0aa65d830181f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
652c1add01ea5f0c93aa60c262863147d3aeefc2 06-Dec-2014 Wink Saville <wink@google.com> Add debug dataEnable.

Change-Id: I4c2c49d9283652429affc190abacf7775ef3fe43
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
b42ae7c2b523a294799ecf5fc98126c1afe878bf 03-Dec-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Separate voice and data roaming state & roaming type." into lmp-mr1-dev
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/DcTrackerBase.java
f3f5ba2fb558379172195b2106feefbaa4c80133 02-Dec-2014 Junda Liu <junda@google.com> Merge "Add hasMatchedTetherApnSetting support." into lmp-mr1-dev
191fcbb559771da0f1339e1b90064cb444963811 26-Nov-2014 Amit Mahajan <amitmahajan@google.com> Change to use DATA_ROAMING setting correctly with subId.

Bug: 18466745
Change-Id: Ib2d7979d164ca3cf32c6619340fae1dc578ca686
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
80f67ef9e1603c8140a30d69c753e8d1813dc254 25-Nov-2014 Amit Mahajan <amitmahajan@google.com> Merge "Using default setting if setting+subid is not found." into lmp-mr1-dev
79f9daf3ef1c254439ed0e9a640df214c5f8196d 08-Nov-2014 Junda Liu <junda@google.com> Add hasMatchedTetherApnSetting support.

Code will check TETHER_DUN_APN setting and config_tether_apndata for APN that
matches current operator.

Bug: b/18158411
Change-Id: I0780bce96cfce8752e9bb0c10b9d156ef5a54f06
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
c9e4b3e8c1be7626ddbb81d49457e529a4e33847 19-Nov-2014 Amit Mahajan <amitmahajan@google.com> Using default setting if setting+subid is not found.

We should do this for other settings as well; fixing just this for now
to fix HFA bug.

Bug: 18392680
Change-Id: I360bc19c4501020afd9dfa1cfb7e66ce2fad9536
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
4b09dff383ae7dfca595aeeea886a594a1947340 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
b502a189332bb98b3b8e631181ca6ce5b7ee6ef9 17-Nov-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "telephony: Support mvno tethering apn through config_tether_apndata" into lmp-mr1-dev
f1d59f07cc3375134b448e849d33507af0662a1b 01-Sep-2014 Sungmin Choi <sungmin.choi@lge.com> telephony: Support mvno tethering apn through config_tether_apndata

The GSMDCT already has classfication of mvno operator in createApnList().
But, fetchDunApn() funtion has no consideration about mvno operator.
So it needs to be implemented for mvno operator.
As qualifier could not be classified by mvno parameter, the resource
should be changed to support multiple apns by one mcc/mnc.

The modified fetchDunApn() returns matched mvno apn or normal(not mvno) apn.

Bug: 10096119
Change-Id: I551236040c810b9603fb84542af9765184ce0c29
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
24b9b00e7058ef1f1b3f1d996b7e46b605c53770 07-Nov-2014 PauloftheWest <paulofthewest@google.com> Frameworks update to support Multi-SIM data roaming and networks.

Bug: 18293168
Change-Id: I727e79d2e5127214a1851d4228d3383dc58f8210
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
b237a11044ed842d2865ff8c8716befb06b6ca25 25-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.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.
d10a9057b2dd78ea698dd64c25f1a5eff0c07614 24-Oct-2014 Amit Mahajan <amitmahajan@google.com> am 796d3c22: Change to consider SIGNAL_LOST as permanenet failure only if not attached.

* commit '796d3c22f21041116110735c92d7e2c3a7c8f60d':
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/DcTrackerBase.java
014103f70a8d7dc5b0030f18641ca5d117197ce0 24-Oct-2014 xinhe <xinhe@google.com> turning off cellular data doesn't do anything when wifi is active and cellular is
unvalidated

The root cause of this bug is:
If you turn on wifi when mobile data is enabled, after WIFI network is ready:

(1) 10s later, ConnectivityService will decrease the APN ref counter and
deactivate APN mdataEnabled
(2) After 30s, ConnectivityService will finish linger and tear down all mobile
data connection

However, if you turn off the mobile data in that 30s race window, since APN is
mobile data deactivated already, the turn off mobile data will not tear down
connections anymore. And then if you trun on the wifi, ConnectivityService will
re-enable the mobile data network.

Our fix remove the check of existing data connection and force state change with
the manual UI setting since the enable/disable mobile data should behave like a
switch.

Bug:17282476
Change-Id: If4cc95985c9c7401ef179403274d7f598cbc4a40
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
2b6939b13ddf74a6bf6ad8467adea85c2c1b6c3d 06-Oct-2014 Amit Mahajan <amitmahajan@google.com> am 9f638ce6: Merge "fix issues to set data profiles" into lmp-dev

* commit '9f638ce6ea260b3139fb627d7d232e720e771e03':
fix issues to set data profiles
dd5db09966b6d24e2ba0f4d6f5d26985d3303540 01-Oct-2014 Hui Wang <huiwang@motorola.com> fix issues to set data profiles

Bug: 17781567
Change-Id: I62fbe1179c3d71f50b50c70f493e0f86c66c2991
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
d72a14d9b9f22b3a8927c5e67331d259ff3e560c 24-Sep-2014 Wink Saville <wink@google.com> Merge "[DS] Data supports DSDS" into lmp-sprout-dev
bda761320929f714951c328bfec6a51a1978db97 23-Sep-2014 Wink Saville <wink@google.com> [DS] Data supports DSDS

Main modification:
1. Handle network requests for different subscriptions according
to the priority of the ApnContext
2. Handle data attach and detach procedures when switching the active
data subscription

Modifications in TelephonyNetworkFactory:
1. needNetworkFor; network request are dispatched to DctController for
determining the active data subscription.
2. releaseNetworkFor; DctController is notified that the network request is
going to be released and the active data subscription may be changed
after the release of network request.

DctController maintains all cellular network requests. When a new request
is sent to DctController the active data subscription would be determined
again. If active data subscription has not changed, the reference count of
corresponding ApnContext is increased. Otherwise, data detach procedure
will be triggered on previous data subscription and a data attach procedure
is triggered on the new active data subscription.

After data is attached, all network requests for the subscription will be
executed. That means reference count of corresponding ApnContext will be
increased.

When a network request is going to be released, the rererence count of the
ApnContext will be decreased. DctController will determine active data
subscription again after the request is released and data detach and attach
procedures will be triggered appropriately.

Change-Id: Ie991096a986e4580efd453f0d20e43971e3fa9a2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
81d786d6755b0d18f1d0c6200d03a5c7757e06df 23-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> am 8f7d6f25: Merge "Filter Settings-based DUN apn by bearer." into lmp-dev

* commit '8f7d6f25466b779dc2b5d8f52e0130c319e16d54':
Filter Settings-based DUN apn by bearer.
a055c6e35a8b4cc3ffb9e2c1c6c5de87155d42a2 23-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Filter Settings-based DUN apn by bearer.

bug:17330745
Change-Id: Icae2cbc6db10c9cebc20f445ca0d71ea4ed6be77
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
6bc4098827f3070a44b5e51508b455d7c7be9c07 01-Sep-2014 Wink Saville <wink@google.com> ksd to lmp-sprout-dev

Change-Id: I94eb65c62231b5831570bb0cbbbd9c916bee0a37
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.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/DcTrackerBase.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/DcTrackerBase.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/DcTrackerBase.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/DcTrackerBase.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/DcTrackerBase.java
76f43316a5a6082d601bffd4b6898d0bd81e11fc 17-Jul-2014 ram <ram.pl@samsung.com> IMS: Adding emergency PDN handling for no sim case.
(Changes already reviewed on klp-wireless-dev with CL 171814)

Change-Id: I732ad4ec350256478bb2ac974722f3b9cbd0e483
Signed-off-by: ram <ram.pl@samsung.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
bc78e2f9988f380a3b88d4cb4a9c0b80b8f44bee 18-Jul-2014 ram <ram.pl@samsung.com> IMS: getPCSCF() API enhanced to support multiple APN types.

Change-Id: I5e60d4f153deff5f4cb658e0548a7d9bc399e8b7
Signed-off-by: ram <ram.pl@samsung.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
cf5205f70eb1eac497164124187a088ecb03fff5 19-Jun-2014 Ram <ram.pl@samsung.com> IMS: Adding Support for Emergency APN in Telephony Framework (opt/telephony)

(NOTE: No SIM case will be covered in next patch)

Change-Id: I87e653e29674f0e4821484908f799d6b84659c72

Signed-off-by: Ram <ram.pl@samsung.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
3aed18eb1c0f0dc3ed9e5793d31995ead0a6afe7 19-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Comment out some subId code that failed

mPhone was giving subId == -1 and failing all retries even well after boot
during OMA DM process and killing the process. Needs to be resolved. This
is a workaround.

bug: 15563289
Change-Id: I43d7ac82a64375f319b5e16f9fff37a2aefa8325
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
58c7be5dc52e9847470112c95aaf6bbab28f9b92 17-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Remove Obsolete enable/disableApn functions.

ConnectivityService now uses NetworkAgents instead and apps should use
ConnectivityManager.

Change-Id: Ifc5c8f5be802183e70a5d92b224c819815de00e6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
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/DcTrackerBase.java
235dd822c4ff48409d974b4fa7e789ea1fdaa7aa 10-Jun-2014 Amit Mahajan <amitmahajan@google.com> am 45a6dd79: am db480f2b: am 63dce7fe: Handle provisioning APN by turning off/on radio.

* commit '45a6dd79c6a54f90fd3737cdf9434fe68cf65f14':
Handle provisioning APN by turning off/on radio.
45a6dd79c6a54f90fd3737cdf9434fe68cf65f14 09-Jun-2014 Amit Mahajan <amitmahajan@google.com> am db480f2b: am 63dce7fe: Handle provisioning APN by turning off/on radio.

* commit 'db480f2b7bd5ae373458e78b267f939dbb95f5c6':
Handle provisioning APN by turning off/on radio.
63dce7fe9678c4610a410ebddd49518190f90386 07-Jun-2014 Amit Mahajan <amitmahajan@google.com> Handle provisioning APN by turning off/on radio.

The change is specific to AT&T as they want no signaling from device during provisioning.
I've tested following cases:
- expired AT&T SIM to make sure provisioning flow works as expected.
- airplane mode on/off with both active and expired AT&T SIM.
- wifi <-> mobile transitions work okay.
- LTE with Verizon SIM (basic sanity).

bug: 13190133

Change-Id: I215963174ae6000ae71d1dda693f95413f3d6e81
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
608588e9af271f0f5640236809f27c626f9d98e9 23-May-2014 Robert Greenwalt <rgreenwalt@google.com> Revert "Switching to NetworkAgent API"

This reverts commit bce3d2575122929bb27ec8a37d56e96da39a3ca2.

Change-Id: Ia7d1752d4ba9f74f55657c7dbe4d64d60064394f
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
3a6fa6e964a0cb361f79302afe18b8d7f5f9ceef 22-May-2014 Robert Greenwalt <rgreenwalt@google.com> Move dis/enable of mobile data to Telephony

ConnectivityService doesn't do this anymore.

bug:15077247
Change-Id: I3208c91b2c0369b594987f39ca29da7478435513
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.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/DcTrackerBase.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/DcTrackerBase.java
e03d37181d0e1846e259813d8c7ddeeb33d4d1df 19-Mar-2014 Wink Saville <wink@google.com> am d5adcb04: am c187f0e9: Handle provisioning APN by turning off/on data.

* commit 'd5adcb0455a2253b4e62d72bd8d997081013b266':
Handle provisioning APN by turning off/on data.
c187f0e9bfb897405d6c41f669fc2aadacb0ee1e 13-Mar-2014 Wink Saville <wink@google.com> 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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
b077af12dfe0abfcdd51ce5c9852940b89567e99 24-Aug-2013 Yashdev Singh <yashdevs@codeaurora.org> Handle DATA_CALL_LIST in DCC and update dataActivity properly

Update mActivity in DCC before notifyDataActivity. Without this change,
the notifyDataActivity was notifying incorrect data activity status
due to race condition between DCT when mActivity was updated and
DCC thread where notifyDataActivity was called.

Bug: 11596853
Change-Id: Iffb7bf369062264dd773338c732bc69318d90b73
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
ff51a1e0381b303e5bb7e4e0a8a6ad7d124437bd 12-Nov-2013 Sungmin Choi <sungmin.choi@lge.com> Use settings DB only when mcc/mnc matches SIM

Bug: 11600521
Change-Id: Iaeb1f279bf454ad0e7b933b8ac97d6384d599b59
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
3fad7daba62dcb7aafc4adc7f8cc123726ed5a7c 31-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Add single-pdn arbitration.

If a device or network can only support a single data connection
then we need to tear down lower priority connections in favor
of higher priority requests.

bug:10212445
Change-Id: I5ff38ae3be993aee51b6716045e6857b4f2942af
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
79391c0b55b4dbff55c2963bf7c56af0351dd274 05-Sep-2013 Wink Saville <wink@google.com> Merge commit 'ebca826a' into manualmerge

* commit 'ebca826a':
Add provisioning apn timeout.

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java

Change-Id: Ic89a22167b91e05068160a6ef0a194215913bfe7
e9063f6973039d66e12d0d930af03906d377969e 05-Sep-2013 Wink Saville <wink@google.com> Add provisioning apn timeout.

Bug: 10609993
Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
dd6e67fb45fa3ce0d43f8d874cd7ffaeddf0926f 04-Sep-2013 Lorenzo Colitti <lorenzo@google.com> Don't prefer APNs with no type for initial attach.

When choosing an APN for initial attach, we currently treat an
APN with no type the same as an APN that explicitly sets a type
of "ia". Such an APN will take priority over the preferred APN,
and will even take priority over APNs with the type explicitly
set to "ia".

This breaks attach on networks where there are multiple
MVNOs with the same MCC/MNC and one or more of them has an APN
with no type.

This seems to be unintentional, because the comments say that
APNs with a type of "ia" are preferred over default APNs. Fix it
by only considering an APN to be an initial attach APN if it
explicitly specifies a type of "ia".

Bug: 10614153
Change-Id: I8ed81ab3b58ae2aab2c76b644b653bb2c08da163
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
c9b81a0c05128694c617fcdd67e73821895822fe 29-Aug-2013 Wink Saville <wink@google.com> Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
43c93591d6261be6dad375979e98b0f6ad2771fd 29-Aug-2013 Wink Saville <wink@google.com> Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
876763e93ad0fa8006d290cc122f12d5e614efa2 26-Aug-2013 Wink Saville <wink@google.com> Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I4197c4236a402aa247f775e480e747620fd189bd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
16a01fe85457587ad5fd02ea06aa2882baf3535b 14-Aug-2013 Wink Saville <wink@google.com> Make EnableFailFastRefCounter a singleton.

Since there is only one DCT the mEnableFailFastRefCounter can be a
static/singleton and thus properly refcount the
CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA. There is still one problem
and that is if the PhoneApp crashes the singleton will be reinstantiated
and we'll have the same problem, but the frequency of this is small.
Also, the consequence of this is the DCT will be behaving "normally"
in that it will be attempting to do data-stall recovery although we
might like it not to it is the "normal" behavior.

Bug: 10304904
Change-Id: I38ff37445788ec952ca26be45b0374bc0a7ae34d
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
5016947ebeeb99d2f9cc2d902b46e9850b8b747b 09-Aug-2013 Wink Saville <wink@google.com> am d1eb383d: am a76fa595: Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev

* commit 'd1eb383d9bd58140607f212e46db64559f408780':
Add mEnableFailFastRefCounter.
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.
a76fa59574734cd1528dff2937231b78ea96e8f3 09-Aug-2013 Wink Saville <wink@google.com> Merge "Add mEnableFailFastRefCounter." into jb-mr2-dev
d54f9906ce6218a0a9e7a274342082901e7d5d18 07-Aug-2013 Wink Saville <wink@google.com> Add mEnableFailFastRefCounter.

Use a reference counter to control enabling fail fast
as there are now two entities which control failing fast:
ConnectifityService.checkProvisioningUrl and
MobileDataStateTracker.captivePortalCheckComplete.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
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/DcTrackerBase.java
1b5fe200e47f40f82f0e28502a5f40bce64a82e6 27-Jul-2013 Wink Saville <wink@google.com> Add support for an initial APN

Add PhoneConstants.APN_TYPE_IA, DctConstants.APN_IA_ID and enhance
setInitialAttachApn to use the new Initial Attach apn.

Bug: 8733613
Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
e056c8263473f67dc78630f5535c3664fabacd23 02-Jul-2013 Wink Saville <wink@google.com> Merge commit '1f95c96e' into fix-merge-conflict

* commit '1f95c96e':
Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker.

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTracker.java

Change-Id: I7c7234d1b13647a0534a77937ea51d4051043a55
ec107cb8a36181fa26e61ab51f423ba862deb0fa 28-Jun-2013 Wink Saville <wink@google.com> Add CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA to DcTracker.

To fail fast we turn off data stall detection and do no retires.

Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
017166876a51eda9ae6b3254119023604e249bc5 12-Jun-2013 Wink Saville <wink@google.com> Merge commit '6aebe10f' into fix-merge

* commit '6aebe10f':
Fail on permanent errors in DcTracker.

Conflicts:
src/java/com/android/internal/telephony/dataconnection/DcTracker.java

Change-Id: Icbee3d7c73fa170813e0683fb7c22dd78e08d6e8
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/DcTrackerBase.java
5d5eea6ed231163c225144316b0d1913d48678a4 26-Apr-2013 Sungmin Choi <sungmin.choi@lge.com> Set initial attach apn for LTE network

When mobile register LTE network, APN provided by operators is needed.
If mobile does not have apn information, it could not register LTE network.
To deliver APN information which is used during LTE attach to modem chipset,
setLteAttachProfile() and RIL_REQUEST_SET_LTE_ATTACH_PROFILE command is added.

When Telephony DB is loaded or Telephony DB is changed, follow steps.
1. If preferred default ApnContext exists, this is delivered to modem chipset.
2. If preferred default ApnContext is null, find other ApnContext which can
handle default type.
3. If other ApnContext which can handle default type does not exist, any other
ApnContext delivered to modem chipset.

Then modem register LTE network with APN information delivered from AP.

Bug: 8733613

Change-Id: If84c62cddccf96a531dae0527ed1a6592ae76201
Signed-off-by: Seonju Oh <seonju.oh@lge.com>
Signed-off-by: Hyejin Kim <hyejin.kim@lge.com>
Signed-off-by: Sungmin Choi <sungmin.choi@lge.com>
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
da1dd2e1bccb6141109a65d4e40253f39c405537 21-May-2013 Wink Saville <wink@google.com> Retry even on permanent failures.

The contract with ConnectivityService is that we should continue
to try to connect as long as we're ready. With this change we continue
but length the delay if there were permanent failures.

Change-Id: I83acfd2b07740d3650756aa20dad67b3c53e40d6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
74672e8ee972f12406b72551261b4cc7e0651933 18-May-2013 Wink Saville <wink@google.com> Fix setup of retry filters.

There were multiple registered filters for INTENT_RESTART_TRYSETUP_ALARM
this caused a retry not to fire and contributing to not recovering from
a RAT change error in identified by Samsung in post #22 of 8849653.

Bug: 8849653
Change-Id: I9c5cdb740d87a05dd69d72f8bc5596230b75d6f2
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
4750c8c11836338b024e159f04f0cbd13c7444b9 29-Mar-2013 Wink Saville <wink@google.com> Fix TODO in ApnContext#setDataConnectionAc.

Callers that really need to tearDown should call it directly
rather than as a side effect of setDataConnectionAc. The fixes
a "DcActiveState ERROR no such apnContext=" message caused by
an unnecssary tearDown when disconnecting.

Change-Id: I11321d098444659d99dec97b59041cefebb3285e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
c6bbea82bf74ebb492508199b6f3e172b7ce860a 28-Mar-2013 Wink Saville <wink@google.com> Map DcConstants.RETRYING to PhoneConstants.State.DISCONNECTED.

Previously RETRYING was mapped to CONNECTING this means that
ConnectivityService will not remove the route and a subsequent
change in IP addresses won't work because an old route has not
been removed.

By mapping to DISCONNECTED ConnectivityService will remove the
route. Another alternative would be to add PhoneConstants.State.RETRYING
but this is a simpler change so we'll try it first.

Bug: 8486114
Change-Id: I1c9946a1e441feda83f13730e835445624a87218
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java
1f2a2323572b2f3ab18234726cc1b048c670fbab 21-Mar-2013 Robert Greenwalt <rgreenwalt@google.com> Use new mechanism to get messenger to StateTracker

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.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/DcTrackerBase.java