release-request-fa02eb8f-fdf1-40ba-9075-65e153b2a88b-for-git_oc-vts-release-4291897 snap-temp-L89400000095851472

Change-Id: I6d8ed9b47822053614b98759a4993a7a644d7ae0
diff --git a/Common/src/com/googlecode/android_scripting/facade/ConnectivityManagerFacade.java b/Common/src/com/googlecode/android_scripting/facade/ConnectivityManagerFacade.java
index 5b5f1e1..5492364 100644
--- a/Common/src/com/googlecode/android_scripting/facade/ConnectivityManagerFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/ConnectivityManagerFacade.java
@@ -915,6 +915,15 @@
         return bucket.getTxBytes() + bucket.getRxBytes();
     }
 
+    @Rpc(description = "Get network stats - received bytes for device")
+    public long connectivityGetRxBytesForDevice(
+          String subscriberId, Long startTime, Long endTime)
+          throws SecurityException, RemoteException {
+        Bucket bucket = mNetStatsManager.querySummaryForDevice(
+              ConnectivityManager.TYPE_MOBILE, subscriberId, startTime, endTime);
+        return bucket.getRxBytes();
+    }
+
     @Rpc(description = "Returns all interfaces on the android deivce")
     public List<NetworkInterface> connectivityGetNetworkInterfaces() {
         List<NetworkInterface> interfaces = null;