Searched refs:bytesToBEInt (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/tests/unit/java/com/android/internal/util/ |
D | BitUtilsTest.java | 19 import static com.android.internal.util.BitUtils.bytesToBEInt; 109 assertEquals(0x00000000, bytesToBEInt(bytes(0, 0, 0, 0))); in testBytesToInt() 110 assertEquals(0xffffffff, bytesToBEInt(bytes(255, 255, 255, 255))); in testBytesToInt() 111 assertEquals(0x0a000001, bytesToBEInt(bytes(10, 0, 0, 1))); in testBytesToInt() 112 assertEquals(0x0a000002, bytesToBEInt(bytes(10, 0, 0, 2))); in testBytesToInt() 113 assertEquals(0x0a001fff, bytesToBEInt(bytes(10, 0, 31, 255))); in testBytesToInt() 114 assertEquals(0xe0000001, bytesToBEInt(bytes(224, 0, 0, 1))); in testBytesToInt()
|
/packages/modules/NetworkStack/src/android/net/apf/ |
D | ApfFilter.java | 2034 return bytesToBEInt(addrBytes) | (int) (Integer.toUnsignedLong(-1) >>> prefixLength); in ipv4BroadcastAddress() 2053 private static int bytesToBEInt(byte[] bytes) { in bytesToBEInt() method in ApfFilter
|