summaryrefslogtreecommitdiffstats
path: root/src/java/com/android/internal/telephony/DataConnectionTracker.java
diff options
context:
space:
mode:
authorNaveen Kalla <nkalla@codeaurora.org>2012-07-18 23:25:13 -0700
committerNaveen Kalla <nkalla@codeaurora.org>2012-08-03 13:59:07 -0700
commitb3a03455be44a2a0ffbeb757b193d860c1878599 (patch)
tree92185fc162c15e108d72eed6167c85fb1d0f0470 /src/java/com/android/internal/telephony/DataConnectionTracker.java
parentc38bb60d867c5d61d90b7179a9ed2b2d1848124f (diff)
downloadframeworks_opt_telephony-b3a03455be44a2a0ffbeb757b193d860c1878599.zip
frameworks_opt_telephony-b3a03455be44a2a0ffbeb757b193d860c1878599.tar.gz
frameworks_opt_telephony-b3a03455be44a2a0ffbeb757b193d860c1878599.tar.bz2
Add DORMANT state to GSM data link activity
GsmDataConnectionTracker sets its activity flag to DORMANT and notifies LinkActivity when RIL indicates that all its data calls are in dormant state (i.e. active is set to 1 in UNSOL_DATA_CALL_LIST_CHANGED message for all data calls) This indication is needed so that the Android public API getDataActivity() can return DATA_ACTIVITY_DORMANT when Android applications invoke this API while the phone is on a WCDMA data call. Change-Id: I81b9db36375fea4f9fb946ddd5ddf0e1d16cbbab
Diffstat (limited to 'src/java/com/android/internal/telephony/DataConnectionTracker.java')
-rw-r--r--src/java/com/android/internal/telephony/DataConnectionTracker.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/java/com/android/internal/telephony/DataConnectionTracker.java b/src/java/com/android/internal/telephony/DataConnectionTracker.java
index 89a02d3..ef50b91 100644
--- a/src/java/com/android/internal/telephony/DataConnectionTracker.java
+++ b/src/java/com/android/internal/telephony/DataConnectionTracker.java
@@ -65,6 +65,13 @@ public abstract class DataConnectionTracker extends Handler {
protected static final boolean DBG = true;
protected static final boolean VDBG = false;
+ /**
+ * Constants for the data connection activity:
+ * physical link down/up
+ */
+ protected static final int DATA_CONNECTION_ACTIVE_PH_LINK_INACTIVE = 0;
+ protected static final int DATA_CONNECTION_ACTIVE_PH_LINK_DOWN = 1;
+ protected static final int DATA_CONNECTION_ACTIVE_PH_LINK_UP = 2;
/** Delay between APN attempts.
Note the property override mechanism is there just for testing purpose only. */