Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 829) sorted by relevance

12345678910>>...34

/external/okhttp/okio/okio/src/test/java/okio/
DBufferTest.java41 Buffer buffer = new Buffer(); in readAndWriteUtf8()
58 Buffer buffer = new Buffer(); in completeSegmentByteCountOnEmptyBuffer()
63 Buffer buffer = new Buffer(); in completeSegmentByteCountOnBufferWithFullSegments()
69 Buffer buffer = new Buffer(); in completeSegmentByteCountOnBufferWithIncompleteTailSegment()
75 Buffer buffer = new Buffer(); in toStringOnEmptyBuffer()
80 Buffer buffer = new Buffer(); in toStringOnSmallBufferIncludesContents()
86 Buffer buffer = new Buffer(); in toStringOnLargeBufferIncludesMd5()
92 Buffer buffer = new Buffer(); in toStringOnMultipleSegmentBuffer()
98 Buffer buffer = new Buffer(); in multipleSegmentBuffers()
116 Buffer buffer = new Buffer(); in fillAndDrainPool()
[all …]
DUtf8Test.java74 Buffer encoded = new Buffer().writeUtf8(a); in multipleSegmentString()
75 Buffer expected = new Buffer().write(a.getBytes(Util.UTF_8)); in multipleSegmentString()
80 Buffer buffer = new Buffer(); in stringSpansSegments()
91 Buffer buffer = new Buffer(); in readEmptyBufferThrowsEofException()
100 Buffer buffer = new Buffer(); in readLeadingContinuationByteReturnsReplacementCharacter()
102 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readLeadingContinuationByteReturnsReplacementCharacter()
107 Buffer buffer = new Buffer(); in readMissingContinuationBytesThrowsEofException()
119 Buffer buffer = new Buffer(); in readTooLargeCodepointReturnsReplacementCharacter()
121 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readTooLargeCodepointReturnsReplacementCharacter()
122 assertEquals(Buffer.REPLACEMENT_CHARACTER, buffer.readUtf8CodePoint()); in readTooLargeCodepointReturnsReplacementCharacter()
[all …]
DDeflaterSinkTest.java32 Buffer data = new Buffer(); in deflateWithClose()
35 Buffer sink = new Buffer(); in deflateWithClose()
39 Buffer inflated = inflate(sink); in deflateWithClose()
45 Buffer data = new Buffer(); in deflateWithSyncFlush()
47 Buffer sink = new Buffer(); in deflateWithSyncFlush()
51 Buffer inflated = inflate(sink); in deflateWithSyncFlush()
57 Buffer data = new Buffer(); in deflateWellCompressed()
59 Buffer sink = new Buffer(); in deflateWellCompressed()
63 Buffer inflated = inflate(sink); in deflateWellCompressed()
69 Buffer data = new Buffer(); in deflatePoorlyCompressed()
[all …]
DInflaterSourceTest.java32 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflate()
34 Buffer inflated = inflate(deflated); in inflate()
39 Buffer deflated = decodeBase64("eJxzz09RyEjNKVAoLdZRKE9VL0pVyMxTKMlIVchIzEspVshPU0jNS8/MS00tK" in inflateTruncated()
49 Buffer deflated = decodeBase64("eJztwTEBAAAAwqCs61/CEL5AAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" in inflateWellCompressed()
67 Buffer inflated = inflate(deflated); in inflateWellCompressed()
73 Buffer deflated = deflate(original); in inflatePoorlyCompressed()
74 Buffer inflated = inflate(deflated); in inflatePoorlyCompressed()
80 Buffer inflated = new Buffer().writeUtf8(repeat('a', i)); in inflateIntoNonemptySink()
81 Buffer deflated = decodeBase64( in inflateIntoNonemptySink()
91 private Buffer decodeBase64(String s) { in decodeBase64()
[all …]
DSegmentSharingTest.java34 ByteString snapshot = new Buffer().snapshot(); in snapshotOfEmptyBuffer()
67 Buffer out = new Buffer(); in snapshotWriteToOutputStream()
77 Buffer buffer = concatenateBuffers(xs, ys, zs); in snapshotSegmentsAreNotRecycled()
95 Buffer buffer = concatenateBuffers(xs, ys, zs); in cloneSegmentsAreNotRecycled()
96 Buffer clone = buffer.clone(); in cloneSegmentsAreNotRecycled()
115 Buffer bufferA = concatenateBuffers(xs, ys, zs); in clonesAreEquivalent()
116 Buffer bufferB = bufferA.clone(); in clonesAreEquivalent()
123 Buffer bufferA = new Buffer(); in mutateAfterClone()
125 Buffer bufferB = bufferA.clone(); in mutateAfterClone()
133 Buffer bufferA = new Buffer().writeUtf8(ys).writeUtf8(us); in concatenateSegmentsCanCombine()
[all …]
DGzipSourceTest.java31 Buffer gzipped = new Buffer(); in gunzip()
43 Buffer gzipped = new Buffer(); in gunzip_withHCRC()
52 Buffer gzipped = new Buffer(); in gunzip_withExtra()
62 Buffer gzipped = new Buffer(); in gunzip_withName()
72 Buffer gzipped = new Buffer(); in gunzip_withComment()
86 Buffer gzipped = new Buffer(); in gunzip_withAll()
99 private void assertGzipped(Buffer gzipped) throws IOException { in assertGzipped()
100 Buffer gunzipped = gunzip(gzipped); in assertGzipped()
109 Buffer gzipped = new Buffer(); in gunzipWhenHeaderCRCIncorrect()
124 Buffer gzipped = new Buffer(); in gunzipWhenCRCIncorrect()
[all …]
DRealBufferedSourceTest.java34 Buffer source = new Buffer(); in inputStreamTracksSegments()
70 RealBufferedSource source = new RealBufferedSource(new Buffer()); in inputStreamCloses()
82 Buffer source = new Buffer(); in requireTracksBufferFirst()
94 Buffer source = new Buffer(); in requireIncludesBufferBytes()
105 Buffer source = new Buffer(); in requireInsufficientData()
118 Buffer source = new Buffer(); in requireReadsOneSegmentAtATime()
130 Buffer source = new Buffer(); in skipReadsOneSegmentAtATime()
140 Buffer source = new Buffer(); in skipTracksBufferFirst()
152 Buffer source = new Buffer(); in operationsAfterClose()
201 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)); in readAllReadsOneSegmentAtATime()
[all …]
DRealBufferedSinkTest.java32 RealBufferedSink sink = new RealBufferedSink(new Buffer()); in inputStreamCloses()
44 Buffer sink = new Buffer(); in bufferedSinkEmitsTailWhenItIsComplete()
54 Buffer sink = new Buffer(); in bufferedSinkEmitMultipleSegments()
62 Buffer sink = new Buffer(); in bufferedSinkFlush()
72 Buffer sink = new Buffer(); in bytesEmittedToSinkWithFlush()
80 Buffer sink = new Buffer(); in bytesNotEmittedToSinkWithoutFlush()
87 Buffer sink = new Buffer(); in bytesEmittedToSinkWithEmit()
95 Buffer sink = new Buffer(); in completeSegmentsEmitted()
102 Buffer sink = new Buffer(); in incompleteSegmentsNotEmitted()
209 assertEquals(3, bufferedSink.writeAll(new Buffer().writeUtf8("def"))); in writeAll()
[all …]
/external/dng_sdk/source/
Ddng_memory.h96 void * Buffer () in Buffer() function
104 const void * Buffer () const in Buffer() function
114 return (char *) Buffer (); in Buffer_char()
122 return (const char *) Buffer (); in Buffer_char()
130 return (uint8 *) Buffer (); in Buffer_uint8()
138 return (const uint8 *) Buffer (); in Buffer_uint8()
146 return (uint16 *) Buffer (); in Buffer_uint16()
154 return (const uint16 *) Buffer (); in Buffer_uint16()
162 return (int16 *) Buffer (); in Buffer_int16()
170 return (const int16 *) Buffer (); in Buffer_int16()
[all …]
Ddng_ref_counted_block.h112 void * Buffer () in Buffer() function
120 const void * Buffer () const in Buffer() function
130 return (char *) Buffer (); in Buffer_char()
138 return (const char *) Buffer (); in Buffer_char()
146 return (uint8 *) Buffer (); in Buffer_uint8()
154 return (const uint8 *) Buffer (); in Buffer_uint8()
162 return (uint16 *) Buffer (); in Buffer_uint16()
170 return (const uint16 *) Buffer (); in Buffer_uint16()
178 return (int16 *) Buffer (); in Buffer_int16()
186 return (const int16 *) Buffer (); in Buffer_int16()
[all …]
/external/libnfc-nxp/src/
DphFriNfc_NdefRecord.c87 NFCSTATUS phFriNfc_NdefRecord_GetRecords( uint8_t *Buffer, in phFriNfc_NdefRecord_GetRecords() argument
105 if (Buffer == NULL || BufferLength == 0 || NumberOfRawRecords == NULL) in phFriNfc_NdefRecord_GetRecords()
135 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) != in phFriNfc_NdefRecord_GetRecords()
148 if ((*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) == in phFriNfc_NdefRecord_GetRecords()
160 if ((*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords()
161 (*Buffer & PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) == PH_FRINFC_NDEFRECORD_TNF_UNCHANGED) in phFriNfc_NdefRecord_GetRecords()
171 if ( (*Buffer & PH_FRINFC_NDEFRECORD_FLAGS_MB) == PH_FRINFC_NDEFRECORD_FLAGS_MB && in phFriNfc_NdefRecord_GetRecords()
172 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_UNKNOWN && in phFriNfc_NdefRecord_GetRecords()
173 (*Buffer & PH_FRINFC_NDEFRECORD_TNFBYTE_MASK) != PH_FRINFC_NDEFRECORD_TNF_EMPTY && in phFriNfc_NdefRecord_GetRecords()
174 *(Buffer + 1) == 0) in phFriNfc_NdefRecord_GetRecords()
[all …]
/external/webrtc/webrtc/base/
Dbuffer.cc18 Buffer::Buffer() : size_(0), capacity_(0), data_(nullptr) { in Buffer() function in rtc::Buffer
22 Buffer::Buffer(const Buffer& buf) : Buffer(buf.data(), buf.size()) { in Buffer() function in rtc::Buffer
25 Buffer::Buffer(Buffer&& buf) in Buffer() function in rtc::Buffer
33 Buffer::Buffer(size_t size) : Buffer(size, size) { in Buffer() function in rtc::Buffer
36 Buffer::Buffer(size_t size, size_t capacity) in Buffer() function in rtc::Buffer
44 Buffer::~Buffer() = default;
Dbuffer_unittest.cc26 void TestBuf(const Buffer& b1, size_t size, size_t capacity) { in TestBuf()
34 TestBuf(Buffer(), 0, 0); in TEST()
35 TestBuf(Buffer(Buffer()), 0, 0); in TEST()
36 TestBuf(Buffer(0), 0, 0); in TEST()
40 TestBuf(Buffer(0 + 0, 10), 0, 10); in TEST()
42 TestBuf(Buffer(kTestData, 0), 0, 0); in TEST()
43 TestBuf(Buffer(kTestData, 0, 20), 0, 20); in TEST()
47 Buffer buf(kTestData, 7); in TEST()
54 Buffer buf(kTestData, 7, 14); in TEST()
61 Buffer buf(kTestData); in TEST()
[all …]
Dbuffer.h49 class Buffer {
51 Buffer(); // An empty buffer.
52 Buffer(const Buffer& buf); // Copy size and contents of an existing buffer.
53 Buffer(Buffer&& buf); // Move contents from an existing buffer.
56 explicit Buffer(size_t size);
57 Buffer(size_t size, size_t capacity);
62 Buffer(const T* data, size_t size) in Buffer() function
63 : Buffer(data, size, size) {} in Buffer()
65 Buffer(const T* data, size_t size, size_t capacity) in Buffer() function
66 : Buffer(size, capacity) { in Buffer()
[all …]
/external/opencv3/modules/cudaarithm/test/
Dtest_opengl.cpp56 PARAM_TEST_CASE(Buffer, cv::Size, MatType) in PARAM_TEST_CASE() argument
78 CUDA_TEST_P(Buffer, Constructor1) in CUDA_TEST_P() argument
80 cv::ogl::Buffer buf(size.height, size.width, type, cv::ogl::Buffer::ARRAY_BUFFER, true); in CUDA_TEST_P()
87 CUDA_TEST_P(Buffer, Constructor2) in CUDA_TEST_P() argument
89 cv::ogl::Buffer buf(size, type, cv::ogl::Buffer::ARRAY_BUFFER, true); in CUDA_TEST_P()
96 CUDA_TEST_P(Buffer, ConstructorFromMat) in CUDA_TEST_P() argument
100 cv::ogl::Buffer buf(gold, cv::ogl::Buffer::ARRAY_BUFFER, true); in CUDA_TEST_P()
108 CUDA_TEST_P(Buffer, ConstructorFromGpuMat) in CUDA_TEST_P() argument
113 cv::ogl::Buffer buf(d_gold, cv::ogl::Buffer::ARRAY_BUFFER); in CUDA_TEST_P()
121 CUDA_TEST_P(Buffer, ConstructorFromBuffer) in CUDA_TEST_P() argument
[all …]
/external/libbrillo/brillo/
Dany_internal_impl_unittest.cc10 using brillo::internal_details::Buffer;
13 TEST(Buffer, Empty) { in TEST() argument
14 Buffer buffer; in TEST()
16 EXPECT_EQ(Buffer::kExternal, buffer.storage_); in TEST()
20 TEST(Buffer, Store_Int) { in TEST() argument
21 Buffer buffer; in TEST()
24 EXPECT_EQ(Buffer::kContained, buffer.storage_); in TEST()
28 TEST(Buffer, Store_Double) { in TEST() argument
29 Buffer buffer; in TEST()
32 EXPECT_EQ(Buffer::kContained, buffer.storage_); in TEST()
[all …]
/external/llvm/unittests/Support/
DLineIteratorTest.cpp20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n" in TEST() local
24 line_iterator I = line_iterator(*Buffer), E; in TEST()
44 std::unique_ptr<MemoryBuffer> Buffer( in TEST() local
53 line_iterator I = line_iterator(*Buffer, true, '#'), E; in TEST()
73 std::unique_ptr<MemoryBuffer> Buffer( in TEST() local
83 line_iterator I = line_iterator(*Buffer, false, '#'), E; in TEST()
110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n" in TEST() local
116 line_iterator I = line_iterator(*Buffer), E; in TEST()
133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n" in TEST() local
138 line_iterator I = line_iterator(*Buffer, false), E; in TEST()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dbuffer_sequence_adapter.hpp61 template <typename Buffer, typename Buffers>
73 Buffer buffer(*iter); in buffer_sequence_adapter()
100 if (asio::buffer_size(Buffer(*iter)) > 0) in all_empty()
111 Buffer buffer(*iter); in validate()
116 static Buffer first(const Buffers& buffer_sequence) in first()
122 Buffer buffer(*iter); in first()
126 return Buffer(); in first()
135 template <typename Buffer>
136 class buffer_sequence_adapter<Buffer, asio::mutable_buffers_1>
143 init_native_buffer(buffer_, Buffer(buffer_sequence)); in buffer_sequence_adapter()
[all …]
/external/llvm/utils/FileCheck/
DFileCheck.cpp137 size_t Match(StringRef Buffer, size_t &MatchLen,
142 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
157 unsigned ComputeMatchDistance(StringRef Buffer,
378 size_t Pattern::Match(StringRef Buffer, size_t &MatchLen, in Match() argument
383 return Buffer.size(); in Match()
389 return Buffer.find(FixedStr); in Match()
431 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match()
445 return FullMatch.data()-Buffer.data(); in Match()
448 unsigned Pattern::ComputeMatchDistance(StringRef Buffer, in ComputeMatchDistance() argument
461 StringRef BufferPrefix = Buffer.substr(0, ExampleString.size()); in ComputeMatchDistance()
[all …]
/external/jetty/src/java/org/eclipse/jetty/http/
DHttpContent.java24 import org.eclipse.jetty.io.Buffer;
37 Buffer getContentType(); in getContentType()
38 Buffer getLastModified(); in getLastModified()
39 Buffer getIndirectBuffer(); in getIndirectBuffer()
40 Buffer getDirectBuffer(); in getDirectBuffer()
41 Buffer getETag(); in getETag()
55 final Buffer _mimeType;
57 final Buffer _etag;
60 public ResourceAsHttpContent(final Resource resource, final Buffer mimeType) in ResourceAsHttpContent()
66 public ResourceAsHttpContent(final Resource resource, final Buffer mimeType, int maxBuffer) in ResourceAsHttpContent()
[all …]
/external/aac/libFDK/src/
DFDK_bitbuffer.cpp120 FDKmemclear((*hBitBuf)->Buffer, bufSize*sizeof(UCHAR)); in FDK_CreateBitBuffer()
134 hBitBuf->Buffer = pBuffer ; in FDK_InitBitBuffer()
169 UINT tx = (hBitBuf->Buffer [ byteOffset & byteMask] << 24) | in FDK_get()
170 (hBitBuf->Buffer [(byteOffset+1) & byteMask] << 16) | in FDK_get()
171 (hBitBuf->Buffer [(byteOffset+2) & byteMask] << 8) | in FDK_get()
172 hBitBuf->Buffer [(byteOffset+3) & byteMask]; in FDK_get()
177 tx |= hBitBuf->Buffer [(byteOffset+4) & byteMask] >> (8-bitOffset); in FDK_get()
193 UINT cache = (hBitBuf->Buffer[(byteOffset-3)] << 24) | in FDK_get32()
194 (hBitBuf->Buffer[(byteOffset-2)] << 16) | in FDK_get32()
195 (hBitBuf->Buffer[(byteOffset-1)] << 8) | in FDK_get32()
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/
DBuffer.java43 public interface Buffer extends Cloneable interface
68 Buffer buffer(); in buffer()
74 Buffer asNonVolatileBuffer(); in asNonVolatileBuffer()
80 Buffer asReadOnlyBuffer(); in asReadOnlyBuffer()
86 Buffer asImmutableBuffer(); in asImmutableBuffer()
92 Buffer asMutableBuffer(); in asMutableBuffer()
140 Buffer get(int length); in get()
157 boolean equalsIgnoreCase(Buffer buffer); in equalsIgnoreCase()
225 Buffer peek(int index, int length); in peek()
244 int poke(int index, Buffer src); in poke()
[all …]
/external/clang/lib/AST/
DNestedNameSpecifier.cpp436 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, in Append() argument
448 memcpy(NewBuffer, Buffer, BufferSize); in Append()
449 free(Buffer); in Append()
451 Buffer = NewBuffer; in Append()
455 memcpy(Buffer + BufferSize, Start, End - Start); in Append()
460 void SaveSourceLocation(SourceLocation Loc, char *&Buffer, in SaveSourceLocation() argument
465 Buffer, BufferSize, BufferCapacity); in SaveSourceLocation()
469 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, in SavePointer() argument
473 Buffer, BufferSize, BufferCapacity); in SavePointer()
479 : Representation(Other.Representation), Buffer(nullptr), in NestedNameSpecifierLocBuilder()
[all …]
/external/clang/lib/Frontend/
DPCHContainerOperations.cpp26 std::shared_ptr<PCHBuffer> Buffer; member in __anonaa974af20111::RawPCHContainerGenerator
31 std::shared_ptr<PCHBuffer> Buffer) in RawPCHContainerGenerator() argument
32 : Buffer(Buffer), OS(OS) {} in RawPCHContainerGenerator()
37 if (Buffer->IsComplete) { in HandleTranslationUnit()
39 *OS << Buffer->Data; in HandleTranslationUnit()
44 Buffer->Data = std::move(Empty); in HandleTranslationUnit()
53 std::shared_ptr<PCHBuffer> Buffer) const { in CreatePCHContainerGenerator()
54 return llvm::make_unique<RawPCHContainerGenerator>(OS, Buffer); in CreatePCHContainerGenerator()
58 llvm::MemoryBufferRef Buffer, llvm::BitstreamReader &StreamFile) const { in ExtractPCH() argument
59 StreamFile.init((const unsigned char *)Buffer.getBufferStart(), in ExtractPCH()
[all …]
/external/llvm/lib/Support/
DLineIterator.cpp35 line_iterator::line_iterator(const MemoryBuffer &Buffer, bool SkipBlanks, in line_iterator() argument
37 : Buffer(Buffer.getBufferSize() ? &Buffer : nullptr), in line_iterator()
39 CurrentLine(Buffer.getBufferSize() ? Buffer.getBufferStart() : nullptr, in line_iterator()
43 if (Buffer.getBufferSize()) { in line_iterator()
44 assert(Buffer.getBufferEnd()[0] == '\0'); in line_iterator()
46 if (SkipBlanks || !isAtLineEnd(Buffer.getBufferStart())) in line_iterator()
52 assert(Buffer && "Cannot advance past the end!"); in advance()
55 assert(Pos == Buffer->getBufferStart() || isAtLineEnd(Pos) || *Pos == '\0'); in advance()
82 Buffer = nullptr; in advance()

12345678910>>...34