Home
last modified time | relevance | path

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

123456

/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/protobuf/src/google/protobuf/
Dmessage.cc434 return internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<type> >::get(); in RepeatedFieldAccessor()
448 return internal::Singleton<internal::RepeatedPtrFieldStringAccessor>::get(); in RepeatedFieldAccessor()
453 return internal::Singleton<internal::MapFieldAccessor>::get(); in RepeatedFieldAccessor()
455 return internal::Singleton<internal::RepeatedPtrFieldMessageAccessor>::get(); in RepeatedFieldAccessor()
465 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<int32> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
466 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<uint32> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
467 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<int64> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
468 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<uint64> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
469 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<float> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
470 internal::Singleton<internal::RepeatedFieldPrimitiveAccessor<double> >::ShutDown(); in ShutdownRepeatedFieldAccessor()
[all …]
/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/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/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/protobuf/src/google/protobuf/stubs/
Dsingleton.h41 class Singleton {
44 GoogleOnceInit(&once_, &Singleton<T>::Init); in get()
60 ProtobufOnceType Singleton<T>::once_;
63 T* Singleton<T>::instance_ = NULL;
/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/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/dagger2/compiler/src/it/functional-tests/src/main/java/test/subcomponent/
DParentModule.java20 import javax.inject.Singleton;
34 @Provides(type = SET) @Singleton Object provideSingletonObject() {
42 @Provides @Singleton @BoundAsSingleton UnscopedType provideUnscopedTypeBoundAsSingleton(
DSingletonType.java19 import javax.inject.Singleton;
21 @Singleton
DParentOfGenericComponent.java19 import javax.inject.Singleton;
22 @Singleton
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
DDemoApplicationModule.java22 import javax.inject.Singleton;
41 @Provides @Singleton Application application() { in application()
45 @Provides @Singleton LocationManager provideLocationManager() { in provideLocationManager()
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
DAndroidModule.java22 import javax.inject.Singleton;
42 @Provides @Singleton @ForApplication Context provideApplicationContext() { in provideApplicationContext()
46 @Provides @Singleton LocationManager provideLocationManager() { in provideLocationManager()
/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/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/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/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
DVarargsServletDispatchIntegrationTest.java27 import com.google.inject.Singleton;
191 @Singleton
210 @Singleton
229 @Singleton
DDummyServlet.java18 import com.google.inject.Singleton;
26 @Singleton
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/
DSingletonGenericComponent.java4 import javax.inject.Singleton;
6 @Singleton
DScopedGeneric.java4 import javax.inject.Singleton;
6 @Singleton
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/builder/
DParentOfGenericComponent.java19 import javax.inject.Singleton;
22 @Singleton
/external/dagger2/examples/simple/src/main/java/coffee/
DDripCoffeeModule.java5 import javax.inject.Singleton;
9 @Provides @Singleton Heater provideHeater() { in provideHeater()

123456