/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
OptionalBinderTest.java | 25 import static com.google.inject.name.Names.named; 49 import com.google.inject.name.Named; 555 OptionalBinder.newOptionalBinder(binder(), Key.get(String.class, Names.named("foo"))); 561 OptionalBinder.newOptionalBinder(binder(), Key.get(String.class, Names.named("foo"))) 568 OptionalBinder.newOptionalBinder(binder(), Key.get(String.class, Names.named("foo"))) 574 assertEquals("b", injector.getInstance(Key.get(String.class, Names.named("foo")))); 576 Optional<String> optional = injector.getInstance(Key.get(optionalOfString, Names.named("foo"))); 581 injector.getInstance(Key.get(optionalOfProviderString, Names.named("foo"))); 586 injector.getInstance(Key.get(optionalOfJavaxProviderString, Names.named("foo"))); 590 assertOptionalVisitor(Key.get(String.class, Names.named("foo")) [all...] |
MultibinderTest.java | 26 import static com.google.inject.name.Names.named; 52 import com.google.inject.name.Named; 134 = Multibinder.newSetBinder(binder(), String.class, Names.named("abc")); 138 multibinder = Multibinder.newSetBinder(binder(), String.class, Names.named("abc")); 144 Key<Set<String>> setKey = Key.get(setOfString, Names.named("abc")); 178 = Multibinder.newSetBinder(binder(), String.class, named("abc")); 184 = Multibinder.newSetBinder(binder(), String.class, named("de")); 191 Key<Set<String>> abcSetKey = Key.get(setOfString, named("abc")); 193 Key<Set<String>> deSetKey = Key.get(setOfString, named("de")); 510 multibinder.addBinding().to(Key.get(String.class, Names.named("b"))) [all...] |
/prebuilts/go/darwin-x86/src/cmd/link/internal/ld/ |
dwarf_test.go | 346 mains := ex.Named("main.main") 517 // DIEs such as params/variables. For example, asking for all DIEs named 519 func (ex *examiner) Named(name string) []*dwarf.Entry { 583 mains := ex.Named("main.main")
|
/prebuilts/go/linux-x86/src/cmd/link/internal/ld/ |
dwarf_test.go | 346 mains := ex.Named("main.main") 517 // DIEs such as params/variables. For example, asking for all DIEs named 519 func (ex *examiner) Named(name string) []*dwarf.Entry { 583 mains := ex.Named("main.main")
|
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4393122/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4479392/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4579689/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4630689/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4639204/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/darwin-x86/clang-4691093/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4393122/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4479392/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4579689/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4630689/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4639204/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/clang/host/linux-x86/clang-4691093/include/clang/AST/ |
DeclNodes.inc | 92 #ifndef NAMED 93 # define NAMED(Type, Base) DECL(Type, Base) 95 ABSTRACT_DECL(NAMED(Named, Decl)) 97 # define LABEL(Type, Base) NAMED(Type, Base) 103 # define NAMESPACE(Type, Base) NAMED(Type, Base) 109 # define NAMESPACEALIAS(Type, Base) NAMED(Type, Base) 115 # define OBJCCOMPATIBLEALIAS(Type, Base) NAMED(Type, Base) 121 # define OBJCCONTAINER(Type, Base) NAMED(Type, Base) 167 # define OBJCMETHOD(Type, Base) NAMED(Type, Base [all...] |
/prebuilts/go/darwin-x86/src/encoding/xml/ |
marshal_test.go | 194 Named int `xml:"int,attr"` 205 Named int `xml:"int,attr"` 215 Named int `xml:"int,attr,omitempty"` 226 Named int `xml:"int,omitempty"` 598 // Check that []byte works, including named []byte types. 954 Named: 9, 991 Named: 9, 1019 Named: 9, 1053 Named: 9, [all...] |
/prebuilts/go/darwin-x86/src/go/internal/gcimporter/ |
gcimporter_test.go | 262 named := tname.Type().(*types.Named) 263 for i := 0; i < named.NumMethods(); i++ { 264 m := named.Method(i) 358 typ, ok := obj.Type().(*types.Named) 360 t.Fatalf("go/types.Object type is %v; wanted named type", typ)
|
bimport.go | 408 // associate new named type with obj if it doesn't exist yet 412 t := obj.Type().(*types.Named) 503 // such cycle must contain a named type which would have been 510 var embeddeds []*types.Named 513 embeddeds = append(embeddeds, p.typ(parent).(*types.Named)) 583 case *types.Basic: // basic types are named types 586 case *types.Named: 589 errorf("named base type expected") 656 named := true 659 named = fals [all...] |
/prebuilts/go/linux-x86/src/encoding/xml/ |
marshal_test.go | 194 Named int `xml:"int,attr"` 205 Named int `xml:"int,attr"` 215 Named int `xml:"int,attr,omitempty"` 226 Named int `xml:"int,omitempty"` 598 // Check that []byte works, including named []byte types. 954 Named: 9, 991 Named: 9, 1019 Named: 9, 1053 Named: 9, [all...] |
/prebuilts/go/linux-x86/src/go/internal/gcimporter/ |
gcimporter_test.go | 262 named := tname.Type().(*types.Named) 263 for i := 0; i < named.NumMethods(); i++ { 264 m := named.Method(i) 358 typ, ok := obj.Type().(*types.Named) 360 t.Fatalf("go/types.Object type is %v; wanted named type", typ)
|
/external/guice/core/test/com/google/inject/ |
ProvisionListenerTest.java | 21 import static com.google.inject.name.Names.named; 29 import com.google.inject.name.Named; 307 bind(Foo.class).annotatedWith(named("pk")).toProvider(FooP.class); 309 bind(Foo.class).annotatedWith(named("cxtr")).toConstructor(Foo.class.getDeclaredConstructor()); 315 bindConstant().annotatedWith(named("constant")).to("MyConstant"); 318 @Provides @Named("pi") Foo provideFooBar() { 325 ImmutableSet.of(Key.get(Interface.class), Key.get(String.class, named("constant"))), 333 assertNotNull(injector.getInstance(Key.get(Foo.class, named("pk")))); 334 assertEquals(of(Key.get(FooP.class), Key.get(Foo.class, named("pk"))), capturer.getAndClear()); 335 assertNotNull(injector.getInstance(Key.get(Foo.class, named("pk")))) [all...] |
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
ThrowingProviderTest.java | 35 import com.google.inject.name.Named; 223 .annotatedWith(Names.named("a")) 244 @Named("a") 263 injector.getInstance(Key.get(remoteProviderOfString, Names.named("a"))).get());
|