Home
last modified time | relevance | path

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

12345

/external/skia/tests/
DBitSetTest.cpp19 REPORTER_ASSERT(reporter, !set0.findFirst()); in DEF_TEST()
23 REPORTER_ASSERT(reporter, set0.findFirst()); in DEF_TEST()
24 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST()
27 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST()
30 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST()
35 REPORTER_ASSERT(reporter, *set0.findFirst() == 21); in DEF_TEST()
38 REPORTER_ASSERT(reporter, *set0.findFirst() == 22); in DEF_TEST()
56 REPORTER_ASSERT(reporter, !set0.findFirst()); in DEF_TEST()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionParameterDeclarationTest.java40 …ct.getAllMethods().stream().filter(m -> m.getName().equals("hashCode")).findFirst().get().getDecla… in testGetSignature()
41 …ject.getAllMethods().stream().filter(m -> m.getName().equals("equals")).findFirst().get().getDecla… in testGetSignature()
42 …getAllMethods().stream().filter(m -> m.getName().equals("containsAll")).findFirst().get().getDecla… in testGetSignature()
43 …ist.getAllMethods().stream().filter(m -> m.getName().equals("subList")).findFirst().get().getDecla… in testGetSignature()
57 …t = map.getAllMethods().stream().filter(m -> m.getName().equals("put")).findFirst().get().getDecla… in testGetGenericReturnType()
69 …t = map.getAllMethods().stream().filter(m -> m.getName().equals("put")).findFirst().get().getDecla… in testGetGenericParameters()
DReflectionMethodDeclarationTest.java39 …ject.getAllMethods().stream().filter(m -> m.getName().equals("equals")).findFirst().get().getDecla… in testParameterNameOnClassesFromTheStdLibrary()
40 …getAllMethods().stream().filter(m -> m.getName().equals("containsAll")).findFirst().get().getDecla… in testParameterNameOnClassesFromTheStdLibrary()
41 …ist.getAllMethods().stream().filter(m -> m.getName().equals("subList")).findFirst().get().getDecla… in testParameterNameOnClassesFromTheStdLibrary()
61 …oo.getAllMethods().stream().filter(m -> m.getName().equals("myMethod")).findFirst().get().getDecla… in testParameterNameOnClassesFromThisProject()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_nodeTypes_NodeWithParameters.txt17 …Line 75) getParameters().stream().filter(p -> p.getName().equals(name)).findFirst().orElse(null) =…
18 …rs().stream().filter(p -> p.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
24 …Line 86) getParameters().stream().filter(p -> p.getType().toString().equals(type)).findFirst().orE…
25 …().filter(p -> p.getType().toString().equals(type)).findFirst() ==> java.util.stream.Stream.findFi…
32 …ream().filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst().orElse(null) =…
33 ….getType().toString().equals(type.getSimpleName())).findFirst() ==> java.util.stream.Stream.findFi…
Dcom_github_javaparser_ast_CompilationUnit.txt74 …faceDeclaration && !((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().orElse(null) =…
75 …((ClassOrInterfaceDeclaration) type).isInterface()).findFirst() ==> java.util.stream.Stream.findFi…
82 …rfaceDeclaration && ((ClassOrInterfaceDeclaration) type).isInterface()).findFirst().orElse(null) =…
83 …((ClassOrInterfaceDeclaration) type).isInterface()).findFirst() ==> java.util.stream.Stream.findFi…
90 … -> type.getName().equals(enumName) && type instanceof EnumDeclaration).findFirst().orElse(null) =…
91 …quals(enumName) && type instanceof EnumDeclaration).findFirst() ==> java.util.stream.Stream.findFi…
97 …Name().equals(annotationName) && type instanceof AnnotationDeclaration).findFirst().orElse(null) =…
98 …tionName) && type instanceof AnnotationDeclaration).findFirst() ==> java.util.stream.Stream.findFi…
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/
DLambdaMulti.java.txt11 }).findFirst().get();
17 }).findFirst().get();
24 }).findFirst().get();
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/
DVarTypeTest.java31 VarType varType = ast.findFirst(VarType.class).get(); in resolveAPrimitive()
41 VarType varType = ast.findFirst(VarType.class).get(); in resolveAReferenceType()
52 VarType varType = ast.findFirst(VarType.class).get(); in failResolveNoInitializer()
62 VarType varType = ast.findFirst(VarType.class).get(); in failResolveWrongLocation()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/
DNavigator.java58 …<?>> type = cu.getTypes().stream().filter((t) -> t.getName().getId().equals(typeName)).findFirst(); in findType()
177 return node.findFirst(NameExpr.class, n -> n.getNameAsString().equals(name)); in findNameExpression()
181 return node.findFirst(SimpleName.class, n -> n.asString().equals(name)); in findSimpleName()
186 return node.findFirst(MethodCallExpr.class, n -> n.getNameAsString().equals(methodName)); in findMethodCall()
190 return node.findFirst(VariableDeclarator.class, n -> n.getNameAsString().equals(name)); in demandVariableDeclaration()
205 return node.findFirst(clazz).orElseThrow(IllegalArgumentException::new); in findNodeOfGivenClass()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DSwitchExprTest.java53 " }").findFirst(SwitchExpr.class).get(); in aThrowStatement()
64 "};").findFirst(SwitchExpr.class).get(); in jep325Example4()
79 "};").findFirst(SwitchExpr.class).get(); in jep325Example5()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithConstructors.java21 …ion).map(bd -> (ConstructorDeclaration) bd).filter(cd -> cd.getParameters().isEmpty()).findFirst(); in getDefaultConstructor()
55 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes()
66 … return getConstructors().stream().filter(m -> m.hasParametersOfType(paramTypes)).findFirst(); in getConstructorByParameterTypes()
DNodeWithParameters.java110 .filter(p -> p.getNameAsString().equals(name)).findFirst(); in getParameterByName()
121 .filter(p -> p.getType().toString().equals(type)).findFirst(); in getParameterByType()
132 .filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst(); in getParameterByType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-model/com/github/javaparser/symbolsolver/model/declarations/
DReferenceTypeDeclaration.java74 …eclaration> field = this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst(); in getField()
86 …Declaration> field = getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst(); in getVisibleField()
98 … return this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(); in hasField()
105 … return getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(); in hasVisibleField()
/external/javapoet/src/test/java/com/squareup/javapoet/
DMethodSpecTest.java47 import static com.squareup.javapoet.TestUtil.findFirst;
188 ExecutableElement exec = findFirst(methods, "spliterator"); in overrideDoesNotCopyDefaultModifier()
200 ExecutableElement exec = findFirst(methods, "call"); in overrideExtendsOthersWorksWithActualTypeParameters()
206 exec = findFirst(methods, "compareTo"); in overrideExtendsOthersWorksWithActualTypeParameters()
212 exec = findFirst(methods, "fail"); in overrideExtendsOthersWorksWithActualTypeParameters()
224 MethodSpec.overriding(findFirst(methods, "method")); in overrideFinalClassMethod()
236 MethodSpec.overriding(findFirst(methods, "finalMethod")); in overrideInvalidModifiers()
242 MethodSpec.overriding(findFirst(methods, "privateMethod")); in overrideInvalidModifiers()
248 MethodSpec.overriding(findFirst(methods, "staticMethod")); in overrideInvalidModifiers()
DParameterSpecTest.java32 import static com.squareup.javapoet.TestUtil.findFirst;
99 VariableElement element = findFirst(methods, "name"); in fieldVariableElement()
117 ExecutableElement element = findFirst(methods, "foo"); in parameterVariableElement()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-model/
Dcom_github_javaparser_symbolsolver_model_declarations_ReferenceTypeDeclaration.txt9 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
17 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
25 …Line 98) this.getAllFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(…
26 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
32 …Line 105) getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst().isPresent(…
33 …ds().stream().filter(f -> f.getName().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithParameters.java76 .filter(p -> p.getName().equals(name)).findFirst().orElse(null); in getParamByName()
87 .filter(p -> p.getType().toString().equals(type)).findFirst().orElse(null); in getParamByType()
98 … .filter(p -> p.getType().toString().equals(type.getSimpleName())).findFirst().orElse(null); in getParamByType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionLogicTest.java58 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesNegative()
68 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesRaw()
80 …tSignature().equals("isThrows(java.lang.Class<? extends java.lang.Throwable>)")).findFirst().get(); in compatibilityShouldConsiderAlsoTypeVariablesPositive()
DEnumLiteralsInAnnotatedClassTest.java40 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("Bina… in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedSamePackage()
63 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("foo.… in resolveFieldOfEnumAsInternalClassOfClassQualifiedSamePackage()
86 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("Bina… in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedDifferentPackage()
109 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("foo.… in resolveFieldOfEnumAsInternalClassOfClassQualifiedDifferentPackage()
DInternalClassInInterfaceTest.java40 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("AnIn… in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedSamePackage()
63 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("foo.… in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedSamePackage()
86 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("AnIn… in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedDifferentPackage()
110 …Optional<FieldAccessExpr> fae = cu.findFirst(FieldAccessExpr.class, n -> n.toString().equals("foo.… in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedDifferentPackage()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/
DContext.java128 … .getWrappedNode()).stream().filter(vd -> vd.getNameAsString().equals(name)).findFirst(); in localVariableDeclarationInScope()
141 … .getWrappedNode()).stream().filter(vd -> vd.getNameAsString().equals(name)).findFirst(); in parameterDeclarationInScope()
154 .getWrappedNode()).stream().filter(vd -> vd.getName().equals(name)).findFirst(); in fieldDeclarationInScope()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/
DCompilationUnit.java375 .findFirst().orElse(null); in getClassByName()
387 .findFirst().orElse(null); in getInterfaceByName()
399 .findFirst().orElse(null); in getEnumByName()
411 .findFirst().orElse(null); in getAnnotationDeclarationByName()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DFindNodeTest.java34 MethodCallExpr actual = cu.findFirst(MethodCallExpr.class).orElse(null); in testFindFirst()
65 MethodCallExpr methodCallExpr = cu.findFirst(MethodCallExpr.class).orElse(null); in testFindAncestralFinallyBlock()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue1946Test.java32 MethodCallExpr methodCallExpr = pr.getResult().get().findFirst(MethodCallExpr.class).get(); in issueWithInternalEnumConstantReference()
35 FieldAccessExpr fieldAccessExpr = methodCallExpr.findFirst(FieldAccessExpr.class).get(); in issueWithInternalEnumConstantReference()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_AnonymousClassDeclarationContext.txt36 …m().filter(internalType -> internalType.getName().getId().equals(name)).findFirst().map(internalTy…
37 …ype -> internalType.getName().getId().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
48 …lType -> name.startsWith(String.format("%s.", internalType.getName()))).findFirst().map(internalTy…
49 …With(String.format("%s.", internalType.getName()))).findFirst() ==> java.util.stream.Stream.findFi…
63 …new NodeList<>()).stream().filter(type -> type.toString().equals(name)).findFirst().map(matchingTy…
64 …ream().filter(type -> type.toString().equals(name)).findFirst() ==> java.util.stream.Stream.findFi…
/external/turbine/javatests/com/google/turbine/processing/
DTurbineElementTest.java164 .findFirst() in equals()
175 .findFirst() in equals()
183 .findFirst() in equals()
190 .findFirst() in equals()

12345