Home
last modified time | relevance | path

Searched refs:writeToBytes (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DBpfMap.java138 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), BPF_ANY); in updateEntry()
149 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertEntry()
166 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in replaceEntry()
185 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertOrReplaceEntry()
192 nativeWriteToMapEntry(mMapFd.getFd(), key.writeToBytes(), value.writeToBytes(), in insertOrReplaceEntry()
210 return nativeDeleteMapEntry(mMapFd.getFd(), key.writeToBytes()); in deleteEntry()
217 key == null ? null : key.writeToBytes(), in getNextKeyInternal()
249 return nativeFindMapEntry(mMapFd.getFd(), key.writeToBytes(), rawValue); in containsKey()
258 if (!nativeFindMapEntry(mMapFd.getFd(), key.writeToBytes(), rawValue)) return null; in getValue()
DIpv6Utils.java125 ByteBuffer.wrap(raHeader.writeToBytes(ByteOrder.BIG_ENDIAN)), options); in buildRaPacket()
138 ByteBuffer.wrap(naHeader.writeToBytes(ByteOrder.BIG_ENDIAN)), options); in buildNaPacket()
151 ByteBuffer.wrap(nsHeader.writeToBytes(ByteOrder.BIG_ENDIAN)), options); in buildNsPacket()
163 ByteBuffer.wrap(rsHeader.writeToBytes(ByteOrder.BIG_ENDIAN)), options); in buildRsPacket()
177 ByteBuffer.wrap(rsHeader.writeToBytes(ByteOrder.BIG_ENDIAN)), options); in buildRsPacket()
DBpfDump.java46 final byte[] keyBytes = key.writeToBytes(); in toBase64EncodedString()
49 final byte[] valueBytes = value.writeToBytes(); in toBase64EncodedString()
DStruct.java673 public final byte[] writeToBytes(final ByteOrder order) { in writeToBytes() method in Struct
683 public final byte[] writeToBytes() { in writeToBytes() method in Struct
684 return writeToBytes(ByteOrder.nativeOrder()); in writeToBytes()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DStructTest.java126 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in verifyHeaderParsing()
164 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testClassWithDefaultConstructor()
235 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testNetworkOrder()
276 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testUnsignedData()
316 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testBigIntegerSmallValueOrZero()
348 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testSignedPositiveData()
362 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testSignedNegativeData()
469 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in verifyPrefixByteArrayParsing()
561 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testStaticConstantField()
602 msg.writeToBytes(ByteOrder.LITTLE_ENDIAN)); in testClassWithTwoConstructors()
[all …]
DBpfDumpTest.java67 assertEquals("7B000000", HexDump.toHexString(key.writeToBytes())); in testToBase64EncodedString()
68 assertEquals("C8010000", HexDump.toHexString(value.writeToBytes())); in testToBase64EncodedString()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/xfrm/
DStructXfrmId.java65 this(new StructXfrmAddressT(destAddress).writeToBytes(), spi, proto); in StructXfrmId()
DStructXfrmUsersaId.java74 this(new StructXfrmAddressT(destAddress).writeToBytes(), spi, family, proto); in StructXfrmUsersaId()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DLlaOption.java59 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DMtuOption.java63 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DIaPdOption.java79 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DIaAddressOption.java82 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DRouteInformationOption.java95 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DPrefixInformationOption.java122 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
DIaPrefixOption.java150 return ByteBuffer.wrap(option.writeToBytes(ByteOrder.BIG_ENDIAN)); in build()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/structs/
DFragmentHeaderTest.java72 byte[] bytes = fragHdr.writeToBytes(ByteOrder.BIG_ENDIAN); in testWriteToBytes()
DStructMrt6MsgTest.java54 byte[] bytes = msg.writeToBytes(); in testWriteToBytes()
DStructMif6ctlTest.java66 byte[] bytes = mif6ctl.writeToBytes(); in testWriteToBytes()
DStructMf6cctlTest.java98 byte[] bytes = mf6cctl.writeToBytes(); in testWriteToBytes()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DMulticastRoutingCoordinatorService.java801 final byte[] bytes = mif6ctl.writeToBytes(); in setsockoptMrt6AddMif()
812 final byte[] bytes = mf6cctl.writeToBytes(); in setsockoptMrt6AddMfc()
818 final byte[] bytes = mf6cctl.writeToBytes(); in setsockoptMrt6DelMfc()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DStructNdOptPioTest.java145 return ByteBuffer.wrap(pio.writeToBytes(ByteOrder.BIG_ENDIAN)); in makePioOption()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DRtNetlinkRouteMessage.java315 mRtaCacheInfo.writeToBytes()); in pack()
DRtNetlinkAddressMessage.java158 mIfacacheInfo.writeToBytes()); in pack()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java1287 assertEquals(28, key.writeToBytes().length); in testIpv6DownstreamRuleMakeTetherDownstream6Key()
1302 assertEquals(20, value.writeToBytes().length); in testIpv6DownstreamRuleMakeTether6Value()
1318 assertEquals(24, key.writeToBytes().length); in testIpv6UpstreamRuleMakeTetherUpstream6Key()
1334 assertEquals(20, value.writeToBytes().length); in testIpv6UpstreamRuleMakeTether6Value()