Home
last modified time | relevance | path

Searched refs:list1 (Results 1 – 25 of 120) sorted by relevance

12345

/external/skia/tests/
DLListTest.cpp161 ElList list1; in test_tllist() local
168 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
169 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart)); in test_tllist()
170 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart)); in test_tllist()
172 list1.popHead(); in test_tllist()
173 list1.popTail(); in test_tllist()
174 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
175 REPORTER_ASSERT(reporter, list1 == list2); in test_tllist()
178 list1.addToHead(ListElement(1)); in test_tllist()
180 iter1.init(list1, Iter::kHead_IterStart); in test_tllist()
[all …]
/external/skqp/tests/
DLListTest.cpp161 ElList list1; in test_tllist() local
168 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
169 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kHead_IterStart)); in test_tllist()
170 REPORTER_ASSERT(reporter, nullptr == iter1.init(list1, Iter::kTail_IterStart)); in test_tllist()
172 list1.popHead(); in test_tllist()
173 list1.popTail(); in test_tllist()
174 REPORTER_ASSERT(reporter, list1.isEmpty()); in test_tllist()
175 REPORTER_ASSERT(reporter, list1 == list2); in test_tllist()
178 list1.addToHead(ListElement(1)); in test_tllist()
180 iter1.init(list1, Iter::kHead_IterStart); in test_tllist()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/
DSeqTagTest.java36 List<String> list1 = (List<String>) map.get("Block style"); in testSeq() local
37 assertEquals(9, list1.size()); in testSeq()
38 assertEquals("Mercury", list1.get(0)); in testSeq()
39 assertEquals("Venus", list1.get(1)); in testSeq()
40 assertEquals("Earth", list1.get(2)); in testSeq()
41 assertEquals("Mars", list1.get(3)); in testSeq()
42 assertEquals("Jupiter", list1.get(4)); in testSeq()
43 assertEquals("Saturn", list1.get(5)); in testSeq()
44 assertEquals("Uranus", list1.get(6)); in testSeq()
45 assertEquals("Neptune", list1.get(7)); in testSeq()
[all …]
DPairsTagTest.java33 List<String[]> list1 = (List<String[]>) map.get("Block tasks"); in testPairs() local
34 assertEquals(4, list1.size()); in testPairs()
35 Object[] tuple1 = list1.get(0); in testPairs()
41 Object[] tuple2 = list1.get(1); in testPairs()
47 Object[] tuple3 = list1.get(2); in testPairs()
53 Object[] tuple4 = list1.get(3); in testPairs()
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLazyStringArrayListTest.java124 LazyStringArrayList list1 = new LazyStringArrayList(); in testCopyConstructorCopiesByReference() local
125 list1.add(STRING_A); in testCopyConstructorCopiesByReference()
126 list1.add(BYTE_STRING_B); in testCopyConstructorCopiesByReference()
127 list1.add(BYTE_STRING_C); in testCopyConstructorCopiesByReference()
129 LazyStringArrayList list2 = new LazyStringArrayList(list1); in testCopyConstructorCopiesByReference()
137 List<String> list1 = new ArrayList<String>(); in testListCopyConstructor() local
138 list1.add(STRING_A); in testListCopyConstructor()
139 list1.add(STRING_B); in testListCopyConstructor()
140 list1.add(STRING_C); in testListCopyConstructor()
142 LazyStringArrayList list2 = new LazyStringArrayList(list1); in testListCopyConstructor()
[all …]
/external/selinux/restorecond/
Dstringslist.c112 struct stringsList *list1 = NULL; in main() local
119 strings_list_add(&list1, "/etc/walsh"); in main()
120 if (strings_list_diff(list, list1) == 0) in main()
122 strings_list_add(&list1, "/etc/walsh"); in main()
123 strings_list_add(&list1, "/etc/walsh/*"); in main()
124 strings_list_add(&list1, "/etc/resolv.conf"); in main()
125 strings_list_add(&list1, "/etc/mtab1"); in main()
126 if (strings_list_diff(list, list1) == 0) in main()
131 strings_list_find(list1, "/etc/walsh/dan"); in main()
132 strings_list_print(list1); in main()
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DChapter2_1Test.java60 List<String> list1 = map.get("american"); in testExample_2_3() local
61 assertEquals(3, list1.size()); in testExample_2_3()
62 assertEquals("Boston Red Sox", list1.get(0)); in testExample_2_3()
63 assertEquals("Detroit Tigers", list1.get(1)); in testExample_2_3()
64 assertEquals("New York Yankees", list1.get(2)); in testExample_2_3()
87 List<Object> list1 = list.get(0); in testExample_2_5() local
88 assertEquals(3, list1.size()); in testExample_2_5()
89 assertEquals("name", list1.get(0)); in testExample_2_5()
90 assertEquals("hr", list1.get(1)); in testExample_2_5()
91 assertEquals("avg", list1.get(2)); in testExample_2_5()
DChapter2_2Test.java35 List<String> list1 = (List<String>) list.get(0); in testExample_2_7() local
36 assertEquals(3, list1.size()); in testExample_2_7()
37 assertEquals("Mark McGwire", list1.get(0)); in testExample_2_7()
38 assertEquals("Sammy Sosa", list1.get(1)); in testExample_2_7()
39 assertEquals("Ken Griffey", list1.get(2)); in testExample_2_7()
68 List<String> list1 = (List<String>) map.get("hr"); in testExample_2_9() local
69 assertEquals(2, list1.size()); in testExample_2_9()
70 assertEquals("Mark McGwire", list1.get(0)); in testExample_2_9()
71 assertEquals("Sammy Sosa", list1.get(1)); in testExample_2_9()
/external/deqp-deps/SPIRV-Tools/test/util/
Dilist_test.cpp257 TestList list1 = BuildList(nodes, 6); in TEST() local
260 TestList::iterator insertion_point = list1.begin(); in TEST()
265 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
275 TestList list1 = BuildList(nodes, 6); in TEST() local
278 TestList::iterator insertion_point = list1.begin(); in TEST()
282 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
292 TestList list1 = BuildList(nodes, 6); in TEST() local
295 TestList::iterator insertion_point = list1.end(); in TEST()
299 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
309 TestList list1 = BuildList(nodes, 6); in TEST() local
[all …]
/external/angle/third_party/vulkan-deps/spirv-tools/src/test/util/
Dilist_test.cpp257 TestList list1 = BuildList(nodes, 6); in TEST() local
260 TestList::iterator insertion_point = list1.begin(); in TEST()
265 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
275 TestList list1 = BuildList(nodes, 6); in TEST() local
278 TestList::iterator insertion_point = list1.begin(); in TEST()
282 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
292 TestList list1 = BuildList(nodes, 6); in TEST() local
295 TestList::iterator insertion_point = list1.end(); in TEST()
299 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
309 TestList list1 = BuildList(nodes, 6); in TEST() local
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/util/
Dilist_test.cpp257 TestList list1 = BuildList(nodes, 6); in TEST() local
260 TestList::iterator insertion_point = list1.begin(); in TEST()
265 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
275 TestList list1 = BuildList(nodes, 6); in TEST() local
278 TestList::iterator insertion_point = list1.begin(); in TEST()
282 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
292 TestList list1 = BuildList(nodes, 6); in TEST() local
295 TestList::iterator insertion_point = list1.end(); in TEST()
299 for (auto i = list1.begin(); i != list1.end(); ++i) { in TEST()
309 TestList list1 = BuildList(nodes, 6); in TEST() local
[all …]
/external/curl/tests/unit/
Dunit1396.c51 const struct test list1[]={ variable
84 for(i = 0; list1[i].in; i++) {
87 list1[i].in, list1[i].inlen,
91 fail_unless(outlen == list1[i].outlen, "wrong output length returned");
92 fail_unless(!memcmp(out, list1[i].out, list1[i].outlen),
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyStringArrayListTest.java139 LazyStringArrayList list1 = new LazyStringArrayList(); in testCopyConstructorCopiesByReference() local
140 list1.add(STRING_A); in testCopyConstructorCopiesByReference()
141 list1.add(BYTE_STRING_B); in testCopyConstructorCopiesByReference()
142 list1.add(BYTE_STRING_C); in testCopyConstructorCopiesByReference()
144 LazyStringArrayList list2 = new LazyStringArrayList(list1); in testCopyConstructorCopiesByReference()
152 List<String> list1 = new ArrayList<String>(); in testListCopyConstructor() local
153 list1.add(STRING_A); in testListCopyConstructor()
154 list1.add(STRING_B); in testListCopyConstructor()
155 list1.add(STRING_C); in testListCopyConstructor()
157 LazyStringArrayList list2 = new LazyStringArrayList(list1); in testListCopyConstructor()
[all …]
/external/smali/dexlib2/src/main/java/org/jf/util/
DCollectionUtils.java63 … static <T extends Comparable<? super T>> int compareAsList(@Nonnull Collection<? extends T> list1, in compareAsList() argument
65 int res = Ints.compare(list1.size(), list2.size()); in compareAsList()
68 for (T element1: list1) { in compareAsList()
115 @Nonnull Collection<? extends T> list1, in compareAsList() argument
117 int res = Ints.compare(list1.size(), list2.size()); in compareAsList()
120 for (T element1: list1) { in compareAsList()
132 public int compare(Collection<? extends T> list1, Collection<? extends T> list2) { in listComparator()
133 return compareAsList(elementComparator, list1, list2); in listComparator()
186 public int compare(Collection<? extends T> list1, Collection<? extends T> list2) {
187 return compareAsSet(elementComparator, list1, list2);
[all …]
/external/kmod/libkmod/
Dlibkmod-list.c91 static inline void list_node_append_list(struct list_node *list1, in list_node_append_list() argument
96 if (list1 == NULL) { in list_node_append_list()
101 list1->prev->next = list2; in list_node_append_list()
102 list2->prev->next = list1; in list_node_append_list()
105 list1_last = list1->prev; in list_node_append_list()
107 list1->prev = list2->prev; in list_node_append_list()
161 struct kmod_list *kmod_list_append_list(struct kmod_list *list1, in kmod_list_append_list() argument
164 if (list1 == NULL) in kmod_list_append_list()
168 return list1; in kmod_list_append_list()
170 list_node_append_list(&list1->node, &list2->node); in kmod_list_append_list()
[all …]
/external/llvm-project/polly/lib/External/isl/
Disl_pw_union_opt.c88 __isl_take isl_set_list *list1, __isl_take isl_set_list *list2) in FN()
111 set = isl_set_list_get_set(list1, i); in FN()
119 set = isl_set_union(isl_set_list_get_set(list1, i), in FN()
128 isl_set_list_free(list1); in FN()
134 isl_set_list_free(list1); in FN()
190 isl_set_list *list1 = NULL, *list2 = NULL; in FN() local
215 list1 = FN(PW,extract_domains)(pw1); in FN()
231 set_i = isl_set_list_get_set(list1, i); in FN()
235 list1 = isl_set_list_set_set(list1, i, set_i); in FN()
243 res = FN(PW,merge)(pw1, pw2, list1, list2); in FN()
[all …]
Disl_list_templ.c614 __isl_take LIST(EL) *list1, __isl_take LIST(EL) *list2) in LIST()
619 list1 = FN(LIST(EL),add)(list1, FN(EL,copy)(list2->p[i])); in LIST()
621 return list1; in LIST()
629 __isl_give LIST(EL) *FN(LIST(EL),concat)(__isl_take LIST(EL) *list1, in LIST()
636 if (!list1 || !list2) in LIST()
639 if (list1->ref == 1 && list1->n + list2->n <= list1->size) in LIST()
640 return FN(LIST(EL),concat_inplace)(list1, list2); in LIST()
642 ctx = FN(LIST(EL),get_ctx)(list1); in LIST()
643 res = FN(LIST(EL),alloc)(ctx, list1->n + list2->n); in LIST()
644 for (i = 0; i < list1->n; ++i) in LIST()
[all …]
Disl_ast_graft.c1239 __isl_take isl_ast_graft_list *list1, in isl_ast_graft_list_merge() argument
1245 if (!list1 || !list2 || !build) in isl_ast_graft_list_merge()
1249 return list1; in isl_ast_graft_list_merge()
1251 if (list1->n == 0) { in isl_ast_graft_list_merge()
1252 isl_ast_graft_list_free(list1); in isl_ast_graft_list_merge()
1263 for (j = list1->n; j >= 0; --j) { in isl_ast_graft_list_merge()
1270 cmp = isl_set_plain_cmp(list1->p[j - 1]->guard, in isl_ast_graft_list_merge()
1274 list1->p[j - 1]->guard); in isl_ast_graft_list_merge()
1277 list1 = isl_ast_graft_list_free(list1); in isl_ast_graft_list_merge()
1286 list1 = isl_ast_graft_list_insert(list1, j, in isl_ast_graft_list_merge()
[all …]
/external/llvm-project/llvm/test/TableGen/
Dfilter.td22 // CHECK: list1 = [];
30 list<string> list1 = !filter(item, EmptyList, true);
39 // CHECK: list1 = ["foo", "foo"];
44 list<string> list1 = !filter(item, WordList, !eq(item, "foo"));
50 // CHECK: list1 = [4, 5, 6, 7, 8, 9, 10];
54 list<int> list1 = !filter(num, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], !gt(num, 3));
55 list<int> list2 = !filter(num, list1, !lt(num, 9));
72 list<string> list1 = !filter(item, WordList, !if(true, "oops!", "wrong!"));
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/internal/
DLockFreeLinkedListAtomicLFStressTest.kt70 val list1 = lists[idx1] in <lambda>() constant
74 addTwoOp(list1, node1, list2, node2) in <lambda>()
90 val list1 = lists[idx1] in <lambda>() constant
92 removeTwoOp(list1, list2) in <lambda>()
122 …private fun addTwoOp(list1: LockFreeLinkedListHead, node1: Node, list2: LockFreeLinkedListHead, no… in <lambda>()
123 val add1 = list1.describeAddLast(node1) in <lambda>()
149 private fun removeTwoOp(list1: LockFreeLinkedListHead, list2: LockFreeLinkedListHead) { in <lambda>()
150 val remove1 = list1.describeRemoveFirst() in <lambda>()
/external/mockito/src/test/java/org/mockito/internal/framework/
DDefaultMockitoFrameworkTest.java141 List list1 = mock(List.class); in clears_all_mocks() local
142 assertTrue(mockingDetails(list1).isMock()); in clears_all_mocks()
150 assertFalse(mockingDetails(list1).isMock()); in clears_all_mocks()
160 List list1 = mock(List.class); in clears_mock() local
161 assertTrue(mockingDetails(list1).isMock()); in clears_mock()
166 framework.clearInlineMock(list1); in clears_mock()
169 assertFalse(mockingDetails(list1).isMock()); in clears_mock()
/external/apache-xml/src/main/java/org/apache/xpath/objects/
DXNodeSet.java494 DTMIterator list1 = iterRaw(); in compare() local
499 while (DTM.NULL != (node1 = list1.nextNode())) in compare()
539 list1.reset(); in compare()
566 DTMIterator list1 = iterRaw(); in compare() local
570 while (DTM.NULL != (node = list1.nextNode())) in compare()
581 list1.reset(); in compare()
586 DTMIterator list1 = iterRaw(); in compare() local
589 while (DTM.NULL != (node = list1.nextNode())) in compare()
600 list1.reset(); in compare()
612 DTMIterator list1 = iterRaw(); in compare() local
[all …]
/external/rust/crates/hashbrown/src/external_trait_impls/rayon/
Dhelpers.rs19 .reduce(LinkedList::new, |mut list1, mut list2| { in collect()
20 list1.append(&mut list2); in collect()
21 list1 in collect()
/external/webrtc/pc/
Dsdp_serializer.cc230 RTCErrorOr<SimulcastLayerList> list1, list2; in DeserializeSimulcastDescription() local
231 list1 = ParseSimulcastLayerList(tokens[1]); in DeserializeSimulcastDescription()
232 if (!list1.ok()) { in DeserializeSimulcastDescription()
233 return list1.MoveError(); in DeserializeSimulcastDescription()
245 std::swap(list1, list2); in DeserializeSimulcastDescription()
253 if (list1.ok()) { in DeserializeSimulcastDescription()
254 simulcast.send_layers() = list1.MoveValue(); in DeserializeSimulcastDescription()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dgoogle-explicit-constructor.cpp66 B(std::initializer_list<int> list1) {} in B()
100 C(initializer_list<int> list1) {} in C()
107 C2(initializer_list<int> list1) {} in C2()
118 C3(initializer_list<T> list1) {} in C3()

12345