/external/r8/src/test/java/com/android/tools/r8/shaking/ |
D | TreeShakingTest.java | 138 Assert.assertFalse(inspector.clazz("shaking1.Unused").isPresent()); in shaking1HasNoClassUnused() 140 Assert.assertTrue(used.isPresent()); in shaking1HasNoClassUnused() 143 .isPresent()); in shaking1HasNoClassUnused() 144 Assert.assertTrue(used.field("int", "aStaticFieldThatIsNotUsedButKept").isPresent()); in shaking1HasNoClassUnused() 165 Assert.assertFalse(inspector.clazz("shaking3.B").isPresent()); in shaking3HasNoClassB() 167 Assert.assertTrue(classA.isPresent()); in shaking3HasNoClassB() 168 Assert.assertFalse(classA.method("void", "unused", ImmutableList.of()).isPresent()); in shaking3HasNoClassB() 172 Assert.assertTrue(inspector.clazz("shaking3.B").isPresent()); in shaking3HasNoPrivateClass() 173 Assert.assertFalse(inspector.clazz("shaking3.AnAbstractClass").isPresent()); in shaking3HasNoPrivateClass() 178 .method("void", "virtualMethod", Collections.emptyList()).isPresent()); in shaking5Inspection() [all …]
|
/external/r8/src/test/java/com/android/tools/r8/classmerging/ |
D | ClassMergingTest.java | 51 Assert.assertFalse(inspector.clazz("classmerging.GenericInterface").isPresent()); in testClassesHaveBeenMerged() 52 Assert.assertTrue(inspector.clazz("classmerging.GenericInterfaceImpl").isPresent()); in testClassesHaveBeenMerged() 53 Assert.assertFalse(inspector.clazz("classmerging.GenericAbstractClass").isPresent()); in testClassesHaveBeenMerged() 54 Assert.assertTrue(inspector.clazz("classmerging.GenericInterfaceImpl").isPresent()); in testClassesHaveBeenMerged() 55 Assert.assertFalse(inspector.clazz("classmerging.Outer$SuperClass").isPresent()); in testClassesHaveBeenMerged() 56 Assert.assertTrue(inspector.clazz("classmerging.Outer$SubClass").isPresent()); in testClassesHaveBeenMerged() 57 Assert.assertFalse(inspector.clazz("classmerging.SuperClass").isPresent()); in testClassesHaveBeenMerged() 58 Assert.assertTrue(inspector.clazz("classmerging.SubClass").isPresent()); in testClassesHaveBeenMerged() 64 Assert.assertTrue(inspector.clazz("classmerging.ConflictingInterface").isPresent()); in testConflictWasDetected() 65 Assert.assertTrue(inspector.clazz("classmerging.ConflictingInterfaceImpl").isPresent()); in testConflictWasDetected() [all …]
|
/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()
|
/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()
|
/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 | Scope.java | 70 return scopeAnnotation.isPresent() ? new Scope(scopeAnnotation.get()) : UNSCOPED; in scopeOf() 76 public boolean isPresent() { in isPresent() method in Scope
|
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 | ProductionComponentValidator.java | 69 if (!getAnnotationMirror(moduleElement, Module.class).isPresent() in validate() 70 && !getAnnotationMirror(moduleElement, ProducerModule.class).isPresent()) { in validate()
|
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 | 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()
|
/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()
|
/external/r8/src/test/java/com/android/tools/r8/rewrite/assertions/ |
D | RemoveAssertionsTest.java | 33 assertTrue(clazz.isPresent()); in test() 36 assertTrue(!conditionMethod.isPresent()); in test() 39 assertTrue(!clinit.isPresent()); in test()
|
/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/r8/src/test/java/com/android/tools/r8/utils/ |
D | DexInspector.java | 198 if (!clazz.isPresent()) { in method() 215 public abstract boolean isPresent(); in isPresent() method in DexInspector.Subject 232 public boolean isPresent() { in isPresent() method in DexInspector.FoundAnnotationSubject 245 public boolean isPresent() { in isPresent() method in DexInspector.AbsentAnnotationSubject 302 public boolean isPresent() { in isPresent() method in DexInspector.AbsentClassSubject 366 public boolean isPresent() { in isPresent() method in DexInspector.FoundClassSubject 537 public boolean isPresent() { in isPresent() method in DexInspector.AbsentMethodSubject 603 public boolean isPresent() { in isPresent() method in DexInspector.FoundMethodSubject 705 public boolean isPresent() { in isPresent() method in DexInspector.AbsentFieldSubject 756 public boolean isPresent() { in isPresent() method in DexInspector.FoundFieldSubject [all …]
|
/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()
|