Home
last modified time | relevance | path

Searched refs:IccUtils (Results 1 – 25 of 75) sorted by relevance

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/asn1/
DIccUtilsTest.java25 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/
DSimUtilsTest.java21 import com.android.internal.telephony.uicc.IccUtils;
36 data = IccUtils.hexStringToBytes("981062400510444868f2"); in testBasic()
37 assertEquals("8901260450014484862", IccUtils.bcdToString(data, 0, data.length)); in testBasic()
40 assertEquals("0126045001448486", IccUtils.bcdToString(data, 1, data.length - 2)); in testBasic()
43 data = IccUtils.hexStringToBytes("98E062400510444868f2"); in testBasic()
44 assertEquals("890", IccUtils.bcdToString(data, 0, data.length)); in testBasic()
47 data = IccUtils.hexStringToBytes("98F062400510444868f2"); in testBasic()
48 assertEquals("890260450014484862", IccUtils.bcdToString(data, 0, data.length)); in testBasic()
54 assertEquals(98, IccUtils.gsmBcdByteToInt((byte) 0x89)); in testBasic()
57 assertEquals(8, IccUtils.gsmBcdByteToInt((byte) 0x8c)); in testBasic()
[all …]
DAdnRecordTest.java26 import com.android.internal.telephony.uicc.IccUtils;
45 IccUtils.hexStringToBytes("566F696365204D61696C07918150367742F3FFFFFFFFFFFF")); in testBasic()
55 IccUtils.hexStringToBytes("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF")); in testBasic()
64 adn = new AdnRecord(IccUtils.hexStringToBytes( "FF")); in testBasic()
74 IccUtils.hexStringToBytes("566F696365204D61696C07FF8150367742F3FFFFFFFFFFFF")); in testBasic()
84 IccUtils.hexStringToBytes("566F696365204D61696C07818150367742F3FFFFFFFFFFFF")); in testBasic()
94 IccUtils.hexStringToBytes("566F696365204D61696C0F918150367742F3FFFFFFFFFFFF")); in testBasic()
104 IccUtils.hexStringToBytes("566F696365204D61696C00918150367742F3FFFFFFFFFFFF")); in testBasic()
114 IccUtils.hexStringToBytes("566F696365204D61696C0291FF50367742F3FFFFFFFFFFFF")); in testBasic()
124 IccUtils.hexStringToBytes("566F696365204D61696C0291F150367742F3FFFFFFFFFFFF")); in testBasic()
[all …]
DGsmAlphabetTest.java21 import com.android.internal.telephony.uicc.IccUtils;
238 unpacked = IccUtils.hexStringToBytes("566F696365204D61696C"); in testBasic()
242 assertEquals(IccUtils.bytesToHexString(unpacked), in testBasic()
243 IccUtils.bytesToHexString( in testBasic()
346 unpacked = IccUtils.hexStringToBytes("61626320646566FF"); in testGsm8BitUpackedWithEuckr()
351 unpacked = IccUtils.hexStringToBytes("C5D7BDBAC6AEFF"); in testGsm8BitUpackedWithEuckr()
DAppSmsManagerTest.java24 import com.android.internal.telephony.uicc.IccUtils;
67 intent.putExtra("pdus", new byte[][]{IccUtils.hexStringToBytes(PDU), null, null}); in testHandleSmsReceivedIntent()
DMissedIncomingCallSmsFilterTest.java33 import com.android.internal.telephony.uicc.IccUtils;
81 byte[][] pdus = {IccUtils.hexStringToBytes(smsPduString)}; in testMissedIncomingCallwithCallerId()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DIccUtilsTest.java42 byte[] encodedFplmns = IccUtils.encodeFplmns(FPLMNS_SAMPLE, DATA_LENGTH); in encodeFplmns()
45 String parsed = IccUtils.bcdPlmnToString(encodedFplmns, i * IccUtils.FPLMN_BYTE_SIZE); in encodeFplmns()
58 byte[] result = IccUtils.stringToAdnStringField(alphaTag); in stringToAdnStringField_gsmBasic()
60 assertThat(IccUtils.adnStringFieldToString(result, 0, result.length)) in stringToAdnStringField_gsmBasic()
68 byte[] result = IccUtils.stringToAdnStringField(alphaTag); in stringToAdnStringField_nonGsm()
71 assertThat(IccUtils.adnStringFieldToString(result, 0, result.length)) in stringToAdnStringField_nonGsm()
79 byte[] result = IccUtils.stringToAdnStringField(alphaTag); in stringToAdnStringField_mixed()
82 assertThat(IccUtils.adnStringFieldToString(result, 0, result.length)) in stringToAdnStringField_mixed()
90 byte[] result = IccUtils.stringToAdnStringField(alphaTag); in stringToAdnStringField_gsmWithEmoji()
92 assertThat(IccUtils.adnStringFieldToString(result, 0, result.length)) in stringToAdnStringField_gsmWithEmoji()
[all …]
DUiccCarrierPrivilegeRulesTest.java90 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testHelper()
332 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_OnlyARAM()
393 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_OnlyARAD()
450 IccIoResult iir = new IccIoResult(0x90, 0x00, IccUtils.hexStringToBytes(hexString)); in testAID_BothARAMandARAD()
604 IccUtils.hexStringToBytes(binaryContent.get(currentFileId.get()))); in testAID_ARFSucceed()
629 IccUtils.hexStringToBytes( in testAID_ARFSucceed()
635 IccUtils.hexStringToBytes( in testAID_ARFSucceed()
697 IccUtils.hexStringToBytes(binaryContent.get(currentFileId.get()))); in testAID_ARFFallbackToACRF()
722 IccUtils.hexStringToBytes( in testAID_ARFFallbackToACRF()
728 IccUtils.hexStringToBytes( in testAID_ARFFallbackToACRF()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/asn1/
DAsn1Node.java21 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 …]
DAsn1Decoder.java19 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/android/telephony/
DSmsCbEtwsInfo.java26 import com.android.internal.telephony.uicc.IccUtils;
184 int year = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[0]); in getPrimaryNotificationTimestamp()
185 int month = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[1]); in getPrimaryNotificationTimestamp()
186 int day = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[2]); in getPrimaryNotificationTimestamp()
187 int hour = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[3]); in getPrimaryNotificationTimestamp()
188 int minute = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[4]); in getPrimaryNotificationTimestamp()
189 int second = IccUtils.gsmBcdByteToInt(mWarningSecurityInformation[5]); in getPrimaryNotificationTimestamp()
199 int timezoneOffset = IccUtils.gsmBcdByteToInt((byte) (tzByte & (~0x08))); in getPrimaryNotificationTimestamp()
DUiccAccessRule.java28 import com.android.internal.telephony.uicc.IccUtils;
123 byte[] certificateHash = IccUtils.hexStringToBytes(splitStr[0]); in decodeRulesFromCarrierConfig()
209 return IccUtils.bytesToHexString(mCertificateHash); in getCertificateHexString()
271 return matches(IccUtils.hexStringToBytes(certHash), packageName); in matches()
306 return "cert: " + IccUtils.bytesToHexString(mCertificateHash) + " pkg: " + in toString()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/
DEuiccSpecVersionTest.java25 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()
DEuiccPortTest.java55 import com.android.internal.telephony.uicc.IccUtils;
128 return IccUtils.bcdToBytes("987654321012345"); in setUp()
300 IccUtils.hexStringToBytes( in testGetProfile()
564 assertEquals("BF2003010203", IccUtils.bytesToHexString(resultCaptor.result)); in testGetEuiccInfo1()
576 assertEquals("BF2203010203", IccUtils.bytesToHexString(resultCaptor.result)); in testGetEuiccInfo2()
597 assertEquals("BF3802A000", IccUtils.bytesToHexString(resultCaptor.result)); in testAuthenticateServer()
654 assertEquals("BF3802A000", IccUtils.bytesToHexString(resultCaptor.result)); in testAuthenticateService_devCap()
670 IccUtils.hexStringToBytes("4131423243332D583459355A36"), // hashCc in testPrepareDownload()
676 assertEquals("BF2102A000", IccUtils.bytesToHexString(resultCaptor.result)); in testPrepareDownload()
689 IccUtils.hexStringToBytes("4131423243332D583459355A36"), // hashCc in testPrepareDownload_Error()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java108 + " mCphsInfo=" + IccUtils.bytesToHexString(mCphsInfo) in toString()
110 + " efMWIS=" + IccUtils.bytesToHexString(mEfMWIS) in toString()
111 + " efCPHS_MWI=" + IccUtils.bytesToHexString(mEfCPHS_MWI) in toString()
112 + " mEfCff=" + IccUtils.bytesToHexString(mEfCff) in toString()
113 + " mEfCfis=" + IccUtils.bytesToHexString(mEfCfis) in toString()
290 return IccUtils.bytesToHexString(mUsimServiceTable.getUSIMServiceTable()); in getSimServiceTable()
566 + " mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag()
587 + " invalid mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag()
690 log("EF_MBI: " + IccUtils.bytesToHexString(data)); in handleMessage()
814 if (DBG) log("EF_MWIS : " + IccUtils.bytesToHexString(data)); in handleMessage()
[all …]
DAnswerToReset.java149 return b == null ? null : IccUtils.byteToHex(b); in byteToStringHex()
183 loge("Unrecognized convention byte " + IccUtils.byteToHex(value)); in parseConventionByte()
203 if (VDBG) log("lastTD: " + IccUtils.byteToHex(lastTD)); in parseInterfaceBytes()
210 if (VDBG) log("lastTD & TA_MASK: " + IccUtils.byteToHex((byte) (lastTD & TA_MASK))); in parseInterfaceBytes()
219 if (VDBG) log("lastTD & TB_MASK: " + IccUtils.byteToHex((byte) (lastTD & TB_MASK))); in parseInterfaceBytes()
228 if (VDBG) log("lastTD & TC_MASK: " + IccUtils.byteToHex((byte) (lastTD & TC_MASK))); in parseInterfaceBytes()
237 if (VDBG) log("lastTD & TD_MASK: " + IccUtils.byteToHex((byte) (lastTD & TD_MASK))); in parseInterfaceBytes()
306 byte[] atrBytes = IccUtils.hexStringToBytes(atr); in parseAtrString()
498 .append(IccUtils.byteToHex(getConventionByte())).append(","); in toString()
508 sb.append(IccUtils.byteToHex(b)).append(","); in toString()
DIccIoResult.java195 this(sw1, sw2, IccUtils.hexStringToBytes(hexString)); in IccIoResult()
205 + (TelephonyUtils.IS_DEBUGGABLE ? IccUtils.bytesToHexString(payload) : "*******") in toString()
DRuimRecords.java83 + " mEFpl=" + IccUtils.bytesToHexString(mEFpl) in toString()
84 + " mEFli=" + IccUtils.bytesToHexString(mEFli) in toString()
238 if (DBG) log("EF_PL=" + IccUtils.bytesToHexString(mEFpl)); in onRecordLoaded()
266 if (DBG) log("EF_LI=" + IccUtils.bytesToHexString(mEFli)); in onRecordLoaded()
281 IccUtils.bytesToHexString(data)); in onRecordLoaded()
369 if (DBG) log("CSIM_MDN=" + IccUtils.bytesToHexString(data)); in onRecordLoaded()
372 mMdn = IccUtils.cdmaBcdToString(data, 1, mdnDigitsNum); in onRecordLoaded()
394 if (DBG) log("data=" + Rlog.pii(LOG_TAG, IccUtils.bytesToHexString(data))); in onRecordLoaded()
511 if (DBG) log("CSIM_EPRL=" + IccUtils.bytesToHexString(data)); in onGetCSimEprlDone()
690 mIccId = IccUtils.bcdToString(data, 0, data.length); in handleMessage()
[all …]
DUiccCarrierPrivilegeRules.java405 statusCode = Integer.parseInt(IccUtils.bytesToHexString(bytes), 16); in shouldRetry()
474 mRules += IccUtils.bytesToHexString(response.payload) in handleMessage()
500 + IccUtils.bytesToHexString(response.payload) in handleMessage()
543 IccUtils.hexStringToBytes(cert), "", 0x00); in handleMessage()
644 packageName = new String(IccUtils.hexStringToBytes(pkgDo.value)); in parseRefArdo()
670 IccUtils.hexStringToBytes(certificateHash), packageName, accessType); in parseRefArdo()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSMSDispatcher.java37 import com.android.internal.telephony.uicc.IccUtils;
202 mCi.sendSMSExpectMore(IccUtils.bytesToHexString(smsc), in sendSms()
203 IccUtils.bytesToHexString(pdu), reply); in sendSms()
205 mCi.sendSMS(IccUtils.bytesToHexString(smsc), in sendSms()
206 IccUtils.bytesToHexString(pdu), reply); in sendSms()
209 mCi.sendImsGsmSms(IccUtils.bytesToHexString(smsc), in sendSms()
210 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSms()
DUsimDataDownloadHandler.java39 import com.android.internal.telephony.uicc.IccUtils;
103 String smsc = IccUtils.bytesToHexString( in handleUsimDataDownload()
107 IccUtils.bytesToHexString(smsMessage.getPdu()), in handleUsimDataDownload()
194 String encodedEnvelope = IccUtils.bytesToHexString(envelope); in handleDataDownload()
292 IccUtils.bytesToHexString(smsAckPdu), null); in sendSmsAckForEnvelopeResponse()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DUsimDataDownloadHandlerTest.java43 import com.android.internal.telephony.uicc.IccUtils;
151 IccUtils.hexStringToBytes(mEnvelope)); in sendEnvelopeDataDownloadSuccess()
171 IccUtils.bytesToHexString(mSmsAckPdu), null); in sendEnvelopeDataDownloadSuccess()
184 IccUtils.hexStringToBytes(mEnvelope)); in sendEnvelopeDataDownloadFailed()
218 IccUtils.hexStringToBytes(mEnvelope)); in sendEnvelopeForSw1_62()
230 IccUtils.bytesToHexString(mSmsAckPdu), null); in sendEnvelopeForSw1_62()
280 IccUtils.hexStringToBytes(mEnvelope)); in smsComplete()
311 IccUtils.hexStringToBytes(null)); //ForNullResponseBytes in failureEnvelopeResponse()
344 IccUtils.hexStringToBytes(null)); //ForNullResponseBytes in successEnvelopeResponse()
373 byte[] responseBytes = IccUtils.hexStringToBytes(envelope); in createSmsAckPdu()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DApduSenderTest.java39 import com.android.internal.telephony.uicc.IccUtils;
119 assertEquals("A1A1A19000", IccUtils.bytesToHexString(mSelectResponse)); in testSendEmptyCommands()
151 assertEquals("A1A1A1", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSend()
171 assertEquals("A4", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendMultiApdus()
198 assertEquals("A3", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendMultiApdusStopEarly()
218 assertEquals("A1A1A1B2B2B2B2C3C3", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendLongResponse()
246 assertEquals("C3", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLongDataLongResponse()
274 assertEquals("B2222B", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLongDataMod0()
292 assertEquals("B2222B", IccUtils.bytesToHexString(mResponseCaptor.response)); in testSendStoreDataLen0()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/euicc/
DEuiccPort.java40 import com.android.internal.telephony.uicc.IccUtils;
236 IccUtils.bcdToBytes(padTrailingFs(iccid))) in getProfile()
269 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in disableProfile()
308 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in switchToProfile()
369 String eid = IccUtils.bytesToHexString(parseResponse(response) in getEid()
393 IccUtils.bcdToBytes(padTrailingFs(iccid))) in setNickname()
418 byte[] iccidBytes = IccUtils.bcdToBytes(padTrailingFs(iccid)); in deleteProfile()
1091 IccUtils.bcdToBytes(imei, imeiBytes); in getDeviceId()
1109 IccUtils.bcdToBytes(imei, imeiBytes); in getDeviceId()
1216 "Cannot parse response: " + IccUtils.bytesToHexString(response), e)); in sendApdu()
[all …]
/frameworks/base/telephony/java/android/telephony/gba/
DGbaAuthRequest.java25 import com.android.internal.telephony.uicc.IccUtils;
156 + IccUtils.bytesToHexString(mSecurityProtocol) in toString()

123