Home
last modified time | relevance | path

Searched defs:byteBuffer (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/netlink/
DRtNetlinkRouteMessageTest.java94 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_HEX); in testParseRtmRouteMessage() local
113 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_PACK_HEX); in testPackRtmNewRoute() local
135 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_TRUNCATED_HEX); in testTruncatedRtmNewRoute() local
151 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_IPV4_MAPPED_IPV6_GATEWAY_HEX); in testParseRtmRouteMessage_IPv4MappedIPv6Gateway() local
168 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_IPV4_MAPPED_IPV6_DST_HEX); in testParseRtmRouteMessage_IPv4MappedIPv6Destination() local
186 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_HEX + RTM_NEWADDR_HEX); in testParseMultipleRtmMessagesInOneByteBuffer() local
204 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWROUTE_HEX); in testToString() local
DRtNetlinkLinkMessageTest.java64 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWLINK_HEX); in testParseRtmNewLink() local
116 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWLINK_UTF8_HEX); in testParseRtmNewLink_utf8Ifname() local
135 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWLINK_PACK_HEX); in testPackRtmNewLink() local
160 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWLINK_TRUNCATED_HEX); in testTruncatedRtmNewLink() local
175 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWLINK_HEX); in testToString() local
DConntrackMessageTest.java149 final ByteBuffer byteBuffer = ByteBuffer.wrap(tcp); in testConntrackParseIPv4TcpTimeoutUpdate() local
198 final ByteBuffer byteBuffer = ByteBuffer.wrap(udp); in testConntrackParseIPv4UdpTimeoutUpdate() local
292 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_V4NEW_TCP_BYTES); in testParseCtNew() local
343 final ByteBuffer byteBuffer = ByteBuffer.wrap(truncated); in testParseTruncation() local
362 final ByteBuffer byteBuffer = ByteBuffer.wrap(truncated); in testParseTruncationWithInvalidByte() local
393 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_MALFORMED_BYTES); in testParseMalformation() local
410 final ByteBuffer byteBuffer = ByteBuffer.wrap(CT_V4NEW_TCP_BYTES); in testToString() local
DRtNetlinkAddressMessageTest.java61 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWADDR_HEX); in testParseRtmNewAddress() local
101 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWADDR_PACK_HEX); in testPackRtmNewAddr() local
123 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWADDR_TRUNCATED_HEX); in testTruncatedRtmNewAddr() local
132 final ByteBuffer byteBuffer = toByteBuffer(RTM_NEWADDR_HEX); in testToString() local
DRtNetlinkNeighborMessageTest.java79 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_DELNEIGH); in testParseRtmDelNeigh() local
106 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_NEWNEIGH); in testParseRtmNewNeigh() local
133 final ByteBuffer byteBuffer = ByteBuffer.wrap(RTM_GETNEIGH_RESPONSE); in testParseRtmGetNeighResponse() local
/frameworks/libs/net/common/device/com/android/net/module/util/netlink/
DNetlinkMessage.java47 public static NetlinkMessage parse(@NonNull ByteBuffer byteBuffer, int nlFamily) { in parse()
113 @NonNull ByteBuffer byteBuffer, int payloadLength) { in parseCtlMessage()
128 @NonNull ByteBuffer byteBuffer) { in parseRtMessage()
151 @NonNull ByteBuffer byteBuffer) { in parseInetDiagMessage()
161 @NonNull ByteBuffer byteBuffer) { in parseNfMessage()
DStructNlMsgErr.java31 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { in hasAvailableSpace()
42 public static StructNlMsgErr parse(ByteBuffer byteBuffer) { in parse()
60 public void pack(ByteBuffer byteBuffer) { in pack()
DStructNlAttr.java58 public static StructNlAttr peek(ByteBuffer byteBuffer) { in peek()
89 public static StructNlAttr parse(ByteBuffer byteBuffer) { in parse()
118 @Nullable ByteBuffer byteBuffer) { in findNextAttrOfType()
235 final ByteBuffer byteBuffer = getValueAsByteBuffer(); in getValueAsBe16() local
252 final ByteBuffer byteBuffer = getValueAsByteBuffer(); in getValueAsBe32() local
282 final ByteBuffer byteBuffer = getValueAsByteBuffer(); in getValueAsByte() local
293 final ByteBuffer byteBuffer = getValueAsByteBuffer(); in getValueAsInteger() local
366 public void pack(ByteBuffer byteBuffer) { in pack()
DStructNfGenMsg.java50 public static StructNfGenMsg parse(@NonNull ByteBuffer byteBuffer) { in parse()
81 public void pack(ByteBuffer byteBuffer) { in pack()
91 private static boolean hasAvailableSpace(@NonNull ByteBuffer byteBuffer) { in hasAvailableSpace()
DRtNetlinkNeighborMessage.java61 @NonNull ByteBuffer byteBuffer) { in parse()
112 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); in newGetNeighborsRequest() local
150 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); in newNewNeighborMessage() local
206 private static void packNlAttr(short nlType, byte[] nlValue, ByteBuffer byteBuffer) { in packNlAttr()
217 public void pack(ByteBuffer byteBuffer) { in pack()
DStructNlMsgHdr.java89 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { in hasAvailableSpace()
97 public static StructNlMsgHdr parse(@NonNull ByteBuffer byteBuffer) { in parse()
134 public void pack(ByteBuffer byteBuffer) { in pack()
DStructIfacacheInfo.java65 public static StructIfacacheInfo parse(@NonNull final ByteBuffer byteBuffer) { in parse()
75 public void pack(@NonNull final ByteBuffer byteBuffer) { in pack()
DStructIfinfoMsg.java68 public static StructIfinfoMsg parse(@NonNull final ByteBuffer byteBuffer) { in parse()
78 public void pack(@NonNull final ByteBuffer byteBuffer) { in pack()
DStructIfaddrMsg.java68 public static StructIfaddrMsg parse(@NonNull final ByteBuffer byteBuffer) { in parse()
78 public void pack(@NonNull final ByteBuffer byteBuffer) { in pack()
DStructNdaCacheInfo.java35 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { in hasAvailableSpace()
46 public static StructNdaCacheInfo parse(ByteBuffer byteBuffer) { in parse()
DStructNdMsg.java118 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { in hasAvailableSpace()
129 public static StructNdMsg parse(ByteBuffer byteBuffer) { in parse()
159 public void pack(ByteBuffer byteBuffer) { in pack()
DConntrackMessage.java206 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes); in newIPv4TimeoutUpdateRequest() local
233 @NonNull ByteBuffer byteBuffer) { in parse()
317 private static Tuple parseTuple(@Nullable ByteBuffer byteBuffer) { in parseTuple()
347 private static TupleIpv4 parseTupleIpv4(@Nullable ByteBuffer byteBuffer) { in parseTupleIpv4()
371 private static TupleProto parseTupleProto(@Nullable ByteBuffer byteBuffer) { in parseTupleProto()
466 public void pack(ByteBuffer byteBuffer) { in pack()
DStructRtMsg.java81 public static StructRtMsg parse(@NonNull final ByteBuffer byteBuffer) { in parse()
91 public void pack(@NonNull final ByteBuffer byteBuffer) { in pack()
DRtNetlinkAddressMessage.java91 @NonNull final ByteBuffer byteBuffer) { in parse()
129 protected void pack(ByteBuffer byteBuffer) { in pack()
DRtNetlinkLinkMessage.java89 @NonNull final ByteBuffer byteBuffer) { in parse()
123 protected void pack(ByteBuffer byteBuffer) { in pack()
DRtNetlinkRouteMessage.java114 @NonNull final ByteBuffer byteBuffer) { in parse()
168 protected void pack(ByteBuffer byteBuffer) { in pack()
DStructInetDiagMsg.java50 public static StructInetDiagMsg parse(ByteBuffer byteBuffer) { in parse()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java167 ByteBuffer byteBuffer = ByteBuffer.allocate(numbers.length * (Double.SIZE / Byte.SIZE)) in toByteArray() local
229 ByteBuffer byteBuffer = ByteBuffer.allocate(byteLength).order(ByteOrder.nativeOrder()); in toByteArray() local
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java448 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesCounterIdAsSecondParam() local
464 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesMaxAttemptsAsThirdParam() local
478 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesVaultHandleAsLastParam() local
495 ByteBuffer byteBuffer = ByteBuffer.wrap(packedForm) in packVaultParams_encodesVaultHandleWithLength8AsLastParam() local
/frameworks/base/core/java/android/net/
DUriCodec.java100 ByteBuffer byteBuffer = ByteBuffer.allocate(s.length()); in appendDecoded() local
156 ByteBuffer byteBuffer, in flushDecodingByteAccumulator()

123