/device/samsung/tuna/recovery/ |
bootloader.c | 75 unsigned int read_whole_file(const char* fname, char* buffer, 77 memset(buffer, 0, buffer_size); 85 int read_byte_count = fread(buffer, 1, buffer_size - 1, f); 93 while (buffer[read_byte_count - 1] == '\n') { 94 buffer[--read_byte_count] = 0;
|
/external/chromium/chrome/browser/chromeos/ |
external_metrics.cc | 166 uint8 buffer[kMetricsMessageMaxLength]; local 167 result = HANDLE_EINTR(read(fd, buffer, message_size)); 177 // The buffer should now contain a pair of null-terminated strings. 178 uint8* p = reinterpret_cast<uint8*>(memchr(buffer, '\0', message_size)); 182 memchr(p + 1, '\0', message_size - (p + 1 - buffer))); 188 char* name = reinterpret_cast<char*>(buffer);
|
/external/chromium/chrome/browser/ui/gtk/extensions/ |
extension_install_dialog_gtk.cc | 130 GtkTextBuffer* buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(text_view)); local 131 GtkTextTagTable* tag_table = gtk_text_buffer_get_tag_table(buffer); 149 gtk_text_buffer_get_end_iter(buffer, &end_iter); 153 gtk_text_buffer_insert(buffer, &end_iter, "\n", -1); 155 buffer, &end_iter, UTF16ToUTF8(*iter).c_str(), -1,
|
/external/chromium/net/test/ |
openssl_helper.cc | 245 unsigned char buffer[6]; local 247 int ret = SSL_read(server, buffer, sizeof(buffer)); 253 if (memcmp(buffer, "hello!", sizeof(buffer)) == 0) {
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
gtest-port.cc | 143 char* const buffer = new char[file_size]; local 153 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); 157 const ::std::string content(buffer, buffer+bytes_read); 158 delete[] buffer;
|
/external/dropbear/ |
dropbearkey.c | 25 /* The format of the keyfiles is basically a raw dump of the buffer. Data types 49 #include "buffer.h" 60 static void buf_writefile(buffer * buf, const char * filename); 95 buffer *buf = NULL; 254 buffer *buf = NULL; 295 buffer * buf = NULL; 340 /* Write a buffer to a file specified, failing if the file exists */ 341 static void buf_writefile(buffer * buf, const char * filename) {
|
/external/e2fsprogs/ext2ed/ |
ext2ed.h | 111 char buffer [EXT2_MAX_BLOCK_SIZE]; member in union:struct_type_data::union_type_data 142 unsigned char buffer [EXT2_MAX_BLOCK_SIZE]; member in struct:struct_file_info 312 extern int low_read (unsigned char *buffer,unsigned long length,unsigned long offset); 313 extern int low_write (unsigned char *buffer,unsigned long length,unsigned long offset); 314 extern int log_changes (unsigned char *buffer,unsigned long length,unsigned long offset);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/ |
RawDataTable.java | 65 StringBuffer buffer = new StringBuffer(); local 68 buffer.append("<td><b>"); 69 buffer.append(this.dimensions[i].getName()); 70 buffer.append("</b></td>"); 72 this.stream.print(buffer.toString());
|
/external/harfbuzz_ng/contrib/python/scripts/ |
hbtestfont | 42 buffer = harfbuzz.buffer(bytes, len(text)) variable 43 if (opts.lang or opts.script) : buffer.set_scriptlang(opts.script if opts.script else "", opts.lang if opts.lang else "") 49 ft.shape(buffer, features = features) 50 res = buffer.get_info(64) # scale for 26.6
|
/external/icu4c/common/ |
locutil.cpp | 148 char buffer[BUFLEN]; local 155 id.extract(prev, INT32_MAX, buffer + prev, BUFLEN - prev, US_INV); 159 id.extract(prev, i - prev, buffer + prev, BUFLEN - prev, US_INV); 160 // manually "convert" U+0040 at id[i] into '@' at buffer[i] 161 buffer[i] = '@'; 165 result = Locale::createFromName(buffer);
|
unistr_cnv.cpp | 291 char buffer[1024]; local 293 destLimit=buffer+sizeof(buffer); 295 dest=buffer; 298 length+=(int32_t)(dest-buffer); 382 // try to use the stack buffer
|
/external/icu4c/test/intltest/ |
tsdcfmsy.cpp | 222 UnicodeString buffer; local 224 buffer = df->format(value, buffer, pos); 225 if(buffer != expected){ 227 expected + ", Got " + buffer);
|
/external/iptables/extensions/ |
libip6t_icmp6.c | 120 char buffer[strlen(icmpv6type) + 1]; local 123 strcpy(buffer, icmpv6type); 124 slash = strchr(buffer, '/'); 129 if (!xtables_strtoui(buffer, NULL, &number, 0, UINT8_MAX)) 131 "Invalid ICMPv6 type `%s'\n", buffer);
|
libip6t_rt.c | 74 char *buffer, *cp, *next; local 77 buffer = strdup(addrstr); 78 if (!buffer) xtables_error(OTHER_PROBLEM, "strdup failed"); 80 for (cp=buffer, i=0; cp && i<IP6T_RT_HOPS; cp=next,i++) 93 free(buffer);
|
libipt_icmp.c | 144 char buffer[strlen(icmptype) + 1]; local 147 strcpy(buffer, icmptype); 148 slash = strchr(buffer, '/'); 153 if (!xtables_strtoui(buffer, NULL, &number, 0, UINT8_MAX)) 155 "Invalid ICMP type `%s'\n", buffer);
|
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/ |
VideoRecorderAppState.java | 96 ByteBuffer buffer; field in class:VideoRecorderAppState.WorkItem 103 buffer = BufferUtils.createByteBuffer(width * height * 4); 125 item.buffer.clear(); 126 renderer.readFrameBuffer(out, item.buffer); 130 Screenshots.convertScreenShot(item.buffer, item.image);
|
/external/jpeg/ |
wrppm.c | 58 * work the output buffer must be allocated in near data space, because we are 72 char *iobuffer; /* fwrite's I/O buffer */ 73 JSAMPROW pixrow; /* decompressor output buffer */ 74 size_t buffer_width; /* width of I/O buffer */ 86 * output buffer is physically the same as the fwrite buffer. 113 ptr = dest->pub.buffer[0]; 140 ptr = dest->pub.buffer[0]; 162 ptr = dest->pub.buffer[0]; 233 /* Create physical I/O buffer. Note we make this near on a PC. * [all...] |
/external/libpcap/ |
pcap-nit.c | 67 * The total buffer space used by NIT. 82 * of buffer space. 109 cc = read(p->fd, (char *)p->buffer, p->bufsize); 117 bp = p->buffer; 293 p->buffer = (u_char *)malloc(p->bufsize); 294 if (p->buffer == NULL) { 305 free(p->buffer);
|
/external/nist-sip/java/gov/nist/core/ |
NameValueList.java | 93 public StringBuffer encode(StringBuffer buffer) { 101 gobj.encode(buffer); 103 buffer.append(obj.toString()); 106 buffer.append(separator); 112 return buffer;
|
/external/oprofile/daemon/liblegacy/ |
init.c | 115 * @param buf sample buffer area 116 * @param size size of sample buffer 117 * @param nbuf note buffer area 118 * @param nsize size of note buffer 157 * @param buf buffer to read into 158 * @param size size of buffer 159 * @param nbuf note buffer 160 * @param nsize size of note buffer 162 * Read some of a buffer from the device and process 206 * opd_do_notes - process a notes buffer 265 struct op_sample const * buffer = opd_buf->buffer; local [all...] |
/external/protobuf/src/google/protobuf/ |
message_lite.cc | 236 uint8* buffer = output->GetDirectBufferForNBytesAndAdvance(size); local 237 if (buffer != NULL) { 238 uint8* end = SerializeWithCachedSizesToArray(buffer); 239 if (end - buffer != size) { 240 ByteSizeConsistencyError(size, ByteSize(), end - buffer);
|
/external/qemu/android/utils/ |
misc.c | 85 char* buffer; member in struct:Temptring 105 t->buffer = realloc( t->buffer, size ); 106 if (t->buffer == NULL) { 113 return t->buffer; 230 /* Make sure that we're within the parameters buffer. */ 272 /* Calculate size of string buffer required for the value. */ 279 /* Allocate string buffer, and retrieve the value. */ 282 E("%s: Unable to allocated %d bytes for string buffer.", 288 E("%s: Unable to retrieve value into allocated buffer.", __FUNCTION__) [all...] |
/external/qemu/distrib/jpeg-6b/ |
wrppm.c | 58 * work the output buffer must be allocated in near data space, because we are 72 char *iobuffer; /* fwrite's I/O buffer */ 73 JSAMPROW pixrow; /* decompressor output buffer */ 74 size_t buffer_width; /* width of I/O buffer */ 86 * output buffer is physically the same as the fwrite buffer. 113 ptr = dest->pub.buffer[0]; 140 ptr = dest->pub.buffer[0]; 162 ptr = dest->pub.buffer[0]; 233 /* Create physical I/O buffer. Note we make this near on a PC. * [all...] |
/external/qemu/distrib/sdl-1.2.15/src/audio/macosx/ |
SDL_coreaudio.c | 133 SDL_memset(buffer, this->spec.silence, bufferSize); 136 buffer, bufferSize); 144 SDL_memcpy(ptr, (char *)buffer + bufferOffset, len); 202 SDL_free(buffer); 280 /* Allocate a sample buffer */ 282 buffer = SDL_malloc(bufferSize);
|
/external/skia/legacy/src/ports/ |
FontHostConfiguration_android.cpp | 62 // Malloc new buffer to store the string 185 char buffer[512]; local 188 fgets(buffer, sizeof(buffer), file); 189 int len = strlen(buffer); 193 XML_Parse(parser, buffer, len, done);
|