History log of /frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e8d83a417fca36dec9bae43d800129735e6cbb95 04-Oct-2017 Yuan Ye <yuan.ye@sony.com> Reset carrier actions when APN change

If network has rejected with Cause#33 due to incorrect APN,
CarrierDefaultApp disables metered APN as default.
Afterwards, the metered APN remains disabled even if it is reset to
default APN(correct APN). Device fails to avail data services.
To avoid this, reset carrier actions when APN change.

Test: manual - Confirmed that carrier data restriction was reset when
APN changed.
Test: auto - Confirmed that run CarrierActionAgentTest and it has no
problem.
Bug: 67988743
Change-Id: Ib08664f8bb8abbf1c28af1e57a851165b9d80215
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
a64092befe003884c4c8951438ab311ce8f92824 29-Nov-2017 Malcolm Chen <refuhoo@google.com> Rename isDataEnabled and getDataEnabled in DcTracker.

Rename isDataEnabled and getDataEnabled to isDataEnabled
and isUserDataEnabled to better clarify their functionality.

Bug: 69814555
Test: build
Change-Id: I8b05f02103e017c746850afd2ddfc366e1ce6a64
Merged-In: I8b05f02103e017c746850afd2ddfc366e1ce6a64
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
d97cb9753d2b17ae21c522d9a438b0e38c529121 24-May-2017 fionaxu <fionaxu@google.com> Notify carrier app of other default networks

When we need to disable data its common for the carrier to send the user
text messages explaining why with a URL. The Carrier App will
url-clicks in this case and reroute them to a private network. However,
it's possible for the user to get other sms's with links and if there is
another network to load them on we should not hijack them. This CL
adds a new carrier action for carrier apps to register/unregister
notifications of other networks from ConnectivityService instead of
notifying only when carrier apps has disabled cell data. in that way
framework has decoupled the logic of network status registration from
cell data status.

Bug: 62487488
Test: Manual
Change-Id: I0a7b87ad07a0cf2fdb14f939e8f2865eedf7b008
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
5ddb6ec362673fab1ece512d4c9f1068e1642697 27-Jul-2017 fionaxu <fionaxu@google.com> add NullPointerCheck for serviceStateTracker

ServiceStateTracker is not created inside GsmCdmaPhone, thus there is no
SST inside SipPhone. Add a null pointer check inside CarrierActionAgent.
In the long term we should move CarrierActionSignal and
CarrierSignalAgent from Phone to GsmCdmaPhone

Bug: 64104240
Test: Manaul test by making a SIP call
Change-Id: Ia48ff128c9656446058816043cc825a1f60c8a20
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
0d6ff7958dac61b9e2d689267c34ddfa0c666d9d 21-Jul-2017 fionaxu <fionaxu@google.com> reset carrier actions when exits roaming state.

carrier apps might restrict mobile data if users enter roaming state
without any romaing plan/balance. however when users exit roaming state,
we should reset carrier data restrictions to re-evaluate data state.

Test: manual test roaming on->off->on by setprop
telephony.test.forceRoaming

Bug: 63819703
Change-Id: If91042054ce973c384fe03aa0b733de9f8033bf6
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
8a8637aa1f387f135b7891ffe181465e1a848b10 14-Jul-2017 fionaxu <fionaxu@google.com> support carrier action reset on mobile data off

Bug: 63681072
Test: Manual test
Change-Id: I6fab9b4ccc58e3befe5f9f8f5f72b8189308bde3
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
74d69b0725425e23b5733c9110160cd4a27c9ac7 09-Jun-2017 fionaxu <fionaxu@google.com> add an extra for rebroadcast of sim_state_change

Bug: 62459330
Test: Manaual Test
Change-Id: Ib28e61906cc818d833175e756be729011a03603e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
afffe1b3e671ba002a5bf79a2f59ec8e6c8bd6a3 10-May-2017 fionaxu <fionaxu@google.com> reset carrier actions on APM

Bug: 37913717
Bug: 37850264
Test: Manual test. toggle APM
Test: runtest --path
frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/CarrierActionAgentTest.java
Change-Id: Ie2d4c453438c1cabb7576e4d1aa4e61adba43c5e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
4c9ca958d2ecb645d643d08c65f931e255138d71 27-Apr-2017 fionaxu <fionaxu@google.com> new carrier signal/action on carrier action reset

notify carrier apps on carrier action reset, usually when sim loaded
or sim absent. only sent those reset signals to configured carrier apps
carrier apps could reply on this new intent instead of sim_state_changed
to avoid unnecessary wake-ups, for example an VZW app might be awake
even under AT&T due to the general SIM_STATE_CHANGED broadcast.

Bug: 34626476
Test: Manual test on TMO and READY/ZIP SIM
Change-Id: Icc8bd843ddaccd3a96950831c45ff6825fb0cc9e
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
f87876483d4ef762a8cd46307aec37e5c2907ef7 21-Mar-2017 fionaxu <fionaxu@google.com> reset carrier actions on sim loaded

There are some use cases where carriers activate SIM's data service by
updating EF files with an ICC refresh event. Slightly different from hot
sim swap, this might not go through the complete SIM loading procedure
and won't recreate any new Icc Record as well.
- Move carrier action reset to recordsLoaded event handler which handles
both ICC refresh and hot sim swap.
- refactor carrier action reset from individual modules to carrier
action agent

Bug: 36154348
Test: Manual
Change-Id: I7af8b1d956ba7dfa1efdc8858b49903f24382dbe
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java
b5771d36210a751e6ec916556ad0f20fcb9b4288 18-Nov-2016 fionaxu <fionaxu@google.com> Initial change on carrier signal filtering

- support new carrier configs with two signal list per carrier app
- support new broadcast mechanism to comply with background-check restriction on O.
- add carrier action agent for dispatching carrier actions

Bug: 30958215
Test: runtest --path
frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/CarrierSignalAgentTest
Change-Id: Ibf7496bdb1ba8c85384da0b667a5610a52b45d80
Merged-In: CHANGE-ID I4e9e2f56e991e9d6753f8d7e877add5ada595972
/frameworks/opt/telephony/src/java/com/android/internal/telephony/CarrierActionAgent.java