/external/libese/libese/tests/ |
D | sg_unittests.cpp | 40 uint32_t copied; in TEST_F() local 41 copied = ese_sg_to_buf(&sg, 1, 0, sizeof(dst), dst); in TEST_F() 42 EXPECT_EQ(copied, sizeof(sg_data)); in TEST_F() 54 uint32_t copied; in TEST_F() local 55 copied = ese_sg_from_buf(&sg, 1, 0, sizeof(src), src); in TEST_F() 56 EXPECT_EQ(copied, sizeof(src)); in TEST_F() 81 uint32_t copied; in TEST_F() local 82 copied = ese_sg_to_buf(sg, 3, 0, sizeof(dst), dst); in TEST_F() 83 EXPECT_EQ(copied, strlen("HELLO WORLD") + 1); in TEST_F() 87 copied = ese_sg_to_buf(sg, 3, sizeof(one) + sizeof(two) - 2, sizeof(dst), in TEST_F() [all …]
|
/external/libcxx/test/support/ |
D | emplace_constructible.h | 16 int copied = 0; member 22 : copied(Other.copied + 1), value(std::move(Other.value)) {} in EmplaceConstructibleAndMoveInsertable() 27 int copied = 0; member 33 noexcept : copied(Other.copied + 1), in EmplaceConstructibleAndMoveable() 38 copied = Other.copied; 47 int copied = 0; member 55 : copied(Other.copied + 1), in EmplaceConstructibleMoveableAndAssignable() 60 copied = Other.copied;
|
D | any_helpers.h | 105 static int copied; member 111 small_type::copied = 0; in reset() 132 ++copied; in small_type() 139 ++copied; in small_type() 164 int small_type<Dummy>::copied = 0; 185 static int copied; member 191 large_type::copied = 0; in reset() 213 ++copied; in large_type() 220 ++copied; in large_type() 246 int large_type<Dummy>::copied = 0; [all …]
|
D | experimental_any_helpers.h | 80 static int copied; member 86 small_type::copied = 0; in reset() 101 ++copied; in throw() 108 ++copied; in throw() 133 int small_type<Dummy>::copied = 0; 154 static int copied; member 160 large_type::copied = 0; in reset() 176 ++copied; in large_type() 183 ++copied; in large_type() 209 int large_type<Dummy>::copied = 0;
|
/external/cronet/buildtools/third_party/libc++/trunk/test/support/ |
D | emplace_constructible.h | 16 int copied = 0; member 22 : copied(Other.copied + 1), value(std::move(Other.value)) {} in EmplaceConstructibleAndMoveInsertable() 27 int copied = 0; member 33 noexcept : copied(Other.copied + 1), in EmplaceConstructibleAndMoveable() 38 copied = Other.copied; 47 int copied = 0; member 55 : copied(Other.copied + 1), in EmplaceConstructibleMoveableAndAssignable() 60 copied = Other.copied;
|
D | any_helpers.h | 102 static int copied; member 108 small_type::copied = 0; in reset() 129 ++copied; in small_type() 136 ++copied; in small_type() 161 int small_type<Dummy>::copied = 0; 182 static int copied; member 188 large_type::copied = 0; in reset() 210 ++copied; in large_type() 217 ++copied; in large_type() 243 int large_type<Dummy>::copied = 0; [all …]
|
D | experimental_any_helpers.h | 74 static int copied; member 80 small_type::copied = 0; in reset() 95 ++copied; in throw() 102 ++copied; in throw() 127 int small_type<Dummy>::copied = 0; 148 static int copied; member 154 large_type::copied = 0; in reset() 170 ++copied; in large_type() 177 ++copied; in large_type() 203 int large_type<Dummy>::copied = 0;
|
/external/rust/crates/hashbrown/tests/ |
D | rayon.rs | 272 map_seq.extend(MAP_EXTENSION_EMPTY.iter().copied()); in map_seq_par_equivalence_existing_empty_extend_empty() 273 map_par.par_extend(MAP_EXTENSION_EMPTY.par_iter().copied()); in map_seq_par_equivalence_existing_empty_extend_empty() 280 let expected = MAP_EXTENSION.iter().copied().collect::<HashMap<_, _>>(); in map_seq_par_equivalence_existing_empty_extend() 284 map_seq.extend(MAP_EXTENSION.iter().copied()); in map_seq_par_equivalence_existing_empty_extend() 285 map_par.par_extend(MAP_EXTENSION.par_iter().copied()); in map_seq_par_equivalence_existing_empty_extend() 296 map_seq.extend(MAP_EXTENSION_EMPTY.iter().copied()); in map_seq_par_equivalence_existing_extend_empty() 297 map_par.par_extend(MAP_EXTENSION_EMPTY.par_iter().copied()); in map_seq_par_equivalence_existing_extend_empty() 308 map_seq.extend(MAP_EXTENSION.iter().copied()); in map_seq_par_equivalence_existing_extend() 309 map_par.par_extend(MAP_EXTENSION.par_iter().copied()); in map_seq_par_equivalence_existing_extend() 426 set_seq.extend(SET_EXTENSION_EMPTY.iter().copied()); in set_seq_par_equivalence_existing_empty_extend_empty() [all …]
|
/external/libfuse/lib/ |
D | buffer.c | 47 size_t copied = 0; in fuse_buf_write() local 57 if (!copied) in fuse_buf_write() 64 copied += res; in fuse_buf_write() 73 return copied; in fuse_buf_write() 81 size_t copied = 0; in fuse_buf_read() local 91 if (!copied) in fuse_buf_read() 98 copied += res; in fuse_buf_read() 107 return copied; in fuse_buf_read() 120 size_t copied = 0; in fuse_buf_fd_to_fd() local 130 if (!copied) in fuse_buf_fd_to_fd() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_xml_dom_minicompat.py | 107 copied = copy.copy(node_list) 108 self.assertIsNot(copied, node_list) 109 self.assertEqual(copied, node_list) 114 copied = copy.copy(node_list) 115 self.assertIsNot(copied, node_list) 116 self.assertEqual(copied, node_list) 117 for x, y in zip(copied, node_list): 123 copied = copy.deepcopy(node_list) 124 self.assertIsNot(copied, node_list) 125 self.assertEqual(copied, node_list) [all …]
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | CharStreamsTest.java | 158 long copied = in testCopy() local 162 assertEquals(ASCII.length(), copied); in testCopy() local 165 copied = in testCopy() 169 assertEquals(I18N.length(), copied); in testCopy() local 174 long copied = CharStreams.copy(new StringReader(ASCII), builder); in testCopy_toStringBuilder_fromReader() local 176 assertEquals(ASCII.length(), copied); in testCopy_toStringBuilder_fromReader() local 179 copied = CharStreams.copy(new StringReader(I18N), builder2); in testCopy_toStringBuilder_fromReader() 181 assertEquals(I18N.length(), copied); in testCopy_toStringBuilder_fromReader() local 186 long copied = CharStreams.copy(wrapAsGenericReadable(new StringReader(ASCII)), builder); in testCopy_toStringBuilder_fromReadable() local 188 assertEquals(ASCII.length(), copied); in testCopy_toStringBuilder_fromReadable() local [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | CharStreamsTest.java | 158 long copied = in testCopy() local 162 assertEquals(ASCII.length(), copied); in testCopy() local 165 copied = in testCopy() 169 assertEquals(I18N.length(), copied); in testCopy() local 174 long copied = CharStreams.copy(new StringReader(ASCII), builder); in testCopy_toStringBuilder_fromReader() local 176 assertEquals(ASCII.length(), copied); in testCopy_toStringBuilder_fromReader() local 179 copied = CharStreams.copy(new StringReader(I18N), builder2); in testCopy_toStringBuilder_fromReader() 181 assertEquals(I18N.length(), copied); in testCopy_toStringBuilder_fromReader() local 186 long copied = CharStreams.copy(wrapAsGenericReadable(new StringReader(ASCII)), builder); in testCopy_toStringBuilder_fromReadable() local 188 assertEquals(ASCII.length(), copied); in testCopy_toStringBuilder_fromReadable() local [all …]
|
/external/gson/gson/src/test/java/com/google/gson/functional/ |
D | TypeHierarchyAdapterTest.java | 106 Company copied = gson.fromJson(json, Company.class); in testTypeHierarchy() local 107 assertEquals(json, gson.toJson(copied, Company.class)); in testTypeHierarchy() 108 assertEquals(copied.ceo.userid, company.ceo.userid); in testTypeHierarchy() 109 assertEquals(copied.ceo.assistant.userid, company.ceo.assistant.userid); in testTypeHierarchy() 110 assertEquals(copied.ceo.minions[0].userid, company.ceo.minions[0].userid); in testTypeHierarchy() 111 assertEquals(copied.ceo.minions[1].userid, company.ceo.minions[1].userid); in testTypeHierarchy() 112 assertEquals(copied.ceo.minions[2].userid, company.ceo.minions[2].userid); in testTypeHierarchy() 113 assertEquals(((Manager) copied.ceo.minions[2]).minions[0].userid, in testTypeHierarchy() 115 assertEquals(((Manager) copied.ceo.minions[2]).minions[1].userid, in testTypeHierarchy() 130 Manager copied = gson.fromJson(json, Manager.class); in testRegisterSuperTypeFirst() local [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.filter/ |
D | ctor.view_pred.pass.cpp | 78 bool moved = false, copied = false; in test() local 79 TrackingRange range(&moved, &copied); in test() 83 assert(!copied); in test() 88 bool moved = false, copied = false; in test() local 90 TrackingPred pred(&moved, &copied); in test() 93 assert(!copied); in test()
|
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/ |
D | assign_rv_pair.pass.cpp | 39 static int copied; member 41 static void reset() { copied = moved = 0; } in reset() 43 CountAssign& operator=(CountAssign const&) { ++copied; return *this; } in operator =() 46 int CountAssign::copied = 0; member in CountAssign 84 assert(CountAssign::copied == 1); in main() 94 assert(CountAssign::copied == 0); in main()
|
D | assign_pair.pass.cpp | 40 static int copied; member 42 static void reset() { copied = moved = 0; } in reset() 44 CountAssign& operator=(CountAssign const&) { ++copied; return *this; } in operator =() 47 int CountAssign::copied = 0; member in CountAssign 85 assert(CountAssign::copied == 1); in main()
|
/external/rust/crates/combine/src/stream/ |
D | decoder.rs | 163 let copied = in __before_parse_tokio_02() localVariable 166 if copied == 0 { in __before_parse_tokio_02() 182 let copied = in __before_parse_tokio_03() localVariable 185 if copied == 0 { in __before_parse_tokio_03() 201 let copied = in __before_parse_tokio() localVariable 204 if copied == 0 { in __before_parse_tokio() 220 let copied = self.buffer.extend_buf(reader).await?; in __before_parse_async() localVariable 222 if copied == 0 { in __before_parse_async()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/utility/pairs/pairs.pair/ |
D | assign_rv_pair.pass.cpp | 25 int copied = 0; member 29 ++copied; in operator =() 86 assert(p.first.copied == 1); in test() 88 assert(p2.first.copied == 0); in test() 97 assert(p.first.copied == 0); in test() 99 assert(p2.first.copied == 0); in test()
|
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_parser.cc | 677 if (!str->copied) { in take_string_extern() 680 str->copied = true; in take_string_extern() 683 s = grpc_core::UnmanagedMemorySlice(str->data.copied.str, in take_string_extern() 684 str->data.copied.length); in take_string_extern() 686 str->data.copied.length = 0; in take_string_extern() 693 if (!str->copied) { in take_string_intern() 696 str->copied = true; in take_string_intern() 699 s = grpc_core::ManagedMemorySlice(str->data.copied.str, in take_string_intern() 700 str->data.copied.length); in take_string_intern() 702 str->data.copied.length = 0; in take_string_intern() [all …]
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | hpack_parser.cc | 662 if (!str->copied) { in take_string() 669 str->copied = true; in take_string() 673 str->data.copied.str, str->data.copied.length)); in take_string() 675 s = grpc_slice_from_copied_buffer(str->data.copied.str, in take_string() 676 str->data.copied.length); in take_string() 678 str->data.copied.length = 0; in take_string() 1230 if (length + str->data.copied.length > str->data.copied.capacity) { in append_bytes() 1231 GPR_ASSERT(str->data.copied.length + length <= UINT32_MAX); in append_bytes() 1232 str->data.copied.capacity = in append_bytes() 1233 static_cast<uint32_t>(str->data.copied.length + length); in append_bytes() [all …]
|
/external/libcxx/test/std/utilities/any/any.class/any.modifiers/ |
D | swap.pass.cpp | 54 assert(LHS::copied == 0); in test_swap() 55 assert(RHS::copied == 0); in test_swap() 87 assert(Tp::copied == 0); in test_swap_empty() 114 assert(T::copied == 0); in test_self_swap() 125 assert(T::copied == 0); in test_self_swap()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/any/any.class/any.modifiers/ |
D | swap.pass.cpp | 45 assert(LHS::copied == 0); in test_swap() 46 assert(RHS::copied == 0); in test_swap() 78 assert(Tp::copied == 0); in test_swap_empty() 102 assert(T::copied == 0); in test_self_swap() 113 assert(T::copied == 0); in test_self_swap()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/algorithms/alg.sorting/alg.heap.operations/make.heap/ |
D | complexity.pass.cpp | 24 int copied = 0; member 31 MyInt(const MyInt& other) : value(other.value) { ++stats.copied; } in MyInt() 35 ++stats.copied; in operator =() 65 assert(stats.copied == 0); in main()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/alg.sorting/ |
D | sortable_helpers.h | 87 int copied = 0; member 92 constexpr TracedCopy(const TracedCopy& other) : copied(other.copied + 1), data(other.data) {} in TracedCopy() 98 copied = other.copied + 1; 103 constexpr bool copiedOnce() const { return copied == 1; } in copiedOnce()
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/utilities/any/any.class/any.assign/ |
D | copy.pass.cpp | 38 assert(RHS::copied == 0); in test_copy_assign() 42 assert(RHS::copied == 1); in test_copy_assign() 62 assert(LHS::copied == 0); in test_copy_assign_empty() 66 assert(LHS::copied == 1); in test_copy_assign_empty() 79 assert(LHS::copied == 0); in test_copy_assign_empty() 83 assert(LHS::copied == 0); in test_copy_assign_empty()
|