diff options
| author | Bill Yi <byi@google.com> | 2014-04-29 16:07:29 -0700 |
|---|---|---|
| committer | Bill Yi <byi@google.com> | 2014-04-29 16:07:29 -0700 |
| commit | 293513a59d36cd96a3e474dde5981380d372d8c9 (patch) | |
| tree | 4268c9994be194a7f4fccdecd089af58516d0953 /core/java/android/net/MobileDataStateTracker.java | |
| parent | 1866e5dc8bb04b58a67e54f66cb4ec22e878667d (diff) | |
| parent | 0b62467b142b61ee1e449ba958ba37dfd961ef56 (diff) | |
| download | frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.zip frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.tar.gz frameworks_base-293513a59d36cd96a3e474dde5981380d372d8c9.tar.bz2 | |
Merge commit '0b62467b142b61ee1e449ba958ba37dfd961ef56' into HEAD
Diffstat (limited to 'core/java/android/net/MobileDataStateTracker.java')
| -rw-r--r-- | core/java/android/net/MobileDataStateTracker.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java index c106514..21352bf 100644 --- a/core/java/android/net/MobileDataStateTracker.java +++ b/core/java/android/net/MobileDataStateTracker.java @@ -566,6 +566,17 @@ public class MobileDataStateTracker extends BaseNetworkStateTracker { return false; } + + public void setInternalDataEnable(boolean enabled) { + if (DBG) log("setInternalDataEnable: E enabled=" + enabled); + final AsyncChannel channel = mDataConnectionTrackerAc; + if (channel != null) { + channel.sendMessage(DctConstants.EVENT_SET_INTERNAL_DATA_ENABLE, + enabled ? DctConstants.ENABLED : DctConstants.DISABLED); + } + if (VDBG) log("setInternalDataEnable: X enabled=" + enabled); + } + @Override public void setUserDataEnable(boolean enabled) { if (DBG) log("setUserDataEnable: E enabled=" + enabled); |
