Home
last modified time | relevance | path

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

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimUtilsTest.java20 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 …]
DAdnRecordTest.java23 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 …]
DGsmAlphabetTest.java20 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()
DSMSDispatcherTest.java.broken24 import com.android.internal.telephony.uicc.IccUtils;
102 byte[] data = IccUtils.hexStringToBytes(s);
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsCbEtwsInfo.java23 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/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java578 + " mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag()
598 + " invalid mEfCfis=" + IccUtils.bytesToHexString(mEfCfis)); in setVoiceCallForwardingFlag()
749 log("EF_MBI: " + IccUtils.bytesToHexString(data)); in handleMessage()
873 if (DBG) log("EF_MWIS : " + IccUtils.bytesToHexString(data)); in handleMessage()
894 if (DBG) log("EF_CPHS_MWI: " + IccUtils.bytesToHexString(data)); in handleMessage()
917 mIccId = IccUtils.bcdToString(data, 0, data.length); in handleMessage()
918 mFullIccId = IccUtils.bchToString(data, 0, data.length); in handleMessage()
935 log("EF_AD: " + IccUtils.bytesToHexString(data)); in handleMessage()
1015 log("EF_CFF_CPHS: " + IccUtils.bytesToHexString(data)); in handleMessage()
1055 mPnnHomeName = IccUtils.networkNameToString( in handleMessage()
[all …]
DRuimRecords.java245 if (DBG) log("EF_PL=" + IccUtils.bytesToHexString(mEFpl)); in onRecordLoaded()
273 if (DBG) log("EF_LI=" + IccUtils.bytesToHexString(mEFli)); in onRecordLoaded()
288 IccUtils.bytesToHexString(data)); in onRecordLoaded()
360 if (DBG) log("CSIM_MDN=" + IccUtils.bytesToHexString(data)); in onRecordLoaded()
363 mMdn = IccUtils.cdmaBcdToString(data, 1, mdnDigitsNum); in onRecordLoaded()
377 if (VDBG) log("CSIM_IMSIM=" + IccUtils.bytesToHexString(data)); in onRecordLoaded()
454 if (DBG) log("CSIM_EPRL=" + IccUtils.bytesToHexString(data)); in onGetCSimEprlDone()
673 mIccId = IccUtils.bcdToString(data, 0, data.length); in handleMessage()
674 mFullIccId = IccUtils.bchToString(data, 0, data.length); in handleMessage()
DUiccCarrierPrivilegeRules.java131 return "cert: " + IccUtils.bytesToHexString(certificateHash) + " pkg: " + in toString()
451 mRules += IccUtils.bytesToHexString(response.payload) in handleMessage()
491 IccUtils.hexStringToBytes(cert), "", 0x00); in handleMessage()
581 packageName = new String(IccUtils.hexStringToBytes(pkgDo.value)); in parseRefArdo()
602 AccessRule accessRule = new AccessRule(IccUtils.hexStringToBytes(certificateHash), in parseRefArdo()
DIccFileHandler.java359 IccUtils.bytesToHexString(data), pin2, mAid, onComplete); in updateEFLinearFixed()
375 IccUtils.bytesToHexString(data), pin2, mAid, onComplete); in updateEFLinearFixed()
386 IccUtils.bytesToHexString(data), null, mAid, onComplete); in updateEFTransparent()
523 + IccUtils.bytesToHexString(data)); in handleMessage()
DIccIoResult.java178 this(sw1, sw2, IccUtils.hexStringToBytes(hexString)); in IccIoResult()
DAdnRecordLoader.java206 + "\n" + IccUtils.bytesToHexString(data)); in handleMessage()
234 + "\n" + IccUtils.bytesToHexString(data)); in handleMessage()
DUiccPkcs15.java28 import com.android.internal.telephony.uicc.IccUtils;
126 String result = IccUtils.bytesToHexString(response.payload) in handleMessage()
DPlmnActRecord.java66 this.plmn = IccUtils.bcdPlmnToString(bytes, offset); in PlmnActRecord()
DIsimUiccRecords.java245 mIsimIst = IccUtils.bytesToHexString(data); in onRecordLoaded()
281 Rlog.d(LOG_TAG, "[ISIM] can't find TLV. record = " + IccUtils.bytesToHexString(record)); in isimTlvToString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmSMSDispatcher.java41 import com.android.internal.telephony.uicc.IccUtils;
308 mCi.sendSMSExpectMore(IccUtils.bytesToHexString(smsc), in sendSmsByPstn()
309 IccUtils.bytesToHexString(pdu), reply); in sendSmsByPstn()
311 mCi.sendSMS(IccUtils.bytesToHexString(smsc), in sendSmsByPstn()
312 IccUtils.bytesToHexString(pdu), reply); in sendSmsByPstn()
315 mCi.sendImsGsmSms(IccUtils.bytesToHexString(smsc), in sendSmsByPstn()
316 IccUtils.bytesToHexString(pdu), tracker.mImsRetry, in sendSmsByPstn()
DUsimDataDownloadHandler.java31 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()
DUsimPhoneBookManager.java30 import com.android.internal.telephony.uicc.IccUtils;
457 return IccUtils.adnStringFieldToString(emailRec, 0, emailRec.length - 2); in readEmailRecord()
584 log("PBR rec: " + IccUtils.bytesToHexString(record)); in PbrRecord()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmSmsCbTest.java26 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/com/android/internal/telephony/gsm/
DSmsMessage.java28 import com.android.internal.telephony.uicc.IccUtils;
582 int year = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
583 int month = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
584 int day = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
585 int hour = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
586 int minute = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
587 int second = IccUtils.gsmBcdByteToInt(mPdu[mCur++]); in getSCTimestampMillis()
597 int timezoneOffset = IccUtils.gsmBcdByteToInt((byte) (tzByte & (~0x08))); in getSCTimestampMillis()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DValueParser.java21 import com.android.internal.telephony.uicc.IccUtils;
122 String text = IccUtils.adnStringFieldToString(rawValue, in retrieveItem()
284 return IccUtils.adnStringFieldToString(rawValue, valueIndex, in retrieveAlphaId()
DRilMessageDecoder.java26 import com.android.internal.telephony.uicc.IccUtils;
174 rawData = IccUtils.hexStringToBytes((String) rilMsg.mData); in decodeMessageParams()
DCatService.java37 import com.android.internal.telephony.uicc.IccUtils;
597 String hexString = IccUtils.bytesToHexString(rawData); in sendTerminalResponse()
693 String hexString = IccUtils.bytesToHexString(rawData); in sendMenuSelection()
763 String hexString = IccUtils.bytesToHexString(rawData); in eventDownload()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DOemHookIndication.java46 com.android.internal.telephony.uicc.IccUtils.bytesToHexString(response)); in oemHookRaw()
DIccSmsInterfaceManager.java50 import com.android.internal.telephony.uicc.IccUtils;
265 mPhone.mCi.writeSmsToSim(status, IccUtils.bytesToHexString(smsc), in copyMessageToIccEf()
266 IccUtils.bytesToHexString(pdu), response); in copyMessageToIccEf()
268 mPhone.mCi.writeSmsToRuim(status, IccUtils.bytesToHexString(pdu), in copyMessageToIccEf()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DBearerData.java31 import com.android.internal.telephony.uicc.IccUtils;
240 int year = IccUtils.cdmaBcdByteToInt(data[0]); in fromByteArray()
243 int month = IccUtils.cdmaBcdByteToInt(data[1]); in fromByteArray()
246 int day = IccUtils.cdmaBcdByteToInt(data[2]); in fromByteArray()
249 int hour = IccUtils.cdmaBcdByteToInt(data[3]); in fromByteArray()
252 int minute = IccUtils.cdmaBcdByteToInt(data[4]); in fromByteArray()
255 int second = IccUtils.cdmaBcdByteToInt(data[5]); in fromByteArray()
1349 bData.numberOfMessages = IccUtils.cdmaBcdByteToInt((byte)inStream.read(8)); in decodeMsgCount()

12