| /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
| RetryableSink.java | 21 import okio.Buffer; 35 private final Buffer content = new Buffer(); 54 @Override public void write(Buffer source, long byteCount) throws IOException { 76 Buffer buffer = new Buffer(); local 77 content.copyTo(buffer, 0, content.size()); 78 socketOut.write(buffer, buffer.size()) [all...] |
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
| FormEncodingBuilderTest.java | 19 import okio.Buffer; 37 Buffer out = new Buffer(); 50 Buffer out = new Buffer(); 63 Buffer buffer = new Buffer(); local 64 formEncoding.writeTo(buffer); 65 assertEquals(expected, buffer.readUtf8()) 78 Buffer buffer = new Buffer(); local 89 Buffer buffer = new Buffer(); local 176 Buffer buffer = new Buffer(); local [all...] |
| /external/okhttp/okio/okio/src/main/java/okio/ |
| InflaterSource.java | 40 this(Okio.buffer(source), inflater); 44 * This package-private constructor shares a buffer with its trusted caller. 56 Buffer sink, long byteCount) throws IOException { 103 // Assign buffer bytes to the inflater. 104 Segment head = source.buffer().head; 110 /** When the inflater has processed compressed data, remove it from the buffer. */
|
| /external/opencv/otherlibs/highgui/ |
| grfmt_png.cpp | 185 uchar** buffer = 0; local 229 buffer = new uchar*[m_height]; 232 buffer[y] = data + y*step; 234 png_read_image( png_ptr, buffer ); 242 delete[] buffer; 272 uchar** buffer = 0; local 307 buffer = new uchar*[height]; 309 buffer[y] = (uchar*)(data + y*step); 311 png_write_image( png_ptr, buffer ); 314 delete[] buffer; [all...] |
| image.cpp | 210 uchar buffer[sizeof(BITMAPINFOHEADER) + 1024]; local 211 BITMAPINFO* bmi = (BITMAPINFO*)buffer;
|
| /external/pcre/dist2/src/ |
| pcre2demo.c | 149 PCRE2_UCHAR buffer[256]; local 150 pcre2_get_error_message(errornumber, buffer, sizeof(buffer)); 152 buffer);
|
| /external/pdfium/core/fdrm/crypto/ |
| fx_crypt.h | 34 uint8_t buffer[64]; member in struct:CRYPT_md5_context 48 uint8_t buffer[128]; member in struct:CRYPT_sha2_context
|
| /external/pdfium/core/fxcodec/codec/ |
| fx_codec_jpx_unittest.cpp | 46 uint8_t buffer[16]; local 50 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, sizeof(buffer), ptr)); 57 uint8_t buffer[16]; local 60 memset(buffer, 0xbd, sizeof(buffer)); 61 EXPECT_EQ(kReadError, opj_read_from_memory(buffer, 0, &dd)); 62 EXPECT_EQ(0xbd, buffer[0]); 65 memset(buffer, 0xbd, sizeof(buffer)); 84 uint8_t buffer[16]; local 110 uint8_t buffer[16]; local 161 uint8_t buffer[16]; local 227 uint8_t buffer[16]; local 344 uint8_t buffer[16]; local [all...] |
| /external/pdfium/fpdfsdk/ |
| fpdf_sysfontinfo.cpp | 71 uint8_t* buffer, 75 return m_pInfo->GetFontData(m_pInfo, hFont, table, buffer, size); 84 char* buffer = FX_Alloc(char, size); variable 85 size = m_pInfo->GetFaceName(m_pInfo, hFont, buffer, size); 86 *name = ByteString(buffer, size); 87 FX_Free(buffer); variable 162 unsigned char* buffer, 165 return pDefault->m_pFontInfo->GetFontData(hFont, table, buffer, buf_size); 170 char* buffer, 179 strncpy(buffer, name.c_str() [all...] |
| /external/pdfium/fxbarcode/datamatrix/ |
| BC_C40Encoder.cpp | 53 WideString buffer; local 57 int32_t lastCharSize = encodeChar(c, buffer, e); 61 int32_t unwritten = (buffer.GetLength() / 3) * 2; 69 if ((buffer.GetLength() % 3) == 2) { 71 lastCharSize = BacktrackOneCharacter(&context, &buffer, lastCharSize); 78 while ((buffer.GetLength() % 3) == 1 && 80 lastCharSize = BacktrackOneCharacter(&context, &buffer, lastCharSize); 88 int32_t count = buffer.GetLength(); 98 handleEOD(context, buffer, e); 101 WideString& buffer) { [all...] |
| BC_EdifactEncoder.cpp | 54 bool HandleEOD(CBC_EncoderContext* context, const WideString& buffer) { 55 int32_t count = buffer.GetLength(); 75 WideString encoded = EncodeToEdifactCodewords(buffer, 0); 129 WideString buffer; local 132 encodeChar(c, &buffer, e); 137 int32_t count = buffer.GetLength(); 139 WideString encoded = EncodeToEdifactCodewords(buffer, 0); 145 buffer.Delete(0, 4); 154 buffer += static_cast<wchar_t>(31); 155 if (!HandleEOD(&context, buffer)) [all...] |
| /external/perfetto/src/base/ |
| unix_task_runner.cc | 50 // Reduce the buffer size on Linux. Note that this gets rounded up to the page 158 char buffer[16]; local 159 if (read(control_read_.get(), &buffer[0], sizeof(buffer)) <= 0 &&
|
| /external/perfetto/src/ftrace_reader/ |
| end_to_end_integrationtest.cc | 55 std::unique_ptr<uint8_t[]> buffer = writer_delegate->StitchChunks(msg_size); local 56 wrapper->ParseFromArray(buffer.get(), static_cast<int>(msg_size));
|
| format_parser.cc | 84 char buffer[MAX_FIELD_LENGTH + 1]; local 102 sscanf(line, "name: %" STRINGIFY(MAX_FIELD_LENGTH) "s", buffer) == 1) { 103 name = std::string(buffer); 119 buffer, &offset, &size, &is_signed) == 4) { 120 std::string type_and_name(buffer);
|
| /external/ppp/pppd/plugins/radius/ |
| dict.c | 49 char buffer[256]; local 63 while (fgets (buffer, sizeof (buffer), dictfd) != (char *) NULL) 68 if (*buffer == '#' || *buffer == '\0' || *buffer == '\n') 73 if (strncmp (buffer, "VENDOR", 6) == 0) { 75 if (sscanf(buffer, "%s%s%d", dummystr, namestr, &value) != 3) { 101 else if (strncmp (buffer, "ATTRIBUTE", 9) == 0) 108 n = sscanf(buffer, "%s%s%s%s%s", dummystr, namestr, valstr, typestr, vendorstr) [all...] |
| /external/proguard/src/proguard/classfile/attribute/preverification/ |
| FullFrame.java | 182 StringBuffer buffer = new StringBuffer(super.toString()).append("Var: "); local 186 buffer = buffer.append('[') 191 buffer.append(", Stack: "); 195 buffer = buffer.append('[') 200 return buffer.toString();
|
| /external/proguard/src/proguard/evaluation/ |
| TracedVariables.java | 185 StringBuffer buffer = new StringBuffer(); local 191 buffer = buffer.append('[') 197 return buffer.toString();
|
| /external/proguard/src/proguard/evaluation/value/ |
| DetailedArrayReferenceValue.java | 290 StringBuffer buffer = new StringBuffer(super.toString()); local 292 buffer.append('{'); 295 buffer.append(values[index]); 296 buffer.append(index < values.length-1 ? ',' : '}'); 299 return buffer.toString();
|
| /external/protobuf/src/google/protobuf/io/ |
| printer_unittest.cc | 52 // where particular writes cross a buffer boundary and cases where they do 56 char buffer[8192]; local 58 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); 64 char buffer[8192]; local 67 ArrayOutputStream output(buffer, sizeof(buffer), block_size); 79 buffer[output.ByteCount()] = '\0'; 84 buffer); 89 char buffer[8192] local 117 char buffer[8192]; local 153 char buffer[8192]; local 208 char buffer[8192]; local 251 char buffer[8192]; local 291 char buffer[8192]; local 315 char buffer[8192]; local 340 char buffer[8192]; local 364 char buffer[8192]; local 417 char buffer[8192]; local 428 char buffer[8192]; local 443 char buffer[8192]; local 458 char buffer[8192]; local 475 char buffer[17]; local 499 char buffer[16]; local [all...] |
| /external/protobuf/src/google/protobuf/testing/ |
| file.cc | 66 char buffer[1024]; local 71 size_t n = fread(buffer, 1, sizeof(buffer), file); 73 output->append(buffer, n);
|
| /external/protobuf/src/google/protobuf/util/ |
| json_util.cc | 54 void* buffer; local 56 if (!stream_->Next(&buffer, &length)) { 61 memcpy(buffer, bytes, len); 65 memcpy(buffer, bytes, length); 153 const void* buffer; local 155 while (json_input->Next(&buffer, &length)) { 158 parser.Parse(StringPiece(static_cast<const char*>(buffer), length)));
|
| /external/python/cpython2/Lib/test/ |
| test_StringIO.py | 202 # Jython doesn't have a buffer object, so we just do a useless 203 # fake of the buffer tests. 204 buffer = str variable in class:TestcStringIO 207 constructor = buffer 210 constructor = buffer 218 with test_support.check_py3k_warnings(("buffer.. not supported",
|
| /external/python/cpython3/Include/ |
| bytesobject.h | 98 /* Provides access to the internal data buffer and size of a string 100 NULL as *len parameter will force the string buffer to be 105 char **s, /* pointer to buffer variable */ 112 into the string pointed to by buffer. For the argument descriptions, 115 PyAPI_FUNC(Py_ssize_t) _PyBytes_InsertThousandsGroupingLocale(char *buffer, 122 into the string pointed to by buffer. For the argument descriptions, 124 PyAPI_FUNC(Py_ssize_t) _PyBytes_InsertThousandsGrouping(char *buffer, 141 /* The _PyBytesWriter structure is big: it contains an embedded "stack buffer". 145 /* bytes, bytearray or NULL (when the small buffer is used) */ 146 PyObject *buffer; member in struct:__anon33116 [all...] |
| /external/selinux/libsemanage/src/ |
| parse_utils.c | 89 char *buffer = NULL; local 103 ((len = getline(&buffer, &buf_len, info->file_stream)) > 0)) { 108 if (buffer[len - 1] == '\n') 109 buffer[len - 1] = '\0'; 111 ptr = buffer; 117 char *tmp = strdup(buffer); 122 info->working_copy = buffer; 130 free(buffer); 131 buffer = NULL; 136 ERR(handle, "out of memory, could not allocate buffer"); [all...] |
| /external/selinux/libsepol/cil/test/unit/ |
| CilTest.c | 60 char *buffer; local 73 buffer = malloc(file_size + 2); 74 if(fread(buffer, file_size, 1, file) < 1) { 77 memset(buffer+file_size, 0, 2); 81 new_data->buffer = buffer; [all...] |