Home
last modified time | relevance | path

Searched refs:kernelToTag (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tests/net/java/com/android/internal/net/
DNetworkStatsFactoryTest.java27 import static com.android.server.NetworkManagementSocketTagger.kernelToTag;
96 assertEquals(0, kernelToTag("0x0000000000000000")); in testKernelTags()
97 assertEquals(0x32, kernelToTag("0x0000003200000000")); in testKernelTags()
98 assertEquals(2147483647, kernelToTag("0x7fffffff00000000")); in testKernelTags()
99 assertEquals(0, kernelToTag("0x0000000000000000")); in testKernelTags()
100 assertEquals(2147483136, kernelToTag("0x7FFFFE0000000000")); in testKernelTags()
102 assertEquals(0, kernelToTag("0x0")); in testKernelTags()
103 assertEquals(0, kernelToTag("0xf00d")); in testKernelTags()
104 assertEquals(1, kernelToTag("0x100000000")); in testKernelTags()
105 assertEquals(14438007, kernelToTag("0xdc4e7700000000")); in testKernelTags()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java23 import static com.android.server.NetworkManagementSocketTagger.kernelToTag;
327 entry.tag = kernelToTag(reader.nextString()); in javaReadNetworkStatsDetail()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java149 public static int kernelToTag(String string) { in kernelToTag() method in NetworkManagementSocketTagger