Searched refs:unsignedIntToBytes (Results 1 – 3 of 3) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 92 assertArrayEquals(new byte[] {0}, IccUtils.unsignedIntToBytes(0)); in testUnsignedToBytes() 93 assertArrayEquals(new byte[] {0x12, 0x34}, IccUtils.unsignedIntToBytes(0x1234)); in testUnsignedToBytes() 95 new byte[] {0x7F, 0x12, -2, 0x34}, IccUtils.unsignedIntToBytes(0x7F12FE34)); in testUnsignedToBytes() 96 assertArrayEquals(new byte[] {-128}, IccUtils.unsignedIntToBytes(0x80)); in testUnsignedToBytes() 97 assertArrayEquals(new byte[] {-128, 0x05}, IccUtils.unsignedIntToBytes(0x8005)); in testUnsignedToBytes() 100 assertEquals(4, IccUtils.unsignedIntToBytes(0x7F12FE34, bs, 2)); in testUnsignedToBytes() 123 IccUtils.unsignedIntToBytes(0x7F12FE34, bs, 3); in testUnsignedIntToBytes_NoEnoughSpace() 136 IccUtils.unsignedIntToBytes(-1); in testUnsignedIntToBytes_NegativeNumber()
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/ |
D | Asn1Node.java | 227 byte[] tagBytes = IccUtils.unsignedIntToBytes(tag); in isConstructedTag() 561 String headHex = IccUtils.bytesToHexString(IccUtils.unsignedIntToBytes(mTag)); in getHeadAsHex() 565 byte[] lenBytes = IccUtils.unsignedIntToBytes(mDataLength); in getHeadAsHex() 575 offset += IccUtils.unsignedIntToBytes(mTag, dest, offset); in write() 581 int lenLen = IccUtils.unsignedIntToBytes(mDataLength, dest, ++offset); in write()
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 721 public static byte[] unsignedIntToBytes(int value) { in unsignedIntToBytes() method in IccUtils 726 unsignedIntToBytes(value, bytes, 0); in unsignedIntToBytes() 757 public static int unsignedIntToBytes(int value, byte[] dest, int offset) { in unsignedIntToBytes() method in IccUtils
|