Home
last modified time | relevance | path

Searched refs:subAddress (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DPrivateAddressCoordinator.java299 final int subAddress = getSanitizedSubAddr(randomInt, ~prefixMask); in chooseDownstreamAddress() local
305 if (downstreamPrefix != null) return getLinkAddress(downstreamPrefix, subAddress); in chooseDownstreamAddress()
311 return getLinkAddress(downstreamPrefix, subAddress); in chooseDownstreamAddress()
314 private LinkAddress getLinkAddress(final IpPrefix prefix, final int subAddress) { in getLinkAddress() argument
317 final InetAddress address = intToInet4AddressHTH(getPrefixBaseAddress(prefix) | subAddress); in getLinkAddress()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java162 msg.subAddress.subaddressType = 0; in createBroadcastParcel()
163 msg.subAddress.odd = false; in createBroadcastParcel()
256 subaddr.type = cdmaSmsMessage.subAddress.subaddressType; in convertHalCdmaSmsMessage()
257 subaddr.odd = (byte) (cdmaSmsMessage.subAddress.odd ? 1 : 0); in convertHalCdmaSmsMessage()
258 count = (byte) cdmaSmsMessage.subAddress.digits.size(); in convertHalCdmaSmsMessage()
269 data[index] = cdmaSmsMessage.subAddress.digits.get(index); in convertHalCdmaSmsMessage()
815 msg.subAddress.subaddressType = 0; in createServiceCategoryProgramDataParcel()
816 msg.subAddress.odd = false; in createServiceCategoryProgramDataParcel()