summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-07-31 17:11:07 -0700
committerJeff Sharkey <jsharkey@android.com>2012-07-31 17:11:07 -0700
commit24d19fb6ab94cc5fd23f1c9a1d7916948a7fd571 (patch)
treed39fd80a88cb2bfc4ce8a0447856be565a57c632 /core
parent8ab8fbbf46d8779f53301e7f706f97608eed7117 (diff)
downloadframeworks_base-24d19fb6ab94cc5fd23f1c9a1d7916948a7fd571.zip
frameworks_base-24d19fb6ab94cc5fd23f1c9a1d7916948a7fd571.tar.gz
frameworks_base-24d19fb6ab94cc5fd23f1c9a1d7916948a7fd571.tar.bz2
Revert "API to adjust network stats."
Diffstat (limited to 'core')
-rw-r--r--core/java/android/net/INetworkStatsService.aidl3
-rw-r--r--core/java/android/net/TrafficStats.java28
2 files changed, 0 insertions, 31 deletions
diff --git a/core/java/android/net/INetworkStatsService.aidl b/core/java/android/net/INetworkStatsService.aidl
index 4d46334..b7b8731 100644
--- a/core/java/android/net/INetworkStatsService.aidl
+++ b/core/java/android/net/INetworkStatsService.aidl
@@ -45,7 +45,4 @@ interface INetworkStatsService {
/** Advise persistance threshold; may be overridden internally. */
void advisePersistThreshold(long thresholdBytes);
- /** Adjust recorded network stats. */
- void adjustNetworkStats(int uid, int tag, long rxBytes, long rxPackets, long txBytes, long txPackets, long operationCount);
-
}
diff --git a/core/java/android/net/TrafficStats.java b/core/java/android/net/TrafficStats.java
index b66c2fe..e437d2e 100644
--- a/core/java/android/net/TrafficStats.java
+++ b/core/java/android/net/TrafficStats.java
@@ -88,13 +88,6 @@ public class TrafficStats {
*/
public static final int TAG_SYSTEM_BACKUP = 0xFFFFFF03;
- /**
- * Default tag value for cloud messaging traffic.
- *
- * @hide
- */
- public static final int TAG_SYSTEM_CLOUD_MESSAGING = 0xFFFFFF04;
-
private static INetworkStatsService sStatsService;
private synchronized static INetworkStatsService getStatsService() {
@@ -253,27 +246,6 @@ public class TrafficStats {
}
}
- /**
- * Adjust network statistics for the given UID and tag by the requested
- * amount. This can be used to correctly account network usage performed on
- * behalf of another application. Values can be negative.
- * <p>
- * Requires that caller holds
- * {@link android.Manifest.permission#MODIFY_NETWORK_ACCOUNTING} permission.
- *
- * @see #setThreadStatsUid(int)
- * @hide
- */
- public static void adjustNetworkStats(int uid, int tag, long rxBytes, long rxPackets,
- long txBytes, long txPackets, long operationCount) {
- try {
- getStatsService().adjustNetworkStats(
- uid, tag, rxBytes, rxPackets, txBytes, txPackets, operationCount);
- } catch (RemoteException e) {
- throw new RuntimeException(e);
- }
- }
-
/** {@hide} */
public static void closeQuietly(INetworkStatsSession session) {
// TODO: move to NetworkStatsService once it exists