Home
last modified time | relevance | path

Searched refs:emptyList (Results 1 – 25 of 229) sorted by relevance

12345678910

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteTest.java33 import static java.util.Collections.emptyList;
540 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
542 assertEquals(emptyList(), message.getRepeatedBoolList()); in testSanityCopyOnWrite()
545 assertEquals(emptyList(), builder.getRepeatedBoolList()); in testSanityCopyOnWrite()
550 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
554 assertEquals(emptyList(), message.getRepeatedBytesList()); in testSanityCopyOnWrite()
557 assertEquals(emptyList(), builder.getRepeatedBytesList()); in testSanityCopyOnWrite()
564 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
566 assertEquals(emptyList(), message.getRepeatedCordList()); in testSanityCopyOnWrite()
569 assertEquals(emptyList(), builder.getRepeatedCordList()); in testSanityCopyOnWrite()
[all …]
DProtobufArrayListTest.java59 assertSame(ProtobufArrayList.emptyList(), ProtobufArrayList.emptyList()); in testEmptyListReturnsSameInstance()
63 assertImmutable(ProtobufArrayList.<Integer>emptyList()); in testEmptyListIsImmutable()
162 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
204 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
232 list.removeAll(Collections.emptyList()); in assertImmutable()
253 list.retainAll(Collections.emptyList()); in assertImmutable()
DLongArrayListTest.java60 assertSame(LongArrayList.emptyList(), LongArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(LongArrayList.emptyList()); in testEmptyListIsImmutable()
144 assertEquals(0, LongArrayList.emptyList().size()); in testSize()
266 assertFalse(list.addAll(Collections.<Long>emptyList())); in testAddAll()
267 assertFalse(list.addAll(LongArrayList.emptyList())); in testAddAll()
318 list.addAll(Collections.<Long>emptyList()); in assertImmutable()
360 list.addAll(0, Collections.<Long>emptyList()); in assertImmutable()
395 list.removeAll(Collections.<Long>emptyList()); in assertImmutable()
416 list.retainAll(Collections.<Long>emptyList()); in assertImmutable()
DFloatArrayListTest.java60 assertSame(FloatArrayList.emptyList(), FloatArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(FloatArrayList.emptyList()); in testEmptyListIsImmutable()
144 assertEquals(0, FloatArrayList.emptyList().size()); in testSize()
266 assertFalse(list.addAll(Collections.<Float>emptyList())); in testAddAll()
267 assertFalse(list.addAll(FloatArrayList.emptyList())); in testAddAll()
318 list.addAll(Collections.<Float>emptyList()); in assertImmutable()
360 list.addAll(0, Collections.<Float>emptyList()); in assertImmutable()
395 list.removeAll(Collections.<Float>emptyList()); in assertImmutable()
416 list.retainAll(Collections.<Float>emptyList()); in assertImmutable()
DDoubleArrayListTest.java60 assertSame(DoubleArrayList.emptyList(), DoubleArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(DoubleArrayList.emptyList()); in testEmptyListIsImmutable()
144 assertEquals(0, DoubleArrayList.emptyList().size()); in testSize()
266 assertFalse(list.addAll(Collections.<Double>emptyList())); in testAddAll()
267 assertFalse(list.addAll(DoubleArrayList.emptyList())); in testAddAll()
318 list.addAll(Collections.<Double>emptyList()); in assertImmutable()
360 list.addAll(0, Collections.<Double>emptyList()); in assertImmutable()
395 list.removeAll(Collections.<Double>emptyList()); in assertImmutable()
416 list.retainAll(Collections.<Double>emptyList()); in assertImmutable()
DIntArrayListTest.java60 assertSame(IntArrayList.emptyList(), IntArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(IntArrayList.emptyList()); in testEmptyListIsImmutable()
144 assertEquals(0, IntArrayList.emptyList().size()); in testSize()
266 assertFalse(list.addAll(Collections.<Integer>emptyList())); in testAddAll()
267 assertFalse(list.addAll(IntArrayList.emptyList())); in testAddAll()
318 list.addAll(Collections.<Integer>emptyList()); in assertImmutable()
360 list.addAll(0, Collections.<Integer>emptyList()); in assertImmutable()
395 list.removeAll(Collections.<Integer>emptyList()); in assertImmutable()
416 list.retainAll(Collections.<Integer>emptyList()); in assertImmutable()
DBooleanArrayListTest.java60 assertSame(BooleanArrayList.emptyList(), BooleanArrayList.emptyList()); in testEmptyListReturnsSameInstance()
64 assertImmutable(BooleanArrayList.emptyList()); in testEmptyListIsImmutable()
144 assertEquals(0, BooleanArrayList.emptyList().size()); in testSize()
266 assertFalse(list.addAll(Collections.<Boolean>emptyList())); in testAddAll()
267 assertFalse(list.addAll(BooleanArrayList.emptyList())); in testAddAll()
314 list.addAll(Collections.<Boolean>emptyList()); in assertImmutable()
356 list.addAll(0, Collections.<Boolean>emptyList()); in assertImmutable()
391 list.removeAll(Collections.<Boolean>emptyList()); in assertImmutable()
412 list.retainAll(Collections.<Boolean>emptyList()); in assertImmutable()
/external/testng/src/test/java/org/testng/internal/
DUtilsTest.java8 import static java.util.Collections.emptyList;
31 List<String> emptyList = emptyList(); in createEmptyStringWhenJoiningEmptyListWithJoin() local
32 assertEquals("", join(emptyList, ",")); in createEmptyStringWhenJoiningEmptyListWithJoin()
43 List<String> emptyList = emptyList(); in createEmptyStringWhenJoiningEmptyListWithJoinStrings() local
44 assertEquals("", Utils.join(emptyList, ",")); in createEmptyStringWhenJoiningEmptyListWithJoinStrings()
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DIteratorTesterTest.java21 import static java.util.Collections.emptyList;
229 List<Integer> emptyList = newArrayList(); in testMissingException() local
232 new IteratorTester<Integer>(1, MODIFIABLE, emptyList, in testMissingException()
267 List<Integer> emptyList = emptyList(); in testSimilarException() local
269 new IteratorTester<Integer>(1, MODIFIABLE, emptyList, in testSimilarException()
292 List<Integer> emptyList = emptyList(); in testMismatchedException() local
294 new IteratorTester<Integer>(1, MODIFIABLE, emptyList, in testMismatchedException()
/external/conscrypt/platform/src/main/java/org/conscrypt/ct/
DCTVerifier.java171 return Collections.emptyList(); in getSCTsFromSCTList()
179 return Collections.emptyList(); in getSCTsFromSCTList()
218 return Collections.emptyList(); in getSCTsFromOCSPResponse()
224 return Collections.emptyList(); in getSCTsFromOCSPResponse()
233 return Collections.emptyList(); in getSCTsFromOCSPResponse()
246 return Collections.emptyList(); in getSCTsFromX509Extension()
255 return Collections.emptyList(); in getSCTsFromX509Extension()
/external/r8/src/main/java/com/android/tools/r8/ir/desugar/
DDefaultMethodsHelper.java31 new Collection(Collections.emptyList(), Collections.emptyList());
68 return Collections.emptyList(); in createCandidatesList()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DPeekingIteratorTest.java22 import static java.util.Collections.emptyList;
90 actsLikeIteratorHelper(Collections.emptyList()); in testPeekingIteratorBehavesLikeIteratorOnEmptyIterable()
100 List<?> list = Collections.emptyList(); in testPeekOnEmptyList()
216 List<Integer> list = emptyList(); in testPeekingIteratorDoesntAdvancePrematurely()
DListsTest.java107 assertEquals(Collections.emptyList(), list); in testNewArrayListEmpty()
112 assertEquals(Collections.emptyList(), list); in testNewArrayListWithCapacity()
115 assertEquals(Collections.emptyList(), bigger); in testNewArrayListWithCapacity()
128 assertEquals(Collections.emptyList(), list); in testNewArrayListWithExpectedSize()
131 assertEquals(Collections.emptyList(), bigger); in testNewArrayListWithExpectedSize()
173 assertEquals(Collections.emptyList(), list); in testNewLinkedListEmpty()
302 assertEquals(Collections.emptyList(), fromList); in assertReverseView()
402 assertEquals(Collections.emptyList(), list); in assertTransformModifiable()
435 assertEquals(Collections.emptyList(), fromList); in assertTransformView()
562 List<Integer> source = Collections.emptyList(); in testPartition_empty()
DIterablesTest.java25 import static java.util.Collections.emptyList;
145 Iterable<String> iterable = Collections.emptyList();
168 Iterable<String> iterable = Collections.emptyList();
173 Iterable<String> iterable = Collections.emptyList();
493 List<String> list = Collections.emptyList();
520 Iterable<String> emptyList = Collections.emptyList();
521 assertTrue(Iterables.isEmpty(emptyList));
541 assertEquals(emptyList(), newArrayList(skip(set, 20)));
546 assertEquals(emptyList(), newArrayList(skip(list, 20)));
670 testGetOnEmpty(Collections.<String>emptyList());
[all …]
/external/junit/src/main/java/org/junit/validator/
DPublicClassValidator.java3 import static java.util.Collections.emptyList;
16 private static final List<Exception> NO_VALIDATION_ERRORS = emptyList();
DAnnotationValidator.java7 import static java.util.Collections.emptyList;
22 private static final List<Exception> NO_VALIDATION_ERRORS = emptyList();
/external/guava/guava-tests/test/com/google/common/collect/
DPeekingIteratorTest.java22 import static java.util.Collections.emptyList;
91 actsLikeIteratorHelper(Collections.emptyList()); in testPeekingIteratorBehavesLikeIteratorOnEmptyIterable()
110 List<?> list = Collections.emptyList(); in testPeekOnEmptyList()
226 List<Integer> list = emptyList(); in testPeekingIteratorDoesntAdvancePrematurely()
DIterablesTest.java26 import static java.util.Collections.emptyList;
151 Iterable<String> iterable = Collections.emptyList();
174 Iterable<String> iterable = Collections.emptyList();
179 Iterable<String> iterable = Collections.emptyList();
194 Iterable<String> iterable = Collections.emptyList();
558 List<String> list = Collections.emptyList();
585 Iterable<String> emptyList = Collections.emptyList();
586 assertTrue(Iterables.isEmpty(emptyList));
606 assertEquals(emptyList(), newArrayList(skip(set, 20)));
611 assertEquals(emptyList(), newArrayList(skip(list, 20)));
[all …]
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/
DBasicMarker.java92 List<Marker> emptyList = Collections.emptyList(); in iterator() local
93 return emptyList.iterator(); in iterator()
/external/mockito/src/test/java/org/mockitousage/matchers/
DMoreMatchersTest.java66 assertEquals("list", mock.listArgMethod(Collections.<String>emptyList())); in should_help_out_with_unnecessary_casting_of_lists()
96 assertEquals("collection", mock.collectionArgMethod(Collections.<String>emptyList())); in should_help_out_with_unnecessary_casting_of_collections()
106 assertEquals("iterable", mock.iterableArgMethod(Collections.<String>emptyList())); in should_help_out_with_unnecessary_casting_of_iterables()
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
DMultiReportVisitorTest.java93 final Collection<IPackageCoverage> packages = Collections.emptyList(); in createBundle()
100 final List<SessionInfo> sessions = Collections.emptyList(); in createMockReport()
101 final List<ExecutionData> executionData = Collections.emptyList(); in createMockReport()
/external/r8/src/test/java/com/android/tools/r8/shaking/
DTreeShakingTest.java142 used.method("java.lang.String", "aMethodThatIsNotUsedButKept", Collections.emptyList()) in shaking1HasNoClassUnused()
159 Assert.assertTrue(clazz.method("void", "virtualMethod", Collections.emptyList()).isAbstract()); in shaking2SuperClassIsAbstract()
178 .method("void", "virtualMethod", Collections.emptyList()).isPresent()); in shaking5Inspection()
194 .method("void", "justAMethod", Collections.emptyList()).isPresent()); in hasNoPublicMethodsButPrivate()
200 .method("void", "justAMethod", Collections.emptyList()) in hasNoPrivateJustAMethod()
205 subclass.method("void", "justAMethod", Collections.emptyList()) in hasNoPrivateJustAMethod()
221 .method("void", "justAMethod", Collections.emptyList()) in hasOnlyIntJustAMethod()
226 subclass.method("void", "justAMethod", Collections.emptyList()) in hasOnlyIntJustAMethod()
321 dexInspector.clazz("shaking11.Subclass").method("void", "aMethod", Collections.emptyList()) in shaking11BothMethodsKept()
325 .method("void", "aMethod", Collections.emptyList()) in shaking11BothMethodsKept()
[all …]
/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationForAnnotationTest.java89 List<?> value = Collections.emptyList(); in should_all_mock_and_serializable_value_to_be_serialized()
102 List<?> value = Collections.emptyList(); in should_serialize_method_call_with_parameters_that_are_serializable()
115 List<?> value = Collections.emptyList(); in should_serialize_method_calls_using_any_string_matcher()
128 List<?> value = Collections.emptyList(); in should_verify_called_n_times_for_serialized_mock()
215 List<?> value = Collections.emptyList(); in should_remember_interactions_for_serialized_mock()
DMocksSerializationTest.java99 List<?> value = Collections.emptyList(); in should_all_mock_and_serializable_value_to_be_serialized()
113 List<?> value = Collections.emptyList(); in should_serialize_method_call_with_parameters_that_are_serializable()
127 List<?> value = Collections.emptyList(); in should_serialize_method_calls_using_any_string_matcher()
141 List<?> value = Collections.emptyList(); in should_verify_called_n_times_for_serialized_mock()
235 List<?> value = Collections.emptyList(); in should_remember_interactions_for_serialized_mock()
364 List returningSomething() { return Collections.emptyList(); } in returningSomething()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DFakeDns.java30 private List<InetAddress> addresses = Collections.emptyList();
40 this.addresses = Collections.emptyList(); in unknownHost()

12345678910