/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/ |
D | IccUtilsTest.java | 25 import com.android.internal.telephony.uicc.IccUtils; 34 assertEquals(0, IccUtils.bytesToInt(new byte[] {}, 0, 0)); in testBytesToInt() 35 assertEquals(0, IccUtils.bytesToInt(new byte[] {0}, 0, 0)); in testBytesToInt() 36 assertEquals(0x1234, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 0, 2)); in testBytesToInt() 37 assertEquals(0x34, IccUtils.bytesToInt(new byte[] {0x12, 0x34}, 1, 1)); in testBytesToInt() 38 assertEquals(0xFF, IccUtils.bytesToInt(new byte[] {-2, 0, -1, -3, -4}, 1, 2)); in testBytesToInt() 39 assertEquals(0x7FFFFFFF, IccUtils.bytesToInt(new byte[] {0x7F, -1, -1, -1}, 0, 4)); in testBytesToInt() 40 assertEquals(0x80, IccUtils.bytesToInt(new byte[] {0x00, -128}, 0, 2)); in testBytesToInt() 46 IccUtils.bytesToInt(new byte[] {1, 2, 3, 4, 4}, 0, 5); in testBytesToInt_IllegalLength() 52 IccUtils.bytesToInt(new byte[] {1, 2}, 0, 3); in testBytesToInt_IndexOutOfBounds() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SimUtilsTest.java | 20 import com.android.internal.telephony.uicc.IccUtils; 37 data = IccUtils.hexStringToBytes("981062400510444868f2"); in testBasic() 38 assertEquals("8901260450014484862", IccUtils.bcdToString(data, 0, data.length)); in testBasic() 41 assertEquals("0126045001448486", IccUtils.bcdToString(data, 1, data.length - 2)); in testBasic() 44 data = IccUtils.hexStringToBytes("98E062400510444868f2"); in testBasic() 45 assertEquals("890", IccUtils.bcdToString(data, 0, data.length)); in testBasic() 48 data = IccUtils.hexStringToBytes("98F062400510444868f2"); in testBasic() 49 assertEquals("890260450014484862", IccUtils.bcdToString(data, 0, data.length)); in testBasic() 55 assertEquals(98, IccUtils.gsmBcdByteToInt((byte) 0x89)); in testBasic() 58 assertEquals(8, IccUtils.gsmBcdByteToInt((byte) 0x8c)); in testBasic() [all …]
|
D | AdnRecordTest.java | 23 import com.android.internal.telephony.uicc.IccUtils; 38 IccUtils.hexStringToBytes("566F696365204D61696C07918150367742F3FFFFFFFFFFFF")); in testBasic() 48 IccUtils.hexStringToBytes("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")); in testBasic() 57 adn = new AdnRecord(IccUtils.hexStringToBytes( "FF")); in testBasic() 67 IccUtils.hexStringToBytes("566F696365204D61696C07FF8150367742F3FFFFFFFFFFFF")); in testBasic() 77 IccUtils.hexStringToBytes("566F696365204D61696C07818150367742F3FFFFFFFFFFFF")); in testBasic() 87 IccUtils.hexStringToBytes("566F696365204D61696C0F918150367742F3FFFFFFFFFFFF")); in testBasic() 97 IccUtils.hexStringToBytes("566F696365204D61696C00918150367742F3FFFFFFFFFFFF")); in testBasic() 107 IccUtils.hexStringToBytes("566F696365204D61696C0291FF50367742F3FFFFFFFFFFFF")); in testBasic() 117 IccUtils.hexStringToBytes("566F696365204D61696C0291F150367742F3FFFFFFFFFFFF")); in testBasic() [all …]
|
D | GsmAlphabetTest.java | 20 import com.android.internal.telephony.uicc.IccUtils; 240 unpacked = IccUtils.hexStringToBytes("566F696365204D61696C"); in testBasic() 244 assertEquals(IccUtils.bytesToHexString(unpacked), in testBasic() 245 IccUtils.bytesToHexString( in testBasic() 348 unpacked = IccUtils.hexStringToBytes("61626320646566FF"); in testGsm8BitUpackedWithEuckr() 353 unpacked = IccUtils.hexStringToBytes("C5D7BDBAC6AEFF"); in testGsm8BitUpackedWithEuckr()
|
D | AppSmsManagerTest.java | 24 import com.android.internal.telephony.uicc.IccUtils; 66 intent.putExtra("pdus", new byte[][]{IccUtils.hexStringToBytes(PDU), null, null}); in testHandleSmsReceivedIntent()
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/ |
D | Asn1Node.java | 21 import com.android.internal.telephony.uicc.IccUtils; 106 byte[] dataBytes = IccUtils.signedIntToBytes(value); in addChildAsInteger() 148 return addChildAsBytes(tag, IccUtils.hexStringToBytes(hex)); in addChildAsBytesFromHex() 174 dataBytes[0] = IccUtils.countTrailingZeros(dataBytes[dataLength - 1]); in addChildAsBits() 227 byte[] tagBytes = IccUtils.unsignedIntToBytes(tag); in isConstructedTag() 235 len += IccUtils.byteNumForUnsignedInt(length); in calculateEncodedBytesNumForLength() 253 IccUtils.byteNumForUnsignedInt(mTag) in Asn1Node() 270 IccUtils.byteNumForUnsignedInt(mTag) in Asn1Node() 402 return IccUtils.bytesToInt(mDataBytes, mDataOffset, mDataLength); in asInteger() 421 return IccUtils.bytesToRawLong(mDataBytes, mDataOffset, mDataLength); in asRawLong() [all …]
|
D | Asn1Decoder.java | 19 import com.android.internal.telephony.uicc.IccUtils; 36 this(IccUtils.hexStringToBytes(hex)); in Asn1Decoder() 106 tag = IccUtils.bytesToInt(mSrc, tagStart, offset - tagStart); in nextNode() 127 dataLen = IccUtils.bytesToInt(mSrc, offset, lenLen); in nextNode()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | SmsCbEtwsInfo.java | 23 import com.android.internal.telephony.uicc.IccUtils; 150 int year = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[0]); in getPrimaryNotificationTimestamp() 151 int month = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[1]); in getPrimaryNotificationTimestamp() 152 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]); in getPrimaryNotificationTimestamp() 153 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); in getPrimaryNotificationTimestamp() 154 int minute = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[4]); in getPrimaryNotificationTimestamp() 155 int second = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[5]); in getPrimaryNotificationTimestamp() 165 int timezoneOffset = IccUtils.gsmBcdByteToInt((byte) (tzByte & (~0x08))); in getPrimaryNotificationTimestamp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/ |
D | EuiccSpecVersionTest.java | 25 import com.android.internal.telephony.uicc.IccUtils; 92 IccUtils.hexStringToBytes("E00582030201039000"))); in testFromOpenChannelResponse() 99 IccUtils.hexStringToBytes("E00F05820202039000"))); in testFromOpenChannelResponseError() 102 IccUtils.hexStringToBytes("E005820202039000"))); in testFromOpenChannelResponseError() 105 IccUtils.hexStringToBytes("E10482030201039000"))); in testFromOpenChannelResponseError()
|
D | EuiccCardTest.java | 47 import com.android.internal.telephony.uicc.IccUtils; 109 return IccUtils.bcdToBytes("987654321012345"); in onLooperPrepared() 272 IccUtils.hexStringToBytes( in testGetProfile() 519 assertEquals("BF2003010203", IccUtils.bytesToHexString(resultCaptor.result)); in testGetEuiccInfo1() 531 assertEquals("BF2203010203", IccUtils.bytesToHexString(resultCaptor.result)); in testGetEuiccInfo2() 552 assertEquals("BF3802A000", IccUtils.bytesToHexString(resultCaptor.result)); in testAuthenticateServer() 609 assertEquals("BF3802A000", IccUtils.bytesToHexString(resultCaptor.result)); in testAuthenticateService_devCap() 625 IccUtils.hexStringToBytes("4131423243332D583459355A36"), // hashCc in testPrepareDownload() 631 assertEquals("BF2102A000", IccUtils.bytesToHexString(resultCaptor.result)); in testPrepareDownload() 644 IccUtils.hexStringToBytes("4131423243332D583459355A36"), // hashCc in testPrepareDownload_Error() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | AnswerToReset.java | 147 return b == null ? null : IccUtils.byteToHex(b); in byteToStringHex() 174 loge("Unrecognized convention byte " + IccUtils.byteToHex(value)); in parseConventionByte() 194 if (VDBG) log("lastTD: " + IccUtils.byteToHex(lastTD)); in parseInterfaceBytes() 201 if (VDBG) log("lastTD & TA_MASK: " + IccUtils.byteToHex((byte) (lastTD & TA_MASK))); in parseInterfaceBytes() 210 if (VDBG) log("lastTD & TB_MASK: " + IccUtils.byteToHex((byte) (lastTD & TB_MASK))); in parseInterfaceBytes() 219 if (VDBG) log("lastTD & TC_MASK: " + IccUtils.byteToHex((byte) (lastTD & TC_MASK))); in parseInterfaceBytes() 228 if (VDBG) log("lastTD & TD_MASK: " + IccUtils.byteToHex((byte) (lastTD & TD_MASK))); in parseInterfaceBytes() 297 byte[] atrBytes = IccUtils.hexStringToBytes(atr); in parseAtrString() 485 .append(IccUtils.byteToHex(getConventionByte())).append(","); in toString() 495 sb.append(IccUtils.byteToHex(b)).append(","); in toString()
|
D | SIMRecords.java | 546 + " mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag() 567 + " invalid mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag() 731 log("EF_MBI: " + IccUtils.bytesToHexString(data)); in handleMessage() 855 if (DBG) log("EF_MWIS : " + IccUtils.bytesToHexString(data)); in handleMessage() 876 if (DBG) log("EF_CPHS_MWI: " + IccUtils.bytesToHexString(data)); in handleMessage() 899 mIccId = IccUtils.bcdToString(data, 0, data.length); in handleMessage() 900 mFullIccId = IccUtils.bchToString(data, 0, data.length); in handleMessage() 927 log("EF_AD: " + IccUtils.bytesToHexString(data)); in handleMessage() 1013 log("EF_CFF_CPHS: " + IccUtils.bytesToHexString(data)); in handleMessage() 1053 mPnnHomeName = IccUtils.networkNameToString( in handleMessage() [all …]
|
D | RuimRecords.java | 249 if (DBG) log("EF_PL=" + IccUtils.bytesToHexString(mEFpl)); in onRecordLoaded() 277 if (DBG) log("EF_LI=" + IccUtils.bytesToHexString(mEFli)); in onRecordLoaded() 292 IccUtils.bytesToHexString(data)); in onRecordLoaded() 364 if (DBG) log("CSIM_MDN=" + IccUtils.bytesToHexString(data)); in onRecordLoaded() 367 mMdn = IccUtils.cdmaBcdToString(data, 1, mdnDigitsNum); in onRecordLoaded() 381 if (VDBG) log("CSIM_IMSIM=" + IccUtils.bytesToHexString(data)); in onRecordLoaded() 458 if (DBG) log("CSIM_EPRL=" + IccUtils.bytesToHexString(data)); in onGetCSimEprlDone() 683 mIccId = IccUtils.bcdToString(data, 0, data.length); in handleMessage() 684 mFullIccId = IccUtils.bchToString(data, 0, data.length); in handleMessage()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 35 import com.android.internal.telephony.uicc.IccUtils; 208 mCi.sendSMSExpectMore(IccUtils.bytesToHexString(smsc), in sendSms() 209 IccUtils.bytesToHexString(pdu), reply); in sendSms() 211 mCi.sendSMS(IccUtils.bytesToHexString(smsc), in sendSms() 212 IccUtils.bytesToHexString(pdu), reply); in sendSms() 215 mCi.sendImsGsmSms(IccUtils.bytesToHexString(smsc), in sendSms() 216 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSms()
|
D | UsimDataDownloadHandler.java | 31 import com.android.internal.telephony.uicc.IccUtils; 86 String smsc = IccUtils.bytesToHexString( in handleUsimDataDownload() 90 IccUtils.bytesToHexString(smsMessage.getPdu()), in handleUsimDataDownload() 168 String encodedEnvelope = IccUtils.bytesToHexString(envelope); in handleDataDownload() 257 IccUtils.bytesToHexString(smsAckPdu), null); in sendSmsAckForEnvelopeResponse()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/ |
D | ApduSenderTest.java | 35 import com.android.internal.telephony.uicc.IccUtils; 116 assertEquals("A1A1A19000", IccUtils.bytesToHexString(mSelectResponse)); in testSendEmptyCommands() 154 assertEquals("A1A1A1", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSend() 177 assertEquals("A4", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendMultiApdus() 202 assertEquals("A1A1A1B2B2B2B2C3C3", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendLongResponse() 233 assertEquals("C3", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLongDataLongResponse() 264 assertEquals("B2222B", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLongDataMod0() 285 assertEquals("B2222B", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLen0()
|
D | LogicalChannelMocker.java | 30 import com.android.internal.telephony.uicc.IccUtils; 106 byte[] responseBytes = IccUtils.hexStringToBytes("00" + responseHex); in getSelectResponse()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
D | GsmSmsCbTest.java | 26 import com.android.internal.telephony.uicc.IccUtils; 720 private static final byte[] etwsMessageNormal = IccUtils.hexStringToBytes("000011001101" + 725 private static final byte[] etwsMessageCancel = IccUtils.hexStringToBytes("000011001101" + 730 private static final byte[] etwsMessageTest = IccUtils.hexStringToBytes("000011031101" +
|
/frameworks/base/telephony/java/android/telephony/ |
D | UiccAccessRule.java | 26 import com.android.internal.telephony.uicc.IccUtils; 163 return IccUtils.bytesToHexString(mCertificateHash); in getCertificateHexString() 241 return "cert: " + IccUtils.bytesToHexString(mCertificateHash) + " pkg: " + in toString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/ |
D | EuiccCard.java | 41 import com.android.internal.telephony.uicc.IccUtils; 253 Tags.TAG_ICCID, IccUtils.bcdToBytes(padTrailingFs(iccid))) in getProfile() 286 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in disableProfile() 325 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in switchToProfile() 377 String eid = IccUtils.bytesToHexString(parseResponse(response) in getEid() 401 IccUtils.bcdToBytes(padTrailingFs(iccid))) in setNickname() 426 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in deleteProfile() 982 IccUtils.bcdToBytes(phone.getDeviceId(), imeiBytes); in getDeviceId() 1078 "Cannot parse response: " + IccUtils.bytesToHexString(response), e)); in sendApdu() 1147 gid1 = IccUtils.bytesToHexString(node.getChild(Tags.TAG_CTX_1).asBytes()); in buildCarrierIdentifier() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
D | SmsMessage.java | 28 import com.android.internal.telephony.uicc.IccUtils; 699 int year = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 700 int month = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 701 int day = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 702 int hour = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 703 int minute = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 704 int second = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis() 714 int timezoneOffset = IccUtils.gsmBcdByteToInt((byte) (tzByte & (~0x08))); in getSCTimestampMillis()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 119 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testHelper() 335 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_OnlyARAM() 398 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_OnlyARAD() 458 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_BothARAMandARAD() 574 IccUtils.hexStringToBytes(hexString1)); in testAID_RetransmitLogicalChannel() 588 IccUtils.hexStringToBytes(hexString2)); in testAID_RetransmitLogicalChannel()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ValueParser.java | 21 import com.android.internal.telephony.uicc.IccUtils; 122 String text = IccUtils.adnStringFieldToString(rawValue, in retrieveItem() 284 return IccUtils.adnStringFieldToString(rawValue, valueIndex, in retrieveAlphaId()
|
D | RilMessageDecoder.java | 26 import com.android.internal.telephony.uicc.IccUtils; 174 rawData = IccUtils.hexStringToBytes((String) rilMsg.mData); in decodeMessageParams()
|
/frameworks/base/core/java/android/service/carrier/ |
D | CarrierIdentifier.java | 23 import com.android.internal.telephony.uicc.IccUtils; 76 String hex = IccUtils.bytesToHexString(mccMnc); in CarrierIdentifier()
|