Home
last modified time | relevance | path

Searched refs:getBinding (Results 1 – 25 of 147) sorted by relevance

123456

/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletScopesTest.java102 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 …]
DFilterDefinitionTest.java44 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()
DServletDefinitionPathsTest.java70 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/
DTransitiveDependencyVisitorTest.java58 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/
DScopesTest.java668 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 …]
DImplicitBindingTest.java146 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()
DReflectionTest.java44 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()
DJitBindingsTest.java687 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()
DProvisionListenerTest.java476 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/llvm-project/clang/unittests/StaticAnalyzer/
DStoreTest.cpp73 EXPECT_EQ(Zero, SManager.getBinding(StX0, LX0, ASTCtxt.IntTy)); in performTest()
78 EXPECT_EQ(Zero, SManager.getBinding(StY0, LY0, ASTCtxt.IntTy)); in performTest()
86 EXPECT_EQ(Zero, SManager.getBinding(StZ0, LZ0, ASTCtxt.IntTy)); in performTest()
91 EXPECT_EQ(One, SManager.getBinding(StX1, LX1, ASTCtxt.IntTy)); in performTest()
96 EXPECT_EQ(One, SManager.getBinding(StY1, LY1, ASTCtxt.IntTy)); in performTest()
140 EXPECT_EQ(One, SManager.getBinding(StX, ZeroElement, Int)); in performTest()
/external/guice/core/src/com/google/inject/internal/
DBindingBuilder.java75 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()
DAbstractBindingBuilder.java62 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()
DInternalInjectorCreator.java234 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()
DRealOptionalBinder.java312 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/
DScopes.java104 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()
DInjector.java130 <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/
DHasDependenciesTest.java44 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()
/external/dagger2/javatests/artifacts/hilt-android/simple/app/src/sharedTest/java/dagger/hilt/android/simple/
DBindValueTest.java103 assertThat(getBinding()).isEqualTo(BIND_VALUE_STRING); in testBindValueFieldIsProvided()
109 assertThat(getBinding()).isEqualTo("newValue"); in testBindValueIsMutable()
152 private static String getBinding() { in getBinding() method in BindValueTest
/external/dagger2/java/dagger/hilt/android/example/gradle/simple/app/src/sharedTest/java/dagger/hilt/android/example/gradle/simple/
DBindValueTest.java103 assertThat(getBinding()).isEqualTo(BIND_VALUE_STRING); in testBindValueFieldIsProvided()
109 assertThat(getBinding()).isEqualTo("newValue"); in testBindValueIsMutable()
152 private static String getBinding() { in getBinding() method in BindValueTest
/external/dagger2/java/dagger/internal/codegen/validation/
DInjectBindingRegistryImpl.java108 B getBinding(Key key) { in getBinding() method in InjectBindingRegistryImpl.BindingsCollection
251 ProvisionBinding cachedBinding = provisionBindings.getBinding(key); in tryRegisterConstructor()
281 MembersInjectionBinding cachedBinding = membersInjectionBindings.getBinding(key); in tryRegisterMembersInjectedType()
309 ProvisionBinding binding = provisionBindings.getBinding(key); in getOrFindProvisionBinding()
340 MembersInjectionBinding binding = membersInjectionBindings.getBinding(key); in getOrFindMembersInjectionBinding()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyBuilder.java97 Binding binding = block.getBinding(); in addMessage()
126 Binding binding = block.getBinding(); in addEnum()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DWasm.h73 return getBinding() == wasm::WASM_SYMBOL_BINDING_WEAK; in isBindingWeak()
77 return getBinding() == wasm::WASM_SYMBOL_BINDING_GLOBAL; in isBindingGlobal()
81 return getBinding() == wasm::WASM_SYMBOL_BINDING_LOCAL; in isBindingLocal()
84 unsigned getBinding() const { in getBinding() function
/external/llvm-project/llvm/include/llvm/Object/
DWasm.h75 return getBinding() == wasm::WASM_SYMBOL_BINDING_WEAK; in isBindingWeak()
79 return getBinding() == wasm::WASM_SYMBOL_BINDING_GLOBAL; in isBindingGlobal()
83 return getBinding() == wasm::WASM_SYMBOL_BINDING_LOCAL; in isBindingLocal()
86 unsigned getBinding() const { in getBinding() function
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DCheckedProviderTest.java587 (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()
/external/guice/core/src/com/google/inject/spi/
DProvisionListener.java61 public abstract Binding<T> getBinding(); in getBinding() method in ProvisionListener.ProvisionInvocation

123456