/external/dokka/core/src/main/kotlin/Utilities/ |
D | DokkaModules.kt | 22 binder.bind<DokkaLogger>().toInstance(logger) in configure() 25 binder.bind<KotlinCoreEnvironment>().toInstance(coreEnvironment) in configure() 28 binder.bind<DokkaResolutionFacade>().toInstance(dokkaResolutionFacade) in configure() 29 …olutionFacade>().annotatedWith(Names.named("libraryResolutionFacade")).toInstance(libraryResolutio… in configure() 31 binder.bind<DocumentationOptions>().toInstance(options) in configure() 33 binder.bind<DefaultPlatformsProvider>().toInstance(defaultPlatformsProvider) in configure() 35 binder.bind<NodeReferenceGraph>().toInstance(nodeReferenceGraph) in configure() 47 …binder.bind(File::class.java).annotatedWith(Names.named("outputDir")).toInstance(File(options.outp… in configure() 49 binder.bind<DocumentationOptions>().toInstance(options) in configure() 50 binder.bind<DokkaLogger>().toInstance(logger) in configure() [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | MultibinderTest.java | 108 multibinder.addBinding().toInstance("A"); in testMultibinderAggregatesMultipleModules() 109 multibinder.addBinding().toInstance("B"); in testMultibinderAggregatesMultipleModules() 110 multibinder.addBinding().toInstance("C"); in testMultibinderAggregatesMultipleModules() 118 multibinder.addBinding().toInstance("D"); in testMultibinderAggregatesMultipleModules() 119 multibinder.addBinding().toInstance("E"); in testMultibinderAggregatesMultipleModules() 150 multibinder.addBinding().toInstance("A"); in testMultibinderAggregationForAnnotationInstance() 151 multibinder.addBinding().toInstance("B"); in testMultibinderAggregationForAnnotationInstance() 154 multibinder.addBinding().toInstance("C"); in testMultibinderAggregationForAnnotationInstance() 182 multibinder.addBinding().toInstance("A"); in testMultibinderAggregationForAnnotationType() 183 multibinder.addBinding().toInstance("B"); in testMultibinderAggregationForAnnotationType() [all …]
|
D | MapBinderTest.java | 193 multibinder.addBinding("a").toInstance("A"); in testMapBinderAggregatesMultipleModules() 194 multibinder.addBinding("b").toInstance("B"); in testMapBinderAggregatesMultipleModules() 195 multibinder.addBinding("c").toInstance("C"); in testMapBinderAggregatesMultipleModules() 204 multibinder.addBinding("d").toInstance("D"); in testMapBinderAggregatesMultipleModules() 205 multibinder.addBinding("e").toInstance("E"); in testMapBinderAggregatesMultipleModules() 239 multibinder.addBinding("a").toInstance("A"); in testMapBinderAggregationForAnnotationInstance() 240 multibinder.addBinding("b").toInstance("B"); in testMapBinderAggregationForAnnotationInstance() 244 multibinder.addBinding("c").toInstance("C"); in testMapBinderAggregationForAnnotationInstance() 276 multibinder.addBinding("a").toInstance("A"); in testMapBinderAggregationForAnnotationType() 277 multibinder.addBinding("b").toInstance("B"); in testMapBinderAggregationForAnnotationType() [all …]
|
D | OptionalBinderTest.java | 348 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSetDefault() 389 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("a"); in testSetBinding() 432 optionalBinder.setDefault().toInstance("a"); in testSetBindingOverridesDefault() 433 optionalBinder.setBinding().toInstance("b"); in testSetBindingOverridesDefault() 482 OptionalBinder.newOptionalBinder(binder(), String.class).setDefault().toInstance("a"); in testSpreadAcrossModules() 489 OptionalBinder.newOptionalBinder(binder(), String.class).setBinding().toInstance("b"); in testSpreadAcrossModules() 540 .toInstance(new String("a")); // using new String to ensure .equals is checked. in testExactSameBindingCollapses_defaults() 543 .toInstance(new String("a")); in testExactSameBindingCollapses_defaults() 586 .toInstance(new String("a")); // using new String to ensure .equals is checked. in testExactSameBindingCollapses_actual() 589 .toInstance(new String("a")); in testExactSameBindingCollapses_actual() [all …]
|
D | WeakKeySetTest.java | 340 bind(Integer.class).toInstance(4); in testWeakKeySet_integration() 350 bind(String.class).toInstance("bar"); in testWeakKeySet_integration() 368 bind(Integer.class).toInstance(4); in testWeakKeySet_integration_multipleChildren() 379 bind(String.class).toInstance("foo"); in testWeakKeySet_integration_multipleChildren() 391 bind(Long.class).toInstance(6L); in testWeakKeySet_integration_multipleChildren() 417 bind(Integer.class).toInstance(4); in testWeakKeySet_integration_multipleChildren_overlappingKeys() 427 bind(String.class).toInstance("foo"); in testWeakKeySet_integration_multipleChildren_overlappingKeys() 438 bind(String.class).toInstance("bar"); in testWeakKeySet_integration_multipleChildren_overlappingKeys()
|
/external/guice/core/test/com/google/inject/util/ |
D | OverrideModuleTest.java | 116 bind(String.class).toInstance("A"); in testGetProviderInModule() 131 bind(String.class).toInstance("A"); in testOverrideWhatGetProviderProvided() 148 bind(String.class).toInstance("A"); in testOverrideUsingOriginalsGetProvider() 149 bind(key2).toInstance("B"); in testOverrideUsingOriginalsGetProvider() 171 bind(String.class).toInstance("A1"); in testOverrideOfOverride() 172 bind(key2).toInstance("A2"); in testOverrideOfOverride() 173 bind(key3).toInstance("A3"); in testOverrideOfOverride() 181 bind(String.class).toInstance("B1"); in testOverrideOfOverride() 182 bind(key2).toInstance("B2"); in testOverrideOfOverride() 192 bind(String.class).toInstance("C1"); in testOverrideOfOverride() [all …]
|
/external/guice/core/test/com/google/inject/ |
D | PrivateModuleTest.java | 46 bind(String.class).annotatedWith(named("a")).toInstance("public"); in testBasicUsage() 52 bind(String.class).annotatedWith(named("b")).toInstance("i"); in testBasicUsage() 63 bind(String.class).annotatedWith(named("b")).toInstance("ii"); in testBasicUsage() 88 bindA.bind(String.class).annotatedWith(named("a")).toInstance("i"); in testWithoutPrivateModules() 90 bindA.bind(String.class).annotatedWith(named("c")).toInstance("private to A"); in testWithoutPrivateModules() 93 bindB.bind(String.class).annotatedWith(named("b")).toInstance("ii"); in testWithoutPrivateModules() 95 bindB.bind(String.class).annotatedWith(named("c")).toInstance("private to B"); in testWithoutPrivateModules() 219 bind(String.class).toInstance("public"); in testCannotBindAKeyExportedByASibling() 228 bind(String.class).toInstance("private"); in testCannotBindAKeyExportedByASibling() 251 bind(String.class).annotatedWith(named("a")).toInstance("a"); in testExposeButNoBind() [all …]
|
D | OptionalBindingTest.java | 46 bind(A.class).toInstance(injectA); 47 bind(B.class).toInstance(injectB); 48 bind(C.class).toInstance(injectC); 49 bind(D.class).toInstance(injectD); 50 bind(E.class).annotatedWith(Names.named("e")).toInstance(injectE); 51 bind(F.class).toInstance(injectF); 52 bind(G.class).toInstance(injectG); 60 bind(C.class).toInstance(new C() {}); 68 bind(HasOptionalInjections.class).toInstance(new HasOptionalInjections());
|
D | BoundInstanceInjectionTest.java | 40 bind(O.class).toInstance(o); in testInstancesAreInjected() 41 bind(int.class).toInstance(5); in testInstancesAreInjected() 75 bind(int.class).toInstance(5); in testProvidersAreInjected() 88 bind(Object.class).toInstance(new MalformedInjectable()); in testMalformedInstance()
|
D | ProviderInjectionTest.java | 121 bind(Boolean.class).toInstance(Boolean.TRUE); in testProvidersAreInjectedBeforeTheyAreUsed() 142 .toInstance( in testCreationTimeInjectionOrdering() 171 .toInstance( in testCreationTimeInjectionOrdering() 186 bind(Count.class).annotatedWith(named("d")).toInstance(new Count(8)); in testCreationTimeInjectionOrdering() 187 bind(Count.class).annotatedWith(named("e")).toInstance(new Count(16)); in testCreationTimeInjectionOrdering()
|
D | BinderTest.java | 228 bind(String.class).annotatedWith(Names.named("nullTwo")).toInstance(none); in testBindingNullConstant() 307 bind(String[].class).toInstance(strings); in testArrayTypeCanonicalization() 308 bind(new TypeLiteral<Integer[]>() {}).toInstance(integers); in testArrayTypeCanonicalization() 324 bind(String[].class).toInstance(new String[] {"A"}); in testArrayTypeCanonicalization() 325 bind(new TypeLiteral<String[]>() {}).toInstance(new String[] {"B"}); in testArrayTypeCanonicalization() 344 bind(String[].class).toInstance(strings); in testArrayTypeCanonicalization() 345 bind(new TypeLiteral<String[]>() {}).toInstance(strings); in testArrayTypeCanonicalization() 384 bind(String.class).toInstance(constant); in configure() 414 bind(HasImplementedBy1.class).toInstance(new HasImplementedBy1() {}); in testSettingAtImplementedByTwice() 440 bind(HasImplementedBy1.class).toInstance(new HasImplementedBy1() {}); in testJitDependencyDoesntBlockOtherExplicitBindings() [all …]
|
D | MembersInjectorTest.java | 94 bind(C.class).toInstance(myFavouriteC); in testMembersInjectorFromBinder() 118 bind(C.class).toInstance(myFavouriteC); in testMembersInjectorFromInjector() 182 bind(C.class).toInstance(myFavouriteC); in testInjectingMembersInjector() 248 bind(C.class).toInstance(myFavouriteC); in testLookupMembersInjectorBinding() 372 bind(ParallelMemberInjectionCallback1.class).toInstance(c1); in testMemberInjectorParallelization() 373 bind(ParallelMemberInjectionCallback2.class).toInstance(c2); in testMemberInjectorParallelization() 400 bind(RecursiveMemberInjection.class).toInstance(rmi); in testRecursiveMemberInjector()
|
D | InjectorTest.java | 64 bind(SampleSingleton.class).toInstance(singleton); in testProviderMethods() 65 bind(SampleSingleton.class).annotatedWith(Other.class).toInstance(other); in testProviderMethods() 270 bind(String.class).toInstance("foo"); 271 bind(int.class).toInstance(5); 301 bind(String.class).toInstance("foo"); 302 bind(int.class).toInstance(5); 332 .toInstance(
|
D | LoggerInjectionTest.java | 56 .toInstance(Logger.getAnonymousLogger()); in testCanBindAnnotatedLogger() 69 bind(Logger.class).toInstance(Logger.getAnonymousLogger()); in testCannotBindLogger()
|
D | ReflectionTest.java | 40 bind(Foo.class).toInstance(foo); in testNormalBinding() 76 bind(Bar.class).toInstance(bar); in testLinkedBinding()
|
D | TypeLiteralInjectionTest.java | 39 bind(TypeLiteral.class).toInstance(TypeLiteral.get(String.class)); in testBindingToRawTypeLiteralIsNotAllowed() 57 .toInstance(TypeLiteral.get(String.class)); in testBindingToParameterizedTypeLiteralIsNotAllowed()
|
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
D | FactoryProviderTest.java | 66 bind(Double.class).toInstance(5.0d); in testAssistedFactory() 88 bind(Double.class).toInstance(5.0d); in testFactoryBindingDependencies() 107 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); in testAssistedFactoryWithAnnotations() 108 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); in testAssistedFactoryWithAnnotations() 172 bind(float.class).toInstance(140f); in testFactoryWithMultipleMethods() 249 bind(String.class).toInstance("turbo"); in testMethodsAndFieldsGetInjected() 250 bind(int.class).toInstance(911); in testMethodsAndFieldsGetInjected() 251 bind(double.class).toInstance(50000d); in testMethodsAndFieldsGetInjected() 289 bind(String.class).toInstance("trans am"); in testProviderInjection() 320 .toInstance(Collections.singleton("Flux Capacitor")); in testTypeTokenInjection() [all …]
|
D | FactoryProvider2Test.java | 63 bind(Double.class).toInstance(5.0d); in testAssistedFactory() 85 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); in testAssistedFactoryWithAnnotations() 86 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); in testAssistedFactoryWithAnnotations() 150 bind(float.class).toInstance(140f); in testFactoryUsesInjectedConstructor() 213 bind(String.class).toInstance("turbo"); in testMethodsAndFieldsGetInjected() 214 bind(int.class).toInstance(911); in testMethodsAndFieldsGetInjected() 215 bind(double.class).toInstance(50000d); in testMethodsAndFieldsGetInjected() 253 bind(String.class).toInstance("trans am"); in testProviderInjection() 283 bind(String.class).toInstance("trans am"); in testAssistedProviderInjection() 321 .toInstance(Collections.singleton("Flux Capacitor")); in testTypeTokenInjection() [all …]
|
D | FactoryModuleBuilderTest.java | 212 bind(Integer.class).toInstance(911); in testAnnotatedAndParentBoundReturnValue() 213 bind(Double.class).toInstance(5.0d); in testAnnotatedAndParentBoundReturnValue() 234 bind(Double.class).toInstance(5.0d); in testParentBoundReturnValue() 357 bind(Double.class).toInstance(5.0d); in testMultipleReturnTypes() 484 bind(Integer.class).toInstance(42); in testFactoryBindingDependencies() 485 bind(Double.class).toInstance(4.2d); in testFactoryBindingDependencies() 486 bind(Float.class).toInstance(4.2f); in testFactoryBindingDependencies() 487 bind(String.class).annotatedWith(named("dog")).toInstance("dog"); in testFactoryBindingDependencies() 488 bind(String.class).annotatedWith(named("cat1")).toInstance("cat1"); in testFactoryBindingDependencies() 489 bind(String.class).annotatedWith(named("cat2")).toInstance("cat2"); in testFactoryBindingDependencies() [all …]
|
D | ExtensionSpiTest.java | 196 bind(String.class).annotatedWith(named("catName1")).toInstance("kitty1"); in configure() 197 bind(String.class).annotatedWith(named("catName2")).toInstance("kitty2"); in configure() 198 bind(String.class).annotatedWith(named("petName")).toInstance("pussy"); in configure() 199 bind(Integer.class).annotatedWith(named("age")).toInstance(12); in configure()
|
/external/dokka/core/src/test/kotlin/format/ |
D | DacFormatTestCase.kt | 43 … binder.bind<Boolean>().annotatedWith(Names.named("generateClassIndex")).toInstance(false) in <lambda>() 44 … binder.bind<Boolean>().annotatedWith(Names.named("generatePackageIndex")).toInstance(false) in <lambda>() 46 binder.bind<String>().annotatedWith(Names.named("dacRoot")).toInstance("") in <lambda>() 47 binder.bind<String>().annotatedWith(Names.named("outlineRoot")).toInstance("") in <lambda>() 48 binder.bind<File>().annotatedWith(Names.named("outputDir")).toInstance(folder.root) in <lambda>() 51 binder.bind<DokkaLogger>().toInstance(object : DokkaLogger { in <lambda>()
|
/external/guice/core/test/com/googlecode/guice/ |
D | Jsr330Test.java | 65 bind(B.class).toInstance(b); in testInject() 66 bind(C.class).toInstance(c); in testInject() 67 bind(D.class).toInstance(d); in testInject() 68 bind(E.class).toInstance(e); in testInject() 86 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b); in testQualifiedInject() 87 bind(C.class).annotatedWith(Red.class).toInstance(c); in testQualifiedInject() 88 bind(D.class).annotatedWith(RED).toInstance(d); in testQualifiedInject() 89 bind(E.class).annotatedWith(Names.named("jesse")).toInstance(e); in testQualifiedInject() 107 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b); in testProviderInject() 108 bind(C.class).toInstance(c); in testProviderInject() [all …]
|
/external/guice/core/test/com/google/inject/spi/ |
D | ModuleRewriterTest.java | 42 bind(String.class).toInstance("Pizza"); in testRewriteBindings() 43 bind(CharSequence.class).toInstance("Wine"); in testRewriteBindings() 107 bind(String.class).toInstance("A"); in testGetProviderAvailableAtInjectMembersTime()
|
D | HasDependenciesTest.java | 40 bind(A.class).toInstance(new AWithDependencies()); in testInstanceWithDependencies() 56 bind(A.class).toInstance(new A()); in testInstanceWithoutDependencies()
|
/external/guice/core/src/com/google/inject/name/ |
D | Names.java | 45 binder.bind(Key.get(String.class, new NamedImpl(key))).toInstance(value); in bindProperties() 60 binder.bind(Key.get(String.class, new NamedImpl(propertyName))).toInstance(value); in bindProperties()
|