Home
last modified time | relevance | path

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

12345678910>>...18

/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 …]
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()
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()
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()
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()
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()
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()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/
DSamplersTest.java64 Collections.<Span>emptyList())) in alwaysSampleSampler_AlwaysReturnTrue()
75 Collections.<Span>emptyList())) in alwaysSampleSampler_AlwaysReturnTrue()
95 Collections.<Span>emptyList())) in neverSampleSampler_AlwaysReturnFalse()
106 Collections.<Span>emptyList())) in neverSampleSampler_AlwaysReturnFalse()
151 neverSample, notSampledSpanContext, Collections.<Span>emptyList(), 0.0); in probabilitySampler_DifferentProbabilities_NotSampledParent()
154 alwaysSample, notSampledSpanContext, Collections.<Span>emptyList(), 1.0); in probabilitySampler_DifferentProbabilities_NotSampledParent()
157 fiftyPercentSample, notSampledSpanContext, Collections.<Span>emptyList(), 0.5); in probabilitySampler_DifferentProbabilities_NotSampledParent()
160 twentyPercentSample, notSampledSpanContext, Collections.<Span>emptyList(), 0.2); in probabilitySampler_DifferentProbabilities_NotSampledParent()
163 twoThirdsSample, notSampledSpanContext, Collections.<Span>emptyList(), 2.0 / 3.0); in probabilitySampler_DifferentProbabilities_NotSampledParent()
170 neverSample, sampledSpanContext, Collections.<Span>emptyList(), 1.0); in probabilitySampler_DifferentProbabilities_SampledParent()
[all …]
/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/common/src/main/java/org/conscrypt/ct/
DCTVerifier.java168 return Collections.emptyList(); in getSCTsFromSCTList()
176 return Collections.emptyList(); in getSCTsFromSCTList()
215 return Collections.emptyList(); in getSCTsFromOCSPResponse()
222 return Collections.emptyList(); in getSCTsFromOCSPResponse()
231 return Collections.emptyList(); in getSCTsFromOCSPResponse()
244 return Collections.emptyList(); in getSCTsFromX509Extension()
253 return Collections.emptyList(); in getSCTsFromX509Extension()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ct/
DCTVerifier.java172 return Collections.emptyList(); in getSCTsFromSCTList()
180 return Collections.emptyList(); in getSCTsFromSCTList()
219 return Collections.emptyList(); in getSCTsFromOCSPResponse()
226 return Collections.emptyList(); in getSCTsFromOCSPResponse()
235 return Collections.emptyList(); in getSCTsFromOCSPResponse()
248 return Collections.emptyList(); in getSCTsFromX509Extension()
257 return Collections.emptyList(); in getSCTsFromX509Extension()
/external/opencensus-java/contrib/dropwizard/src/main/java/io/opencensus/contrib/dropwizard/
DDropWizardMetrics.java106 metricName, metricDescription, DEFAULT_UNIT, type, Collections.<LabelKey>emptyList()); in collectGauge()
109 Collections.<LabelValue>emptyList(), Point.create(value, clock.now()), null); in collectGauge()
131 Collections.<LabelKey>emptyList()); in collectCounter()
134 Collections.<LabelValue>emptyList(), in collectCounter()
157 Collections.<LabelKey>emptyList()); in collectMeter()
160 Collections.<LabelValue>emptyList(), in collectMeter()
229 Collections.<LabelKey>emptyList()); in collectSnapshotAndCount()
232 Collections.<LabelValue>emptyList(), point, cumulativeStartTimestamp); in collectSnapshotAndCount()
/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/
DPreDiffPlanTest.java53 Collections.<QualifiedRecommendation>emptyList(), SORTED_VOID_LIST, SORTED_DEFLATE_LIST); in testConstructor_OrderOK()
59 Collections.<QualifiedRecommendation>emptyList(), in testConstructor_OldFileUncompressionOrderNotOK()
68 Collections.<QualifiedRecommendation>emptyList(), in testConstructor_NewFileUncompressionOrderNotOK()
77 Collections.<QualifiedRecommendation>emptyList(), in testConstructor_NewFileRecompressionOrderNotOK()
/external/opencensus-java/contrib/dropwizard/src/test/java/io/opencensus/contrib/dropwizard/
DDropWizardMetricsTest.java135 Collections.<LabelKey>emptyList())); in collect()
151 Collections.<LabelKey>emptyList())); in collect()
167 Collections.<LabelKey>emptyList())); in collect()
183 Collections.<LabelKey>emptyList())); in collect()
199 Collections.<LabelKey>emptyList())); in collect()
215 Collections.<LabelKey>emptyList())); in collect()
231 Collections.<LabelKey>emptyList())); in collect()
246 Collections.<LabelKey>emptyList())); in collect()
275 Collections.<LabelKey>emptyList())); in collect()
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DServer.java61 return Collections.emptyList(); in getServices()
72 return Collections.emptyList(); in getImmutableServices()
84 return Collections.emptyList(); in getMutableServices()
/external/javaparser/javaparser-core/src/main/javacc/
Djava.jj611 NodeList<ImportDeclaration> imports = emptyList();
613 NodeList<TypeDeclaration<?>> types = emptyList();
738 RangedList<TypeParameter> typePar = new RangedList<TypeParameter>(emptyList());
739 NodeList<ClassOrInterfaceType> extList = emptyList();
740 NodeList<ClassOrInterfaceType> impList = emptyList();
741 NodeList<BodyDeclaration<?>> members = emptyList();
781 NodeList<ClassOrInterfaceType> impList = emptyList();
783 NodeList<EnumConstantDeclaration> entries = emptyList();
785 NodeList<BodyDeclaration<?>> members = emptyList();
815 NodeList<Expression> args = emptyList();
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/metrics/export/
DTimeSeriesTest.java66 TimeSeries.create(null, Collections.<Point>emptyList(), TIMESTAMP_1); in create_WithNullLabelValueList()
74 TimeSeries.create(labelValues, Collections.<Point>emptyList(), TIMESTAMP_1); in create_WithNullLabelValue()
81 TimeSeries.create(Collections.<LabelValue>emptyList(), null, TIMESTAMP_1); in create_WithNullPointList()
89 TimeSeries.create(Collections.<LabelValue>emptyList(), points, TIMESTAMP_1); in create_WithNullPoint()
123 TimeSeries.createWithOnePoint(Collections.<LabelValue>emptyList(), null, TIMESTAMP_1); in createWithOnePoint_WithNullPointList()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarators_NoSymbolDeclarator.txt1 Line 37) Collections.emptyList() ==> java.util.Collections.emptyList()
Dcom_github_javaparser_symbolsolver_javaparsermodel_declarations_DefaultConstructorDeclaration.txt2 Line 62) Collections.emptyList() ==> java.util.Collections.emptyList()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/types/
DResolvedPrimitiveType.java34 BYTE("byte", Byte.class.getCanonicalName(), Collections.emptyList()),
36 CHAR("char", Character.class.getCanonicalName(), Collections.emptyList()),
39 BOOLEAN("boolean", Boolean.class.getCanonicalName(), Collections.emptyList()),
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandlerTest.java55 private static final List<TimedEvent<Annotation>> annotations = Collections.emptyList();
81 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_NoKindAndRemoteParent()
119 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_ServerKind()
157 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_ClientKind()
/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()
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandlerTest.java58 private static final List<TimedEvent<Annotation>> annotations = Collections.emptyList();
85 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_NoKindAndRemoteParent()
126 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_ServerKind()
167 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_ClientKind()
212 Links.create(Collections.<Link>emptyList(), 0 /* droppedLinksCount */), in generateSpan_WithAttributes()
/external/volley/src/test/java/com/android/volley/toolbox/
DBasicNetworkTest.java74 new HttpResponse(200, Collections.<Header>emptyList(), 6, responseStream); in headersAndPostParams()
198 HttpResponse fakeResponse = new HttpResponse(401, Collections.<Header>emptyList()); in unauthorized()
216 HttpResponse fakeResponse = new HttpResponse(403, Collections.<Header>emptyList()); in forbidden()
235 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in redirect()
260 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in otherClientError()
281 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in serverError_enableRetries()
303 HttpResponse fakeResponse = new HttpResponse(i, Collections.<Header>emptyList()); in serverError_disableRetries()

12345678910>>...18