Home
last modified time | relevance | path

Searched refs:piece (Results 1 – 25 of 126) sorted by relevance

123456

/external/chromium_org/net/spdy/
Dspdy_prefixed_buffer_reader_test.cc43 SpdyPinnableBufferPiece piece; in TEST_F() local
44 EXPECT_FALSE(reader.ReadN(10, &piece)); // Not enough buffer. in TEST_F()
45 EXPECT_TRUE(reader.ReadN(6, &piece)); in TEST_F()
46 EXPECT_FALSE(piece.IsPinned()); in TEST_F()
47 EXPECT_EQ(StringPiece("foobar"), piece); in TEST_F()
66 SpdyPinnableBufferPiece piece; in TEST_F() local
67 EXPECT_FALSE(reader.ReadN(10, &piece)); // Not enough buffer. in TEST_F()
68 EXPECT_TRUE(reader.ReadN(6, &piece)); in TEST_F()
69 EXPECT_FALSE(piece.IsPinned()); in TEST_F()
70 EXPECT_EQ(StringPiece("foobar"), piece); in TEST_F()
[all …]
Dspdy_pinnable_buffer_piece_test.cc29 SpdyPinnableBufferPiece piece; in TEST_F() local
30 EXPECT_TRUE(reader.ReadN(6, &piece)); in TEST_F()
33 EXPECT_EQ(StringPiece("foobar"), piece); in TEST_F()
34 EXPECT_FALSE(piece.IsPinned()); in TEST_F()
35 EXPECT_EQ(prefix_.data(), piece.buffer()); in TEST_F()
37 piece.Pin(); in TEST_F()
40 EXPECT_EQ(StringPiece("foobar"), piece); in TEST_F()
41 EXPECT_TRUE(piece.IsPinned()); in TEST_F()
42 EXPECT_NE(prefix_.data(), piece.buffer()); in TEST_F()
45 const char* buffer = piece.buffer(); in TEST_F()
[all …]
/external/valgrind/main/memcheck/tests/
Dmemalign2.c29 int* piece; in main()
50 piece = malloc(1024 * 1000); assert (piece); in main()
51 free (piece); in main()
56 piece = malloc(1024 * 100); assert (piece); in main()
58 free (piece); in main()
/external/chromium_org/mojo/tools/
Dmessage_generator.cc22 std::string BinaryToHex(const base::StringPiece& piece) { in BinaryToHex() argument
24 result.reserve(result.size() + (piece.size() * 5)); in BinaryToHex()
25 for (size_t i = 0; i < piece.size(); ++i) in BinaryToHex()
26 base::StringAppendF(&result, "0X%.2X\n", static_cast<int>(piece.data()[i])); in BinaryToHex()
/external/chromium_org/base/
Dbig_endian_unittest.cc20 base::StringPiece piece; in TEST() local
38 EXPECT_TRUE(reader.ReadPiece(&piece, 2)); in TEST()
39 EXPECT_EQ(2u, piece.size()); in TEST()
40 EXPECT_EQ(expected.data(), piece.data()); in TEST()
50 base::StringPiece piece; in TEST() local
60 EXPECT_FALSE(reader.ReadPiece(&piece, 4)); in TEST()
/external/chromium_org/tools/gn/
Dstring_utils.h47 const base::StringPiece& piece) { in AppendStringPiece() argument
48 dest->append(piece.data(), piece.size()); in AppendStringPiece()
/external/pcre/dist/
Dpcre_stringpiece.cc41 std::ostream& operator<<(std::ostream& o, const pcrecpp::StringPiece& piece) { in operator <<() argument
42 return (o << piece.as_string()); in operator <<()
/external/chromium_org/third_party/jinja2/
Dloaders.py27 for piece in template.split('/'):
28 if path.sep in piece \
29 or (path.altsep and path.altsep in piece) or \
30 piece == path.pardir:
32 elif piece and piece != '.':
33 pieces.append(piece)
/external/chromium_org/chrome/browser/ui/autofill/
Dgenerated_credit_card_bubble_controller.cc200 base::string16 piece = pieces.front(); in SetupAndShow() local
206 if (!piece.empty() && pieces.size() % 2 == 0) { in SetupAndShow()
209 bold_text.range = gfx::Range(start, start + piece.size()); in SetupAndShow()
215 contents_text_.append(piece); in SetupAndShow()
/external/regex-re2/util/
Dstringpiece.cc10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() argument
11 o.write(piece.data(), piece.size()); in operator <<()
/external/chromium_org/third_party/re2/util/
Dstringpiece.cc10 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() argument
11 o.write(piece.data(), piece.size()); in operator <<()
/external/chromium_org/net/quic/crypto/
Dp256_key_exchange_nss.cc25 static vector<uint8> StringPieceToVector(StringPiece piece) { in StringPieceToVector() argument
26 return vector<uint8>(piece.data(), piece.data() + piece.length()); in StringPieceToVector()
/external/chromium_org/ui/base/resource/
Ddata_pack.cc219 base::StringPiece piece; in GetStaticMemory() local
220 if (!GetStringPiece(resource_id, &piece)) in GetStaticMemory()
223 return new base::RefCountedStaticMemory(piece.data(), piece.length()); in GetStaticMemory()
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/
Djavascriptlintrules.py118 for piece in identifier.split('.'):
119 if piece.endswith('_'):
120 self._used_private_members.add(piece)
124 for piece in token.string.split('.'):
125 if piece.endswith('_'):
126 self._used_private_members.add(piece)
Dclosurizednamespacesinfo.py259 for piece in pieces:
260 if piece.endswith('_'):
/external/chromium_org/chrome/browser/ui/cocoa/applescript/examples/
Dtab_manipulation.applescript26 cut selection -- Cut a piece of text and place it on the system clipboard.
28 copy selection -- Copy a piece of text and place it on the system clipboard.
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/base/strings/
Dstring_piece.cc16 std::ostream& operator<<(std::ostream& o, const StringPiece& piece) { in operator <<() argument
17 o.write(piece.data(), static_cast<std::streamsize>(piece.size())); in operator <<()
/external/clang/lib/StaticAnalyzer/Core/
DPlistDiagnostics.cpp314 const PathDiagnosticPiece *piece = I->get(); in FlushDiagnosticsImpl() local
315 AddFID(FM, Fids, *SM, piece->getLocation().asLocation()); in FlushDiagnosticsImpl()
316 ArrayRef<SourceRange> Ranges = piece->getRanges(); in FlushDiagnosticsImpl()
324 dyn_cast<PathDiagnosticCallPiece>(piece)) { in FlushDiagnosticsImpl()
333 dyn_cast<PathDiagnosticMacroPiece>(piece)) { in FlushDiagnosticsImpl()
DBugReporter.cpp111 IntrusiveRefCntPtr<PathDiagnosticPiece> piece(path.front()); in removeRedundantMsgs() local
114 switch (piece->getKind()) { in removeRedundantMsgs()
116 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(piece)->path); in removeRedundantMsgs()
119 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(piece)->subPieces); in removeRedundantMsgs()
130 cast<PathDiagnosticEventPiece>(piece); in removeRedundantMsgs()
136 piece = pieceToKeep; in removeRedundantMsgs()
144 path.push_back(piece); in removeRedundantMsgs()
164 IntrusiveRefCntPtr<PathDiagnosticPiece> piece(pieces.front()); in removeUnneededCalls() local
167 switch (piece->getKind()) { in removeUnneededCalls()
169 PathDiagnosticCallPiece *call = cast<PathDiagnosticCallPiece>(piece); in removeUnneededCalls()
[all …]
DPathDiagnostic.cpp225 const PathDiagnosticPiece *piece = I->get(); in HandlePathDiagnostic() local
226 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
234 ArrayRef<SourceRange> Ranges = piece->getRanges(); in HandlePathDiagnostic()
246 dyn_cast<PathDiagnosticCallPiece>(piece)) { in HandlePathDiagnostic()
250 dyn_cast<PathDiagnosticMacroPiece>(piece)) { in HandlePathDiagnostic()
1040 const PathDiagnosticPiece *piece = it->get(); in compute_path_size() local
1042 dyn_cast<PathDiagnosticCallPiece>(piece)) { in compute_path_size()
/external/chromium_org/third_party/closure_linter/closure_linter/
Djavascriptlintrules.py134 for piece in identifier.split('.'):
135 if piece.endswith('_'):
136 self._used_private_members.add(piece)
140 for piece in token.string.split('.'):
141 if piece.endswith('_'):
142 self._used_private_members.add(piece)
Dclosurizednamespacesinfo.py256 for piece in pieces:
257 if piece.endswith('_'):
/external/icu/icu4c/source/layout/
DIndicReordering.cpp245 LEUnicode piece = (*splitMatra)[j]; in decomposeReorderMatras() local
247 fOutChars[i+inv_count] = piece; in decomposeReorderMatras()
248 matraClass = classTable->getCharClass(piece); in decomposeReorderMatras()
250 insertCharacter(piece,i+1+inv_count,saveIndex,saveAuxData); in decomposeReorderMatras()
336 LEUnicode piece = (*splitMatra)[i]; in noteMatra() local
337 IndicClassTable::CharClass pieceClass = classTable->getCharClass(piece); in noteMatra()
339 saveMatra(piece, matraIndex, pieceClass); in noteMatra()
/external/chromium_org/third_party/leveldatabase/src/doc/bench/
Ddb_bench_tree_db.cc98 std::string piece; in RandomGenerator() local
102 test::CompressibleString(&rnd, FLAGS_compression_ratio, 100, &piece); in RandomGenerator()
103 data_.append(piece); in RandomGenerator()
/external/bison/m4/
Dpathmax.m414 # Expands to a piece of C program that defines PATH_MAX in the same way as

123456