Home
last modified time | relevance | path

Searched refs:bufferLength (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/java/android/media/midi/
DMidiPortImpl.java97 public static int getPacketType(byte[] buffer, int bufferLength) { in getPacketType() argument
105 public static int getDataOffset(byte[] buffer, int bufferLength) { in getDataOffset() argument
114 public static int getDataSize(byte[] buffer, int bufferLength) { in getDataSize() argument
116 return bufferLength - DATA_PACKET_OVERHEAD; in getDataSize()
123 public static long getPacketTimestamp(byte[] buffer, int bufferLength) { in getPacketTimestamp() argument
125 int offset = bufferLength; in getPacketTimestamp()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DByteBufferWriter.java131 private static boolean needToReallocate(int requestedSize, int bufferLength) { in needToReallocate() argument
133 return bufferLength < requestedSize in needToReallocate()
134 && bufferLength < requestedSize * BUFFER_REALLOCATION_THRESHOLD; in needToReallocate()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp198 size_t bufferLength = static_cast<size_t>(bufSize); in produceFrame() local
252 if (bufferLength < totalSizeBytes) { in produceFrame()
254 __FUNCTION__, bufferLength); in produceFrame()
274 if (bufferLength < totalSizeBytes) { in produceFrame()
276 __FUNCTION__, bufferLength); in produceFrame()
312 if (bufferLength < totalSizeBytes) { in produceFrame()
314 __FUNCTION__, bufferLength); in produceFrame()
333 .jpeg_size = (uint32_t)bufferLength in produceFrame()
336 size_t totalJpegSize = bufferLength + sizeof(footer); in produceFrame()
352 memcpy(img, pixelBuffer, bufferLength); in produceFrame()
Dandroid_hardware_Camera.cpp237 jsize bufferLength = env->GetArrayLength(obj); in getCallbackBuffer() local
238 if ((int)bufferLength < (int)bufferSize) { in getCallbackBuffer()
240 bufferSize, bufferLength); in getCallbackBuffer()
/frameworks/base/core/java/android/hardware/location/
DContextHubMessage.java116 int bufferLength = in.readInt(); in ContextHubMessage() local
117 mData = new byte[bufferLength]; in ContextHubMessage()
/frameworks/av/media/libmedia/
DIDataSource.cpp117 const int bufferLength = data.readInt32(); in DrmInitialization() local
118 if (bufferLength != -1) { in DrmInitialization()
120 handle->decryptInfo->decryptBufferLength = bufferLength; in DrmInitialization()
/frameworks/base/wifi/java/android/net/wifi/rtt/
DCivicLocation.java126 int bufferLength = civicTLVs.length; in parseCivicTLVs() local
130 while (bufferPtr < bufferLength) { in parseCivicTLVs()
134 if (bufferPtr + TLV_VALUE_INDEX + civicAddressTypeLength > bufferLength) { in parseCivicTLVs()
DResponderLocation.java473 int bufferLength = buffer.length; in parseInformationElementBuffer() local
476 if (bufferLength < MIN_BUFFER_SIZE || bufferLength > MAX_BUFFER_SIZE) { in parseInformationElementBuffer()
489 while (bufferPtr + 1 < bufferLength) { in parseInformationElementBuffer()
493 if ((bufferPtr + subelementLength) > bufferLength || subelementLength <= 0) { in parseInformationElementBuffer()
/frameworks/av/media/mtp/
DMtpUtils.h31 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
DMtpUtils.cpp91 void formatDateTime(time_t seconds, char* buffer, int bufferLength) { in formatDateTime() argument
95 snprintf(buffer, bufferLength, "%04d%02d%02dT%02d%02d%02d", in formatDateTime()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java357 final int bufferLength = (buffer != null ? buffer.length : 0); in checkBounds() local
358 if (length < 0 || start < 0 || start + length > bufferLength) { in checkBounds()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBCodedOutputStream.m933 NSUInteger bufferLength = state_.size;
934 NSUInteger bufferBytesLeft = bufferLength - state_.position;
947 state_.position = bufferLength;
949 bufferLength = state_.size;
954 if (length <= bufferLength) {