Home
last modified time | relevance | path

Searched refs:origBytes (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSmsAddress.java45 origBytes = new byte[length]; in GsmSmsAddress()
46 System.arraycopy(data, offset, origBytes, 0, length); in GsmSmsAddress()
49 int addressLength = origBytes[OFFSET_ADDRESS_LENGTH] & 0xff; in GsmSmsAddress()
51 int toa = origBytes[OFFSET_TOA] & 0xff; in GsmSmsAddress()
64 address = GsmAlphabet.gsm7BitPackedToString(origBytes, in GsmSmsAddress()
71 byte lastByte = origBytes[length - 1]; in GsmSmsAddress()
75 origBytes[length - 1] |= 0xf0; in GsmSmsAddress()
78 origBytes, in GsmSmsAddress()
84 origBytes[length - 1] = lastByte; in GsmSmsAddress()
132 return (origBytes[OFFSET_ADDRESS_LENGTH] & 0xff) == 4 in isCphsVoiceMessageIndicatorAddress()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java112 builder.append(", origBytes=" + HexDump.toHexString(origBytes)); in toString()
211 byte[] origBytes; in parse()
234 origBytes = UserData.stringToAscii(filteredAddr); in parse()
237 origBytes = parseToDtmf(filteredAddr); in parse()
240 if (origBytes == null) { in parse()
244 addr.origBytes = origBytes; in parse()
245 addr.numberOfDigits = origBytes.length; in parse()
DCdmaSmsSubaddress.java24 public byte[] origBytes; field in CdmaSmsSubaddress
DBearerData.java876 addr.origBytes = addr.address.getBytes("US-ASCII"); in encodeCdmaSmsAddress()
881 addr.origBytes = encodeDtmfSmsAddress(addr.address); in encodeCdmaSmsAddress()
908 outStream.writeByteArray(dataBits, addr.origBytes); in encodeCallbackNumber()
1414 addr.origBytes = bData.userData.payload; in decodeIs91Cli()
1523 addr.address = new String(addr.origBytes, 0, addr.origBytes.length, "US-ASCII"); in decodeSmsAddress()
1528 addr.address = decodeDtmfSmsAddress(addr.origBytes, addr.numberOfDigits); in decodeSmsAddress()
1561 addr.origBytes = inStream.readByteArray(dataBits); in decodeCallbackNumber()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddressTest.java36 assertArrayEquals(CdmaSmsAddress.parseToDtmf(address), cdmaAddress.origBytes); in testNumberAddress()
46 assertArrayEquals(CdmaSmsAddress.parseToDtmf("3141592653"), cdmaAddress.origBytes); in testNumberWithSugar()
58 assertArrayEquals(UserData.stringToAscii("10068"), cdmaAddress.origBytes); in testInternationalAddress()
69 assertArrayEquals(UserData.stringToAscii(address), cdmaAddress.origBytes); in testEmailAddress()
DCdmaSmsTest.java55 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
58 assertEquals(addr.origBytes[i], data[i]); in testCdmaSmsAddrParsing()
65 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
68 assertEquals(addr.origBytes[i], data2[i]); in testCdmaSmsAddrParsing()
75 assertEquals(addr.origBytes.length, 10); in testCdmaSmsAddrParsing()
78 assertEquals(addr.origBytes[i], data5[i]); in testCdmaSmsAddrParsing()
85 assertEquals(addr.origBytes.length, 12); in testCdmaSmsAddrParsing()
88 assertEquals((int) expectedAddr.charAt(i), addr.origBytes[i]); in testCdmaSmsAddrParsing()
93 assertEquals(addr.origBytes[i], data4[i]); in testCdmaSmsAddrParsing()
101 assertEquals(addr.origBytes.length, 15); in testCdmaSmsAddrParsing()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DSmsMessage.java496 addr.origBytes = new byte[length]; in parsePdu()
497 dis.read(addr.origBytes, 0, length); // digits in parsePdu()
615 addr.origBytes = data; in parsePduFromEfRecord()
638 subAddr.origBytes = subdata; in parsePduFromEfRecord()
847 addr.address = new String(addr.origBytes);
1027 dos.write(destAddr.origBytes, 0, destAddr.origBytes.length); // digits
1093 dos.write(addr.origBytes, 0, addr.origBytes.length); // digits
1133 dos.write(addr.origBytes, 0, addr.origBytes.length); // digits
1212 output.write(mEnvelope.origAddress.origBytes, 0, mEnvelope.origAddress.origBytes.length);
1215 if (mEnvelope.origSubaddress != null && mEnvelope.origSubaddress.origBytes != null) {
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandler.java121 dos.write(destAddr.origBytes, 0, destAddr.origBytes.length); // digits in CdmaInboundSmsHandler()
468 nonNullAddress.origBytes = new byte[]{(byte) 0xFF}; in handleTestAction()
512 nonNullAddress.origBytes = new byte[]{(byte) 0xFF}; in handleTestAction()
525 origAddr.origBytes = decodeHexString(addressString); in handleTestAction()
526 if (origAddr.origBytes == null) { in handleTestAction()
DSmsMessageConverter.java84 addr.origBytes = data; in newCdmaSmsMessageFromRil()
102 subaddr.origBytes = data; in newCdmaSmsMessageFromRil()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsAddress.java35 public byte[] origBytes; field in SmsAddress