/aosp_15_r20/external/libchrome/base/strings/ |
H A D | string_piece_unittest.cc | 198 typedef BasicStringPiece<TypeParam> Piece; in TYPED_TEST() typedef 211 Piece e; in TYPED_TEST() 215 Piece f(temp); in TYPED_TEST() 234 ASSERT_EQ(Piece::npos, TypeParam::npos); in TYPED_TEST() 237 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST() 240 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 241 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST() 242 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 248 Piece g(not_found); in TYPED_TEST() 249 ASSERT_EQ(a.find(g), Piece::npos); in TYPED_TEST() [all …]
|
/aosp_15_r20/external/cronet/base/strings/ |
H A D | string_piece_unittest.cc | 201 typedef std::basic_string_view<TypeParam> Piece; in TYPED_TEST() typedef 214 d = Piece(); in TYPED_TEST() 215 Piece e; in TYPED_TEST() 219 Piece f(temp); in TYPED_TEST() 238 ASSERT_EQ(Piece::npos, std::basic_string<TypeParam>::npos); in TYPED_TEST() 241 ASSERT_EQ(a.find(b, 1), Piece::npos); in TYPED_TEST() 244 ASSERT_EQ(a.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 245 ASSERT_EQ(b.find(c), Piece::npos); in TYPED_TEST() 246 ASSERT_EQ(b.find(c, Piece::npos), Piece::npos); in TYPED_TEST() 253 Piece g(not_found); in TYPED_TEST() [all …]
|
H A D | string_split_internal.h | 73 using Piece = std::basic_string_view<CharT>; in SplitStringUsingSubstrT() local 74 using size_type = typename Piece::size_type; in SplitStringUsingSubstrT() 82 for (size_type begin_index = 0, end_index = 0; end_index != Piece::npos; in SplitStringUsingSubstrT() 85 Piece term = end_index == Piece::npos in SplitStringUsingSubstrT()
|
/aosp_15_r20/external/tensorflow/tensorflow/compiler/xla/ |
H A D | literal.h | 429 class Piece { 460 return const_cast<char*>(const_cast<const Piece*>(this)->buffer()); in buffer() 470 void MoveDataFrom(Piece& from) { in MoveDataFrom() 488 const_cast<const Piece*>(this)->dynamic_size_buffer()); in dynamic_size_buffer() 523 Piece& child(int64_t index) { in child() 524 return const_cast<Piece&>(const_cast<const Piece*>(this)->child(index)); in child() 526 const Piece& child(int64_t index) const { in child() 533 void emplace_back(Piece child_piece) { in emplace_back() 554 [&func](const ShapeIndex& index, const Piece& piece) { in ForEachSubpiece() 583 [&func](const ShapeIndex& index, Piece* piece) { in ForEachMutableSubpiece() [all …]
|
H A D | literal.cc | 228 std::function<void(const Shape&, Piece*)> set_piece_shapes = in mutable_shape_do_not_use() 229 [&set_piece_shapes](const Shape& shape, Piece* piece) { in mutable_shape_do_not_use() 248 void Literal::SetPiece(const Shape& shape, Piece* piece, bool allocate_arrays, in SetPiece() 252 auto child_piece = Piece(); in SetPiece() 292 [&](const ShapeIndex& index, Piece* piece) { in DeallocateBuffers() 314 [&](const ShapeIndex& index, Piece* piece) { in CreateFromShape() 475 [&](const ShapeIndex& index, Piece* piece) { in CreateFromProto() 531 [&](const ShapeIndex& index, Piece* dest_piece) { in DecomposeTuple() 539 Piece& src_piece = piece(src_index); in DecomposeTuple() 570 int32_t LiteralBase::Piece::GetDynamicSize(int64_t dim_index) const { in GetDynamicSize() [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/core/platform/ |
H A D | strcat.h | 137 StringPiece Piece() const { return piece_; } in Piece() function 197 return internal::CatPieces({a.Piece(), b.Piece(), c.Piece(), d.Piece(), in StrCat() 198 e.Piece(), in StrCat() 199 static_cast<const AlphaNum &>(args).Piece()...}); in StrCat() 236 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 237 static_cast<const AlphaNum &>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/pdfium/xfa/fde/ |
H A D | cfde_textout.h | 56 struct Piece { struct 57 Piece(); 58 Piece(const Piece& that); 59 ~Piece(); 76 size_t AddPiece(size_t index, const Piece& piece); argument 78 const Piece* GetPieceAtIndex(size_t index) const; 79 Piece* GetPieceAtIndex(size_t index); 84 std::deque<Piece> pieces_; 100 void AppendPiece(const Piece& piece, bool bNeedReload, bool bEnd); 102 size_t GetDisplayPos(const Piece* pPiece);
|
H A D | cfde_textout.cpp | 126 CFDE_TextOut::Piece::Piece() = default; 128 CFDE_TextOut::Piece::Piece(const Piece& that) = default; 130 CFDE_TextOut::Piece::~Piece() = default; 304 const Piece* pPiece = line.GetPieceAtIndex(i); in DrawLogicText() 402 Piece piece; in RetrievePieces() 424 void CFDE_TextOut::AppendPiece(const Piece& piece, in AppendPiece() 468 const Piece* piece = line->GetPieceAtIndex(piece_index); in ReloadLinePiece() 492 const Piece* pFirstPiece = m_ttoLines.back().GetPieceAtIndex(0); in DoAlignment() 511 size_t CFDE_TextOut::GetDisplayPos(const Piece* pPiece) { in GetDisplayPos() 535 size_t CFDE_TextOut::Line::AddPiece(size_t index, const Piece& piece) { in AddPiece() [all …]
|
/aosp_15_r20/external/openscreen/third_party/abseil/src/absl/strings/ |
H A D | str_cat.h | 264 absl::string_view Piece() const { return piece_; } in Piece() function 345 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 346 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 390 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 391 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/webrtc/third_party/abseil-cpp/absl/strings/ |
H A D | str_cat.h | 314 absl::string_view Piece() const { return piece_; } in Piece() function 395 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 396 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 440 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 441 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/private-join-and-compute/third_party/abseil-cpp-20230125.2/absl/strings/ |
H A D | str_cat.h | 317 absl::string_view Piece() const { return piece_; } in Piece() function 399 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 400 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 444 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 445 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/ |
D | str_cat.h | 317 absl::string_view Piece() const { return piece_; } in Piece() function 399 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 400 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 444 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 445 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/gofmt/testdata/ |
D | composites.input | 105 var pieces4 = []Piece{ 106 Piece{0, 0, Point{4, 1}, []Point{Point{0, 0}, Point{1, 0}, Point{1, 0}, Point{1, 0}}, nil, nil}, 107 Piece{1, 0, Point{1, 4}, []Point{Point{0, 0}, Point{0, 1}, Point{0, 1}, Point{0, 1}}, nil, nil}, 108 Piece{2, 0, Point{4, 1}, []Point{Point{0, 0}, Point{1, 0}, Point{1, 0}, Point{1, 0}}, nil, nil}, 109 Piece{3, 0, Point{1, 4}, []Point{Point{0, 0}, Point{0, 1}, Point{0, 1}, Point{0, 1}}, nil, nil}, 203 var pieces4 = []*Piece{ 204 &Piece{0, 0, Point{4, 1}, []Point{Point{0, 0}, Point{1, 0}, Point{1, 0}, Point{1, 0}}, nil, nil}, 205 &Piece{1, 0, Point{1, 4}, []Point{Point{0, 0}, Point{0, 1}, Point{0, 1}, Point{0, 1}}, nil, nil}, 206 &Piece{2, 0, Point{4, 1}, []Point{Point{0, 0}, Point{1, 0}, Point{1, 0}, Point{1, 0}}, nil, nil}, 207 &Piece{3, 0, Point{1, 4}, []Point{Point{0, 0}, Point{0, 1}, Point{0, 1}, Point{0, 1}}, nil, nil},
|
/aosp_15_r20/external/llvm/include/llvm/Bitcode/ |
H A D | BitstreamReader.h | 303 uint32_t Piece = Read(NumBits); in ReadVBR() local 304 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 305 return Piece; in ReadVBR() 310 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR() 312 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 316 Piece = Read(NumBits); in ReadVBR() 323 uint32_t Piece = Read(NumBits); in ReadVBR64() local 324 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64() 325 return uint64_t(Piece); in ReadVBR64() 330 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/Bitstream/ |
D | BitstreamReader.h | 232 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & Mask) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & (Mask - 1)) << NextBit; in ReadVBR() 246 if ((Piece & Mask) == 0) in ReadVBR() 257 Piece = MaybeRead.get(); in ReadVBR() 267 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 272 if ((Piece & Mask) == 0) in ReadVBR64() 273 return uint64_t(Piece); in ReadVBR64() 278 Result |= uint64_t(Piece & (Mask - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/Bitstream/ |
D | BitstreamReader.h | 232 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & Mask) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & (Mask - 1)) << NextBit; in ReadVBR() 246 if ((Piece & Mask) == 0) in ReadVBR() 257 Piece = MaybeRead.get(); in ReadVBR() 267 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 272 if ((Piece & Mask) == 0) in ReadVBR64() 273 return uint64_t(Piece); in ReadVBR64() 278 Result |= uint64_t(Piece & (Mask - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm/Bitstream/ |
D | BitstreamReader.h | 232 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & Mask) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & (Mask - 1)) << NextBit; in ReadVBR() 246 if ((Piece & Mask) == 0) in ReadVBR() 257 Piece = MaybeRead.get(); in ReadVBR() 267 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 272 if ((Piece & Mask) == 0) in ReadVBR64() 273 return uint64_t(Piece); in ReadVBR64() 278 Result |= uint64_t(Piece & (Mask - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm/Bitstream/ |
D | BitstreamReader.h | 232 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & Mask) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & (Mask - 1)) << NextBit; in ReadVBR() 246 if ((Piece & Mask) == 0) in ReadVBR() 257 Piece = MaybeRead.get(); in ReadVBR() 267 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 272 if ((Piece & Mask) == 0) in ReadVBR64() 273 return uint64_t(Piece); in ReadVBR64() 278 Result |= uint64_t(Piece & (Mask - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/ |
H A D | BitstreamReader.h | 236 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 238 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 239 return Piece; in ReadVBR() 244 Result |= (Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR() 246 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR() 253 Piece = MaybeRead.get(); in ReadVBR() 263 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 265 if ((Piece & (1U << (NumBits-1))) == 0) in ReadVBR64() 266 return uint64_t(Piece); in ReadVBR64() 271 Result |= uint64_t(Piece & ((1U << (NumBits-1))-1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/Bitstream/ |
H A D | BitstreamReader.h | 233 uint32_t Piece = MaybeRead.get(); in ReadVBR() local 239 if ((Piece & Mask) == 0) in ReadVBR() 240 return Piece; in ReadVBR() 245 Result |= (Piece & (Mask - 1)) << NextBit; in ReadVBR() 247 if ((Piece & Mask) == 0) in ReadVBR() 258 Piece = MaybeRead.get(); in ReadVBR() 268 uint32_t Piece = MaybeRead.get(); in ReadVBR64() local 273 if ((Piece & Mask) == 0) in ReadVBR64() 274 return uint64_t(Piece); in ReadVBR64() 279 Result |= uint64_t(Piece & (Mask - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/external/angle/third_party/abseil-cpp/absl/strings/ |
H A D | str_cat.h | 385 absl::string_view Piece() const { return piece_; } in Piece() function 553 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 554 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 599 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 600 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/abseil-cpp/absl/strings/ |
H A D | str_cat.h | 385 absl::string_view Piece() const { return piece_; } in Piece() function 553 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 554 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 599 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 600 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/cronet/third_party/abseil-cpp/absl/strings/ |
H A D | str_cat.h | 385 absl::string_view Piece() const { return piece_; } in Piece() function 553 {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrCat() 554 static_cast<const AlphaNum&>(args).Piece()...}); in StrCat() 599 dest, {a.Piece(), b.Piece(), c.Piece(), d.Piece(), e.Piece(), in StrAppend() 600 static_cast<const AlphaNum&>(args).Piece()...}); in StrAppend()
|
/aosp_15_r20/external/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/ |
H A D | NaClBitstreamReader.h | 713 uint32_t Piece = Read(NumBits); in ReadVBR() local 714 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR() 715 return Piece; in ReadVBR() 720 Result |= (Piece & ((1U << (NumBits - 1)) - 1)) << NextBit; in ReadVBR() 722 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR() 726 Piece = Read(NumBits); in ReadVBR() 733 uint32_t Piece = Read(NumBits); in ReadVBR64() local 734 if ((Piece & (1U << (NumBits - 1))) == 0) in ReadVBR64() 735 return uint64_t(Piece); in ReadVBR64() 740 Result |= uint64_t(Piece & ((1U << (NumBits - 1)) - 1)) << NextBit; in ReadVBR64() [all …]
|
/aosp_15_r20/external/toolchain-utils/cros_utils/ |
H A D | tiny_render.py | 84 Piece = t.Any # pylint: disable=invalid-name variable 88 piece: Piece, indent_level: int, into: t.List[str] argument 127 def render_text_pieces(piece: Piece) -> str: argument 134 def _render_html_pieces(piece: Piece, into: t.List[str]) -> None: argument 177 def render_html_pieces(piece: Piece) -> str: argument
|