/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
H A D | QuotedPrintable.java | 43 ByteArrayOutputStream buffer = new ByteArrayOutputStream(); 58 buffer.write((char) ((u << 4) + l)); 63 buffer.write(b); 66 return buffer.toByteArray();
|
/frameworks/support/media/src/main/java/androidx/media/ |
H A D | Media2DataSource.java | 39 * {@code buffer}, and return the number of bytes written. 46 * @param buffer the buffer to read the data into. 47 * @param offset the offset within buffer to read the data into. 52 public abstract int readAt(long position, byte[] buffer, int offset, int size) argument
|
/frameworks/base/core/java/android/bluetooth/le/ |
H A D | BluetoothLeUtils.java | 45 StringBuilder buffer = new StringBuilder(); 46 buffer.append('{'); 48 buffer.append(array.keyAt(i)).append("=").append(Arrays.toString(array.valueAt(i))); 50 buffer.append('}'); 51 return buffer.toString(); 64 StringBuilder buffer = new StringBuilder(); 65 buffer.append('{'); 70 buffer.append(key).append("=").append(Arrays.toString(map.get(key))); 72 buffer.append(", "); 75 buffer [all...] |
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | UsbHid.java | 45 public void generateDescriptor(ByteBuffer buffer) { argument 46 buffer.put(new byte[] { 92 buffer.put(collection); 94 buffer.put(new byte[] { 100 public void generateReport(ByteBuffer buffer, Contact[] contacts, int contactCount) { argument 102 buffer.put((byte)mReportId); 104 buffer.put((byte)contactCount); 109 buffer.put((byte)((contact.id << 2) | 0x03)); 111 buffer.put((byte)contact.x).put((byte)(contact.x >> 8)); 113 buffer [all...] |
/frameworks/ex/framesequence/jni/ |
H A D | Stream.cpp | 42 size_t Stream::peek(void* buffer, size_t size) { argument 56 memcpy(buffer, mPeekBuffer + mPeekOffset, size); 60 size_t Stream::read(void* buffer, size_t size) { argument 65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read); 74 buffer = ((char*) buffer) + bytes_read; 77 bytes_read += doRead(buffer, size); 110 size_t MemoryStream::doRead(void* buffer, size_t size) { argument 112 memcpy(buffer, mBuffer, size); 118 size_t FileStream::doRead(void* buffer, size_ argument [all...] |
H A D | Stream.h | 29 size_t peek(void* buffer, size_t size); 30 size_t read(void* buffer, size_t size); 36 virtual size_t doRead(void* buffer, size_t size) = 0; 46 MemoryStream(void* buffer, size_t size, jobject buf) : argument 47 mBuffer((uint8_t*)buffer), 55 virtual size_t doRead(void* buffer, size_t size); 68 virtual size_t doRead(void* buffer, size_t size); 83 virtual size_t doRead(void* buffer, size_t size);
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 44 private static native FrameSequence nativeDecodeByteBuffer(ByteBuffer buffer, int offset, int capacity); argument 74 public static FrameSequence decodeByteBuffer(ByteBuffer buffer) { argument 75 if (buffer == null) throw new IllegalArgumentException(); 76 if (!buffer.isDirect()) { 77 if (buffer.hasArray()) { 78 byte[] byteArray = buffer.array(); 79 return decodeByteArray(byteArray, buffer.position(), buffer.remaining()); 84 return nativeDecodeByteBuffer(buffer, buffer [all...] |
/frameworks/av/media/libmedia/include/media/ |
H A D | MediaBufferHolder.h | 27 MediaBufferHolder(MediaBufferBase* buffer) argument 28 : mMediaBuffer(buffer) {
|
/frameworks/av/media/libstagefright/ |
H A D | DataURISource.cpp | 37 sp<ABuffer> buffer; local 52 buffer = decodeBase64(encoded); 54 if (buffer == NULL) { 61 buffer = new ABuffer(dataLen); 62 memcpy(buffer->data(), commaPos + 1, dataLen); 74 return new DataURISource(buffer); 77 DataURISource::DataURISource(const sp<ABuffer> &buffer) argument 78 : mBuffer(buffer) {
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | AAVCAssembler.cpp | 69 sp<ABuffer> buffer = *queue->begin(); local 73 mNextExpectedSeqNo = (uint32_t)buffer->int32Data(); 74 } else if ((uint32_t)buffer->int32Data() != mNextExpectedSeqNo) { 80 const uint8_t *data = buffer->data(); 81 size_t size = buffer->size(); 86 ALOGV("Ignoring corrupt buffer."); 95 addSingleNALUnit(buffer); 104 bool success = addSingleTimeAggregationPacket(buffer); 117 ALOGV("Ignoring unsupported buffer (nalType=%d)", nalType); 126 void AAVCAssembler::addSingleNALUnit(const sp<ABuffer> &buffer) { argument 143 addSingleTimeAggregationPacket(const sp<ABuffer> &buffer) argument 184 sp<ABuffer> buffer = *queue->begin(); local 230 const sp<ABuffer> &buffer = *it; local 295 const sp<ABuffer> &buffer = *it; local [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableReprocessFormatsMap.java | 44 public void marshal(ReprocessFormatsMap value, ByteBuffer buffer) { argument 57 buffer.putInt(input); 62 buffer.putInt(outputs.length); 66 buffer.putInt(output); 72 public ReprocessFormatsMap unmarshal(ByteBuffer buffer) { argument 73 int len = buffer.remaining() / SIZEOF_INT32; 74 if (buffer.remaining() % SIZEOF_INT32 != 0) { 80 IntBuffer intBuffer = buffer.asIntBuffer();
|
H A D | MarshalQueryableSize.java | 40 public void marshal(Size value, ByteBuffer buffer) { argument 41 buffer.putInt(value.getWidth()); 42 buffer.putInt(value.getHeight()); 46 public Size unmarshal(ByteBuffer buffer) { argument 47 int width = buffer.getInt(); 48 int height = buffer.getInt();
|
H A D | MarshalQueryableSizeF.java | 42 public void marshal(SizeF value, ByteBuffer buffer) { argument 43 buffer.putFloat(value.getWidth()); 44 buffer.putFloat(value.getHeight()); 48 public SizeF unmarshal(ByteBuffer buffer) { argument 49 float width = buffer.getFloat(); 50 float height = buffer.getFloat();
|
/frameworks/base/core/java/android/util/ |
H A D | LogPrinter.java | 48 * Same as above, but buffer is one of the LOG_ID_ constants from android.util.Log. 50 public LogPrinter(int priority, String tag, int buffer) { argument 53 mBuffer = buffer;
|
/frameworks/base/core/jni/android/graphics/ |
H A D | GraphicBuffer.cpp | 95 explicit GraphicBufferWrapper(const sp<GraphicBuffer>& buffer): buffer(buffer) { argument 96 LOG_ALWAYS_FATAL_IF(buffer == nullptr, "creating a null GraphicBuffer"); 99 return buffer; 104 sp<GraphicBuffer> const buffer; member in class:android::GraphicBufferWrapper 123 sp<GraphicBuffer> buffer = new GraphicBuffer( local 128 status_t error = buffer->initCheck(); 134 GraphicBufferWrapper* wrapper = new GraphicBufferWrapper(buffer); 173 sp<GraphicBuffer> buffer(wrappe 258 sp<GraphicBuffer> buffer = new GraphicBuffer(); local 282 createJavaGraphicBuffer(JNIEnv* env, const sp<GraphicBuffer>& buffer) argument [all...] |
/frameworks/base/obex/javax/obex/ |
H A D | PrivateOutputStream.java | 92 public void write(byte[] buffer) throws IOException { argument 93 write(buffer, 0, buffer.length); 97 public synchronized void write(byte[] buffer, int offset, int count) throws IOException { argument 101 if (buffer == null) { 102 throw new IOException("buffer is null"); 104 if ((offset | count) < 0 || count > buffer.length - offset) { 112 mArray.write(buffer, offset1, bufferLeft); 118 mArray.write(buffer, offset1, remainLength);
|
/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener.h | 39 XmlFlattener(BigBuffer* buffer, XmlFlattenerOptions options) argument 40 : buffer_(buffer), options_(options) {
|
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/ |
H A D | in_memory_wrapper_input.h | 30 InMemoryWrapperInput(const char* buffer, size_t size); 32 // Tries to read the requested number of bytes into the buffer. Returns the 34 virtual size_t Read(uint8_t* buffer, size_t wanted); 35 // Returns true if at end of buffer. Note: May return false 38 // Returns the size of the buffer (in bytes). 40 // Moves to the given offset within the buffer. Returns 44 // The actual in-memory buffer 46 // The position in the buffer 50 // The size of the buffer.
|
/frameworks/native/include/gui/ |
H A D | HdrMetadata.h | 39 status_t flatten(void* buffer, size_t size) const; 40 status_t unflatten(void const* buffer, size_t size);
|
/frameworks/native/libs/gui/include/gui/ |
H A D | HdrMetadata.h | 39 status_t flatten(void* buffer, size_t size) const; 40 status_t unflatten(void const* buffer, size_t size);
|
/frameworks/native/services/sensorservice/ |
H A D | RecentEventLogger.cpp | 51 String8 buffer; local 53 buffer.appendFormat("last %zu events\n", mRecentEvents.size()); 58 buffer.appendFormat("\t%2d (ts=%.9f, wall=%02d:%02d:%02d.%03d) ", 65 buffer.appendFormat("%" PRIu64 ", ", ev.mEvent.u64.step_counter); 68 buffer.appendFormat("%.2f, ", ev.mEvent.data[k]); 72 buffer.append("[value masked]"); 74 buffer.append("\n"); 76 return std::string(buffer.string());
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | HSIconFileElementTest.java | 63 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer. 72 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer 79 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); 80 buffer.limit(buffer.remaining() - 1); 81 HSIconFileElement.parse(buffer); 85 * Verify that an expected {@link HSIconFileElement} is returned when parsing a buffer 92 ByteBuffer buffer = ByteBuffer.wrap(getTestData(HSIconFileElement.STATUS_CODE_SUCCESS)); 95 assertEquals(expected, HSIconFileElement.parse(buffer)); 99 * Verify that an expected {@link HSIconFileElement} is returned when parsing a buffer [all...] |
H A D | HSOsuProvidersElementTest.java | 69 * Verify that BufferUnderflowException will be thrown when parsing an empty buffer. 78 * Verify that BufferUnderflowException will be thrown when parsing a truncated buffer 85 ByteBuffer buffer = ByteBuffer.wrap(getTestData(TEST_OSU_SSID_BYTES)); 86 buffer.limit(buffer.remaining() - 1); 87 HSOsuProvidersElement.parse(buffer); 91 * Verify that ProtocolException will be thrown when parsing a buffer containing an 99 ByteBuffer buffer = ByteBuffer.wrap(getTestData(invalidSsidBytes)); 100 HSOsuProvidersElement.parse(buffer); 104 * Verify that an expected {@link HSOsuProvidersElement} will be returned when parsing a buffer [all...] |
/frameworks/base/core/java/android/content/pm/ |
H A D | LimitedLengthInputStream.java | 68 public int read(byte[] buffer, int offset, int byteCount) throws IOException { argument 73 final int arrayLength = buffer.length; 84 final int numRead = super.read(buffer, offset, byteCount); 91 public int read(byte[] buffer) throws IOException { argument 92 return read(buffer, 0, buffer.length);
|
/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_native_buffer.cpp | 20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument 28 char* data = reinterpret_cast<char*>(env->GetLongField(buffer, ptr_field)); 30 *size = env->GetIntField(buffer, size_field); 39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument 47 env->SetLongField(buffer, ptr_field, reinterpret_cast<jlong>(data)); 48 env->SetIntField(buffer, size_field, size); 71 // Get source buffer 79 // Attach it to new buffer
|