History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
443b0ae99852b74898fa688f90dee303a80c1b89 15-Jul-2016 Robert Greenwalt <rgreenwalt@google.com> Exclude DUN from data-disabled override.

Don't use DUN's restricted status to override the user, carrier
or netpolicy control over metered networks. This should be fixed
better in the future, but this targeted fix should be good for now.

bug:30120613
Change-Id: I38217b6537cc66b4d678fb82d7fa95388d5a5d6c
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
cda5b321ceddda71d47ec2fe619d6624dd2ea3da 24-Jun-2016 Robert Greenwalt <rgreenwalt@google.com> Better matching of PCO data to DataConnections

There appears to be latency between the Dc connecting and
the DcController learning about it. Try other options:
- look into each Dc to see if it has the cid set
- look for a Dc with CONNECTING ApnContext

bug:29624199
Change-Id: I20e34ff38491a5d1ae404b37704d66642adbf064
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
2712f31b9ad49d926c68d9c3f227acc0478cac61 24-Jun-2016 Sanket Padawe <sanketpadawe@google.com> Fix emergency call issue

When emergency network request is received, mms id is being
returned in apncontext instead of emergency id.

Fix is to replace mms id with emergency id for emergency request.

Bug: 29577522
Change-Id: I288ce4bf6f855fc5fe4ce93b6449ae16c4dd6dfb
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
4fdc57b9bf223c908474c4545cc6f63456117a3b 20-Jun-2016 Sanket Padawe <sanketpadawe@google.com> Fix crash in ApnContext after EVENT_DISCONNECT_DONE event in DcTracker.

+ This issue is fixed by setting non null reason for ApnContext from
DcTracker.
+ Minor fix over ag/1112902 which actually helped figure out that we were
passing null reason code to ApnContext.

Bug: 29346477
Change-Id: I40c007de804bd5b10b28736c3012c6c88de8811e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
1e9bc601e633e33e5e99907fd04b8c59be7b2e5d 09-Jun-2016 Chen Xu <fionaxu@google.com> Merge "shorter delay of apn retry for certain reasons" into nyc-mr1-dev
d9ba2683e866ca3a813684a90472062232cbc732 06-Jun-2016 fionaxu <fionaxu@google.com> shorter delay of apn retry for certain reasons

this is based on external
CL:https://partner-android-review.googlesource.com/#/c/467885/1

Bug:26928735
Change-Id: Ie9dd07f13874d225b491d50f44d7daa3daaab34e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
692640f429efa8e292c6261472b2c682e1079f8e 03-Jun-2016 Robert Greenwalt <rgreenwalt@google.com> Support requesting restricted default

Carrier app will need to use the default cell network when the carrier
has restricted that (reprovisioning when out of bytes). Add support
for bringing up internet with restricted capability, sidesteping
user/carrier enablement.

bug:28567303
Change-Id: I83fc29fa6707a7014ae1bc2e914cfa120f07c983
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
9521f8c043c167e3a3fa97ea50bf1e2e0cd188a1 09-Mar-2016 Robert Greenwalt <rgreenwalt@google.com> Improve TelephonyNetworkRequest logs.

Preserve historic logs and list them in bugreports.
General aid to debugging.

bug:27517447
Change-Id: I5d82047b9c0a84edb9ae40782fd6868360bebeaf
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
9e0be93719c4de0cedec33508c799f3b2f223454 05-Mar-2016 Jack Yu <jackyu@google.com> Added unit test cases for ApnContext

bug: 25691379
Change-Id: I1a4a10dd6594b8a102ff6af5674ab899bad6f338
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
e9bf1f44cc6a888fff8419c8f35612d503ba3216 05-Feb-2016 Robert Greenwalt <rgreenwalt@google.com> Create TelephonyNetworkFactory.

It replaces DctController. Also adds tests.

Change-Id: I7cff9197fe26dee3eb7df9be166b92e4c26e8970
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
6bfc71d2b5340f6274b3e63926a7068e364fc9ff 28-Jan-2016 Robert Greenwalt <rgreenwalt@google.com> Make PhoneSwitcher class.

Monitors subscription->phone mapping, default subscription setting and
all mobile network requests to prioritize things, activate/deactivate phones
and also notify the curious about which phones are currently active.

Change-Id: I0ee67e6b05a5571b2f3c4e641823cf029420cb50
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.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/ApnContext.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/ApnContext.java
e8b308038b3449509c92478ee26096302d768855 18-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Don't allow the apn to decrement below 0.

bug:24106542
Change-Id: Ic749b05845309412804d782b242dc7ecb516c5be
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.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/ApnContext.java
ee665b78ad648abd98b019a9c9047f206ed22994 30-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Release DataConnection when a rety is interupted

We had code that simply set the ApnContexts state to IDLE, but
there was still a connection between ApnContext and DataConnection,
so when looking for a DC, we'd skip this one (it's busy) and when
the rety alarm fires we end up with a second DC attempting to connect
to the same APN.

bug:22410092
Change-Id: Id4ab6a4f1f08588e552e846a1986f93192a72568
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
2f5e0f602beab84c8ba1a9c8ee7736c9df62b0be 29-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Revert "DO NOT MERGE Add logging to detect the start of a sync problem."

This reverts commit f65485c99cf0fb0e844ae9e39c2c6cd6bae0fd2c.

bug:22632129
Change-Id: I531668bc0874c71c70773ceda071cf5a7f5c1121
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
f65485c99cf0fb0e844ae9e39c2c6cd6bae0fd2c 24-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE Add logging to detect the start of a sync problem.

This should be removed prior to shipment!

The DctController is getting out of sync with the ApnContexts. Add a callback
mechanism so the ApnContexts can let DctController know when they apply a change
and then when all is quiet we can compare and verify everything is good.

Potentially can fix the problem detected too (if there should be no live requests, nuke
the ref counts) but currently turned off so people will notice problems (battery life) and
file bugreports with the data of how it started.

bug:22632129
Change-Id: I84a67687f0b6dc43b2e429943935f4045ffc51ed
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
51f4bf7f29ffeaa60a8e7d4d1da7b30f20e8a420 21-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Log any Orphaned NetworkRequests.

Try to figure out why the ApnContext isn't told the request is dead.

bug:22632129
Change-Id: I24a592e6a45c4476fabff50d8c640fb6ec6af6e1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.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/ApnContext.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/ApnContext.java
801a47b6bd24dec45fa0cd554bcf301478e93f47 17-Oct-2014 Sukanya Rajkhowa <srajkh@codeaurora.org> Fix data call issue for null APN

When data call is setup on null apn, data call is deactivated
immediately after being set up as Telephony is treating null APN
as provisioning APN. This is because the xml entry for
provisioning APN is empty which is matching empty APN name.

Add isEmpty check for provisioning APN xml entry.

Bug: 22305124
Change-Id: Ifbb3aaaf18926b9209aa05f8346da839178dc803
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
9232dafa7ea833fc0b3a6024d6c7e23fc8e961ea 01-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Log reduction

Found all this while checking out 21957591. My work there was
a bust, but don't want to lose this logging cleanup.

bug: 22225815
Change-Id: I7a3e932e06d035066d4adbc10c99ecf2a20be5fd
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
c2d1d6b2725b4611360d2725624a0d8905d75694 16-Dec-2014 Robert Greenwalt <rgreenwalt@google.com> Don't rety permanent failures on every RAT change

The code to retry on RAT change was added to catch cases where
we had disconnected because of the RAT (specifically the
RAT disallowed simultaneous voice and data). Made our
RAT-change handler more focused so it now will
retry failed networks if the new RAT causes a change
in voice concurrency or APN list.

bug:17944570
Change-Id: I3d46328f45584fdf9cf927b176104ff2c8233304
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
071b9f85ac559a35430ed37c03a66271977b9d17 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
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.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/ApnContext.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/ApnContext.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/ApnContext.java
9f332c9a4f464b36bac30555c5cfa6431e7211f8 19-Sep-2013 Wink Saville <wink@google.com> Fix potential NPE in ApnContext.isProvisioningApn

Bug: 10839016
Change-Id: Ifa0f974c0df69928a5d1e29c215b5bcf8c4a5fb1
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.java
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/ApnContext.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/ApnContext.java
0f94d3aebcf0daf154bf0876164844d09067f904 30-Apr-2013 Wink Saville <wink@google.com> Add synchronized to toString.

If toString is called at the same time removeWaitingApn we can
get a ConncurrentModificationException.

Bug: 8727610
Change-Id: I95c2181a1a5abc1a28a9e4eb337b674e49847103
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ApnContext.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/ApnContext.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/ApnContext.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/ApnContext.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/ApnContext.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/ApnContext.java