/external/guice/extensions/spring/test/com/google/inject/spring/ |
D | SpringIntegrationTest.java | 44 = new RootBeanDefinition(Singleton.class); in testBindFromSpring() 54 bind(Singleton.class) in testBindFromSpring() 55 .toProvider(fromSpring(Singleton.class, "singleton")); in testBindFromSpring() 61 assertNotNull(injector.getInstance(Singleton.class)); in testBindFromSpring() 62 assertSame(injector.getInstance(Singleton.class), in testBindFromSpring() 63 injector.getInstance(Singleton.class)); in testBindFromSpring() 75 = new RootBeanDefinition(Singleton.class); in testBindAll() 88 Key<Singleton> singletonKey in testBindAll() 89 = Key.get(Singleton.class, Names.named("singleton")); in testBindAll() 102 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 | 28 import javax.inject.Singleton; 58 @Singleton 63 @Singleton 103 @Provides @Singleton F provideK() { in testSingletons() 111 @Singleton 151 @Provides @Singleton @Named("one") F provideF(Provider<A> aProvider) { in testSingletonBindingAnnotationAndProvider() 164 @Singleton 172 @Provides @Singleton F provideF() { in testSingletonInGraph() 238 @Provides @Singleton S provideS() { in testSingletonsAreEager() 248 @Singleton
|
/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/test/com/google/inject/ |
D | ScopesTest.java | 159 A.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaBind() 165 @Singleton 173 @Singleton 191 D.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaImplementedBy() 197 @Singleton @ImplementedBy(DImpl.class) 207 E.class.getName() + " is annotated with " + Singleton.class.getName(), in testScopingAnnotationsOnAbstractTypeViaProvidedBy() 213 @Singleton @ProvidedBy(EProvider.class) 406 @Provides @Singleton String provideString() { in testNullScopedAsASingleton() 433 @Singleton public static class Injected<T> implements In<T> {} 453 @Singleton [all …]
|
D | CircularDependencyTest.java | 62 @Provides @Singleton A a(B b) { return new AImpl(b); } in testCircularlyDependentConstructorsWithProviderMethods() 77 }).in(Singleton.class); in testCircularlyDependentConstructorsWithProviderInstances() 93 bind(A.class).toProvider(AP.class).in(Singleton.class); in testCircularlyDependentConstructorsWithProviderKeys() 123 @Singleton 147 @Singleton 374 @Singleton 410 @Singleton 430 @Singleton 459 @Provides @Singleton Integer provideInteger(List list) { in testCircularDependenciesDetectedEarlyWhenDependenciesHaveDifferentTypes()
|
D | EagerSingletonTest.java | 70 @Singleton 80 @Singleton 86 @Singleton
|
/external/guice/core/src/com/google/inject/internal/ |
D | Scoping.java | 24 import com.google.inject.Singleton; 64 return visitor.visitScopeAnnotation(Singleton.class); 68 return Singleton.class; 72 return Singleton.class.getName(); 76 scopedBindingBuilder.in(Singleton.class); 117 if (scopingAnnotation == Singleton.class in forAnnotation() 118 || scopingAnnotation == javax.inject.Singleton.class) { in forAnnotation()
|
/external/libchrome/base/memory/ |
D | singleton_unittest.cc | 22 return Singleton<IntSingleton>::get(); in GetInstance() 33 return Singleton<Init5Singleton, Trait>::get(); in GetInstance() 77 return Singleton<CallbackSingletonWithNoLeakTrait, Trait>::get(); in GetInstance() 90 return Singleton<CallbackSingletonWithLeakTrait, Trait>::get(); in GetInstance() 101 return Singleton<CallbackSingletonWithStaticTrait, Trait>::get(); in GetInstance() 121 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 | 63 /* static */ ClientLibrary& ClientLibrary::Singleton() { in Singleton() function in xla::ClientLibrary 82 ClientLibrary& client_library = Singleton(); in GetOrCreateLocalClient() 119 ClientLibrary& client_library = Singleton(); in GetXlaService() 129 ClientLibrary& client_library = Singleton(); in GetOrCreateCompileOnlyClient() 153 ClientLibrary& client_library = Singleton(); in DestroyLocalInstances()
|
/external/valgrind/drd/tests/ |
D | local_static.cpp | 7 class Singleton class 10 Singleton() in Singleton() function in Singleton 19 static Singleton singleton; in thread_func()
|
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/ |
D | BackToTheFutureModule.java | 20 import com.google.inject.Singleton; 42 bind(Person.class).annotatedWith(Driver.class).to(MartyMcFly.class).in(Singleton.class); in configure() 43 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; 155 @Singleton 171 @Singleton 187 @Singleton 205 @Singleton 216 @Singleton
|
D | VarargsServletDispatchIntegrationTest.java | 27 import com.google.inject.Singleton; 186 @Singleton 202 @Singleton 218 @Singleton
|
D | DummyServlet.java | 18 import com.google.inject.Singleton; 27 @Singleton
|
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
D | SingletonGenericComponent.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()
|