/external/guice/core/test/com/google/inject/ |
PrivateModuleTest.java | 22 import static com.google.inject.name.Names.named; 25 import com.google.inject.name.Named; 46 bind(String.class).annotatedWith(named("a")).toInstance("public"); 50 bind(String.class).annotatedWith(named("b")).toInstance("i"); 52 bind(AB.class).annotatedWith(named("one")).to(AB.class); 53 expose(AB.class).annotatedWith(named("one")); 59 bind(String.class).annotatedWith(named("b")).toInstance("ii"); 61 bind(AB.class).annotatedWith(named("two")).to(AB.class); 62 expose(AB.class).annotatedWith(named("two")); 68 AB ab1 = injector.getInstance(Key.get(AB.class, named("one"))) [all...] |
BoundInstanceInjectionTest.java | 24 import com.google.inject.name.Named; 86 Named.class.getName() + " and " + Another.class.getName()); 101 Named.class.getName() + " and " + Another.class.getName()); 106 @Inject void doublyAnnotated(@Named("a") @Another String unused) {} 110 @Inject void doublyAnnotated(@Named("a") @Another String s) {}
|
ErrorHandlingTest.java | 21 import com.google.inject.name.Named; 72 @Inject @Named("missing") 86 @Inject void setNumbers(@Named("numbers") List<Integer> numbers) {} 88 @Inject void bar(@Named("foo") String s) {} 126 bind(String.class).annotatedWith(Names.named("foo")).in(Named.class);
|
ProviderInjectionTest.java | 19 import static com.google.inject.name.Names.named; 21 import com.google.inject.name.Named; 123 bind(Count.class).annotatedWith(named("a")).toInstance(new Count(0) { 124 @Inject void initialize(@Named("b") Count bCount) { 130 bind(Count.class).annotatedWith(named("b")).toProvider(new Provider<Count>() { 132 @Inject void initialize(@Named("c") Count cCount) { 141 bind(Count.class).annotatedWith(named("c")).toInstance(new Count(0) { 142 @Inject @Named("d") Count dCount; 143 @Inject void initialize(@Named("e") Count eCount) { 151 bind(Count.class).annotatedWith(named("d")).toInstance(new Count(8)) [all...] |
/external/llvm/lib/Transforms/IPO/ |
ExtractGV.cpp | 58 SetVector<GlobalValue *> Named; 68 : ModulePass(ID), Named(GVs.begin(), GVs.end()), deleteStuff(deleteS) {} 80 // referenced by the Named set, and which GlobalValues in the rest of 89 deleteStuff == (bool)Named.count(&*I) && !I->isDeclaration(); 109 deleteStuff == (bool)Named.count(&F) && !F.isDeclaration(); 130 bool Delete = deleteStuff == (bool)Named.count(&*CurI);
|
/external/guice/core/test/com/google/inject/spi/ |
ModuleAnnotatedMethodScannerTest.java | 20 import static com.google.inject.name.Names.named; 37 import com.google.inject.name.Named; 55 @TestProvides @Named("foo") String foo() { 59 @TestProvides @Named("foo2") String foo2() { 65 // assert no bindings named "foo" or "foo2" exist -- they were munged. 69 Binding<String> fooBinding = injector.getBinding(Key.get(String.class, named("foo-munged"))); 70 Binding<String> foo2Binding = injector.getBinding(Key.get(String.class, named("foo2-munged"))); 84 @TestProvides @Named("foo") String foo() { return "foo"; } 98 @TestProvides @Named("foo") String foo() { return "foo"; } 161 Names.named(((Named) key.getAnnotation()).value() + "-munged")) [all...] |
ProviderMethodsTest.java | 45 import com.google.inject.name.Named; 205 @Provides @Named("A") @Blue 213 "more than one annotation annotated with @BindingAnnotation:", "Named", "Blue", 226 assertEquals("A", injector.getInstance(Key.get(String.class, Names.named("First")))); 227 assertEquals("B", injector.getInstance(Key.get(String.class, Names.named("Second")))); 231 assertEquals(1, injector.getInstance(Key.get(Integer.class, Names.named("First"))).intValue()); 232 assertEquals(2, injector.getInstance(Key.get(Integer.class, Names.named("Second"))).intValue()); 248 @Named("First") @Provides T provideFirst() { 252 @Named("Second") @Provides T provideSecond() { 256 @Provides Set<T> provideBoth(@Named("First") T first, @Named("Second") T second) [all...] |
/external/llvm/lib/Target/AMDGPU/ |
SIInsertWaits.cpp | 41 } Named; 181 return WaitedOn.Named.LGKM != LastIssued.Named.LGKM; 188 Result.Named.VM = !!(TSFlags & SIInstrFlags::VM_CNT); 191 Result.Named.EXP = !!(TSFlags & SIInstrFlags::EXP_CNT && 206 Result.Named.LGKM = Size > 4 ? 2 : 1; 211 Result.Named.LGKM = 1; 215 Result.Named.LGKM = 1; 219 Result.Named.LGKM = 0; 318 if (LastOpcodeType == VMEM && Increment.Named.VM) [all...] |
/external/guice/core/test/com/google/inject/name/ |
NamesTest.java | 40 @Named("foo") private String foo; 41 private Named namedFoo; 45 namedFoo = getClass().getDeclaredField("foo").getAnnotation(Named.class); 49 Named actual = Names.named("foo"); 55 assertEqualWhenReserialized(Names.named("foo")); 69 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); 70 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); 83 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); 84 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))) [all...] |
/external/spirv-llvm/lib/SPIRV/ |
SPIRVMDWalker.h | 56 NamedMDWrapper(NamedMDNode *Named, SPIRVMDWalker& WW) 57 :NMD(Named), W(WW), I(0), Q(true){ 58 E = Named ? Named->getNumOperands() : 0;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Color_ColorLongTest.java | 20 import android.graphics.ColorSpace.Named; 48 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 56 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 64 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 72 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 80 ColorSpace srgb = ColorSpace.get(Named.SRGB); 81 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 94 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 105 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3); 116 ColorSpace p3 = ColorSpace.get(Named.DISPLAY_P3) [all...] |
BitmapRegionDecoderTest.java | 80 private static final ColorSpace.Named[][] ASSET_COLOR_SPACES = { 83 ColorSpace.Named.LINEAR_EXTENDED_SRGB, 84 ColorSpace.Named.DISPLAY_P3, 85 ColorSpace.Named.ADOBE_RGB, 86 ColorSpace.Named.SRGB 90 ColorSpace.Named.SRGB, 91 ColorSpace.Named.SRGB, 92 ColorSpace.Named.SRGB, 93 ColorSpace.Named.SRGB 494 false, ColorSpace.get(ColorSpace.Named.ADOBE_RGB)) [all...] |
/external/dagger2/compiler/src/it/functional-tests/src/main/java/test/ |
MultibindingComponent.java | 23 import javax.inject.Named; 52 @Named("complexQualifier") Set<String> complexQualifierStringSet();
|
MultibindingModule.java | 29 import javax.inject.Named; 177 @Named("complexQualifier")
|
/external/guice/core/test/com/googlecode/guice/ |
GuiceTck.java | 39 import javax.inject.Named; 55 @Provides @Named("spare") Tire provideSpareTire(SpareTire spare) {
|
/external/guice/extensions/mini/test/com/google/inject/mini/ |
MiniGuiceTest.java | 26 import javax.inject.Named; 127 @Provides @Named("one") A getOne() { 130 @Provides @Named("two") A getTwo() { 142 @Inject @Named("one") A aOne; 143 @Inject @Named("two") A aTwo; 151 @Provides @Singleton @Named("one") F provideF(Provider<A> aProvider) { 166 @Inject @Named("one") F f; 208 @Inject @Named("a") A a;
|
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/ |
JpaFinderProxy.java | 23 import com.google.inject.name.Named; 65 //execute as query (named params or otherwise) 118 } else if (annotation instanceof Named) { 119 Named named = (Named) annotation; local 120 jpaQuery.setParameter(named.value(), argument); 121 } else if (annotation instanceof javax.inject.Named) { 122 javax.inject.Named named = (javax.inject.Named) annotation local [all...] |
/art/test/utils/python/testgen/ |
mixins.py | 25 class Named(metaclass=abc.ABCMeta): 71 Named.register(FExt) 115 Named.register(NameComparableMixin)
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
ProvidesIntoTest.java | 20 import static com.google.inject.name.Names.named; 33 import com.google.inject.name.Named; 54 @Named("foo") 58 @Named("foo") 62 @Named("bar") 66 @Named("bar") 77 @Named("foo") 82 @Named("foo") 87 @Named("bar") 92 @Named("bar" [all...] |
/prebuilts/go/darwin-x86/src/go/types/ |
type.go | 227 // as a *Named or an *Interface. Due to embedding, an interface may 243 embeddeds []*Named // ordered list of explicitly embedded types 249 func NewInterface(methods []*Func, embeddeds []*Named) *Interface { 258 // TODO(gri) Ideally, we should use a named type here instead of 285 func (t *Interface) Embedded(i int) *Named { return t.embeddeds[i] } 377 // A Named represents a named type. 378 type Named struct { 380 underlying Type // possibly a *Named during setup; never a *Named once set up completel [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
type.go | 227 // as a *Named or an *Interface. Due to embedding, an interface may 243 embeddeds []*Named // ordered list of explicitly embedded types 249 func NewInterface(methods []*Func, embeddeds []*Named) *Interface { 258 // TODO(gri) Ideally, we should use a named type here instead of 285 func (t *Interface) Embedded(i int) *Named { return t.embeddeds[i] } 377 // A Named represents a named type. 378 type Named struct { 380 underlying Type // possibly a *Named during setup; never a *Named once set up completel [all...] |
/external/pdfium/core/fpdfdoc/ |
cpdf_action.h | 29 Named,
|
/external/jsr330/tck/org/atinject/tck/auto/ |
Convertible.java | 25 import javax.inject.Named; 52 @Inject @Named("spare") Tire fieldSpareTire; 56 @Inject @Named("spare") Provider<Tire> fieldSpareTireProvider = nullProvider(); 70 @Inject @Named("spare") static Tire staticFieldSpareTire; 74 @Inject @Named("spare") static Provider<Tire> staticFieldSpareTireProvider = nullProvider(); 89 @Named("spare") Tire spareTire, 93 @Named("spare") Provider<Tire> spareTireProvider) { 125 @Named("spare") Tire spareTire, 129 @Named("spare") Provider<Tire> spareTireProvider) { 146 @Named("spare") Tire spareTire [all...] |
/art/test/648-many-direct-methods/util-src/ |
generate_java.py | 36 class MainClass(mixins.DumpMixin, mixins.Named, mixins.JavaFileMixin): 86 class TestMethod(mixins.Named, mixins.NameComparableMixin):
|
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
ExtensionSpiTest.java | 19 import static com.google.inject.name.Names.named; 33 import com.google.inject.name.Named; 97 ImmutableList.<Key<?>>of(Key.get(String.class, named("catName2")))); 104 Key.get(String.class, named("catName1")), 105 Key.get(String.class, named("petName")), 106 Key.get(Integer.class, named("age"))); 136 @Named("SimpleCat") Animal createASimpleCatAsAnimal(String owner); 160 @Inject public ExplodingCat(@Named("catName1") String name, @Assisted String owner, 161 @Named("age") Integer age, @Named("petName") String petName) { [all...] |