HomeSort by relevance Sort by last modified time
    Searched refs:buffer (Results 1501 - 1525 of 5558) sorted by null

<<61626364656667686970>>

  /frameworks/av/media/mtp/
MtpPacket.cpp 69 char buffer[500]; local
70 char* bufptr = buffer;
76 ALOGV("%s", buffer);
77 bufptr = buffer;
80 if (bufptr != buffer) {
82 ALOGV("%s", buffer);
158 request->buffer,
  /frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
accessorychat.c 39 char buffer[16384]; local
41 ret = usb_device_bulk_transfer(sDevice, endpoint, buffer, sizeof(buffer), 1000);
45 fwrite(buffer, 1, ret, stdout);
59 char buffer[16384]; local
60 char *line = fgets(buffer, sizeof(buffer), stdin);
  /libcore/luni/src/main/java/java/io/
BufferedWriter.java 26 * requests can be satisfied by accessing the buffer alone. The drawback is that
27 * some extra space is required to hold the buffer and that copying takes place
28 * when filling that buffer, but this is usually outweighed by the performance
48 * Constructs a new {@code BufferedWriter}, providing {@code out} with a buffer
51 * @param out the {@code Writer} the buffer writes to.
59 * of buffer.
61 * @param out the {@code OutputStream} the buffer writes to.
62 * @param size the size of buffer in chars.
75 * Closes this writer. The contents of the buffer are flushed, the target
76 * writer is closed, and the buffer is released. Only the first invocatio
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
FileInputStreamTest.java 46 byte[] buffer = new byte[TOTAL_SIZE];
47 for (int i = 0; i < buffer.length; ++i) {
48 buffer[i] = (byte) i;
50 fos.write(buffer);
62 byte buffer[] = new byte[count];
63 assertEquals(count, is.read(buffer));
65 assertEquals((byte) (i + start), buffer[i]);
  /prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sound/
info.h 27 /* buffer for information */
29 char *buffer; /* pointer to begin of buffer */ member in struct:snd_info_buffer
30 unsigned int curr; /* current position in buffer */
32 unsigned int len; /* total length of buffer */
43 void (*read) (struct snd_info_entry *entry, struct snd_info_buffer *buffer);
44 void (*write) (struct snd_info_entry *entry, struct snd_info_buffer *buffer);
107 int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) __attribute__ ((format (printf, 2, 3)));
111 int snd_info_get_line(struct snd_info_buffer * buffer, char *line, int len);
147 static inline int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) { return 0;
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/sound/
info.h 27 /* buffer for information */
29 char *buffer; /* pointer to begin of buffer */ member in struct:snd_info_buffer
30 unsigned int curr; /* current position in buffer */
32 unsigned int len; /* total length of buffer */
43 void (*read) (struct snd_info_entry *entry, struct snd_info_buffer *buffer);
44 void (*write) (struct snd_info_entry *entry, struct snd_info_buffer *buffer);
107 int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) __attribute__ ((format (printf, 2, 3)));
111 int snd_info_get_line(struct snd_info_buffer * buffer, char *line, int len);
147 static inline int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...) { return 0;
    [all...]
  /system/core/toolbox/grep/
file.c 70 static unsigned char buffer[MAXBUFSIZ]; variable
83 bufpos = buffer;
88 nr = gzread(gzbufdesc, buffer, MAXBUFSIZ);
90 nr = BZ2_bzRead(&bzerr, bzbufdesc, buffer, MAXBUFSIZ);
109 nr = read(f->fd, buffer, MAXBUFSIZ);
117 nr = read(f->fd, buffer, MAXBUFSIZ);
147 /* Fill the buffer, if necessary */
157 /* Look for a newline in the remaining part of the buffer */
168 /* We have to copy the current buffered data to the line buffer */
215 /* Fill read buffer, also catches errors early *
    [all...]
  /external/icu4c/i18n/
winnmfmt.cpp 248 we don't need to reallocate the buffer. */
287 UChar *buffer = stackBuffer; local
291 buffer[0] = 0x0000;
302 result = GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, STACK_BUFFER_SIZE);
310 buffer = NEW_ARRAY(UChar, newLength);
311 buffer[0] = 0x0000;
312 GetCurrencyFormatW(fLCID, 0, nBuffer, &formatInfo.currency, buffer, newLength);
324 result = GetNumberFormatW(fLCID, 0, nBuffer, &formatInfo.number, buffer, STACK_BUFFER_SIZE);
330 buffer = NEW_ARRAY(UChar, newLength);
331 buffer[0] = 0x0000
    [all...]
  /external/libnfc-nci/src/adaptation/
bte_logmsg.c 53 char buffer[256]; local
64 sprintf(buffer, "%02d:%02d:%02d.%03d ", tm->tm_hour, tm->tm_min, tm->tm_sec,
66 pth_write(2, buffer, strlen(buffer));
69 vsprintf(buffer, strFormat, ap);
70 pth_write(2, buffer, strlen(buffer));
88 char buffer[256]; local
98 sprintf(buffer, "%02d:%02d:%02d.%03d ", tm->tm_hour, tm->tm_min, tm->tm_sec,
100 pth_write(2, buffer, strlen(buffer))
    [all...]
  /external/opencv/otherlibs/highgui/
loadsave.cpp 63 // the result is put into the specified buffer
64 static int Preprocess( const char* filename, char* buffer );
76 const char* Find( const char* filename, char* buffer ) const;
117 char buffer[_MAX_PATH + 1];
118 int len = Preprocess( path, buffer );
142 memcpy( m_path + m_len, buffer, len );
186 const char* CvFilePath::Find( const char* filename, char* buffer ) const
203 memcpy( buffer, folder, folder_len );
204 strcpy( buffer + folder_len, name );
206 f = fopen( buffer, "rb" )
    [all...]
  /external/ppp/pppd/
md4.c 24 ** -- The message digest is available in MD.buffer[0] ...
25 ** MD.buffer[3]. (Least-significant byte of each word
45 #define I0 0x67452301 /* Initial values for MD buffer */
83 ** Print message digest buffer MDp as 32 hexadecimal digits.
84 ** Order is from low-order byte of buffer[0] to high-order byte of
85 ** buffer[3].
96 printf("%02x",(MDp->buffer[i]>>j) & 0xFF);
100 ** Initialize message digest buffer MDp.
108 MDp->buffer[0] = I0;
109 MDp->buffer[1] = I1
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/audio/macrom/
SDL_romaudio.c 116 static UInt8 *buffer[2]; variable
121 static void mix_buffer(SDL_AudioDevice *audio, UInt8 *buffer)
134 SDL_memcpy(buffer, audio->convert.buf, audio->convert.len_cvt);
136 audio->spec.callback(audio->spec.userdata, buffer, audio->spec.size);
166 mix_buffer (this, buffer[fill_me]);
177 fill_me = cmd_passed->param2; /* buffer that has just finished playing, so fill it */
178 play_me = ! fill_me; /* filled buffer to play _now_ */
184 /* queue previously mixed buffer for playback. */
185 header.samplePtr = (Ptr)buffer[play_me];
191 memset (buffer[fill_me], 0, audio->spec.size)
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
Grid.java 19 import java.nio.Buffer;
48 private Buffer mVertexBuffer;
49 private Buffer mTexCoordBuffer;
313 int[] buffer = new int[1]; local
314 buffer[0] = mVertBufferIndex;
315 gl11.glDeleteBuffers(1, buffer, 0);
317 buffer[0] = mTextureCoordBufferIndex;
318 gl11.glDeleteBuffers(1, buffer, 0);
320 buffer[0] = mIndexBufferIndex;
321 gl11.glDeleteBuffers(1, buffer, 0)
340 int[] buffer = new int[1]; local
    [all...]
  /external/webkit/Source/JavaScriptCore/runtime/
UString.cpp 201 NumberToStringBuffer buffer; local
202 unsigned length = numberToString(d, buffer);
203 return UString(buffer, length);
312 // Helper to write a three-byte UTF-8 code point to the buffer, caller must check room is available.
313 static inline void putUTF8Triple(char*& buffer, UChar ch)
316 *buffer++ = static_cast<char>(((ch >> 12) & 0x0F) | 0xE0);
317 *buffer++ = static_cast<char>(((ch >> 6) & 0x3F) | 0x80);
318 *buffer++ = static_cast<char>((ch & 0x3F) | 0x80);
326 // Allocate a buffer big enough to hold all the characters
330 // characters, and resize if necessary (i.e. if the buffer contain
340 char* buffer = bufferVector.data(); local
    [all...]
  /external/webkit/Source/WebCore/webaudio/
AudioBufferSourceNode.cpp 68 // Default to mono. A call to setBuffer() will set the number of output channels to that of the buffer.
97 if (!m_isPlaying || m_hasFinished || !buffer() || m_startTime >= quantumEndTime) {
104 // Handle sample-accurate scheduling so that buffer playback will happen at a very precise time.
137 // The resampler calls us back here to get the input samples from our buffer.
144 ASSERT(buffer());
145 if (!bus || !buffer())
164 size_t bufferLength = buffer()->length();
165 double bufferSampleRate = buffer()->sampleRate();
167 // Calculate the start and end frames in our buffer that we want to play.
168 // If m_isGrain is true, then we will be playing a portion of the total buffer
    [all...]
  /frameworks/base/services/common_time/
common_time_server_api.cpp 281 res = snprintf(buffer, sizeof(buffer), a, b); \
282 buffer[sizeof(buffer) - 1] = 0; \
284 write(fd, buffer, res); \
293 char buffer[SIZE]; local
296 snprintf(buffer, SIZE, "Permission Denial: "
300 write(fd, buffer, strlen(buffer));
369 char buffer[SIZE] local
408 char buffer[SIZE]; local
    [all...]
  /external/bluetooth/bluedroid/main/
bte_logmsg.c 201 #define MSG_BUFFER_OFFSET strlen(buffer)
220 static char buffer[BTE_LOG_BUF_SIZE]; local
236 sprintf(buffer, "%02d:%02d:%02d.%03d ", tm->tm_hour, tm->tm_min, tm->tm_sec,
240 vsnprintf(&buffer[MSG_BUFFER_OFFSET], BTE_LOG_MAX_SIZE, fmt_str, ap);
248 LOGE0(bt_layer_tags[trace_layer], buffer);
251 LOGW0(bt_layer_tags[trace_layer], buffer);
255 LOGI0(bt_layer_tags[trace_layer], buffer);
258 LOGD0(bt_layer_tags[trace_layer], buffer);
261 LOGE0(bt_layer_tags[trace_layer], buffer); /* we should never get this */
265 LOGI0(bt_layer_tags[trace_layer], buffer);
276 static char buffer[BTE_LOG_BUF_SIZE]; local
    [all...]
  /external/chromium/third_party/libjingle/source/talk/base/
unixfilesystem.cc 178 unsigned char buffer[NAME_MAX+1]; local
179 if (0 != FSRefMakePath(&fr, buffer, ARRAY_SIZE(buffer)))
181 pathname.SetPathname(reinterpret_cast<char*>(buffer), "");
369 char buffer[NAME_MAX+1];
370 size_t len = readlink("/proc/self/exe", buffer, ARRAY_SIZE(buffer) - 1);
373 buffer[len] = '\0';
374 path->SetPathname(buffer);
391 unsigned char buffer[NAME_MAX+1] local
463 char buffer[128]; local
510 char buffer[PATH_MAX]; local
    [all...]
  /external/harfbuzz_ng/src/
hb-ot-layout-gpos-table.hh 38 /* buffer **position** var allocations */
405 mark_anchor.get_anchor (c->font, c->buffer->cur().codepoint, &mark_x, &mark_y);
406 glyph_anchor.get_anchor (c->font, c->buffer->info[glyph_pos].codepoint, &base_x, &base_y);
408 hb_glyph_position_t &o = c->buffer->cur_pos();
411 o.attach_lookback() = c->buffer->idx - glyph_pos;
413 c->buffer->idx++;
442 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
446 values, c->buffer->cur_pos());
448 c->buffer->idx++;
487 unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint)
    [all...]
  /external/quake/quake/src/QW/client/
gl_rmisc.c 111 byte buffer[256*256*4];
127 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
128 COM_WriteFile ("env0.rgb", buffer, sizeof(buffer));
133 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
134 COM_WriteFile ("env1.rgb", buffer, sizeof(buffer));
139 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
140 COM_WriteFile ("env2.rgb", buffer, sizeof(buffer));
    [all...]
  /external/quake/quake/src/WinQuake/
gl_rmisc.cpp 117 byte buffer[256*256*4];
134 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
135 COM_WriteFile ("env0.rgb", buffer, sizeof(buffer));
140 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
141 COM_WriteFile ("env1.rgb", buffer, sizeof(buffer));
146 glReadPixels (0, 0, 256, 256, GL_RGBA, GL_UNSIGNED_BYTE, buffer);
147 COM_WriteFile ("env2.rgb", buffer, sizeof(buffer));
    [all...]
  /external/skia/src/core/
SkPicturePlayback.cpp 89 void* buffer = sk_malloc_throw(size); local
90 writer.flatten(buffer);
92 fOpData = SkData::NewFromMalloc(buffer, size);
325 static void writeTagSize(SkOrderedWriteBuffer& buffer, uint32_t tag,
327 buffer.writeUInt(tag);
328 buffer.writeUInt(size);
373 void SkPicturePlayback::flattenToBuffer(SkOrderedWriteBuffer& buffer) const {
377 writeTagSize(buffer, PICT_BITMAP_BUFFER_TAG, n);
379 buffer.writeBitmap((*fBitmaps)[i]);
384 writeTagSize(buffer, PICT_MATRIX_BUFFER_TAG, n)
1340 char buffer[DUMP_BUFFER_SIZE], * bufferPtr; local
    [all...]
  /external/libnfc-nxp/src/
phFriNfc_Llcp.c 111 pDest->buffer = phOsalNfc_GetMemory(pOrig->length);
112 if (pDest->buffer == NULL)
117 memcpy(pDest->buffer, pOrig->buffer, pOrig->length);
125 if (pDest->buffer != NULL)
127 phOsalNfc_FreeMemory(pDest->buffer);
138 if (pData->buffer != NULL)
140 phOsalNfc_FreeMemory(pData->buffer);
144 LLCP_PRINT("Warning, deallocating empty buffer");
215 sParamsTLV.buffer = pTLVBuffer
    [all...]
  /frameworks/av/media/libmediaplayerservice/
StagefrightRecorder.cpp 1718 char buffer[SIZE]; local
    [all...]
  /external/openssh/
authfile.c 63 #include "buffer.h"
85 key_private_rsa1_to_blob(Key *key, Buffer *blob, const char *passphrase,
88 Buffer buffer, encrypted; local
104 /* This buffer is used to built the secret part of the private key. */
105 buffer_init(&buffer);
113 buffer_append(&buffer, buf, 4);
120 buffer_put_bignum(&buffer, key->rsa->d);
121 buffer_put_bignum(&buffer, key->rsa->iqmp);
122 buffer_put_bignum(&buffer, key->rsa->q); /* reverse from SSL p *
383 Buffer buffer; local
599 Buffer buffer; local
665 Buffer buffer; local
725 Buffer buffer; local
    [all...]

Completed in 2536 milliseconds

<<61626364656667686970>>