Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DIccUtilsTest.java107 assertArrayEquals(new byte[] {0}, IccUtils.signedIntToBytes(0)); in testSignedToBytes()
108 assertArrayEquals(new byte[] {0x12, 0x34}, IccUtils.signedIntToBytes(0x1234)); in testSignedToBytes()
110 new byte[] {0x7F, 0x12, -2, 0x34}, IccUtils.signedIntToBytes(0x7F12FE34)); in testSignedToBytes()
111 assertArrayEquals(new byte[] {0, -128}, IccUtils.signedIntToBytes(0x80)); in testSignedToBytes()
112 assertArrayEquals(new byte[] {0, -128, 0x05}, IccUtils.signedIntToBytes(0x8005)); in testSignedToBytes()
115 assertEquals(4, IccUtils.signedIntToBytes(0x801234, bs, 2)); in testSignedToBytes()
130 IccUtils.signedIntToBytes(0x801234, bs, 3); in testSignedIntToBytes_NoEnoughSpace()
142 IccUtils.signedIntToBytes(-1); in testSignedIntToBytes_NegativeNumber()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java795 public static byte[] signedIntToBytes(int value) { in signedIntToBytes() method in IccUtils
800 signedIntToBytes(value, bytes, 0); in signedIntToBytes()
827 public static int signedIntToBytes(int value, byte[] dest, int offset) { in signedIntToBytes() method in IccUtils
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Node.java106 byte[] dataBytes = IccUtils.signedIntToBytes(value); in addChildAsInteger()