/libcore/luni/src/test/java/libcore/java/io/ |
OldObjectOutputStreamTest.java | 200 // If there is no buffer then the bytes have already been written. 332 byte[] buffer; 341 buffer = baos.toByteArray(); 343 buffer.length >= 4); 346 s = buffer[0]; 348 s += ((short) buffer[1] & 0x00ff); 353 s = buffer[2]; 355 s += ((short) buffer[3] & 0x00ff);
|
/system/core/toolbox/ |
nandread.c | 32 void *buffer; local 138 buffer = malloc(mtdinfo.writesize + mtdinfo.oobsize + spare_size); 139 if (!buffer) { 146 oob_data = (uint32_t *)((uint8_t *)buffer + mtdinfo.writesize); 194 ret = read(fd, buffer, mtdinfo.writesize + rawmode); 242 ret = write(outfd, buffer, mtdinfo.writesize + spare_size); 261 if (test_empty(buffer, mtdinfo.writesize + mtdinfo.oobsize + spare_size))
|
/external/icu4c/test/intltest/ |
ucharstrietest.cpp | 504 UnicodeString buffer; local 505 UnicodeStringAppendable app(buffer); 507 if(count!=2 || buffer.length()!=2 || buffer[0]!=u_a || buffer[1]!=u_j) { 514 buffer.remove(); 516 if(count!=20 || buffer!=UNICODE_STRING_SIMPLE(".abcdefghijklmnopqru")) { 521 buffer.remove(); 523 if(count!=20 || buffer!=UNICODE_STRING_SIMPLE(".abcdefghijklmnopqru")) { 528 buffer.remove() 1036 char buffer[1000]; local [all...] |
/external/llvm/tools/lto/ |
LTOModule.cpp | 154 SSPBufferSize("stack-protector-buffer-size", cl::init(8), 155 cl::desc("Lower bound for a buffer to be considered for " 178 MemoryBuffer *buffer = makeBuffer(mem, length); local 179 if (!buffer) 181 return isTargetMatch(buffer, triplePrefix); 186 OwningPtr<MemoryBuffer> buffer; local 187 if (MemoryBuffer::getFile(path, buffer)) 189 return isTargetMatch(buffer.take(), triplePrefix); 192 /// isTargetMatch - Returns 'true' if the memory buffer is for the specified 194 bool LTOModule::isTargetMatch(MemoryBuffer *buffer, const char *triplePrefix) 203 OwningPtr<MemoryBuffer> buffer; local 221 OwningPtr<MemoryBuffer> buffer; local [all...] |
/frameworks/base/core/java/android/webkit/ |
WebSettingsClassic.java | 321 StringBuilder buffer = new StringBuilder(); local 322 addLocaleToHttpAcceptLanguage(buffer, locale); 325 if (buffer.length() > 0) { 326 buffer.append(", "); 328 buffer.append(ACCEPT_LANG_FOR_US_LOCALE); 331 return buffer.toString(); 392 StringBuffer buffer = new StringBuffer(); local 398 buffer.append(version); 402 buffer.append(PREVIOUS_VERSION); 406 buffer.append("1.0") [all...] |
/hardware/libhardware/tests/camera2/ |
camera2.cpp | 481 CpuConsumer::LockedBuffer buffer; local 482 res = rawConsumer->lockNextBuffer(&buffer); 488 ALOGV("Dumping raw buffer to %s", dumpname); 492 for (unsigned int y = 0; y < buffer.height; y++) { 494 (const char *)(buffer.data + y * buffer.stride * bpp), 495 buffer.width * bpp); 500 res = rawConsumer->unlockBuffer(buffer); 634 CpuConsumer::LockedBuffer buffer; local 635 res = rawConsumer->lockNextBuffer(&buffer); 784 CpuConsumer::LockedBuffer buffer; local [all...] |
/libcore/luni/src/main/java/java/lang/ |
String.java | 674 char[] buffer = new char[count + string.count]; local 675 System.arraycopy(value, offset, buffer, 0, count); 676 System.arraycopy(string.value, string.offset, buffer, count, string.count); 677 return new String(0, buffer.length, buffer); 860 ByteBuffer buffer = charset.encode(chars.asReadOnlyBuffer()); local 1305 char[] buffer = value; local 1473 char[] buffer = new char[count]; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/configuration/org.eclipse.osgi/bundles/121/1/.cp/lib/ |
apitooling-ant.jar | |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
CodedOutputStream.java | 52 private final byte[] buffer; field in class:CodedOutputStream 59 * The buffer size used in {@link #newInstance(OutputStream)}. 64 * Returns the buffer size to efficiently write dataLength bytes to this 67 * @return the buffer size to efficiently write dataLength bytes to this 75 private CodedOutputStream(final byte[] buffer, final int offset, 78 this.buffer = buffer; 83 private CodedOutputStream(final OutputStream output, final byte[] buffer) { 85 this.buffer = buffer; [all...] |
/dalvik/vm/ |
AllocTracker.cpp | 18 * Allocation tracking and reporting. We maintain a circular buffer with 21 * There are two basic approaches: manage the buffer with atomic updates 261 once in a memory buffer. 278 * We need to handle underflow in our circular buffer, so we add 366 * "baseLen" is zero. The return value is used to allocate a buffer. 367 * On the second call, "ptr" points to a data buffer, and "baseLen" 509 u1* buffer = NULL; local 549 * (Could also just write to an expanding buffer.) 561 * Part 3: allocate a buffer and generate the output. 565 buffer = (u1*) malloc(totalSize) [all...] |
/development/ndk/platforms/android-9/samples/native-plasma/jni/ |
plasma.c | 193 static void fill_plasma(ANativeWindow_Buffer* buffer, double t) 203 void* pixels = buffer->bits; 204 //LOGI("width=%d height=%d stride=%d format=%d", buffer->width, buffer->height, 205 // buffer->stride, buffer->format); 208 for (yy = 0; yy < buffer->height; yy++) { 224 uint16_t* line_end = line + buffer->width; 261 for (xx = 0; xx < buffer->width; xx++) { 273 pixels = (uint16_t*)pixels + buffer->stride 388 ANativeWindow_Buffer buffer; local [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/ |
socket.rb | 277 @buffer = StringIO.new 335 @buffer.string = string 336 @buffer.rewind 338 until @buffer.eof? 339 case c = @buffer.getc 341 nc = @buffer.getc 344 @buffer.ungetc( nc ) 345 @buffer.read( 3 ).to_i( 8 ).chr 347 @buffer.read( 2 ).to_i( 16 ).chr
|
/external/harfbuzz_ng/src/ |
hb-ot-map.cc | 105 void hb_ot_map_t::substitute (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const 113 hb_ot_layout_substitute_lookup (font, buffer, 118 buffer->clear_output (); 121 pause->callback (plan, font, buffer); 125 hb_ot_layout_substitute_lookup (font, buffer, lookups[table_index][i].index, 130 void hb_ot_map_t::position (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const 138 hb_ot_layout_position_lookup (font, buffer, lookups[table_index][i].index, 143 pause->callback (plan, font, buffer); 147 hb_ot_layout_position_lookup (font, buffer, lookups[table_index][i].index,
|
/external/jpeg/ |
rdtarga.c | 41 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 181 ptr = source->pub.buffer[0]; 199 ptr = source->pub.buffer[0]; 219 ptr = source->pub.buffer[0]; 246 ptr = source->pub.buffer[0]; 284 source->pub.buffer = (*cinfo->mem->access_virt_sarray) 313 source->pub.buffer = (*cinfo->mem->access_virt_sarray) 423 /* Create a virtual array to buffer the upside-down image. */ 431 /* source->pub.buffer will point to the virtual array. * [all...] |
/external/libnfc-nxp/src/ |
phFriNfc_LlcpTransport_Connection.c | 436 *pRemoteRW_Size = sValueBuffer.buffer[0]; 447 *pRemoteMIU = PHFRINFC_LLCP_MIU_DEFAULT + (((sValueBuffer.buffer[0] << 8) | sValueBuffer.buffer[1]) & PHFRINFC_LLCP_TLV_MIUX_MASK); 514 && !memcmp(sServiceName.buffer,psTransport->pSocketTable[index].sServiceName.buffer,sServiceName.length)) 814 /* Test if the DM buffer is correct */ [all...] |
phLibNfc_ndef_raw.c | 133 || (NULL == psRd->buffer) 191 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) 194 gpphLibContext->psBufferedAuth->sRecvData.buffer); 196 if(NULL != gpphLibContext->psBufferedAuth->sSendData.buffer) 199 gpphLibContext->psBufferedAuth->sSendData.buffer); 214 gpphLibContext->psBufferedAuth->sRecvData.buffer 216 gpphLibContext->psBufferedAuth->sSendData.buffer 238 gpphLibContext->ndef_cntx.psUpperNdefMsg->buffer, 388 || (NULL == psWr->buffer) 447 if(NULL != gpphLibContext->psBufferedAuth->sRecvData.buffer) [all...] |
/external/ppp/pppd/plugins/ |
winbind.c | 272 char buffer[1024]; local 390 while (fgets(buffer, sizeof(buffer)-1, pipe_out) != NULL) { 392 if (buffer[strlen(buffer)-1] != '\n') { 395 buffer[strlen(buffer)-1] = '\0'; 396 message = buffer; 398 if (!(parameter = strstr(buffer, ": "))) {
|
/external/qemu/distrib/jpeg-6b/ |
rdtarga.c | 41 #define ReadOK(file,buffer,len) (JFREAD(file,buffer,len) == ((size_t) (len))) 181 ptr = source->pub.buffer[0]; 199 ptr = source->pub.buffer[0]; 219 ptr = source->pub.buffer[0]; 246 ptr = source->pub.buffer[0]; 284 source->pub.buffer = (*cinfo->mem->access_virt_sarray) 313 source->pub.buffer = (*cinfo->mem->access_virt_sarray) 423 /* Create a virtual array to buffer the upside-down image. */ 431 /* source->pub.buffer will point to the virtual array. * [all...] |
/external/v8/test/cctest/ |
test-compiler.cc | 134 EmbeddedVector<char, 512> buffer; local 135 OS::SNPrintF(buffer, source, x); 137 Handle<JSFunction> fun = Compile(buffer.start()); 338 ScopedVector<char> buffer(buffer_size); 339 memset(buffer.start(), '\n', buffer_size - 1); 340 buffer[buffer_size - 1] = '\0'; 344 buffer[i - 1] = '\n'; 345 memcpy(&buffer[i], function_f, sizeof(function_f) - 1); 346 v8::Handle<v8::String> script_body = v8::String::New(buffer.start());
|
/external/webkit/Source/WebCore/platform/text/ |
TextCodecICU.cpp | 311 UChar buffer[ConversionBufferSize]; local 312 UChar* bufferLimit = buffer + ConversionBufferSize; 319 int ucharsDecoded = decodeToBuffer(buffer, bufferLimit, source, sourceLimit, offsets, flush, err); 320 result.append(buffer, ucharsDecoded); 326 decodeToBuffer(buffer, bufferLimit, source, sourceLimit, offsets, true, err); 458 char buffer[ConversionBufferSize]; local 459 char* target = buffer; 463 size_t count = target - buffer; 465 memcpy(result.data() + size, buffer, count);
|
/libcore/luni/src/main/java/java/nio/ |
SocketChannelImpl.java | 610 public void write(byte[] buffer, int offset, int byteCount) throws IOException { 611 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 612 ByteBuffer buf = ByteBuffer.wrap(buffer, offset, byteCount); 624 ByteBuffer buffer = ByteBuffer.allocate(1); local 625 buffer.put(0, (byte) (oneByte & 0xFF)); 626 channel.write(buffer); 661 public int read(byte[] buffer, int offset, int byteCount) throws IOException { 662 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 666 ByteBuffer buf = ByteBuffer.wrap(buffer, offset, byteCount);
|
/libcore/luni/src/main/java/java/util/ |
Vector.java | 1017 StringBuilder buffer = new StringBuilder(elementCount * 16); local [all...] |
/ndk/sources/android/cpufeatures/ |
cpu-features.c | 39 * Dynamically allocate the buffer that hold the content 122 char buffer[256]; local 131 int ret = read(fd, buffer, sizeof buffer); 147 /* Read the content of /proc/cpuinfo into a user-provided buffer. 153 read_file(const char* pathname, char* buffer, size_t buffsize) 164 int ret = read(fd, buffer + count, buffsize - count); 188 extract_cpuinfo_field(const char* buffer, int buflen, const char* field) 191 const char* bufend = buffer + buflen; 197 p = buffer; [all...] |
/bootable/recovery/ |
verifier.cpp | 144 unsigned char* buffer = (unsigned char*)malloc(BUFFER_SIZE); local 145 if (buffer == NULL) { 146 LOGE("failed to alloc memory for sha1 buffer\n"); 157 if (fread(buffer, 1, size, f) != size) { 162 SHA_update(&ctx, buffer, size); 171 free(buffer);
|
/cts/tools/dasm/src/java_cup/ |
lexer.java | 337 char buffer[] = new char[1]; local 340 buffer[0] = (char)next_char; 341 result.append(buffer,0,1); 347 buffer[0] = (char)next_char; 348 result.append(buffer,0,1);
|