Home
last modified time | relevance | path

Searched full:immutablelist (Results 1 – 25 of 2926) sorted by relevance

12345678910>>...118

/external/guava/android/guava-tests/test/com/google/common/collect/
DImmutableListTest.java53 * Unit test for {@link ImmutableList}.
69 .named("ImmutableList") in suite()
74 .named("ImmutableList, built with Builder.add") in suite()
79 .named("ImmutableList, built with Builder.addAll") in suite()
84 .named("ImmutableList, reversed") in suite()
89 .named("ImmutableList, head subList") in suite()
94 .named("ImmutableList, tail subList") in suite()
99 .named("ImmutableList, middle subList") in suite()
105 .named("ImmutableList, unhashable values") in suite()
114 List<String> list = ImmutableList.of(); in testCreation_noArgs()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableListTest.java54 * Unit test for {@link ImmutableList}.
70 .named("ImmutableList") in suite()
75 .named("ImmutableList, built with Builder.add") in suite()
80 .named("ImmutableList, built with Builder.addAll") in suite()
85 .named("ImmutableList, reversed") in suite()
90 .named("ImmutableList, head subList") in suite()
95 .named("ImmutableList, tail subList") in suite()
100 .named("ImmutableList, middle subList") in suite()
106 .named("ImmutableList, unhashable values") in suite()
115 List<String> list = ImmutableList.of(); in testCreation_noArgs()
[all …]
/external/grpc-grpc-java/xds/src/test/java/io/grpc/xds/
DFilterChainMatchingProtocolNegotiatorsTest.java26 import com.google.common.collect.ImmutableList;
94 ImmutableList.of(),
95 ImmutableList.of(),
96 ImmutableList.of(),
98 ImmutableList.of(),
99 ImmutableList.of(),
106 ServerRoutingConfig.create(ImmutableList.<VirtualHost>of(),
201 ImmutableList.of(), in singleFilterChainWithoutAlpn()
202 ImmutableList.of(), in singleFilterChainWithoutAlpn()
203 ImmutableList.of(), in singleFilterChainWithoutAlpn()
[all …]
/external/turbine/java/com/google/turbine/parse/
DParser.java30 import com.google.common.collect.ImmutableList;
101 ImmutableList.Builder<ImportDecl> imports = ImmutableList.builder(); in compilationUnit()
102 ImmutableList.Builder<TyDecl> decls = ImmutableList.builder(); in compilationUnit()
103 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); in compilationUnit()
110 annos = ImmutableList.builder(); in compilationUnit()
158 annos = ImmutableList.builder(); in compilationUnit()
167 annos = ImmutableList.builder(); in compilationUnit()
172 annos = ImmutableList.builder(); in compilationUnit()
177 annos = ImmutableList.builder(); in compilationUnit()
193 annos = ImmutableList.builder(); in compilationUnit()
[all …]
/external/truth/core/src/test/java/com/google/common/truth/
DIterableSubjectCorrespondenceTest.java37 import com.google.common.collect.ImmutableList;
64 assertThat(ImmutableList.of(42.0)) in equalsThrowsUSOE()
66 .equals(ImmutableList.of(0.0)); in equalsThrowsUSOE()
83 assertThat(ImmutableList.of(42.0)).comparingElementsUsing(tolerance(10e-5)).hashCode(); in hashCodeThrowsUSOE()
95 ImmutableList<String> actual = ImmutableList.of("not a number", "+123", "+456", "+789"); in contains_success()
103 ImmutableList<String> actual = ImmutableList.of("not a number", "+123", "+456", "+789"); in contains_failure()
163 ImmutableList<MyRecord> actual = in displayingDiffsPairedBy_1arg_contains()
164 ImmutableList.of( in displayingDiffsPairedBy_1arg_contains()
196 ImmutableList<MyRecord> actual = in displayingDiffsPairedBy_1arg_contains_noDiff()
197 ImmutableList.of( in displayingDiffsPairedBy_1arg_contains_noDiff()
[all …]
/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/dexlib2/writer/util/
DTryListBuilderTest.java33 import com.google.common.collect.ImmutableList;
56 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10, in testSingleCatchAll_Beginning()
57 ImmutableList.of(new ImmutableExceptionHandler(null, 5)))); in testSingleCatchAll_Beginning()
70 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5, in testSingleCatchAll_Middle()
71 ImmutableList.of(new ImmutableExceptionHandler(null, 15)))); in testSingleCatchAll_Middle()
84 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(0, 10, in testSingleCatch_Beginning()
85 ImmutableList.of(new ImmutableExceptionHandler("Ljava/lang/Exception;", 5)))); in testSingleCatch_Beginning()
98 List<? extends TryBlock> expected = ImmutableList.of(new ImmutableTryBlock(5, 5, in testSingleCatch_Middle()
99 ImmutableList.of(new ImmutableExceptionHandler("Ljava/lang/Exception;", 15)))); in testSingleCatch_Middle()
113 List<? extends TryBlock> expected = ImmutableList.of( in testOverlap_End_After()
[all …]
/external/turbine/javatests/com/google/turbine/lower/
DLowerSignatureTest.java21 import com.google.common.collect.ImmutableList;
45 ImmutableList.of( in simple()
47 new ClassSymbol("java/util/List"), ImmutableList.of(), ImmutableList.of()))); in simple()
58 ImmutableList.of( in inner()
61 ImmutableList.of(), in inner()
62 ImmutableList.of()), in inner()
65 ImmutableList.of(), in inner()
66 ImmutableList.of())))))) in inner()
74 ImmutableList.of( in genericEnclosing()
77 ImmutableList.of(ClassTy.OBJECT), in genericEnclosing()
[all …]
DLowerTest.java26 import com.google.common.collect.ImmutableList;
86 ImmutableList<Type> interfaceTypes = in hello()
87 ImmutableList.of( in hello()
89 ImmutableList.of( in hello()
92 ImmutableList.of( in hello()
95 ImmutableList.of())), in hello()
96 ImmutableList.of())))); in hello()
103 ImmutableList.of( in hello()
105 ImmutableList.of( in hello()
108 ImmutableList.of(), in hello()
[all …]
/external/turbine/java/com/google/turbine/binder/bound/
DModuleInfo.java19 import com.google.common.collect.ImmutableList;
30 private final ImmutableList<AnnoInfo> annos;
31 private final ImmutableList<RequireInfo> requires;
32 private final ImmutableList<ExportInfo> exports;
33 private final ImmutableList<OpenInfo> opens;
34 private final ImmutableList<UseInfo> uses;
35 private final ImmutableList<ProvideInfo> provides;
41 ImmutableList<AnnoInfo> annos, in ModuleInfo()
42 ImmutableList<RequireInfo> requires, in ModuleInfo()
43 ImmutableList<ExportInfo> exports, in ModuleInfo()
[all …]
DTypeBoundClass.java19 import com.google.common.collect.ImmutableList;
44 ImmutableList<Type> interfaceTypes(); in interfaceTypes()
47 ImmutableList<ClassSymbol> permits(); in permits()
52 ImmutableList<FieldInfo> fields(); in fields()
55 ImmutableList<MethodInfo> methods(); in methods()
58 ImmutableList<RecordComponentInfo> components(); in components()
67 ImmutableList<AnnoInfo> annotations(); in annotations()
73 private final ImmutableList<AnnoInfo> annotations;
76 IntersectionTy upperBound, @Nullable Type lowerBound, ImmutableList<AnnoInfo> annotations) { in TyVarInfo()
96 public ImmutableList<AnnoInfo> annotations() { in annotations()
[all …]
DSourceTypeBoundClass.java19 import com.google.common.collect.ImmutableList;
46 private final ImmutableList<Type> interfaceTypes;
47 private final ImmutableList<ClassSymbol> permits;
48 private final ImmutableList<RecordComponentInfo> components;
49 private final ImmutableList<MethodInfo> methods;
50 private final ImmutableList<FieldInfo> fields;
55 private final ImmutableList<AnnoInfo> annotations;
60 ImmutableList<Type> interfaceTypes, in SourceTypeBoundClass()
61 ImmutableList<ClassSymbol> permits, in SourceTypeBoundClass()
65 ImmutableList<RecordComponentInfo> components, in SourceTypeBoundClass()
[all …]
/external/turbine/java/com/google/turbine/tree/
DTree.java21 import com.google.common.collect.ImmutableList;
126 private final ImmutableList<Anno> annos;
128 public Type(int position, ImmutableList<Anno> annos) { in Type()
133 public ImmutableList<Anno> annos() { in annos()
151 int position, ImmutableList<Anno> annos, Optional<Type> upper, Optional<Type> lower) { in WildTy()
191 public ArrTy(int position, ImmutableList<Anno> annos, Type elem) { in ArrTy()
221 public PrimTy(int position, ImmutableList<Anno> annos, TurbineConstantTypeKind tykind) { in PrimTy()
258 super(position, ImmutableList.of()); in VoidTy()
266 private final ImmutableList<Type> tyargs;
272 ImmutableList<Type> tyargs, in ClassTy()
[all …]
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB20701054.input3 ImmutableList<String> x = ImmutableList.builder().add(1).build();
13 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).build();
14 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).build();
15 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).add(3).build();
16 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).add(3).add(4).build();
18 ImmutableList<String> x = ImmutableList.builder().add(1).build();
19 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).build();
20 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).build();
21 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).add(4).build();
22 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).build();
[all …]
DB20701054.output3 ImmutableList<String> x = ImmutableList.builder().add(1).build();
14 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).build();
15 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).build();
16 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).add(3).build();
17 ImmutableList<String> x = ImmutableList.INSTANCE.add(1).add(2).add(3).add(4).build();
19 ImmutableList<String> x = ImmutableList.builder().add(1).build();
20 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).build();
21 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).build();
22 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).add(4).build();
23 ImmutableList<String> x = ImmutableList.builder().add(1).add(2).add(3).add(4).add(5).build();
[all …]
/external/google-cloud-java/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/
DTranslateImplTest.java36 import com.google.common.collect.ImmutableList;
60 private static final List<Language> LANGUAGES1 = ImmutableList.of(LANGUAGE1, LANGUAGE2);
61 private static final List<Language> LANGUAGES2 = ImmutableList.of(LANGUAGE3, LANGUAGE4);
141 .andReturn(ImmutableList.of(LANGUAGE1_PB, LANGUAGE2_PB)); in testListSupportedLanguages()
151 .andReturn(ImmutableList.of(LANGUAGE3_PB, LANGUAGE4_PB)); in testListSupportedLanguagesWithOptions()
163 EasyMock.expect(translateRpcMock.detect(ImmutableList.of(text))) in testDetect()
165 ImmutableList.<List<DetectionsResourceItems>>of(ImmutableList.of(DETECTION1_PB))); in testDetect()
175 EasyMock.expect(translateRpcMock.detect(ImmutableList.of(text))) in testDetectMultipleDetections()
177 ImmutableList.<List<DetectionsResourceItems>>of( in testDetectMultipleDetections()
178 ImmutableList.of(DETECTION1_PB, DETECTION2_PB))); in testDetectMultipleDetections()
[all …]
/external/owasp/sanitizer/src/tests/org/owasp/html/
DTagBalancingHtmlStreamRendererTest.java31 import com.google.common.collect.ImmutableList;
61 balancer.openTag("html", ImmutableList.<String>of()); in testTagBalancing()
62 balancer.openTag("head", ImmutableList.<String>of()); in testTagBalancing()
63 balancer.openTag("title", ImmutableList.<String>of()); in testTagBalancing()
68 balancer.openTag("body", ImmutableList.<String>of()); in testTagBalancing()
69 balancer.openTag("p", ImmutableList.of("id", "p'0")); in testTagBalancing()
71 balancer.openTag("Br", ImmutableList.<String>of()); in testTagBalancing()
86 balancer.openTag("i", ImmutableList.<String>of()); in testTagSoupIronedOut()
88 balancer.openTag("b", ImmutableList.<String>of()); in testTagSoupIronedOut()
102 balancer.openTag("ul", ImmutableList.<String>of()); in testListInListDirectly()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DImmutableList.java36 * GWT emulated version of {@link com.google.common.collect.ImmutableList}. TODO(cpovirk): more doc
42 public abstract class ImmutableList<E> extends ImmutableCollection<E> class
45 ImmutableList() {} in ImmutableList() method in ImmutableList
47 public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() { in toImmutableList()
53 public static <E> ImmutableList<E> of() { in of()
54 return (ImmutableList<E>) RegularImmutableList.EMPTY; in of()
57 public static <E> ImmutableList<E> of(E e1) { in of()
61 public static <E> ImmutableList<E> of(E e1, E e2) { in of()
62 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2)); in of()
65 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of()
[all …]
/external/auto/value/src/test/java/com/google/auto/value/processor/
DPropertyAnnotationsTest.java21 import com.google.common.collect.ImmutableList;
124 Iterable<String> imports = ImmutableList.of();
134 this.annotations.addAll(ImmutableList.copyOf(annotations)); in addAnnotations()
139 this.annotations.addAll(ImmutableList.copyOf(annotations)); in addAnnotations()
144 this.innerTypes.addAll(ImmutableList.copyOf(innerTypes)); in addInnerTypes()
149 ImmutableList<String> list = in build()
150 ImmutableList.<String>builder() in build()
170 Iterable<String> imports = ImmutableList.of();
180 this.fieldAnnotations.addAll(ImmutableList.copyOf(annotations)); in addFieldAnnotations()
185 this.methodAnnotations.addAll(ImmutableList.copyOf(innerTypes)); in addMethodAnnotations()
[all …]
/external/turbine/java/com/google/turbine/binder/
DTypeBinder.java24 import com.google.common.collect.ImmutableList;
182 ImmutableList<AnnoInfo> annotations = bindAnnotations(enclosingScope, base.decl().annos()); in bind()
191 ImmutableList.Builder<Type> interfaceTypes = ImmutableList.builder(); in bind()
197 ImmutableList.of( in bind()
200 ImmutableList.of(Type.ClassTy.asNonParametricClassTy(owner)), in bind()
201 ImmutableList.of()))); in bind()
235 ImmutableList.Builder<ClassSymbol> permits = ImmutableList.builder(); in bind()
257 ImmutableList<RecordComponentInfo> components = bindComponents(scope, base.decl().components()); in bind()
260 ImmutableList<MethodInfo> methods; in bind()
265 ImmutableList.<MethodInfo>builder() in bind()
[all …]
DCanonicalTypeBinder.java21 import com.google.common.collect.ImmutableList;
55 ImmutableList.Builder<Type> interfaceTypes = ImmutableList.builder(); in bind()
64 ImmutableList<RecordComponentInfo> components = in bind()
66 ImmutableList<MethodInfo> methods = methods(base.source(), pos, env, sym, base.methods()); in bind()
67 ImmutableList<FieldInfo> fields = fields(base.source(), env, sym, base.fields()); in bind()
90 private static ImmutableList<FieldInfo> fields( in fields()
94 ImmutableList<FieldInfo> fields) { in fields()
95 ImmutableList.Builder<FieldInfo> result = ImmutableList.builder(); in fields()
115 private static ImmutableList<MethodInfo> methods( in methods()
120 ImmutableList<MethodInfo> methods) { in methods()
[all …]
/external/turbine/javatests/com/google/turbine/processing/
DTurbineTypeMirrorTest.java22 import com.google.common.collect.ImmutableList;
62 TypeMirror type = factory.asTypeMirror(PrimTy.create(turbineKind, ImmutableList.of())); in primitiveTypes()
73 ImmutableList.of( in equals()
76 ImmutableList.of(), in equals()
77 ImmutableList.of()), in equals()
80 ImmutableList.of(Type.ClassTy.STRING, Type.ClassTy.STRING), in equals()
81 ImmutableList.of()))))) in equals()
85 ImmutableList.of( in equals()
88 ImmutableList.of(Type.ClassTy.STRING, Type.ClassTy.OBJECT), in equals()
89 ImmutableList.of()))))) in equals()
[all …]
/external/turbine/java/com/google/turbine/options/
DTurbineOptions.java20 import com.google.common.collect.ImmutableList;
56 public abstract ImmutableList<String> sources(); in sources()
59 public abstract ImmutableList<String> classPath(); in classPath()
74 public abstract ImmutableList<String> processorPath(); in processorPath()
83 public abstract ImmutableList<String> sourceJars(); in sourceJars()
105 public abstract ImmutableList<String> depsArtifacts(); in depsArtifacts()
111 public abstract ImmutableList<String> javacOpts(); in javacOpts()
131 .setSources(ImmutableList.of()) in builder()
132 .setClassPath(ImmutableList.of()) in builder()
133 .setBootClassPath(ImmutableList.of()) in builder()
[all …]
/external/turbine/java/com/google/turbine/lower/
DLower.java25 import com.google.common.collect.ImmutableList;
143 ImmutableList<SourceModuleInfo> modules, in lowerAll()
199 ImmutableList<AnnotationInfo> annotations = lowerAnnotations(module.annos()); in lower()
202 ImmutableList.Builder<ClassFile.InnerClass> innerClasses = ImmutableList.builder(); in lower()
220 /* interfaces= */ ImmutableList.of(), in lower()
221 /* permits= */ ImmutableList.of(), in lower()
222 /* methods= */ ImmutableList.of(), in lower()
223 /* fields= */ ImmutableList.of(), in lower()
226 /* typeAnnotations= */ ImmutableList.of(), in lower()
229 /* nestMembers= */ ImmutableList.of(), in lower()
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DImmutableList.java63 public abstract class ImmutableList<E> extends ImmutableCollection<E> class
68 * ImmutableList}, in encounter order.
74 public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() { in toImmutableList()
87 public static <E> ImmutableList<E> of() { in of()
88 return (ImmutableList<E>) EMPTY; in of()
98 public static <E> ImmutableList<E> of(E e1) { in of()
107 public static <E> ImmutableList<E> of(E e1, E e2) { in of()
116 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of()
125 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) { in of()
134 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) { in of()
[all …]
/external/TestParameterInjector/junit5/src/main/java/com/google/testing/junit/testparameterinjector/junit5/
DGenericParameterContext.java23 import com.google.common.collect.ImmutableList;
37 private final ImmutableList<Annotation> annotationsOnParameter;
40 private final Function<Class<? extends Annotation>, ImmutableList<? extends Annotation>>
46 ImmutableList<Annotation> annotationsOnParameter, in GenericParameterContext()
47 Function<Class<? extends Annotation>, ImmutableList<? extends Annotation>> in GenericParameterContext()
60 ImmutableList.copyOf(field.getAnnotations()), in create()
63 return ImmutableList.copyOf(field.getAnnotationsByType(annotationType)); in create()
66 ImmutableList.copyOf(field.getAnnotations()), annotationType); in create()
77 ImmutableList.copyOf(parameter.getAnnotations()),
79 ImmutableList.copyOf(parameter.getAnnotationsByType(annotationType)),
[all …]

12345678910>>...118