Home
last modified time | relevance | path

Searched refs:bytesToInt (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DIccUtilsTest.java34 assertEquals(0, IccUtils.bytesToInt(new byte[] {}, 0, 0)); in testBytesToInt()
35 assertEquals(0, IccUtils.bytesToInt(new byte[] {0}, 0, 0)); in testBytesToInt()
36 assertEquals(0x1234, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 0, 2)); in testBytesToInt()
37 assertEquals(0x34, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 1, 1)); in testBytesToInt()
38 assertEquals(0xFF, IccUtils.bytesToInt(new byte[] {-2, 0, -1, -3, -4}, 1, 2)); in testBytesToInt()
39 assertEquals(0x7FFFFFFF, IccUtils.bytesToInt(new byte[] {0x7F, -1, -1, -1}, 0, 4)); in testBytesToInt()
40 assertEquals(0x80, IccUtils.bytesToInt(new byte[] {0x00, -128}, 0, 2)); in testBytesToInt()
46 IccUtils.bytesToInt(new byte[] {1, 2, 3, 4, 4}, 0, 5); in testBytesToInt_IllegalLength()
52 IccUtils.bytesToInt(new byte[] {1, 2}, 0, 3); in testBytesToInt_IndexOutOfBounds()
58 IccUtils.bytesToInt(new byte[] {-1, 1, 2, 3}, 0, 4); in testBytesToInt_NegativeResult()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Decoder.java106 tag = IccUtils.bytesToInt(mSrc, tagStart, offset - tagStart); in nextNode()
127 dataLen = IccUtils.bytesToInt(mSrc, offset, lenLen); in nextNode()
DAsn1Node.java402 return IccUtils.bytesToInt(mDataBytes, mDataOffset, mDataLength); in asInteger()
482 bits = IccUtils.bytesToInt(mDataBytes, mDataOffset + 1, mDataLength - 1); in asBits()
/frameworks/base/services/core/java/com/android/server/hdmi/
DTimerRecordingAction.java116 tv().announceTimerRecordingResult(mRecorderAddress, bytesToInt(timerStatusData)); in handleTimerStatus()
147 private static int bytesToInt(byte[] data) { in bytesToInt() method in TimerRecordingAction
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java1974 int lacTacStart = IccUtils.bytesToInt(data, 3, 2); in parseEfOpl()
1975 int lacTacEnd = IccUtils.bytesToInt(data, 5, 2); in parseEfOpl()
1976 int pnnRecordId = IccUtils.bytesToInt(data, 7, 1); in parseEfOpl()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java715 public static int bytesToInt(byte[] src, int offset, int length) { in bytesToInt() method in IccUtils