/external/guice/extensions/persist/test/com/google/inject/persist/jpa/ |
ManagedLocalTransactionsAcrossRequestTest.java | 22 import com.google.inject.name.Named; 227 public JpaTestEntity find(@Named("text") String text) {
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
ScopeRequestIntegrationTest.java | 29 import com.google.inject.name.Named; 62 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); 95 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); 113 bindConstant().annotatedWith(Names.named(SomeObject.INVALID)).to(SHOULDNEVERBESEEN); 138 public SomeObject(@Named(INVALID) String value) {
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
CheckedProviderMethodsModuleTest.java | 28 import com.google.inject.name.Named; 118 @CheckedProvides(RpcProvider.class) @Named("fruit") @Exposed 181 .getInstance(Key.get(rpcProviderOfString, Names.named("fruit")));
|
/prebuilts/go/darwin-x86/src/go/types/ |
methodset.go | 75 named, _ := typ.(*Named) 80 if named != nil { 81 utyp = named.underlying 89 // If typ is not a named type, insert a nil type instead. 90 current := []embeddedType{{named, nil, isPtr, false}} 92 // named types that we have seen already, allocated lazily 93 var seen map[*Named]bool 105 // In this case, we don't have a named type and 117 seen = make(map[*Named]bool [all...] |
lookup.go | 18 // 1) the list of declared methods of a named type; or 36 // Methods cannot be associated to a named pointer type 40 // Thus, if we have a named pointer type, proceed with the underlying 43 if t, _ := T.(*Named); t != nil { 56 // TODO(gri) The named type consolidation and seen maps below must be 57 // indexed by unique keys for a given type. Verify that named 70 named, _ := typ.(*Named) 75 if named != nil { 76 utyp = named.underlyin [all...] |
typexpr.go | 21 func (check *Checker) ident(x *operand, e *ast.Ident, def *Named, path []*TypeName) { 84 // (it's ok to iterate forward because each named type appears at most once in path) 128 // If def != nil, e is the type specification for the named type def, declared 130 // any components of e are type-checked. Path contains the path of named types 133 func (check *Checker) typExpr(e ast.Expr, def *Named, path []*TypeName) (T Type) { 183 if T, _ := t.(*Named); T != nil { 221 func (check *Checker) typExprInternal(e ast.Expr, def *Named, path []*TypeName) Type { 407 var named, anonymous bool 423 // named parameter 433 named = tru [all...] |
decl.go | 42 func (check *Checker) objDecl(obj Object, def *Named, path []*TypeName) { 203 // forward chains of named types. Such chains only exist while named types 207 n, _ := typ.(*Named) 216 func (n *Named) setUnderlying(typ Type) { 222 func (check *Checker) typeDecl(obj *TypeName, typ ast.Expr, def *Named, path []*TypeName) { 228 named := &Named{obj: obj} 229 def.setUnderlying(named) 230 obj.typ = named // make sure recursive type declarations terminat [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
methodset.go | 75 named, _ := typ.(*Named) 80 if named != nil { 81 utyp = named.underlying 89 // If typ is not a named type, insert a nil type instead. 90 current := []embeddedType{{named, nil, isPtr, false}} 92 // named types that we have seen already, allocated lazily 93 var seen map[*Named]bool 105 // In this case, we don't have a named type and 117 seen = make(map[*Named]bool [all...] |
lookup.go | 18 // 1) the list of declared methods of a named type; or 36 // Methods cannot be associated to a named pointer type 40 // Thus, if we have a named pointer type, proceed with the underlying 43 if t, _ := T.(*Named); t != nil { 56 // TODO(gri) The named type consolidation and seen maps below must be 57 // indexed by unique keys for a given type. Verify that named 70 named, _ := typ.(*Named) 75 if named != nil { 76 utyp = named.underlyin [all...] |
typexpr.go | 21 func (check *Checker) ident(x *operand, e *ast.Ident, def *Named, path []*TypeName) { 84 // (it's ok to iterate forward because each named type appears at most once in path) 128 // If def != nil, e is the type specification for the named type def, declared 130 // any components of e are type-checked. Path contains the path of named types 133 func (check *Checker) typExpr(e ast.Expr, def *Named, path []*TypeName) (T Type) { 183 if T, _ := t.(*Named); T != nil { 221 func (check *Checker) typExprInternal(e ast.Expr, def *Named, path []*TypeName) Type { 407 var named, anonymous bool 423 // named parameter 433 named = tru [all...] |
decl.go | 42 func (check *Checker) objDecl(obj Object, def *Named, path []*TypeName) { 203 // forward chains of named types. Such chains only exist while named types 207 n, _ := typ.(*Named) 216 func (n *Named) setUnderlying(typ Type) { 222 func (check *Checker) typeDecl(obj *TypeName, typ ast.Expr, def *Named, path []*TypeName) { 228 named := &Named{obj: obj} 229 def.setUnderlying(named) 230 obj.typ = named // make sure recursive type declarations terminat [all...] |
/external/guice/core/test/com/google/inject/ |
BinderTestSuite.java | 20 import static com.google.inject.name.Names.named; 29 import com.google.inject.name.Named; 61 .name("bind PlainA named apple") 64 bind(PlainA.class).annotatedWith(named("apple")); 68 PlainA.class.getName(), named("apple")) 99 .name("no binding, AWithProvidedBy named apple") 100 .key(Key.get(AWithProvidedBy.class, named("apple")), 103 AWithProvidedBy.class.getName(), named("apple")) 107 .name("no binding, AWithImplementedBy named apple") 108 .key(Key.get(AWithImplementedBy.class, named("apple")) [all...] |
BinderTest.java | 27 import com.google.inject.name.Named; 98 bind(Date.class).annotatedWith(Names.named("date")); 105 + Named.class.getName() + "(value=date) was bound."; 183 bindConstant().annotatedWith(Names.named("nullOne")).to(none); 184 bind(String.class).annotatedWith(Names.named("nullTwo")).toInstance(none); 207 bind(Integer.class).annotatedWith(Names.named("a")).toString()); 210 bindConstant().annotatedWith(Names.named("b")).toString()); 229 assertNotSerializable(bind(Integer.class).annotatedWith(Names.named("a"))); 231 assertNotSerializable(bindConstant().annotatedWith(Names.named("b"))); 484 final Named red = Names.named("red") [all...] |
/art/test/968-default-partial-compile-gen/util-src/ |
generate_java.py | 39 class JavaConverter(mixins.DumpMixin, mixins.Named, mixins.JavaFileMixin):
|
/art/test/971-iface-super/util-src/ |
generate_smali.py | 44 class MainClass(mixins.DumpMixin, mixins.Named, mixins.SmaliFileMixin): 129 class Func(mixins.Named, mixins.NameComparableMixin): 225 class TestClass(mixins.DumpMixin, mixins.Named, mixins.NameComparableMixin, mixins.SmaliFileMixin): 434 class TestInterface(mixins.DumpMixin, mixins.Named, mixins.NameComparableMixin, mixins.SmaliFileMixin):
|
/external/guice/core/test/com/googlecode/guice/ |
Jsr330Test.java | 44 import javax.inject.Named; 82 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b); 85 bind(E.class).annotatedWith(Names.named("jesse")).toInstance(e); 100 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b); 245 bind(B.class).annotatedWith(Names.named("1")).toProvider(BProvider.class); 246 bind(B.class).annotatedWith(Names.named("2")).toProvider(Key.get(BProvider.class)); 247 bind(B.class).annotatedWith(Names.named("3")).toProvider(TypeLiteral.get(BProvider.class)); 252 injector.getInstance(Key.get(B.class, Names.named("1"))); 253 injector.getInstance(Key.get(B.class, Names.named("2"))); 254 injector.getInstance(Key.get(B.class, Names.named("3"))) [all...] |
/prebuilts/gradle-plugin/com/android/tools/build/gradle-api/3.0.0-beta6/ |
gradle-api-3.0.0-beta6.jar | |
/prebuilts/gradle-plugin/com/android/tools/build/gradle-api/3.0.0-beta7/ |
gradle-api-3.0.0-beta7.jar | |
/external/clang/unittests/ASTMatchers/ |
ASTMatchersTest.h | 329 if (const NamedDecl *Named = Nodes->getNodeAs<NamedDecl>(Id)) { 330 Name = Named->getNameAsString();
|
/prebuilts/go/darwin-x86/src/go/internal/gccgoimporter/ |
parser_test.go | 61 nt := typ.(*types.Named)
|
/prebuilts/go/linux-x86/src/go/internal/gccgoimporter/ |
parser_test.go | 61 nt := typ.(*types.Named)
|
/external/guice/core/test/com/google/inject/util/ |
OverrideModuleTest.java | 22 import static com.google.inject.name.Names.named; 44 import com.google.inject.name.Named; 64 private static final Key<String> key2 = Key.get(String.class, named("2")); 65 private static final Key<String> key3 = Key.get(String.class, named("3")); 94 bindConstant().annotatedWith(named("Test")).to("A"); 100 bindConstant().annotatedWith(named("Test")).to("B"); 105 assertEquals("B", injector.getInstance(Key.get(String.class, named("Test")))); 356 bind(String.class).annotatedWith(named("original")).toInstance(value.get()); 360 bind(String.class).annotatedWith(named("override")).toInstance(value.get()); 367 assertEquals("B", injector.getInstance(Key.get(String.class, named("original")))) [all...] |
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/ |
BoundFieldModuleTest.java | 31 import com.google.inject.name.Named; 220 @Named(name1) 224 @Named(name2) 233 injector.getInstance(Key.get(Integer.class, Names.named(name1)))); 236 injector.getInstance(Key.get(Integer.class, Names.named(name2)))); 246 @Named(name) 256 injector.getInstance(Key.get(Integer.class, Names.named(name)))); 308 @Named("a") 326 @Named("foo") 333 assertEquals(testValue, injector.getInstance(Key.get(Number.class, Names.named("foo")))) [all...] |
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
FactoryProvider2Test.java | 35 import com.google.inject.name.Named; 74 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); 75 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); 120 @Named("horsePower") int horsePower, 121 @Named("modelYear") int modelYear, 693 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); 694 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); 818 "Only @Assisted is allowed for factory parameters, but found @" + Named.class.getName()); 823 Car create(@Named("seats") int seats, double engineSize); 848 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250) [all...] |
FactoryProviderTest.java | 34 import com.google.inject.name.Named; 94 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); 95 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); 139 @Named("horsePower")int horsePower, 140 @Named("modelYear")int modelYear, 607 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); 608 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); 641 public MustangInsurance(@Named("lowLimit") double limit, @Assisted Mustang car, 657 public CamaroInsurance(@Named("highLimit") double limit, @Assisted Camaro car, 680 bind(Double.class).annotatedWith(Names.named("lowLimit")).toInstance(50000.0d) [all...] |