/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | ServletScopesTest.java | 102 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(a))); in testIsRequestScopedPositive() 103 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(b))); in testIsRequestScopedPositive() 104 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(c))); in testIsRequestScopedPositive() 105 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(d))); in testIsRequestScopedPositive() 106 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(e))); in testIsRequestScopedPositive() 107 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(f))); in testIsRequestScopedPositive() 108 assertTrue(ServletScopes.isRequestScoped(injector.getBinding(g))); in testIsRequestScopedPositive() 169 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(a))); in testIsRequestScopedNegative() 170 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(b))); in testIsRequestScopedNegative() 171 assertFalse(ServletScopes.isRequestScoped(injector.getBinding(c))); in testIsRequestScopedNegative() [all …]
|
D | FilterDefinitionTest.java | 44 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterInitAndConfig() 98 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterCreateDispatchDestroy() 161 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testFilterCreateDispatchDestroySupressChain() 228 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testGetFilterIfMatching() 265 expect(injector.getBinding(Key.get(Filter.class))).andReturn(binding); in testGetFilterIfMatchingNotMatching()
|
D | ServletDefinitionPathsTest.java | 70 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in servletPath() 160 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in pathInfoWithServletStyleMatching() 271 expect(injector.getBinding(Key.get(HttpServlet.class))).andReturn(binding); in pathInfoWithRegexMatching()
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/ |
D | TransitiveDependencyVisitorTest.java | 58 Binding<?> binding = getBinding(Key.get(ConstructedClass.class)); in testVisitConstructor() 67 getBinding(Key.get(Integer.class, Names.named("number")), new ConvertedConstantModule()); in testVisitConvertedConstant() 74 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new InstanceModule()); in testVisitInstance() 82 Binding<?> binding = getBinding(Key.get(Interface.class), new HasDependenciesModule()); in testVisitInstance_instanceHasDependencies() 91 Binding<?> binding = getBinding(Key.get(Interface.class), new LinkedKeyModule()); in testVisitLinkedKey() 99 Binding<?> binding = getBinding(Key.get(new TypeLiteral<Provider<ConstructedClass>>() {})); in testVisitProviderBinding() 106 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new ProviderInstanceModule()); in testVisitProviderInstance() 114 Binding<?> binding = getBinding(Key.get(ConstructedClass.class), new ProviderKeyModule()); in testVisitProviderKey() 121 private Binding<?> getBinding(Key<?> key, Module... modules) { in getBinding() method in TransitiveDependencyVisitorTest 122 return Guice.createInjector(modules).getBinding(key); in getBinding()
|
/external/guice/core/test/com/google/inject/ |
D | ScopesTest.java | 668 assertTrue(Scopes.isSingleton(injector.getBinding(a))); 669 assertTrue(Scopes.isSingleton(injector.getBinding(b))); 670 assertTrue(Scopes.isSingleton(injector.getBinding(c))); 671 assertTrue(Scopes.isSingleton(injector.getBinding(d))); 672 assertTrue(Scopes.isSingleton(injector.getBinding(e))); 673 assertTrue(Scopes.isSingleton(injector.getBinding(f))); 674 assertTrue(Scopes.isSingleton(injector.getBinding(g))); 675 assertTrue(Scopes.isSingleton(injector.getBinding(h))); 676 assertTrue(Scopes.isSingleton(injector.getBinding(i))); 725 assertFalse(Scopes.isSingleton(injector.getBinding(a))); [all …]
|
D | ImplicitBindingTest.java | 146 Binding v1 = injector.getBinding(Valid.class); in testCircularJitBindingsLeaveNoResidue() 147 Binding v2 = injector.getBinding(Valid2.class); in testCircularJitBindingsLeaveNoResidue() 148 Binding jv1 = injector.getBinding(JitValid.class); in testCircularJitBindingsLeaveNoResidue() 149 Binding jv2 = injector.getBinding(JitValid2.class); in testCircularJitBindingsLeaveNoResidue() 164 assertSame(v1, injector.getBinding(Valid.class)); in testCircularJitBindingsLeaveNoResidue() 165 assertSame(v2, injector.getBinding(Valid2.class)); in testCircularJitBindingsLeaveNoResidue() 168 assertSame(jv1, injector.getBinding(JitValid.class)); in testCircularJitBindingsLeaveNoResidue() 169 assertSame(jv2, injector.getBinding(JitValid2.class)); in testCircularJitBindingsLeaveNoResidue() 175 injector.getBinding(clazz); in assertFailure() 362 assertNotNull(injector.getBinding(Key.get(E.class))); in testRecursiveJitBindingsCleanupCorrectly()
|
D | ReflectionTest.java | 44 Binding<Foo> fooBinding = injector.getBinding(Key.get(Foo.class)); in testNormalBinding() 61 Binding<?> i = injector.getBinding(Key.get(int.class, I.class)); in testConstantBinding() 81 Binding<Foo> fooBinding = injector.getBinding(Key.get(Foo.class)); in testLinkedBinding()
|
D | JitBindingsTest.java | 687 injector.getBinding(classes[i]).getProvider().get(); in ensureWorks() 697 private void ensureFails(Injector injector, GetBindingCheck getBinding, Class<?>... classes) { in ensureFails() argument 715 if (getBinding == GetBindingCheck.ALLOW_BINDING in ensureFails() 716 || getBinding == GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails() 717 Binding<?> binding = injector.getBinding(classes[i]); in ensureFails() 720 if (getBinding != GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails() 724 if (getBinding == GetBindingCheck.ALLOW_BINDING_PROVIDER) { in ensureFails() 732 injector.getBinding(classes[i]); in ensureFails() 761 injector.getBinding(classes[i]); in ensureInChild()
|
D | ProvisionListenerTest.java | 476 provision.getBinding().getProvider().get(); // AGH! in testCallingBindingDotGetProviderDotGet() 577 keys.add(provision.getBinding().getKey()); in onProvision() 583 if (provision.getBinding() instanceof InstanceBinding) { in onProvision() 584 Class<? super T> expected = provision.getBinding().getKey().getRawType(); in onProvision() 589 assertEquals(provision.getBinding().getKey().getRawType(), provisioned.getClass()); in onProvision() 659 provisionList.add(provision.getBinding().getKey().getRawType()); in onProvision() 690 totalList.add(provision.getBinding().getKey().getRawType()); 812 assertEquals(notifyType, provision.getBinding().getKey().getRawType());
|
/external/guice/core/src/com/google/inject/internal/ |
D | BindingBuilder.java | 75 BindingImpl<T> base = getBinding(); in to() 99 BindingImpl<T> base = getBinding(); in toInstance() 124 BindingImpl<T> base = getBinding(); in toProvider() 149 BindingImpl<T> base = getBinding(); in toProvider() 168 BindingImpl<T> base = getBinding(); in toConstructor() 196 return "BindingBuilder<" + getBinding().getKey().getTypeLiteral() + ">"; in toString()
|
D | AbstractBindingBuilder.java | 62 protected BindingImpl<T> getBinding() { in getBinding() method in AbstractBindingBuilder 90 setBinding(getBinding().withScoping(Scoping.forAnnotation(scopeAnnotation))); in in() 96 setBinding(getBinding().withScoping(Scoping.forInstance(scope))); in in() 101 setBinding(getBinding().withScoping(Scoping.EAGER_SINGLETON)); in asEagerSingleton()
|
D | InternalInjectorCreator.java | 234 return isEagerSingleton(injector, injector.getBinding(linkedBinding), stage); in isEagerSingleton() 265 public <T> Binding<T> getBinding(Key<T> key) { in getBinding() method in InternalInjectorCreator.ToolStageInjector 266 return this.delegateInjector.getBinding(key); in getBinding() 270 public <T> Binding<T> getBinding(Class<T> type) { in getBinding() method in InternalInjectorCreator.ToolStageInjector 271 return this.delegateInjector.getBinding(type); in getBinding()
|
D | RealOptionalBinder.java | 312 if (bindingSelection.getBinding() != null) { in doInitialize() 313 target = bindingSelection.getBinding().getInternalFactory(); in doInitialize() 391 if (bindingSelection.getBinding() == null) { in doInitialize() 394 value = invokeJavaOptionalOf(bindingSelection.getBinding().getProvider()); in doInitialize() 424 BindingImpl<T> targetBinding = bindingSelection.getBinding(); in doInitialize() 465 if (bindingSelection.getBinding() == null) { in doInitialize() 468 value = Optional.of(bindingSelection.getBinding().getProvider()); in doInitialize() 502 if (bindingSelection.getBinding() != null) { in doInitialize() 503 delegate = bindingSelection.getBinding().getInternalFactory(); in doInitialize() 672 BindingImpl<T> getBinding() { in getBinding() method in RealOptionalBinder.BindingSelection
|
/external/guice/core/src/com/google/inject/ |
D | Scopes.java | 104 binding = injector.getBinding(linkedBinding.getLinkedKey()); in isSingleton() 111 binding = injector.getBinding(exposedBinding.getKey()); in isSingleton() 166 binding = injector.getBinding(linkedBinding.getLinkedKey()); in isScoped() 173 binding = injector.getBinding(exposedBinding.getKey()); in isScoped()
|
D | Injector.java | 130 <T> Binding<T> getBinding(Key<T> key); in getBinding() method 142 <T> Binding<T> getBinding(Class<T> type); in getBinding() method
|
/external/guice/core/test/com/google/inject/spi/ |
D | HasDependenciesTest.java | 44 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithDependencies() 60 InstanceBinding<?> binding = (InstanceBinding<?>) injector.getBinding(A.class); in testInstanceWithoutDependencies() 75 ProviderInstanceBinding<?> binding = (ProviderInstanceBinding<?>) injector.getBinding(A.class); in testProvider()
|
D | SpiBindingsTest.java | 263 Binding<Integer> binding = injector.getBinding(Key.get(Integer.class, Names.named("one"))); in testConvertedConstantBinding() 289 Binding<Provider<String>> binding = injector.getBinding(providerOfStringKey); in testProviderBinding() 425 Binding<Provider<String>> providerBinding = injector.getBinding(providerOfStringKey); in testExtensionSpi() 439 Binding<String> binding = injector.getBinding(String.class); in testExtensionSpi()
|
D | ModuleAnnotatedMethodScannerTest.java | 71 Binding<String> fooBinding = injector.getBinding(Key.get(String.class, named("foo-munged"))); in testScanning() 72 Binding<String> foo2Binding = injector.getBinding(Key.get(String.class, named("foo2-munged"))); in testScanning() 197 Binding<?> fooBinding = injector.getBinding(Key.get(clazz, named(originalName + "-munged")));
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/ |
D | Wasm.h | 68 return getBinding() == wasm::WASM_SYMBOL_BINDING_WEAK; in isBindingWeak() 72 return getBinding() == wasm::WASM_SYMBOL_BINDING_GLOBAL; in isBindingGlobal() 76 return getBinding() == wasm::WASM_SYMBOL_BINDING_LOCAL; in isBindingLocal() 79 unsigned getBinding() const { in getBinding() function
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | reflection.h | 63 int getBinding() const in getBinding() function 72 name.c_str(), offset, glDefineType, size, index, getBinding(), stages ); in dump()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | InjectBindingRegistry.java | 84 B getBinding(Key key) { in getBinding() method in InjectBindingRegistry.BindingsCollection 203 ProvisionBinding binding = provisionBindings.getBinding(key); in getOrFindProvisionBinding() 236 MembersInjectionBinding binding = membersInjectionBindings.getBinding(key); in getOrFindMembersInjectionBinding()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/ |
D | MCSymbolELF.cpp | 67 unsigned MCSymbolELF::getBinding() const { in getBinding() function in llvm::MCSymbolELF 97 if (Type == ELF::STT_SECTION && getBinding() != ELF::STB_LOCAL) in setType()
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
D | CheckedProviderTest.java | 587 (HasDependencies) bindInjector.getBinding(Key.get(remoteProviderOfFoo)); in testDependencies_Bind() 590 bindInjector.getBinding( in testDependencies_Bind() 597 hasDependencies = (HasDependencies) bindInjector.getBinding(DependentRemoteProvider.class); in testDependencies_Bind() 631 (HasDependencies) providesInjector.getBinding(Key.get(remoteProviderOfFoo)); in testDependencies_Provides() 635 providesInjector.getBinding( in testDependencies_Provides() 640 providesInjector.getBinding( in testDependencies_Provides() 673 HasDependencies hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor() 678 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor() 683 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor() 688 hasDependencies = (HasDependencies) cxtorInjector.getBinding(key); in testDependencies_Cxtor()
|
D | ThrowingProviderTest.java | 479 (HasDependencies) bindInjector.getBinding(Key.get(remoteProviderOfString)); in testDependencies_Bind() 482 bindInjector.getBinding( in testDependencies_Bind() 489 hasDependencies = (HasDependencies) bindInjector.getBinding(DependentRemoteProvider.class); in testDependencies_Bind() 530 (HasDependencies) providesInjector.getBinding(Key.get(remoteProviderOfString)); in testDependencies_Provides() 534 providesInjector.getBinding( in testDependencies_Provides() 539 providesInjector.getBinding( in testDependencies_Provides()
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyBuilder.java | 97 Binding binding = block.getBinding(); in addMessage() 126 Binding binding = block.getBinding(); in addEnum()
|