Home
last modified time | relevance | path

Searched refs:bytesToBEInt (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/net/java/com/android/internal/util/
DBitUtilsTest.java19 import static com.android.internal.util.BitUtils.bytesToBEInt;
104 assertEquals(0x00000000, bytesToBEInt(bytes(0, 0, 0, 0))); in testBytesToInt()
105 assertEquals(0xffffffff, bytesToBEInt(bytes(255, 255, 255, 255))); in testBytesToInt()
106 assertEquals(0x0a000001, bytesToBEInt(bytes(10, 0, 0, 1))); in testBytesToInt()
107 assertEquals(0x0a000002, bytesToBEInt(bytes(10, 0, 0, 2))); in testBytesToInt()
108 assertEquals(0x0a001fff, bytesToBEInt(bytes(10, 0, 31, 255))); in testBytesToInt()
109 assertEquals(0xe0000001, bytesToBEInt(bytes(224, 0, 0, 1))); in testBytesToInt()
/frameworks/base/core/java/com/android/internal/util/
DBitUtils.java103 public static int bytesToBEInt(byte[] bytes) { in bytesToBEInt() method in BitUtils
111 return Integer.reverseBytes(bytesToBEInt(bytes)); in bytesToLEInt()