Home
last modified time | relevance | path

Searched refs:Singleton (Results 1 – 25 of 207) sorted by relevance

123456789

/external/guice/extensions/spring/test/com/google/inject/spring/
DSpringIntegrationTest.java38 RootBeanDefinition singleton = new RootBeanDefinition(Singleton.class); in testBindFromSpring()
50 bind(Singleton.class).toProvider(fromSpring(Singleton.class, "singleton")); in testBindFromSpring()
55 assertNotNull(injector.getInstance(Singleton.class)); in testBindFromSpring()
56 assertSame(injector.getInstance(Singleton.class), injector.getInstance(Singleton.class)); in testBindFromSpring()
65 RootBeanDefinition singleton = new RootBeanDefinition(Singleton.class); in testBindAll()
80 Key<Singleton> singletonKey = Key.get(Singleton.class, Names.named("singleton")); in testBindAll()
90 static class Singleton {} class in SpringIntegrationTest
/external/clang/test/SemaObjC/
Dproperty-dot-receiver.m6 @interface Singleton { interface
8 + (Singleton*) instance;
11 @implementation Singleton implementation
15 + (Singleton*) instance { return 0; }
19 [Singleton.instance someSelector]; // clang issues error here
/external/llvm-project/clang/test/SemaObjC/
Dproperty-dot-receiver.m6 @interface Singleton { interface
8 + (Singleton*) instance;
11 @implementation Singleton implementation
15 + (Singleton*) instance { return 0; }
19 [Singleton.instance someSelector]; // clang issues error here
/external/catch2/include/internal/
Dcatch_singletons.hpp22 class Singleton : SingletonImplT, public ISingleton { class
24 static auto getInternal() -> Singleton* { in getInternal()
25 static Singleton* s_instance = nullptr; in getInternal()
27 s_instance = new Singleton; in getInternal()
/external/guice/extensions/mini/test/com/google/inject/mini/
DMiniGuiceTest.java24 import javax.inject.Singleton;
64 @Singleton
70 @Singleton
120 @Singleton in testSingletons()
129 @Singleton
190 @Singleton in testSingletonBindingAnnotationAndProvider()
205 @Singleton
220 @Singleton in testSingletonInGraph()
298 @Singleton in testSingletonsAreEager()
309 @Singleton
/external/guice/core/test/com/google/inject/
DScopesTest.java165 A.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaBind()
171 @Singleton
180 @Singleton
202 D.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaImplementedBy()
208 @Singleton
221 E.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaProvidedBy()
227 @Singleton
459 @Singleton in testNullScopedAsASingleton()
493 @Singleton
516 @Singleton
[all …]
DCircularDependencyTest.java63 @Singleton in testCircularlyDependentConstructorsWithProviderMethods()
92 .in(Singleton.class); in testCircularlyDependentConstructorsWithProviderInstances()
114 bind(A.class).toProvider(AP.class).in(Singleton.class); in testCircularlyDependentConstructorsWithProviderKeys()
144 @Singleton
176 @Singleton
477 @Singleton
517 @Singleton
541 @Singleton
576 @Singleton in testCircularDependenciesDetectedEarlyWhenDependenciesHaveDifferentTypes()
/external/guice/core/src/com/google/inject/internal/
DScoping.java24 import com.google.inject.Singleton;
97 return visitor.visitScopeAnnotation(Singleton.class);
102 return Singleton.class;
107 return Singleton.class.getName();
112 scopedBindingBuilder.in(Singleton.class);
163 if (scopingAnnotation == Singleton.class || scopingAnnotation == javax.inject.Singleton.class) { in forAnnotation()
/external/dagger2/javatests/dagger/functional/subcomponent/
DParentModule.java23 import javax.inject.Singleton;
39 @Singleton
49 @Singleton
DSingletonType.java20 import javax.inject.Singleton;
22 @Singleton
DParentOfGenericComponent.java20 import javax.inject.Singleton;
23 @Singleton
/external/libchrome/base/memory/
Dsingleton_unittest.cc30 return Singleton<IntSingleton>::get(); in GetInstance()
41 return Singleton<Init5Singleton, Trait>::get(); in GetInstance()
85 return Singleton<CallbackSingletonWithNoLeakTrait, Trait>::get(); in GetInstance()
98 return Singleton<CallbackSingletonWithLeakTrait, Trait>::get(); in GetInstance()
109 return Singleton<CallbackSingletonWithStaticTrait, Trait>::get(); in GetInstance()
129 return Singleton<AlignedTestSingleton, in GetInstance()
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
DBackToTheFutureModule.java20 import com.google.inject.Singleton;
41 bind(Person.class).annotatedWith(Driver.class).to(MartyMcFly.class).in(Singleton.class); in configure()
42 bind(Person.class).annotatedWith(Inventor.class).to(DocBrown.class).in(Singleton.class); in configure()
/external/dagger2/javatests/dagger/functional/
DLazyMaps.java28 import javax.inject.Singleton;
40 @Singleton
65 @Singleton
DScopedSimpleGeneric.java20 import javax.inject.Singleton;
29 @Singleton
DScopedGeneric.java20 import javax.inject.Singleton;
22 @Singleton
/external/tensorflow/tensorflow/compiler/xla/client/
Dclient_library.cc74 /* static */ ClientLibrary& ClientLibrary::Singleton() { in Singleton() function in xla::ClientLibrary
94 ClientLibrary& client_library = Singleton(); in GetOrCreateLocalClient()
131 ClientLibrary& client_library = Singleton(); in GetXlaService()
140 ClientLibrary& client_library = Singleton(); in GetOrCreateCompileOnlyClient()
165 ClientLibrary& client_library = Singleton(); in DestroyLocalInstances()
/external/llvm-project/clang/include/clang/AST/
DDeclContextInternals.h108 if (NamedDecl *Singleton = getAsDecl()) { in remove() local
109 assert(Singleton == D && "list is different singleton"); in remove()
110 (void)Singleton; in remove()
128 } else if (NamedDecl *Singleton = getAsDecl()) { in removeExternalDecls() local
129 if (Singleton->isFromASTFile()) in removeExternalDecls()
/external/clang/include/clang/AST/
DDeclContextInternals.h107 if (NamedDecl *Singleton = getAsDecl()) { in remove() local
108 assert(Singleton == D && "list is different singleton"); in remove()
109 (void)Singleton; in remove()
128 } else if (NamedDecl *Singleton = getAsDecl()) { in removeExternalDecls() local
129 if (Singleton->isFromASTFile()) in removeExternalDecls()
/external/dagger2/java/dagger/hilt/components/
DSingletonComponent.java20 import javax.inject.Singleton;
23 @Singleton
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletDispatchIntegrationTest.java28 import com.google.inject.Singleton;
159 @Singleton
178 @Singleton
197 @Singleton
218 @Singleton
229 @Singleton
DDummyServlet.java18 import com.google.inject.Singleton;
26 @Singleton
/external/dagger2/javatests/dagger/functional/binds/subpackage/
DNotExposed.java20 import javax.inject.Singleton;
22 @Singleton // force a Provider, which will not have a type parameter since this is not public
/external/dagger2/javatests/dagger/functional/builder/
DParentOfGenericComponent.java20 import javax.inject.Singleton;
23 @Singleton
/external/dagger2/examples/maven/coffee/src/main/java/example/dagger/
DHeaterModule.java21 import javax.inject.Singleton;
26 @Singleton

123456789