Searched defs:byteBuffer (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/services/net/java/android/net/netlink/
H A DNetlinkErrorMessage.java32 public static NetlinkErrorMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { argument
35 errorMsg.mNlMsgErr = StructNlMsgErr.parse(byteBuffer);
H A DNetlinkMessage.java45 public static NetlinkMessage parse(ByteBuffer byteBuffer) { argument
46 final int startPosition = (byteBuffer != null) ? byteBuffer.position() : -1;
47 final StructNlMsgHdr nlmsghdr = StructNlMsgHdr.parse(byteBuffer);
54 if (payloadLength < 0 || payloadLength > byteBuffer.remaining()) {
56 byteBuffer.position(byteBuffer.limit());
63 return (NetlinkMessage) NetlinkErrorMessage.parse(nlmsghdr, byteBuffer);
65 byteBuffer.position(byteBuffer
[all...]
H A DStructNfGenMsg.java46 public void pack(ByteBuffer byteBuffer) { argument
47 byteBuffer.put(nfgen_family);
48 byteBuffer.put(version);
49 byteBuffer.putShort(res_id);
H A DStructNlMsgErr.java36 public static boolean hasAvailableSpace(ByteBuffer byteBuffer) { argument
37 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE;
40 public static StructNlMsgErr parse(ByteBuffer byteBuffer) { argument
41 if (!hasAvailableSpace(byteBuffer)) { return null; }
47 struct.error = byteBuffer.getInt();
48 struct.msg = StructNlMsgHdr.parse(byteBuffer);
55 public void pack(ByteBuffer byteBuffer) { argument
59 byteBuffer.putInt(error);
61 msg.pack(byteBuffer);
[all...]
H A DStructNdaCacheInfo.java36 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { argument
37 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE;
40 public static StructNdaCacheInfo parse(ByteBuffer byteBuffer) { argument
41 if (!hasAvailableSpace(byteBuffer)) { return null; }
47 struct.ndm_used = byteBuffer.getInt();
48 struct.ndm_confirmed = byteBuffer.getInt();
49 struct.ndm_updated = byteBuffer.getInt();
50 struct.ndm_refcnt = byteBuffer.getInt();
H A DConntrackMessage.java90 final ByteBuffer byteBuffer = ByteBuffer.wrap(bytes);
91 byteBuffer.order(ByteOrder.nativeOrder());
98 ctmsg.pack(byteBuffer);
100 ctaTupleOrig.pack(byteBuffer);
101 ctaTimeout.pack(byteBuffer);
113 public void pack(ByteBuffer byteBuffer) { argument
114 mHeader.pack(byteBuffer);
115 mNfGenMsg.pack(byteBuffer);
H A DStructNlAttr.java45 // |byteBuffer| and without copying or interpreting any value bytes.
48 public static StructNlAttr peek(ByteBuffer byteBuffer) { argument
49 if (byteBuffer == null || byteBuffer.remaining() < NLA_HEADERLEN) {
52 final int baseOffset = byteBuffer.position();
55 final StructNlAttr struct = new StructNlAttr(byteBuffer.order());
57 final ByteOrder originalOrder = byteBuffer.order();
58 byteBuffer.order(ByteOrder.nativeOrder());
60 struct.nla_len = byteBuffer.getShort();
61 struct.nla_type = byteBuffer
74 parse(ByteBuffer byteBuffer) argument
183 pack(ByteBuffer byteBuffer) argument
[all...]
H A DStructNlMsgHdr.java77 public static boolean hasAvailableSpace(ByteBuffer byteBuffer) { argument
78 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE;
81 public static StructNlMsgHdr parse(ByteBuffer byteBuffer) { argument
82 if (!hasAvailableSpace(byteBuffer)) { return null; }
88 struct.nlmsg_len = byteBuffer.getInt();
89 struct.nlmsg_type = byteBuffer.getShort();
90 struct.nlmsg_flags = byteBuffer.getShort();
91 struct.nlmsg_seq = byteBuffer.getInt();
92 struct.nlmsg_pid = byteBuffer
115 pack(ByteBuffer byteBuffer) argument
[all...]
H A DStructNdMsg.java102 private static boolean hasAvailableSpace(ByteBuffer byteBuffer) { argument
103 return byteBuffer != null && byteBuffer.remaining() >= STRUCT_SIZE;
106 public static StructNdMsg parse(ByteBuffer byteBuffer) { argument
107 if (!hasAvailableSpace(byteBuffer)) { return null; }
113 struct.ndm_family = byteBuffer.get();
114 final byte pad1 = byteBuffer.get();
115 final short pad2 = byteBuffer.getShort();
116 struct.ndm_ifindex = byteBuffer.getInt();
117 struct.ndm_state = byteBuffer
133 pack(ByteBuffer byteBuffer) argument
[all...]
H A DRtNetlinkNeighborMessage.java57 private static StructNlAttr findNextAttrOfType(short attrType, ByteBuffer byteBuffer) { argument
58 while (byteBuffer != null && byteBuffer.remaining() > 0) {
59 final StructNlAttr nlAttr = StructNlAttr.peek(byteBuffer);
64 return StructNlAttr.parse(byteBuffer);
66 if (byteBuffer.remaining() < nlAttr.getAlignedLength()) {
69 byteBuffer.position(byteBuffer.position() + nlAttr.getAlignedLength());
74 public static RtNetlinkNeighborMessage parse(StructNlMsgHdr header, ByteBuffer byteBuffer) { argument
77 neighMsg.mNdmsg = StructNdMsg.parse(byteBuffer);
219 packNlAttr(short nlType, byte[] nlValue, ByteBuffer byteBuffer) argument
227 pack(ByteBuffer byteBuffer) argument
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbDescriptorParser.cpp85 jbyte* byteBuffer = NULL; local
89 (void**)&byteBuffer, &numUSC2Bytes);
94 j_str = env->NewString((jchar*)byteBuffer, numUSC2Bytes/2);
95 free(byteBuffer);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifModifier.java47 protected ExifModifier(ByteBuffer byteBuffer, ExifInterface iRef) throws IOException, argument
49 mByteBuffer = byteBuffer;
50 mOffsetBase = byteBuffer.position();
54 is = new ByteBufferInputStream(byteBuffer);
/frameworks/base/services/net/java/android/net/ip/
H A DIpNeighborMonitor.java176 final ByteBuffer byteBuffer = ByteBuffer.wrap(recvbuf, 0, length);
177 byteBuffer.order(ByteOrder.nativeOrder());
179 parseNetlinkMessageBuffer(byteBuffer, whenMs);
182 private void parseNetlinkMessageBuffer(ByteBuffer byteBuffer, long whenMs) { argument
183 while (byteBuffer.remaining() > 0) {
184 final int position = byteBuffer.position();
185 final NetlinkMessage nlMsg = NetlinkMessage.parse(byteBuffer);
187 byteBuffer.position(position);
188 mLog.e("unparsable netlink msg: " + hexify(byteBuffer));
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DMetadataListReader.java87 * @param byteBuffer ByteBuffer to read emoji metadata from
89 static MetadataList read(final ByteBuffer byteBuffer) throws IOException { argument
90 final ByteBuffer newBuffer = byteBuffer.duplicate();
312 * @param byteBuffer ByteBuffer to read from
314 ByteBufferReader(final ByteBuffer byteBuffer) { argument
315 mByteBuffer = byteBuffer;
H A DMetadataRepo.java113 * @param byteBuffer ByteBuffer to read emoji metadata from
116 @NonNull final ByteBuffer byteBuffer) throws IOException {
117 return new MetadataRepo(typeface, MetadataListReader.read(byteBuffer));
115 create(@onNull final Typeface typeface, @NonNull final ByteBuffer byteBuffer) argument
/frameworks/av/media/libaaudio/src/client/
H A DAudioStreamInternalPlay.cpp203 uint8_t *byteBuffer = (uint8_t *) buffer; local
225 (void *)byteBuffer,
236 byteBuffer += numBytes;
/frameworks/base/core/jni/
H A Dandroid_net_LocalSocketImpl.cpp355 jbyte* byteBuffer; local
379 byteBuffer = env->GetByteArrayElements(buffer, NULL);
381 if (NULL == byteBuffer) {
387 fd, byteBuffer + off, len);
391 env->ReleaseByteArrayElements(buffer, byteBuffer, 0);
423 jbyte* byteBuffer; local
441 byteBuffer = env->GetByteArrayElements(buffer,NULL);
443 if (NULL == byteBuffer) {
449 byteBuffer + off, len);
453 env->ReleaseByteArrayElements(buffer, byteBuffer, JNI_ABOR
[all...]
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
H A DBTtraffic.java218 ByteBuffer byteBuffer = ByteBuffer.allocate(maxbuffersize);
221 readBytesIntoBuffer(inputStream, byteBuffer, 4);
222 byteBuffer.flip();
223 int length = byteBuffer.getInt();
226 readBytesIntoBuffer(inputStream, byteBuffer, length);
233 void readBytesIntoBuffer(InputStream inputStream, ByteBuffer byteBuffer, int numToRead) argument
235 byteBuffer.clear();
237 int position = byteBuffer.position();
242 int count = inputStream.read(byteBuffer.array(), position, remaining);
246 byteBuffer
[all...]
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.cpp247 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); local
262 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]);
306 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); local
317 &byteBuffer[byteOffset]);
/frameworks/native/opengl/libs/EGL/
H A DBlobCache.cpp193 uint8_t* byteBuffer = reinterpret_cast<uint8_t*>(buffer); local
208 EntryHeader* eheader = reinterpret_cast<EntryHeader*>(&byteBuffer[byteOffset]);
252 const uint8_t* byteBuffer = reinterpret_cast<const uint8_t*>(buffer); local
263 &byteBuffer[byteOffset]);
/frameworks/base/media/java/android/media/
H A DMediaSync.java177 public AudioBuffer(@NonNull ByteBuffer byteBuffer, int bufferId, argument
179 mByteBuffer = byteBuffer;
/frameworks/support/heifwriter/src/main/java/androidx/heifwriter/
H A DHeifWriter.java538 @NonNull HeifEncoder encoder, @NonNull ByteBuffer byteBuffer) {
552 info.set(byteBuffer.position(), byteBuffer.remaining(), 0, 0);
554 mTrackIndexArray[mOutputIndex / mNumTiles], byteBuffer, info);
537 onDrainOutputBuffer( @onNull HeifEncoder encoder, @NonNull ByteBuffer byteBuffer) argument
H A DHeifEncoder.java138 * @param byteBuffer the available output buffer.
141 @NonNull HeifEncoder encoder, @NonNull ByteBuffer byteBuffer);
140 onDrainOutputBuffer( @onNull HeifEncoder encoder, @NonNull ByteBuffer byteBuffer) argument
/frameworks/base/media/jni/
H A Dandroid_media_ImageReader.cpp735 jobject byteBuffer = NULL; local
770 byteBuffer = env->NewDirectByteBuffer(pData, dataSize);
771 if ((byteBuffer == NULL) && (env->ExceptionCheck() == false)) {
779 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);
H A Dandroid_media_ImageWriter.cpp780 jobject byteBuffer; local
812 byteBuffer = env->NewDirectByteBuffer(pData, dataSize);
813 if ((byteBuffer == NULL) && (env->ExceptionCheck() == false)) {
821 gSurfacePlaneClassInfo.ctor, thiz, rowStride, pixelStride, byteBuffer);

Completed in 257 milliseconds

12