/external/guice/extensions/spring/test/com/google/inject/spring/ |
D | SpringIntegrationTest.java | 38 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/ |
D | property-dot-receiver.m | 6 @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/ |
D | message.cc | 434 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/ |
D | MiniGuiceTest.java | 24 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/ |
D | catch_singletons.hpp | 22 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/ |
D | ScopesTest.java | 165 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 …]
|
D | CircularDependencyTest.java | 63 @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/ |
D | singleton.h | 41 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/ |
D | Scoping.java | 24 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/ |
D | singleton_unittest.cc | 30 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/ |
D | ParentModule.java | 20 import javax.inject.Singleton; 34 @Provides(type = SET) @Singleton Object provideSingletonObject() { 42 @Provides @Singleton @BoundAsSingleton UnscopedType provideUnscopedTypeBoundAsSingleton(
|
D | SingletonType.java | 19 import javax.inject.Singleton; 21 @Singleton
|
D | ParentOfGenericComponent.java | 19 import javax.inject.Singleton; 22 @Singleton
|
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ |
D | DemoApplicationModule.java | 22 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/ |
D | AndroidModule.java | 22 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/ |
D | client_library.cc | 74 /* 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/ |
D | BackToTheFutureModule.java | 20 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/ |
D | DeclContextInternals.h | 107 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/ |
D | ServletDispatchIntegrationTest.java | 28 import com.google.inject.Singleton; 159 @Singleton 178 @Singleton 197 @Singleton 218 @Singleton 229 @Singleton
|
D | VarargsServletDispatchIntegrationTest.java | 27 import com.google.inject.Singleton; 191 @Singleton 210 @Singleton 229 @Singleton
|
D | DummyServlet.java | 18 import com.google.inject.Singleton; 26 @Singleton
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
D | SingletonGenericComponent.java | 4 import javax.inject.Singleton; 6 @Singleton
|
D | ScopedGeneric.java | 4 import javax.inject.Singleton; 6 @Singleton
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/builder/ |
D | ParentOfGenericComponent.java | 19 import javax.inject.Singleton; 22 @Singleton
|
/external/dagger2/examples/simple/src/main/java/coffee/ |
D | DripCoffeeModule.java | 5 import javax.inject.Singleton; 9 @Provides @Singleton Heater provideHeater() { in provideHeater()
|