Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java25 import static com.android.server.NetworkManagementSocketTagger.kernelToTag;
86 assertEquals(0, kernelToTag("0x0000000000000000")); in testKernelTags()
87 assertEquals(0x32, kernelToTag("0x0000003200000000")); in testKernelTags()
88 assertEquals(2147483647, kernelToTag("0x7fffffff00000000")); in testKernelTags()
89 assertEquals(0, kernelToTag("0x0000000000000000")); in testKernelTags()
90 assertEquals(2147483136, kernelToTag("0x7FFFFE0000000000")); in testKernelTags()
92 assertEquals(0, kernelToTag("0x0")); in testKernelTags()
93 assertEquals(0, kernelToTag("0xf00d")); in testKernelTags()
94 assertEquals(1, kernelToTag("0x100000000")); in testKernelTags()
95 assertEquals(14438007, kernelToTag("0xdc4e7700000000")); in testKernelTags()
[all …]
/frameworks/base/core/java/com/android/internal/net/
DNetworkStatsFactory.java23 import static com.android.server.NetworkManagementSocketTagger.kernelToTag;
292 entry.tag = kernelToTag(reader.nextString()); in javaReadNetworkStatsDetail()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java137 public static int kernelToTag(String string) { in kernelToTag() method in NetworkManagementSocketTagger