diff options
author | JP Abgrall <jpa@google.com> | 2011-09-02 15:36:33 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2011-09-15 02:29:03 -0700 |
commit | 98a4f7e7e12effb78b3d1035e5a670ccbbf5bca1 (patch) | |
tree | 20f0fb6384705f76b81497a9e04005fbae137ef0 /services/tests | |
parent | cb995121ee4bb4da236e8181fbfbd33bc2f9173a (diff) | |
download | frameworks_base-98a4f7e7e12effb78b3d1035e5a670ccbbf5bca1.zip frameworks_base-98a4f7e7e12effb78b3d1035e5a670ccbbf5bca1.tar.gz frameworks_base-98a4f7e7e12effb78b3d1035e5a670ccbbf5bca1.tar.bz2 |
NetworkManagement SocketTagger: Migrate QTagUid support to JNI.
* Instead of javaland trying to write commands to
/proc/net/xt_qtaguid/ctrl
use the libcutils/qtaguid.c support via JNI.
* Get rid of tagToKernel() handled by qtaguid library.
Requires libcutils changes from c/132538/
Change-Id: I9de5b3fa4a596c56835024c6d376769a0eea7db1
Diffstat (limited to 'services/tests')
-rw-r--r-- | services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java index 2a25866..ab1597c 100644 --- a/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java +++ b/services/tests/servicestests/src/com/android/server/NetworkManagementServiceTest.java @@ -21,7 +21,6 @@ import static android.net.NetworkStats.SET_FOREGROUND; import static android.net.NetworkStats.TAG_NONE; import static android.net.NetworkStats.UID_ALL; import static com.android.server.NetworkManagementSocketTagger.kernelToTag; -import static com.android.server.NetworkManagementSocketTagger.tagToKernel; import android.content.res.Resources; import android.net.NetworkStats; @@ -144,12 +143,6 @@ public class NetworkManagementServiceTest extends AndroidTestCase { } public void testKernelTags() throws Exception { - assertEquals("0", tagToKernel(0x0)); - assertEquals("214748364800", tagToKernel(0x32)); - assertEquals("9223372032559808512", tagToKernel(Integer.MAX_VALUE)); - assertEquals("0", tagToKernel(Integer.MIN_VALUE)); - assertEquals("9223369837831520256", tagToKernel(Integer.MIN_VALUE - 512)); - assertEquals(0, kernelToTag("0x0000000000000000")); assertEquals(0x32, kernelToTag("0x0000003200000000")); assertEquals(2147483647, kernelToTag("0x7fffffff00000000")); |