Searched refs:byteNumForSignedInt (Results 1 – 2 of 2) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 163 assertEquals(1, IccUtils.byteNumForSignedInt(0)); in testByteNumForSignedInt() 164 assertEquals(1, IccUtils.byteNumForSignedInt(0x12)); in testByteNumForSignedInt() 165 assertEquals(1, IccUtils.byteNumForSignedInt(0x7F)); in testByteNumForSignedInt() 166 assertEquals(2, IccUtils.byteNumForSignedInt(0x80)); in testByteNumForSignedInt() 167 assertEquals(2, IccUtils.byteNumForSignedInt(0x7FFF)); in testByteNumForSignedInt() 168 assertEquals(3, IccUtils.byteNumForSignedInt(0x8000)); in testByteNumForSignedInt() 169 assertEquals(3, IccUtils.byteNumForSignedInt(0x7FFFFF)); in testByteNumForSignedInt() 170 assertEquals(4, IccUtils.byteNumForSignedInt(0x800000)); in testByteNumForSignedInt() 171 assertEquals(4, IccUtils.byteNumForSignedInt(0x12345678)); in testByteNumForSignedInt() 172 assertEquals(4, IccUtils.byteNumForSignedInt(0x7FFFFFFF)); in testByteNumForSignedInt() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 799 byte[] bytes = new byte[byteNumForSignedInt(value)]; in signedIntToBytes() 849 public static int byteNumForSignedInt(int value) { in byteNumForSignedInt() method in IccUtils
|