[SM05] Enable record mobile network stats by collapsed rat type am: 0a59b1e599 am: ab08ed986a
Change-Id: Ie23c2131349412d9dae04db122d7b3d14047b87f
This commit is contained in:
@@ -45,7 +45,7 @@ public class NetworkIdentity implements Comparable<NetworkIdentity> {
|
|||||||
* {@link #SUBTYPE_COMBINED}.
|
* {@link #SUBTYPE_COMBINED}.
|
||||||
*/
|
*/
|
||||||
// TODO: make this flag configurable through settings. See http://b/146415925
|
// TODO: make this flag configurable through settings. See http://b/146415925
|
||||||
public static final boolean COMBINE_SUBTYPE_ENABLED = true;
|
public static final boolean COMBINE_SUBTYPE_ENABLED = false;
|
||||||
|
|
||||||
public static final int SUBTYPE_COMBINED = -1;
|
public static final int SUBTYPE_COMBINED = -1;
|
||||||
|
|
||||||
|
|||||||
@@ -1209,7 +1209,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
final int collapsedRatType = getCollapsedRatType(networkType);
|
final int collapsedRatType = getCollapsedRatType(networkType);
|
||||||
if (collapsedRatType == mLastCollapsedRatType) return;
|
if (collapsedRatType == mLastCollapsedRatType) return;
|
||||||
|
|
||||||
if (LOGV) {
|
if (LOGD) {
|
||||||
Log.d(TAG, "subtype changed for mobile: "
|
Log.d(TAG, "subtype changed for mobile: "
|
||||||
+ mLastCollapsedRatType + " -> " + collapsedRatType);
|
+ mLastCollapsedRatType + " -> " + collapsedRatType);
|
||||||
}
|
}
|
||||||
@@ -1217,7 +1217,7 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
mHandler.removeMessages(MSG_UPDATE_IFACES);
|
mHandler.removeMessages(MSG_UPDATE_IFACES);
|
||||||
mLastCollapsedRatType = collapsedRatType;
|
mLastCollapsedRatType = collapsedRatType;
|
||||||
mHandler.sendMessageDelayed(
|
mHandler.sendMessageDelayed(
|
||||||
mHandler.obtainMessage(MSG_UPDATE_IFACES), SECOND_IN_MILLIS);
|
mHandler.obtainMessage(MSG_UPDATE_IFACES), mSettings.getPollDelay());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user