/system/core/adb/ |
jdwp_service.c | 122 jdwp_process_list( char* buffer, int bufferlen ) 124 char* end = buffer + bufferlen; 125 char* p = buffer; 141 return (p - buffer); 146 jdwp_process_list_msg( char* buffer, int bufferlen ) 149 int len = jdwp_process_list( buffer+4, bufferlen-4 ); 151 memcpy(buffer, head, 4); 323 char buffer[sizeof(struct cmsghdr) + sizeof(int)]; local 333 msg.msg_control = buffer; 334 msg.msg_controllen = sizeof(buffer); 638 char buffer[1024]; local [all...] |
adb.c | 736 // Write a single line describing a listener to a user-provided buffer. 739 // If |buffer| is NULL, does not write but returns required size. 740 static int format_listener(alistener* l, char* buffer, size_t buffer_len) { 749 if (buffer != NULL) { 750 snprintf(buffer, buffer_len, "%s %s %s\n", 759 // user-provided buffer. Appends a trailing zero, even in case of 761 // If |buffer| is NULL, does not write but returns required size. 1548 char buffer[4096]; local 1564 char buffer[4096]; local 1579 char buffer[4096]; local 1649 char* buffer = malloc(buffer_size+1); local [all...] |
/bionic/linker/ |
dlfcn.cpp | 43 char* buffer = __get_thread()->dlerror_buffer; local 44 strlcpy(buffer, msg, __BIONIC_DLERROR_BUFFER_SIZE); 46 strlcat(buffer, ": ", __BIONIC_DLERROR_BUFFER_SIZE); 47 strlcat(buffer, detail, __BIONIC_DLERROR_BUFFER_SIZE); 50 __bionic_set_dlerror(buffer);
|
/device/generic/goldfish/lights/ |
lights_qemu.c | 85 char buffer[64]; local 86 snprintf( buffer, sizeof(buffer), "power:light:brightness:lcd_backlight:%d", brightness ); 87 D( "%s: lcd_backlight command: %s", __FUNCTION__, buffer ); 90 if (qemud_channel_send( fd, buffer, -1 ) < 0) {
|
/external/apache-http/src/org/apache/http/impl/io/ |
AbstractMessageParser.java | 65 final SessionInputBuffer buffer, 69 if (buffer == null) { 70 throw new IllegalArgumentException("Session input buffer may not be null"); 75 this.sessionBuffer = buffer; 87 * @param inbuffer Session input buffer 107 throw new IllegalArgumentException("Session input buffer may not be null"); 158 CharArrayBuffer buffer = (CharArrayBuffer) headerLines.get(i); local 160 headers[i] = parser.parseHeader(buffer);
|
/external/chromium/chrome/browser/chromeos/login/ |
camera.cc | 279 v4l2_buffer buffer = {}; local 280 buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 281 buffer.memory = V4L2_MEMORY_MMAP; 282 buffer.index = i; 283 if (xioctl(device_descriptor_, VIDIOC_QBUF, &buffer) == -1) { 367 LOG(ERROR) << "Insufficient buffer memory on " << device_name_; 371 v4l2_buffer buffer = {}; local 372 buffer.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; 373 buffer.memory = V4L2_MEMORY_MMAP; 374 buffer.index = i 442 v4l2_buffer buffer = {}; local [all...] |
/external/chromium/chrome/browser/policy/ |
configuration_policy_provider_delegate_win.cc | 20 scoped_array<uint8> buffer; local 28 // buffer may not be explicitly 0-terminated. Allocate a 29 // slightly larger buffer and pre-fill to zeros to guarantee 31 buffer.reset(new uint8[value_size + 2]); 32 memset(buffer.get(), 0, value_size + 2); 33 key->ReadValue(name.c_str(), buffer.get(), &value_size, NULL); 34 result->assign(reinterpret_cast<const wchar_t*>(buffer.get()));
|
/external/chromium/third_party/libjingle/source/talk/p2p/base/ |
pseudotcp.h | 55 const char* buffer, size_t len) = 0; 70 int Recv(char* buffer, size_t len); 71 int Send(const char* buffer, size_t len); 89 bool NotifyPacket(const char * buffer, size_t len); 101 //kOptRcvBuf, // Set the receive buffer size, in bytes. 102 //kOptSndBuf, // Set the send buffer size, in bytes. 112 // Note: send buffer should be larger to make sure we can always fill the 145 bool parse(const uint8* buffer, uint32 size);
|
/external/flac/libFLAC/ |
ogg_decoder_aspect.c | 105 FLAC__OggDecoderAspectReadStatus FLAC__ogg_decoder_aspect_read_callback_wrapper(FLAC__OggDecoderAspect *aspect, FLAC__byte buffer[], size_t *bytes, FLAC__OggDecoderAspectReadCallbackProxy read_callback, const FLAC__StreamDecoder *decoder, void *client_data) 115 * its internal buffer. It does not try to grow its internal buffer 116 * to accomodate a whole frame because then the internal buffer size 119 * Ogg however grows its internal buffer until a whole page is present; 126 * larger than libFLAC's internal buffer. 142 /* the rest of the packet will fit in the buffer */ 144 memcpy(buffer, aspect->working_packet.packet, n); 146 buffer += n; 150 /* only n bytes of the packet will fit in the buffer */ [all...] |
/external/icu4c/i18n/ |
bocsu.cpp | 106 char *buffer=sink.GetAppendBuffer(1, length*2, scratch, (int32_t)sizeof(scratch), &capacity); local 112 buffer=scratch; 115 p=reinterpret_cast<uint8_t *>(buffer); 133 sink.Append(buffer, (int32_t)(p-reinterpret_cast<uint8_t *>(buffer)));
|
/external/iptables/extensions/ |
libip6t_dst.c | 58 char *buffer, *cp, *next, *range; local 61 buffer = strdup(optsstr); 62 if (!buffer) 65 for (cp = buffer, i = 0; cp && i < IP6T_OPTS_OPTSNR; cp = next, i++) 99 free(buffer);
|
libip6t_hbh.c | 60 char *buffer, *cp, *next, *range; local 63 buffer = strdup(optsstr); 64 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 66 for (cp=buffer, i=0; cp && i<IP6T_OPTS_OPTSNR; cp=next,i++) 93 free(buffer);
|
/external/libvorbis/vq/ |
huffbuild.c | 153 char *buffer=alloca(strlen(base)+5); local 154 strcpy(buffer,base); 155 strcat(buffer,".vqh"); 156 file=fopen(buffer,"w"); 158 fprintf(stderr,"Could not open file %s\n",buffer);
|
/external/nist-sip/java/gov/nist/core/ |
DuplicateNameValueList.java | 73 public StringBuffer encode(StringBuffer buffer) { 81 gobj.encode(buffer); 83 buffer.append(obj.toString()); 86 buffer.append(separator); 92 return buffer;
|
/external/opencv/cv/src/ |
cvcolor.cpp | 314 arrtype* buffer; \ 325 buffer = (arrtype*)cvStackAlloc( block_size*3*sizeof(buffer[0]) ); \ 340 buffer[k] = r; \ 341 buffer[k+1] = g; \ 342 buffer[k+2] = b; \ 345 status = ipp_func( buffer, CV_STUB_STEP, \ 362 uchar* buffer; local 373 buffer = (uchar*)cvStackAlloc( block_size*3*sizeof(buffer[0]) ) 973 float* buffer = (float*)cvStackAlloc( block_size*3*sizeof(buffer[0]) ); local 1045 float* buffer = (float*)cvStackAlloc( block_size*3*sizeof(buffer[0]) ); local 1365 uchar* buffer; local [all...] |
/external/opencv/otherlibs/highgui/ |
grfmt_tiff.cpp | 168 uchar* buffer = 0; local 191 buffer = new uchar[tile_height0*tile_width0*4]; 208 ok = TIFFReadRGBAStrip( tif, y, (uint32*)buffer ); 210 ok = TIFFReadRGBATile( tif, x, y, (uint32*)buffer ); 217 icvCvt_BGRA2BGR_8u_C4C3R( buffer + i*tile_width*4, 0, 221 icvCvt_BGRA2Gray_8u_C4C1R( buffer + i*tile_width*4, 0, 234 delete[] buffer; 562 uchar buffer[buffer_size]; local 565 uchar* src = buffer; 655 if( src != buffer ) delete[] src; 707 uchar* buffer = new uchar[fileStep + 32]; local [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/mint/ |
SDL_mintaudio.c | 45 unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */ 46 volatile unsigned short SDL_MintAudio_numbuf; /* Buffer to play */ 62 Uint8 *buffer; local 65 buffer = SDL_MintAudio_audiobuf[SDL_MintAudio_numbuf]; 66 SDL_memset(buffer, audio->spec.silence, audio->spec.size); 83 SDL_memcpy(buffer, audio->convert.buf, audio->convert.len_cvt); 85 audio->spec.callback(audio->spec.userdata, buffer, audio->spec.size); 178 /* DMA is reading buffer #0, setup buffer #1 if not already done */ 187 /* DMA is reading buffer #1, setup buffer #0 if not already done * [all...] |
/external/skia/src/core/ |
SkPathRef.h | 212 static SkPathRef* CreateFromBuffer(SkRBuffer* buffer) { 214 ref->fGenerationID = buffer->readU32(); 215 int32_t verbCount = buffer->readS32(); 216 int32_t pointCount = buffer->readS32(); 221 buffer->read(ref->verbsMemWritable(), verbCount * sizeof(uint8_t)); 222 buffer->read(ref->fPoints, pointCount * sizeof(SkPoint)); 226 static SkPathRef* CreateFromBuffer(int verbCount, int pointCount, SkRBuffer* buffer) { 232 buffer->read(ref->fPoints, pointCount * sizeof(SkPoint)); 234 ref->fVerbs[~i] = buffer->readU8(); 351 * Writes the path points and verbs to a buffer [all...] |
/external/skia/tests/ |
Reader32Test.cpp | 50 char buffer[bufsize]; local 63 reader.read(buffer, sizeof(data)); 64 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(data))); 77 reader.read(buffer, sizeof(data2)); 78 REPORTER_ASSERT(reporter, !memcmp(data2, buffer, sizeof(data2)));
|
/external/srec/portable/src/ |
PFileImpl.c | 167 static LCHAR buffer[BUFFER_SIZE]; local 189 *result = vsprintf(buffer, format, args); 191 vsprintf(buffer, format, args); 192 len = LSTRLEN(buffer); 195 CHKLOG(rc, self->write(self, buffer, sizeof(LCHAR), &len));
|
/external/srtp/test/ |
dtls_srtp_driver.c | 216 uint8_t *buffer; local 236 buffer = (uint8_t *)hdr; 237 buffer += bytes_in_hdr; 241 *buffer++ = 0xab; 245 *buffer++ = 0xff;
|
/external/webkit/Source/WebCore/bindings/js/ |
JSArrayBufferViewHelper.h | 91 RefPtr<ArrayBuffer> buffer = toArrayBuffer(exec->argument(0)); local 92 if (!buffer) 96 if ((buffer->byteLength() - offset) % sizeof(T)) 98 unsigned int length = (buffer->byteLength() - offset) / sizeof(T); 101 RefPtr<C> array = C::create(buffer, offset, length); 113 // 2) (in ArrayBuffer buffer, [Optional] in int offset, [Optional] in unsigned int length)
|
/external/webkit/Source/WebCore/dom/ |
CanvasSurface.cpp | 88 if (m_size.isEmpty() || !buffer()) 95 return buffer()->toDataURL("image/png"); 97 return buffer()->toDataURL(lowercaseMimeType, quality); 152 return buffer() ? m_imageBuffer->context() : 0; 155 ImageBuffer* CanvasSurface::buffer() const function in class:WebCore::CanvasSurface
|
/external/webkit/Source/WebCore/platform/graphics/qt/ |
ImageDecoderQt.cpp | 207 ImageFrame* const buffer = &m_frameBufferCache[frameIndex]; local 208 buffer->setOriginalFrameRect(m_reader->currentImageRect()); 209 buffer->setStatus(ImageFrame::FrameComplete); 210 buffer->setDuration(m_reader->nextImageDelay()); 211 buffer->setPixmap(pixmap);
|
/external/webkit/Tools/WebKitTestRunner/cg/ |
TestInvocationCG.cpp | 54 void* buffer = calloc(pixelsHigh, rowBytes); local 57 CGContextRef context = CGBitmapContextCreate(buffer, pixelsWide, pixelsHigh, 8, rowBytes, colorSpace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Host); 78 Vector<uint8_t> buffer(4 * pixelsWide); 80 buffer[column] = OSReadLittleInt32(bitmapData, 4 * column); 81 md5.addBytes(buffer);
|