Searched refs:byteNumForUnsignedInt (Results 1 – 3 of 3) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 148 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/ |
D | Asn1Node.java | 235 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/ |
D | IccUtils.java | 782 byte[] bytes = new byte[byteNumForUnsignedInt(value)]; in unsignedIntToBytes() 837 public static int byteNumForUnsignedInt(int value) { in byteNumForUnsignedInt() method in IccUtils
|