| /external/guava/guava-tests/test/com/google/common/collect/ |
| D | ImmutableListTest.java | 51 * Unit test for {@link ImmutableList}. 65 .named("ImmutableList") in suite() 70 .named("ImmutableList, built with Builder.add") in suite() 75 .named("ImmutableList, built with Builder.addAll") in suite() 80 .named("ImmutableList, reversed") in suite() 85 .named("ImmutableList, head subList") in suite() 90 .named("ImmutableList, tail subList") in suite() 95 .named("ImmutableList, middle subList") in suite() 101 .named("ImmutableList, unhashable values") in suite() 110 List<String> list = ImmutableList.of(); in testCreation_noArgs() [all …]
|
| /external/guava/android/guava-tests/test/com/google/common/collect/ |
| D | ImmutableListTest.java | 50 * Unit test for {@link ImmutableList}. 64 .named("ImmutableList") in suite() 69 .named("ImmutableList, built with Builder.add") in suite() 74 .named("ImmutableList, built with Builder.addAll") in suite() 79 .named("ImmutableList, reversed") in suite() 84 .named("ImmutableList, head subList") in suite() 89 .named("ImmutableList, tail subList") in suite() 94 .named("ImmutableList, middle subList") in suite() 100 .named("ImmutableList, unhashable values") in suite() 109 List<String> list = ImmutableList.of(); in testCreation_noArgs() [all …]
|
| /external/grpc-grpc-java/xds/src/test/java/io/grpc/xds/ |
| D | FilterChainMatchingProtocolNegotiatorsTest.java | 26 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/ |
| D | Parser.java | 30 import com.google.common.collect.ImmutableList; 103 ImmutableList.Builder<ImportDecl> imports = ImmutableList.builder(); in compilationUnit() 104 ImmutableList.Builder<TyDecl> decls = ImmutableList.builder(); in compilationUnit() 105 ImmutableList.Builder<Anno> annos = ImmutableList.builder(); in compilationUnit() 112 annos = ImmutableList.builder(); in compilationUnit() 160 annos = ImmutableList.builder(); in compilationUnit() 169 annos = ImmutableList.builder(); in compilationUnit() 174 annos = ImmutableList.builder(); in compilationUnit() 179 annos = ImmutableList.builder(); in compilationUnit() 195 annos = ImmutableList.builder(); in compilationUnit() [all …]
|
| /external/truth/core/src/test/java/com/google/common/truth/ |
| D | IterableSubjectCorrespondenceTest.java | 37 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/ |
| D | TryListBuilderTest.java | 33 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/desugar/test/java/com/google/devtools/build/android/desugar/ |
| D | CoreLibrarySupportTest.java | 18 import com.google.common.collect.ImmutableList; 39 ImmutableList.of("java/time/"), in testIsRenamedCoreLibrary() 40 ImmutableList.of(), in testIsRenamedCoreLibrary() 41 ImmutableList.of(), in testIsRenamedCoreLibrary() 42 ImmutableList.of()); in testIsRenamedCoreLibrary() 57 ImmutableList.of("java/time/"), in testIsRenamedCoreLibrary_prefixedLoader() 58 ImmutableList.of(), in testIsRenamedCoreLibrary_prefixedLoader() 59 ImmutableList.of(), in testIsRenamedCoreLibrary_prefixedLoader() 60 ImmutableList.of()); in testIsRenamedCoreLibrary_prefixedLoader() 75 ImmutableList.of(), in testRenameCoreLibrary() [all …]
|
| /external/turbine/javatests/com/google/turbine/lower/ |
| D | LowerSignatureTest.java | 21 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 …]
|
| D | LowerTest.java | 26 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/ |
| D | ModuleInfo.java | 19 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 …]
|
| D | TypeBoundClass.java | 19 import com.google.common.collect.ImmutableList; 45 ImmutableList<Type> interfaceTypes(); in interfaceTypes() 48 ImmutableList<ClassSymbol> permits(); in permits() 53 ImmutableList<FieldInfo> fields(); in fields() 56 ImmutableList<MethodInfo> methods(); in methods() 59 ImmutableList<RecordComponentInfo> components(); in components() 69 ImmutableList<AnnoInfo> annotations(); in annotations() 75 private final ImmutableList<AnnoInfo> annotations; 78 IntersectionTy upperBound, @Nullable Type lowerBound, ImmutableList<AnnoInfo> annotations) { in TyVarInfo() 98 public ImmutableList<AnnoInfo> annotations() { in annotations() [all …]
|
| /external/turbine/java/com/google/turbine/tree/ |
| D | Tree.java | 21 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-cloud-java/java-translate/google-cloud-translate/src/test/java/com/google/cloud/translate/ |
| D | TranslateImplTest.java | 36 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/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/ |
| D | B20701054.output | 3 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 …]
|
| D | B20701054.input | 3 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 …]
|
| /external/owasp/sanitizer/src/tests/org/owasp/html/ |
| D | TagBalancingHtmlStreamRendererTest.java | 31 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/auto/value/src/test/java/com/google/auto/value/processor/ |
| D | PropertyAnnotationsTest.java | 21 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/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
| D | ImmutableList.java | 36 * GWT emulated version of {@link com.google.common.collect.ImmutableList}. TODO(cpovirk): more doc 41 public abstract class ImmutableList<E> extends ImmutableCollection<E> class 44 ImmutableList() {} in ImmutableList() method in ImmutableList 46 public static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() { in toImmutableList() 52 public static <E> ImmutableList<E> of() { in of() 53 return (ImmutableList<E>) RegularImmutableList.EMPTY; in of() 56 public static <E> ImmutableList<E> of(E element) { in of() 60 public static <E> ImmutableList<E> of(E e1, E e2) { in of() 61 return new RegularImmutableList<E>(ImmutableList.<E>nullCheckedList(e1, e2)); in of() 64 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of() [all …]
|
| /external/turbine/java/com/google/turbine/binder/ |
| D | TypeBinder.java | 24 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() 252 ImmutableList<RecordComponentInfo> components = bindComponents(scope, base.decl().components()); in bind() 255 ImmutableList<MethodInfo> methods; in bind() 260 ImmutableList.<MethodInfo>builder() in bind() [all …]
|
| D | CanonicalTypeBinder.java | 21 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 …]
|
| D | DisambiguateTypeAnnotations.java | 21 import com.google.common.collect.ImmutableList; 94 private static ImmutableList<MethodInfo> bindMethods( in bindMethods() 95 Env<ClassSymbol, TypeBoundClass> env, ImmutableList<MethodInfo> fields) { in bindMethods() 96 ImmutableList.Builder<MethodInfo> result = ImmutableList.builder(); in bindMethods() 104 ImmutableList.Builder<AnnoInfo> declarationAnnotations = ImmutableList.builder(); in bindMethod() 129 private static ImmutableList<ParamInfo> bindParameters( in bindParameters() 131 ImmutableList<ParamInfo> params, in bindParameters() 133 ImmutableList.Builder<ParamInfo> result = ImmutableList.builder(); in bindParameters() 142 ImmutableList.Builder<AnnoInfo> declarationAnnotations = ImmutableList.builder(); in bindParam() 149 private static ImmutableList<RecordComponentInfo> bindComponents( in bindComponents() [all …]
|
| /external/turbine/javatests/com/google/turbine/processing/ |
| D | TurbineTypeMirrorTest.java | 22 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/ |
| D | TurbineOptions.java | 20 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/guava/android/guava/src/com/google/common/collect/ |
| D | ImmutableList.java | 63 public abstract class ImmutableList<E> extends ImmutableCollection<E> class 68 * ImmutableList}, in encounter order. 72 static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() { in toImmutableList() 85 public static <E> ImmutableList<E> of() { in of() 86 return (ImmutableList<E>) EMPTY; in of() 96 public static <E> ImmutableList<E> of(E element) { in of() 105 public static <E> ImmutableList<E> of(E e1, E e2) { in of() 114 public static <E> ImmutableList<E> of(E e1, E e2, E e3) { in of() 123 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4) { in of() 132 public static <E> ImmutableList<E> of(E e1, E e2, E e3, E e4, E e5) { in of() [all …]
|
| /external/turbine/java/com/google/turbine/lower/ |
| D | Lower.java | 25 import com.google.common.collect.ImmutableList; 144 ImmutableList<SourceModuleInfo> modules, in lowerAll() 200 ImmutableList<AnnotationInfo> annotations = lowerAnnotations(module.annos()); in lower() 203 ImmutableList.Builder<ClassFile.InnerClass> innerClasses = ImmutableList.builder(); in lower() 221 /* interfaces= */ ImmutableList.of(), in lower() 222 /* permits= */ ImmutableList.of(), in lower() 223 /* methods= */ ImmutableList.of(), in lower() 224 /* fields= */ ImmutableList.of(), in lower() 227 /* typeAnnotations= */ ImmutableList.of(), in lower() 230 /* nestMembers= */ ImmutableList.of(), in lower() [all …]
|