Searched refs:buffer (Results 751 - 775 of 2453) sorted by relevance

<<31323334353637383940>>

/external/libnfc-nxp/Linux_x86/
H A DphDal4Nfc_uart.c245 /* returns length of buffer after errors */
246 static int apply_errors(uint8_t *buffer, int length) { argument
255 memcpy(&buffer[i], &buffer[i+1], length-i);
259 buffer[i] = (uint8_t)rand();
421 char buffer[2]; local
425 if (snprintf(buffer, sizeof(buffer), "%u", (unsigned int)level) != 1) {
436 sz = write(fd, &buffer, sizeof(buffer)
[all...]
/external/llvm/unittests/ADT/
H A DImmutableSetTest.cpp19 static char buffer[10]; member in class:__anon7162::ImmutableSetTest
25 MyIter() : counter(0), ptr(buffer) {
26 for (unsigned i=0; i<sizeof(buffer);++i) buffer[i]='\0';
34 char ImmutableSetTest::buffer[10]; member in class:__anon7162::ImmutableSetTest
149 ASSERT_STREQ("aeiou", buffer);
161 ASSERT_STREQ("bcdfgh", buffer);
166 ASSERT_STREQ("bcd", buffer);
171 ASSERT_STREQ("", buffer);
/external/nist-sip/java/gov/nist/javax/sip/header/
H A DVia.java259 protected StringBuffer encodeBody(StringBuffer buffer) { argument
260 sentProtocol.encode(buffer);
261 buffer.append(SP);
262 sentBy.encode(buffer);
264 buffer.append(SEMICOLON);
265 parameters.encode(buffer);
268 buffer.append(SP).append(LPAREN).append(comment).append(RPAREN);
270 if (rPortFlag) buffer.append(";rport");
271 return buffer;
/external/qemu/distrib/sdl-1.2.12/src/audio/mint/
H A DSDL_mintaudio_dma8.c279 unsigned long buffer; local
293 /* Set buffer */
294 buffer = (unsigned long) SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf];
295 DMAAUDIO_IO.start_high = (buffer>>16) & 255;
296 DMAAUDIO_IO.start_mid = (buffer>>8) & 255;
297 DMAAUDIO_IO.start_low = buffer & 255;
299 buffer += SDL_MintAudio_audiosize;
300 DMAAUDIO_IO.end_high = (buffer>>16) & 255;
301 DMAAUDIO_IO.end_mid = (buffer>>8) & 255;
302 DMAAUDIO_IO.end_low = buffer
[all...]
/external/skia/samplecode/
H A DClockFaceView.cpp66 virtual void flatten(SkFlattenableWriteBuffer& buffer) argument
68 this->INHERITED::flatten(buffer);
70 buffer.writeScalar(fRadius);
90 Dot2DPathEffect(SkFlattenableReadBuffer& buffer) : Sk2DPathEffect(buffer) argument
92 fRadius = buffer.readScalar();
99 static SkFlattenable* CreateProc(SkFlattenableReadBuffer& buffer) argument
101 return new Dot2DPathEffect(buffer);
117 // InverseFillPE(SkFlattenableReadBuffer& buffer) : INHERITED(buffer) {}
119 Factory(SkFlattenableReadBuffer& buffer) argument
[all...]
/external/srec/portable/src/
H A DLCHAR.c283 /* We now have the digit of the number in the buffer, but in reverse
306 LCHAR buffer[33]; local
312 pxtoa((unsigned long) value, buffer, radix, 1);
314 pxtoa((unsigned long) value, buffer, radix, 0);
316 size = LSTRLEN(buffer);
324 LSTRCPY(string, buffer);
334 LCHAR buffer[33]; local
339 pxtoa(value, buffer, radix, 0);
341 size = LSTRLEN(buffer);
351 LSTRCPY(string, buffer);
[all...]
/external/webkit/Source/WebCore/platform/text/mac/
H A DTextCodecMac.cpp140 // Finish converting a partial character that's in our buffer.
142 // First, fill the partial character buffer with as many bytes as are available.
149 // Now, do a conversion on the buffer.
157 LOG_ERROR("TECConvertText gave a kTECPartialCharErr but read none of the %zu bytes in the buffer", sizeof(m_bufferedBytes));
161 // Tell the caller we read all the source bytes and keep them in the buffer.
167 // We are done with the partial character buffer.
168 // Also, we have read some of the bytes from the main buffer.
177 // While there may be a partial character problem in the small buffer,
179 // character problem in the large buffer.
209 UniChar buffer[ConversionBufferSiz local
300 unsigned char* buffer = reinterpret_cast<unsigned char*>(result.data() + size); local
[all...]
/external/icu4c/test/intltest/
H A Dintltest.cpp67 char buffer[64]; // nos changed from 10 to 64 local
68 char danger = 'p'; // guard against overrunning the buffer (rtg)
70 sprintf(buffer, "%ld", num);
73 return left + buffer;
80 char buffer[64]; // nos changed from 10 to 64 local
81 char danger = 'p'; // guard against overrunning the buffer (rtg)
83 sprintf(buffer, "%lu", num);
86 return left + buffer;
92 char buffer[64]; // nos changed from 10 to 64 local
93 char danger = 'p'; // guard against overrunning the buffer (rt
110 char buffer[64]; // was 32, made it arbitrarily bigger (rtg) local
876 char buffer[4000]; local
890 char buffer[4000]; local
905 char buffer[4000]; local
917 char buffer[4000]; local
929 char buffer[4000]; local
940 char buffer[4000]; local
951 char buffer[4000]; local
962 char buffer[4000]; local
1000 char buffer[10000]; local
[all...]
H A Dstrtest.cpp389 char buffer[20]; local
390 buffer[4] = '!';
391 SimpleByteSink sink(buffer);
394 if(!(sink.length() == 4 && 0 == memcmp("abcz", buffer, 4) && buffer[4] == '!')) {
412 errln("ByteSink.GetAppendBuffer() did not properly return the scratch buffer");
418 char buffer[20]; // < 26 for the test code to work local
419 buffer[3] = '!';
420 CheckedArrayByteSink sink(buffer, (int32_t)sizeof(buffer));
545 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode); local
[all...]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DBufferedOutputStreamTest.java141 assertTrue("Bytes not written when buffer full",
672 byte[] buffer = "1234567890".getBytes();
676 buffos.write(buffer, 0, 10);
685 byte[] buffer = "1234567890".getBytes("UTF-8");
688 buffos.write(buffer, 0, 10);
696 assertEquals(buffer[i], byteArrayis.read());
699 buffos.write(buffer, 0, 10);
707 assertEquals(buffer[i], byteArrayis.read());
710 assertEquals(buffer[i], byteArrayis.read());
713 buffos.write(buffer,
[all...]
/external/icu4c/test/iotest/
H A Diotest.cpp43 char buffer[4000]; local
44 message.extract(0, message.length(), buffer, sizeof(buffer));
45 buffer[3999] = 0; /* NULL terminate */
46 log_err(buffer);
50 char buffer[4000]; local
51 message.extract(0, message.length(), buffer, sizeof(buffer));
52 buffer[3999] = 0; /* NULL terminate */
53 log_info(buffer);
57 char buffer[4000]; local
175 uto64(const UChar *buffer) argument
[all...]
/external/icu4c/i18n/
H A Ducol_sit.cpp432 char buffer[internalBufferSize]; local
433 uprv_memset(buffer, 0, internalBufferSize);
434 uloc_canonicalize(s.locale, buffer, internalBufferSize, status);
436 UResourceBundle *b = ures_open(U_ICUDATA_COLL, buffer, status);
442 if(!uloc_getKeywordValue(buffer, "collation", keyBuffer, 256, status)) {
496 char buffer[internalBufferSize]; local
497 uprv_memset(buffer, 0, internalBufferSize);
498 uloc_canonicalize(s.locale, buffer, internalBufferSize, status);
500 UCollator *result = ucol_open(buffer, status);
561 char buffer[internalBufferSiz local
685 addSpecial(contContext *context, UChar *buffer, int32_t bufLen, uint32_t CE, int32_t leftIndex, int32_t rightIndex, UErrorCode *status) argument
868 UChar buffer[internalBufferSize]; local
[all...]
/external/webkit/Source/JavaScriptCore/wtf/text/
H A DWTFString.cpp342 QString buffer; local
343 buffer.vsprintf(format, args);
347 QByteArray ba = buffer.toUtf8();
354 Vector<char, 256> buffer;
357 buffer.resize(bufferSize);
359 int written = vsnprintf(buffer.data(), bufferSize, format, args);
365 return StringImpl::create(buffer.data(), written);
368 buffer.resize(bufferSize);
376 Vector<char, 256> buffer;
399 buffer
681 putUTF8Triple(char*& buffer, UChar ch) argument
708 char* buffer = bufferVector.data(); local
[all...]
/external/webkit/Tools/DumpRenderTree/mac/
H A DPixelDumpSupportMac.mm108 static PassRefPtr<BitmapContext> createBitmapContext(size_t pixelsWide, size_t pixelsHigh, size_t& rowBytes, void*& buffer)
112 buffer = calloc(pixelsHigh, rowBytes);
113 if (!buffer)
128 CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host); // Use ARGB8 on PPC or BGRA8 on X86 to improve CG performance
130 free(buffer);
134 return BitmapContext::createByAdoptingBitmapAndContext(buffer, context);
150 void* buffer = 0;
151 RefPtr<BitmapContext> bitmapContext = createBitmapContext(pixelsWide, pixelsHigh, rowBytes, buffer);
222 bcopy((char*)flipBuffer + rowBytes * i, (char*)buffer + rowBytes * (pixelsHigh - i - 1), pixelsWide * 4);
241 // Grab directly the contents of the window backing buffer (thi
[all...]
/external/chromium/third_party/libjingle/source/talk/base/
H A Dproxydetect.cc256 char buffer[BUFSIZE]; local
280 memcpy(buffer, start, len);
281 buffer[len] = 0;
282 if (!ProxyItemMatch(url, buffer, len))
324 char buffer[kMaxAddressLength]; local
325 memcpy(buffer, start, len);
326 buffer[len] = 0;
328 char * colon = ::strchr(buffer, ':');
330 LOG(LS_WARNING) << "Proxy address without port [" << buffer << "]";
338 LOG(LS_WARNING) << "Proxy address with invalid port [" << buffer << "]";
528 char buffer[kMaxLineLength]; local
646 BYTE* buffer = reinterpret_cast<BYTE*>(value); local
924 wchar_t buffer[1024]; local
[all...]
H A Dstream.h74 // Read attempts to fill buffer of size buffer_len. Write attempts to send
87 virtual StreamResult Read(void* buffer, size_t buffer_len,
117 // so. For example, while a socket could buffer incoming data to support
130 // GetReadData returns a pointer to a buffer which is owned by the stream.
131 // The buffer contains data_len bytes. NULL is returned if no data is
135 // processed. Read and ConsumeReadData invalidate the buffer returned by
140 // GetWriteBuffer returns a pointer to a buffer which is owned by the stream.
141 // The buffer has a capacity of buf_len bytes. NULL is returned if there is
142 // no buffer available, or if the method fails. The call may write data to
143 // the buffer, an
252 Read(void* buffer, size_t buffer_len, size_t* read, int* error) argument
[all...]
/external/opencv/otherlibs/highgui/
H A Dgrfmt_exr.cpp206 char *buffer; local
214 buffer = (char *)new float[ m_width * 3 ];
219 buffer = (char *)data;
232 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep,
239 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep + 4,
246 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep + 8,
255 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep,
258 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep + 4,
261 buffer - m_datawindow.min.x * 12 - m_datawindow.min.y * ystep + 8,
271 buffer
[all...]
/external/chromium/net/server/
H A Dhttp_server.cc289 std::string buffer; local
302 info->method = buffer;
303 buffer.clear();
306 info->path = buffer;
307 buffer.clear();
311 DCHECK(buffer == "HTTP/1.1");
312 buffer.clear();
315 header_name = buffer;
316 buffer.clear();
319 header_value = buffer;
[all...]
/external/openssl/apps/
H A Decparam.c136 unsigned char *buffer = NULL; local
538 buffer = (unsigned char *)OPENSSL_malloc(buf_len);
540 if (buffer == NULL)
546 ecparam_print_var(out, ec_p, "ec_p", len, buffer);
547 ecparam_print_var(out, ec_a, "ec_a", len, buffer);
548 ecparam_print_var(out, ec_b, "ec_b", len, buffer);
549 ecparam_print_var(out, ec_gen, "ec_gen", len, buffer);
550 ecparam_print_var(out, ec_order, "ec_order", len, buffer);
552 buffer);
689 if (buffer)
701 ecparam_print_var(BIO *out, BIGNUM *in, const char *var, int len, unsigned char *buffer) argument
[all...]
/external/qemu/distrib/sdl-1.2.12/src/video/riscos/
H A DSDL_wimpvideo.c88 char *buffer = NULL; local
136 buffer = WIMP_CreateBuffer(width, height, bpp);
137 if (buffer == NULL)
143 this->hidden->bank[0] = buffer + 60; /* Start of sprite data */
146 this->hidden->bank[1] = buffer; /* Start of buffer */
148 /* Remember sprite buffer so it can be freed later */
150 this->hidden->alloc_bank = buffer;
443 char *buffer = NULL; local
454 buffer
[all...]
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
H A DSSLEngineImplTest.java495 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize);
528 print(result = server.wrap(ByteBuffer.allocate(0), buffer));
541 // tune buffer to be read
542 buffer.flip();
545 print(client.unwrap(buffer, app_data_buffer));
588 ByteBuffer buffer = ByteBuffer.allocate(packetBufferSize);
639 print(result = server.wrap(ByteBuffer.allocate(0), buffer));
658 buffer.flip();
663 print(client.unwrap(buffer, app_data_buffer));
736 // buffer wil
[all...]
/external/apache-http/src/org/apache/http/impl/auth/
H A DDigestScheme.java385 CharArrayBuffer buffer = new CharArrayBuffer(128);
387 buffer.append(AUTH.PROXY_AUTH_RESP);
389 buffer.append(AUTH.WWW_AUTH_RESP);
391 buffer.append(": Digest ");
424 buffer.append(", ");
429 .formatNameValuePair(buffer, param, !noQuotes);
431 return new BufferedHeader(buffer);
456 char[] buffer = new char[32];
460 buffer[i * 2] = HEXADECIMAL[high];
461 buffer[(
[all...]
/external/chromium/base/
H A Dpickle_unittest.cc98 scoped_array<char> buffer(new char[1]);
100 // We should not touch the buffer.
101 Pickle pickle(buffer.get(), 1);
110 int buffer[] = { 0x56035200, 25, 40, 50 }; local
112 Pickle pickle(reinterpret_cast<char*>(buffer), sizeof(buffer));
120 int buffer[] = { 10, 25, 40, 50 }; local
122 Pickle pickle(reinterpret_cast<char*>(buffer), sizeof(buffer));
182 scoped_array<char> buffer(ne
[all...]
/external/iptables/extensions/
H A Dlibxt_tcp.c43 char *buffer; local
46 buffer = strdup(portstring);
47 if ((cp = strchr(buffer, ':')) == NULL)
48 ports[0] = ports[1] = xtables_parse_port(buffer, "tcp");
53 ports[0] = buffer[0] ? xtables_parse_port(buffer, "tcp") : 0;
60 free(buffer);
84 char *buffer; local
86 buffer = strdup(flags);
88 for (ptr = strtok(buffer, ","); pt
[all...]
/external/ppp/pppd/plugins/radius/
H A Dconfig.c189 char buffer[512], *p; local
200 while ((fgets(buffer, sizeof(buffer), configfd) != NULL))
203 p = buffer;
459 char buffer[128]; local
475 while (fgets (buffer, sizeof (buffer), clientfd) != (char *) NULL)
477 if (*buffer == '#')
480 if ((h = strtok (buffer, " \t\n")) == NULL) /* first hostname */
537 memset (buffer, '\
[all...]

Completed in 1239 milliseconds

<<31323334353637383940>>