/libcore/luni/src/main/java/java/nio/ |
FileChannelImpl.java | 275 public int read(ByteBuffer buffer, long position) throws IOException { 279 return readImpl(buffer, position); 282 public int read(ByteBuffer buffer) throws IOException { 283 return readImpl(buffer, -1); 286 private int readImpl(ByteBuffer buffer, long position) throws IOException { 287 buffer.checkWritable(); 290 if (!buffer.hasRemaining()) { 299 bytesRead = Libcore.os.read(fd, buffer); 301 bytesRead = Libcore.os.pread(fd, buffer, position); 319 buffer.position(buffer.position() + bytesRead) 381 ByteBuffer buffer = fileSrc.map(MapMode.READ_ONLY, filePosition, count); local 391 ByteBuffer buffer = ByteBuffer.allocate((int) count); local 438 ByteBuffer buffer = null; local [all...] |
/cts/suite/audio_quality/lib/src/audio/ |
AudioPlaybackLocal.cpp | 35 #include "audio/Buffer.h" 82 bool AudioPlaybackLocal::doPlaybackOrRecord(android::sp<Buffer>& buffer) 84 if (buffer->amountToHandle() < (size_t)mSizes) { 85 mSizes = buffer->amountToHandle(); 87 if (pcm_write(mPcmHandle, buffer->getUnhanledData(), mSizes)) { 91 buffer->increaseHandled(mSizes); 92 LOGV("AudioPlaybackLocal::doPlaybackOrRecord %d", buffer->amountHandled());
|
/external/apache-http/src/org/apache/http/impl/auth/ |
BasicScheme.java | 173 CharArrayBuffer buffer = new CharArrayBuffer(32); local 175 buffer.append(AUTH.PROXY_AUTH_RESP); 177 buffer.append(AUTH.WWW_AUTH_RESP); 179 buffer.append(": Basic "); 180 buffer.append(base64password, 0, base64password.length); 182 return new BufferedHeader(buffer);
|
/external/harfbuzz_ng/src/ |
hb-old.cc | 188 table_func (void *font, HB_Tag tag, HB_Byte *buffer, HB_UInt *length) 194 memcpy (buffer, hb_blob_get_data (blob, NULL), MIN (capacity, *length)); 274 hb_buffer_t *buffer, 282 bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction); 287 char *scratch = (char *) buffer->get_scratch_buffer (&scratch_size); 292 for (unsigned int i = 0; i < buffer->len; i++) { 293 hb_codepoint_t c = buffer->info[i].codepoint; 294 buffer->info[i].utf16_index() = chars_len; 319 item.item.script = hb_old_script_from_script (buffer->props.script); 352 buffer->ensure (buffer->allocated * 2) [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/tcp/ |
NioEndpoint.java | 126 ByteBuffer buffer; local 128 buffer = data; 130 // Copy the buffer 131 buffer = ByteBuffer.allocate(data.remaining()); 132 buffer.put(data); 133 buffer.flip(); 137 outbound.add(buffer); 145 * buffer for writing. 153 * Called by the SelectorKernel when the top buffer
|
/external/jpeg/ |
jdatadst.c | 29 JOCTET * buffer; /* start of buffer */ member in struct:__anon9370 47 /* Allocate the output buffer --- it will be released when done with image */ 48 dest->buffer = (JOCTET *) 52 dest->pub.next_output_byte = dest->buffer; 58 * Empty the output buffer --- called whenever buffer fills up. 60 * In typical applications, this should write the entire output buffer 62 * reset the pointer & count to the start of the buffer, and return TRUE 63 * indicating that the buffer has been dumped [all...] |
/external/qemu/distrib/jpeg-6b/ |
jdatadst.c | 29 JOCTET * buffer; /* start of buffer */ member in struct:__anon13210 47 /* Allocate the output buffer --- it will be released when done with image */ 48 dest->buffer = (JOCTET *) 52 dest->pub.next_output_byte = dest->buffer; 58 * Empty the output buffer --- called whenever buffer fills up. 60 * In typical applications, this should write the entire output buffer 62 * reset the pointer & count to the start of the buffer, and return TRUE 63 * indicating that the buffer has been dumped [all...] |
/external/skia/include/core/ |
SkPathEffect.h | 110 SkPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 163 SkComposePathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {} 194 SkSumPathEffect(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {}
|
/external/skia/src/gpu/ |
GrBufferAllocPool.h | 30 * At creation time a minimum per-buffer size can be specified. Additionally, 113 * Returns a block of memory to hold data. A buffer designated to hold the 114 * data is given to the caller. The buffer may or may not be locked. The 122 * buffer at the offset indicated by offset. Until that time it may be 123 * in temporary storage and/or the buffer may be locked. 126 * @param alignment alignment constraint from start of buffer 127 * @param buffer returns the buffer that will hold the data. 128 * @param offset returns the offset into buffer of the data. 133 const GrGeometryBuffer** buffer, [all...] |
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/ |
Instruction21t.java | 59 private Instruction21t(Opcode opcode, byte[] buffer, int bufferIndex) { 62 assert buffer[bufferIndex] == opcode.value; 64 regA = buffer[bufferIndex + 1]; 65 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); 99 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 100 return new Instruction21t(opcode, buffer, bufferIndex);
|
Instruction22c.java | 58 private Instruction22c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 59 super(dexFile, opcode, buffer, bufferIndex); 61 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 62 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 102 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 103 return new Instruction22c(dexFile, opcode, buffer, bufferIndex);
|
Instruction22cs.java | 62 private Instruction22cs(Opcode opcode, byte[] buffer, int bufferIndex) { 65 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 66 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 67 this.fieldOffset = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 93 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 94 return new Instruction22cs(opcode, buffer, bufferIndex);
|
Instruction3rms.java | 71 private Instruction3rms(Opcode opcode, byte[] buffer, int bufferIndex) { 74 this.regCount = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); 75 this.vtableIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 76 this.startReg = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 4); 103 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 104 return new Instruction3rms(opcode, buffer, bufferIndex);
|
Instruction52c.java | 62 private Instruction52c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 63 super(dexFile, opcode, buffer, bufferIndex); 65 this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6); 66 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 8); 90 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 91 return new Instruction52c(dexFile, opcode, buffer, bufferIndex);
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/ |
InstructionWithReference.java | 52 protected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 55 this.referenceType = readReferenceType(opcode, buffer, bufferIndex); 56 int itemIndex = getReferencedItemIndex(buffer, bufferIndex); 60 protected int getReferencedItemIndex(byte[] buffer, int bufferIndex) { 61 return NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 72 protected ReferenceType readReferenceType(Opcode opcode, byte[] buffer, int bufferIndex) {
|
/external/sonivox/arm-fm-22k/host_src/ |
eas_hostmm.c | 86 EAS_U8 *buffer; member in struct:eas_hw_file_tag 220 if (file->buffer == NULL) 234 /* allocate a buffer */ 235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); 236 if (file->buffer == NULL) 243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); 280 if (file->buffer == NULL) 290 EAS_HWMemCpy(pBuffer, &file->buffer[file->filePos], count); 313 if (file->buffer == NULL) 323 /* get a character from the buffer */ [all...] |
/external/sonivox/arm-hybrid-22k/host_src/ |
eas_hostmm.c | 86 EAS_U8 *buffer; member in struct:eas_hw_file_tag 220 if (file->buffer == NULL) 234 /* allocate a buffer */ 235 file->buffer = EAS_HWMalloc(hwInstData, file->fileSize); 236 if (file->buffer == NULL) 243 temp = (int) fread(file->buffer, (size_t) file->fileSize, 1, ioFile); 280 if (file->buffer == NULL) 290 EAS_HWMemCpy(pBuffer, &file->buffer[file->filePos], count); 313 if (file->buffer == NULL) 323 /* get a character from the buffer */ [all...] |
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
Latin1Converter.java | 38 * A converter that processes a byte buffer containing a mix of UTF8 and Latin-1/Cp1252 chars. 39 * The result is a buffer where those chars have been converted to UTF-8; 42 * <em>Explanation of the processing:</em> First the encoding of the buffer is detected looking 43 * at the first four bytes (that works only if the buffer starts with an ASCII-char, 58 * <em>Example:</em> If an Euro-symbol (?) appears in the byte buffer (0xE2, 0x82, 0xAC), 63 * @param buffer a byte buffer contain 64 * @return Returns a new buffer containing valid UTF-8 66 public static ByteBuffer convert(ByteBuffer buffer) 68 if ("UTF-8".equals(buffer.getEncoding()) [all...] |
/frameworks/av/media/libstagefright/ |
SurfaceMediaSource.cpp | 101 char buffer[1024]; local 102 dump(result, "", buffer, 1024); 106 char* buffer, size_t SIZE) const 110 result.append(buffer); 154 ALOGE("Failed to find the advertised buffer count"); 253 // GRalloc buffer. The encoder needs to interpret this GRalloc handle 259 static void passMetadataBuffer(MediaBuffer **buffer, 261 *buffer = new MediaBuffer(4 + sizeof(buffer_handle_t)); 262 char *data = (char *)(*buffer)->data(); 264 ALOGE("Cannot allocate memory for metadata buffer!"); [all...] |
/frameworks/base/libs/hwui/ |
PathTessellator.cpp | 27 i, buffer[i].position[0], buffer[i].position[1], buffer[i].alpha); \ 31 ALOGD("point %d at %f %f", i, buffer[i].position[0], buffer[i].position[1]); \ 165 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size()); local 173 copyVertex(&buffer[currentIndex++], &perimeter[srcAindex]); 175 copyVertex(&buffer[currentIndex++], &perimeter[srcBindex]); 190 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2); local 207 Vertex::set(&buffer[currentIndex++] 239 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); local 332 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); local 567 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); local 639 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8); local [all...] |
/hardware/invensense/mlsdk/mllite/ |
mldl.h | 138 unsigned char *buffer); 141 const unsigned char *buffer); 142 inv_error_t inv_load_dmp(const unsigned char *buffer, 153 unsigned char *buffer); 168 const unsigned char *buffer); 172 unsigned char *buffer);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DownloadUtils.java | 48 byte buffer[] = new byte[4096]; 49 int rc = is.read(buffer, 0, buffer.length); 59 os.write(buffer, 0, rc); 60 rc = is.read(buffer, 0, buffer.length);
|
/system/extras/tests/bionic/libc/common/ |
bench_stdio.c | 42 static char buffer[1024*1024]; variable 55 int totalSize = sizeof(buffer); 57 fread(buffer, 1, chunkSize, fp); 63 int totalSize = sizeof(buffer); 65 fwrite(buffer, 1, chunkSize, fp); 74 double bandwidth = sizeof(buffer)*1000./1024./time_ms; \
|
/external/freetype/include/freetype/internal/ |
ftstream.h | 152 /* Integer extraction macros -- the `buffer' parameter must ALWAYS be of */ 224 #define FT_NEXT_CHAR( buffer ) \ 225 ( (signed char)*buffer++ ) 227 #define FT_NEXT_BYTE( buffer ) \ 228 ( (unsigned char)*buffer++ ) 230 #define FT_NEXT_SHORT( buffer ) \ 231 ( (short)( buffer += 2, FT_PEEK_SHORT( buffer - 2 ) ) ) 233 #define FT_NEXT_USHORT( buffer ) \ 234 ( (unsigned short)( buffer += 2, FT_PEEK_USHORT( buffer - 2 ) ) [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
h264bsd_dpb.c | 287 if (index < 0 || !IS_EXISTING(dpb->buffer[index])) 294 dpb->list[refIdx++] = &dpb->buffer[index]; 297 if(dpb->list[j] != &dpb->buffer[index]) 317 HANTRO_NOK failure, picture does not exist in the buffer 338 SET_UNUSED(dpb->buffer[index]); 340 if (!dpb->buffer[index].toBeDisplayed) 357 HANTRO_NOK failure, picture does not exist in the buffer 374 SET_UNUSED(dpb->buffer[index]); 376 if (!dpb->buffer[index].toBeDisplayed) 395 buffer or is a non-existing picture, or invali [all...] |