Why roaming data is recorded in NetworkStatsService but not in ThrottleService

45 views
Skip to first unread message

sharon.hou

unread,
Feb 8, 2012, 9:58:41 PM2/8/12
to android-platform
Hi,

In ICS NetworkStatsService, record mobile data no matter roaming is
truned on or off, but ThrottleService does not record the roaming
data . Anyone know what's the consideration for this solution ?
Thanks.

ThrottleService.java
// don't count this data if we're roaming.
boolean roaming = "true".equals(

SystemProperties.get(TelephonyProperties.PROPERTY_OPERATOR_ISROAMING));
if (!roaming) {
mRecorder.addData(incRead, incWrite);
}

Regards
Sharon

Jeff Sharkey

unread,
Feb 10, 2012, 2:42:36 AM2/10/12
to android-...@googlegroups.com
ThrottleService is older, and doesn't have the same level of
granularity as NetworkStatsService. I'm not sure why it's omitting
roaming traffic.

j

> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>

--
Jeff Sharkey
jsha...@android.com

Reply all
Reply to author
Forward
0 new messages