/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | OptionalBinderTest.java | 155 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault() 158 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault() 162 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault() 168 assertFalse(optional.isPresent()); in testOptionalIsAbsentByDefault() 171 assertFalse(optionalP.isPresent()); in testOptionalIsAbsentByDefault() 174 assertFalse(optionalJxP.isPresent()); in testOptionalIsAbsentByDefault() 229 assertTrue(optional.isPresent()); in testSetDefault() 233 assertTrue(optionalP.isPresent()); in testSetDefault() 238 assertTrue(optionalJxP.isPresent()); in testSetDefault() 245 assertTrue(optional.isPresent()); in testSetDefault() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | EnumsTest.java | 48 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent() 49 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent() 50 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent() 58 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive() 59 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive() 60 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive()
|
D | OptionalTest.java | 40 assertFalse(optionalName.isPresent()); in testAbsent() 66 assertFalse(Optional.absent().isPresent()); in testIsPresent_no() 70 assertTrue(Optional.of("training").isPresent()); in testIsPresent_yes()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | EnumsTest.java | 57 assertTrue(Enums.getIfPresent(TestEnum.class, "CHEETO").isPresent()); in testGetIfPresent() 58 assertTrue(Enums.getIfPresent(TestEnum.class, "HONDA").isPresent()); in testGetIfPresent() 59 assertTrue(Enums.getIfPresent(TestEnum.class, "POODLE").isPresent()); in testGetIfPresent() 67 assertFalse(Enums.getIfPresent(TestEnum.class, "cHEETO").isPresent()); in testGetIfPresent_caseSensitive() 68 assertFalse(Enums.getIfPresent(TestEnum.class, "Honda").isPresent()); in testGetIfPresent_caseSensitive() 69 assertFalse(Enums.getIfPresent(TestEnum.class, "poodlE").isPresent()); in testGetIfPresent_caseSensitive() 98 assertTrue(result.isPresent()); in doTestClassUnloading() 103 assertFalse(result.isPresent()); in doTestClassUnloading()
|
D | OptionalTest.java | 43 assertFalse(optionalName.isPresent()); in testAbsent() 69 assertFalse(Optional.absent().isPresent()); in testIsPresent_no() 73 assertTrue(Optional.of("training").isPresent()); in testIsPresent_yes()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | BindingGraph.java | 191 ImmutableSet<TypeElement> componentDependencyTypes = componentMirror.isPresent() 234 if (componentMethodRequest.isPresent()) { 320 if (mapProviderKey.isPresent()) { 325 if (mapProducerKey.isPresent()) { 335 setKeyFromProduced.isPresent() 372 provisionBinding.isPresent() 412 if (owningResolver.isPresent() && !owningResolver.get().equals(this)) { 428 return !binding.scope().isPresent() 437 if (membersInjectionBinding.parentInjectorRequest().isPresent() 460 if (bindingScope.isPresent()) { [all …]
|
D | AbstractComponentWriter.java | 187 checkState(snippet.isPresent(), "no builder or component field for %s", contributionType); in getComponentContributionSnippet() 291 if (builderSpec.isPresent()) { in addBuilder() 324 if (builderSpec.isPresent()) { in addBuildMethod() 365 if (builderSpec.isPresent()) { in addBuilderMethods() 471 if (staticMemberSelect.isPresent()) { in addField() 477 boolean useRawType = bindingPackage.isPresent() in addField() 555 && !contributionBinding.scope().isPresent()) { in staticMemberSelect() 565 if (membersInjectionBinding.isPresent() in staticMemberSelect() 585 if (componentMethod.dependencyRequest().isPresent()) { in implementInterfaceMethods() 698 if (builderName.isPresent()) { in initializeFrameworkTypes() [all …]
|
D | FactoryGenerator.java | 159 if (binding.membersInjectionRequest().isPresent()) { in write() 196 Map<String, TypeName> params = constructorWriter.isPresent() in write() 245 } else if (binding.nullableType().isPresent() in write() 247 if (binding.nullableType().isPresent()) { in write() 265 } else if (binding.membersInjectionRequest().isPresent()) { in write()
|
D | SubcomponentWriter.java | 114 graph.componentDescriptor().builderSpec().isPresent() in createComponentClass() 127 if (graph.componentDescriptor().builderSpec().isPresent()) { in addBuilder() 135 verify(graph.componentDescriptor().builderSpec().isPresent()); in createBuilder() 143 if (graph.componentDescriptor().builderSpec().isPresent()) { in addFactoryMethods()
|
D | BindingGraphValidator.java | 167 if (entryPoint.isPresent()) { in validateSubgraph() 357 if (binding.nullableType().isPresent()) { in validateNullability() 547 if (componentAnnotation.isPresent()) { in validateComponentHierarchy() 570 if (scope.isPresent()) { in validateDependencyScopes() 572 if (scopeCycleValidationType.diagnosticKind().isPresent() in validateDependencyScopes() 622 if (!componentDesc.builderSpec().isPresent()) { in validateBuilders() 677 if (scope.isPresent()) { in validateScopeHierarchy() 685 if (scopeCycleValidationType.diagnosticKind().isPresent()) { in validateScopeHierarchy() 694 if (componentAnnotation.isPresent()) { in validateScopeHierarchy() 723 if (bindingScope.isPresent() && !bindingScope.equals(componentScope)) { in validateComponentScope() [all …]
|
D | Scope.java | 70 return scopeAnnotation.isPresent() ? new Scope(scopeAnnotation.get()) : UNSCOPED; in scopeOf() 76 public boolean isPresent() { in isPresent() method in Scope
|
D | Key.java | 104 return !qualifier().isPresent(); in isValidMembersInjectionKey() 113 if (qualifier().isPresent()) { in isValidImplicitProvisionKey() 257 switch (providesType.isPresent() 268 providesType.isPresent() ? getProviderElement() : getProducerElement()); 287 return MapKeys.unwrapValue(mapKeyAnnotation).isPresent()
|
D | ProductionComponentValidator.java | 69 if (!getAnnotationMirror(moduleElement, Module.class).isPresent() in validate() 70 && !getAnnotationMirror(moduleElement, ProducerModule.class).isPresent()) { in validate()
|
D | ProvisionBinding.java | 97 checkArgument(!getQualifier(constructorElement).isPresent()); in forInjectConstructor() 103 if (!enclosingCxtorType.getTypeArguments().isEmpty() && resolvedType.isPresent()) { in forInjectConstructor() 114 checkArgument(!key.qualifier().isPresent()); in forInjectConstructor() 193 implicitMapOfProviderKey.isPresent(), in implicitMapOfProviderBinding()
|
D | ComponentWriter.java | 70 graph.componentDescriptor().builderSpec().isPresent() in createBuilder() 96 graph.componentDescriptor().builderSpec().isPresent() in addFactoryMethods()
|
D | MethodSignatureFormatter.java | 61 if (container.isPresent()) { in format() 100 if (qualifier.isPresent()) { in appendParameter()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | WildcardName.java | 45 if (extendsBound.isPresent()) { in referencedClasses() 48 if (superBound.isPresent()) { in referencedClasses() 57 if (extendsBound.isPresent()) { in write() 61 if (superBound.isPresent()) { in write()
|
D | JavaWriter.java | 144 && !className.enclosingClassName().isPresent()) in write() 149 while (importCandidate.isPresent() in write() 154 if (importCandidate.isPresent()) { in write() 226 while (enclosingClassName.isPresent()) { in sourceReferenceForClassName() 253 && !className.enclosingClassName().isPresent() in isImported()
|
D | MethodWriter.java | 83 if (body.isPresent()) { in body() 101 if (body.isPresent()) { in write()
|
/external/caliper/caliper/src/main/java/com/google/caliper/runner/ |
D | ResultsUploader.java | 95 if (uploadUri.isPresent()) { in processTrial() 97 if (apiKey.isPresent()) { in processTrial() 124 if (uploadUri.isPresent()) { in close() 125 if (runId.isPresent()) { in close()
|
D | OutputFileDumper.java | 97 if (!writer.isPresent()) { in processTrial() 111 if (writer.isPresent()) { in processTrial() 117 if (writer.isPresent()) { in close()
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | BinaryTreeTraverser.java | 65 if (left.isPresent()) { in children() 72 if (right.isPresent()) { in children() 130 if (node.isPresent()) {
|
/external/guava/guava/src/com/google/common/collect/ |
D | BinaryTreeTraverser.java | 72 if (left.isPresent()) { in children() 79 if (right.isPresent()) { in children() 208 if (node.isPresent()) {
|
/external/guava/guava/src/com/google/common/base/ |
D | Optional.java | 103 public abstract boolean isPresent(); in isPresent() method in Optional 230 if (optional.isPresent()) { in presentInstances()
|
/external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/ |
D | BoundFieldModule.java | 181 if (!this.naturalType.isPresent()) { in getBoundType() 292 if (fieldInfo.naturalType.isPresent()) { in bindField() 369 if (fieldInfoOpt.isPresent()) { in configure()
|