Home
last modified time | relevance | path

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

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DIccUtilsTest.java148 assertEquals(1, IccUtils.byteNumForUnsignedInt(0)); in testByteNumForUnsignedInt()
149 assertEquals(1, IccUtils.byteNumForUnsignedInt(0x12)); in testByteNumForUnsignedInt()
150 assertEquals(1, IccUtils.byteNumForUnsignedInt(0x7F)); in testByteNumForUnsignedInt()
151 assertEquals(1, IccUtils.byteNumForUnsignedInt(0x80)); in testByteNumForUnsignedInt()
152 assertEquals(2, IccUtils.byteNumForUnsignedInt(0x7FFF)); in testByteNumForUnsignedInt()
153 assertEquals(2, IccUtils.byteNumForUnsignedInt(0x8000)); in testByteNumForUnsignedInt()
154 assertEquals(3, IccUtils.byteNumForUnsignedInt(0x7FFFFF)); in testByteNumForUnsignedInt()
155 assertEquals(3, IccUtils.byteNumForUnsignedInt(0x800000)); in testByteNumForUnsignedInt()
156 assertEquals(4, IccUtils.byteNumForUnsignedInt(0x12345678)); in testByteNumForUnsignedInt()
157 assertEquals(4, IccUtils.byteNumForUnsignedInt(0x7FFFFFFF)); in testByteNumForUnsignedInt()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Node.java235 len += IccUtils.byteNumForUnsignedInt(length); in calculateEncodedBytesNumForLength()
253 IccUtils.byteNumForUnsignedInt(mTag) in Asn1Node()
270 IccUtils.byteNumForUnsignedInt(mTag) in Asn1Node()
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/
DIccUtils.java782 byte[] bytes = new byte[byteNumForUnsignedInt(value)]; in unsignedIntToBytes()
837 public static int byteNumForUnsignedInt(int value) { in byteNumForUnsignedInt() method in IccUtils