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.java46 origBytes = new byte[length]; in GsmSmsAddress()
47 System.arraycopy(data, offset, origBytes, 0, length); in GsmSmsAddress()
50 int addressLength = origBytes[OFFSET_ADDRESS_LENGTH] & 0xff; in GsmSmsAddress()
52 int toa = origBytes[OFFSET_TOA] & 0xff; in GsmSmsAddress()
65 address = GsmAlphabet.gsm7BitPackedToString(origBytes, in GsmSmsAddress()
72 byte lastByte = origBytes[length - 1]; in GsmSmsAddress()
76 origBytes[length - 1] |= 0xf0; in GsmSmsAddress()
79 origBytes, in GsmSmsAddress()
85 origBytes[length - 1] = lastByte; in GsmSmsAddress()
133 return (origBytes[OFFSET_ADDRESS_LENGTH] & 0xff) == 4 in isCphsVoiceMessageIndicatorAddress()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DCdmaSmsAddress.java111 builder.append(", origBytes=" + HexDump.toHexString(origBytes)); in toString()
210 byte[] origBytes; in parse()
233 origBytes = UserData.stringToAscii(filteredAddr); in parse()
236 origBytes = parseToDtmf(filteredAddr); in parse()
239 if (origBytes == null) { in parse()
243 addr.origBytes = origBytes; in parse()
244 addr.numberOfDigits = origBytes.length; in parse()
DCdmaSmsSubaddress.java24 public byte[] origBytes; field in CdmaSmsSubaddress
DBearerData.java894 addr.origBytes = addr.address.getBytes("US-ASCII"); in encodeCdmaSmsAddress()
899 addr.origBytes = encodeDtmfSmsAddress(addr.address); in encodeCdmaSmsAddress()
926 outStream.writeByteArray(dataBits, addr.origBytes); in encodeCallbackNumber()
1432 addr.origBytes = bData.userData.payload; in decodeIs91Cli()
1541 addr.address = new String(addr.origBytes, 0, addr.origBytes.length, "US-ASCII"); in decodeSmsAddress()
1546 addr.address = decodeDtmfSmsAddress(addr.origBytes, addr.numberOfDigits); in decodeSmsAddress()
1579 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.java488 addr.origBytes = new byte[length]; in parsePdu()
489 dis.read(addr.origBytes, 0, length); // digits in parsePdu()
607 addr.origBytes = data; in parsePduFromEfRecord()
630 subAddr.origBytes = subdata; in parsePduFromEfRecord()
839 addr.address = new String(addr.origBytes);
1019 dos.write(destAddr.origBytes, 0, destAddr.origBytes.length); // digits
1085 dos.write(addr.origBytes, 0, addr.origBytes.length); // digits
1125 dos.write(addr.origBytes, 0, addr.origBytes.length); // digits
1204 output.write(mEnvelope.origAddress.origBytes, 0, mEnvelope.origAddress.origBytes.length);
1207 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