/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...] |
InjectionPointTest.java | 23 import static com.google.inject.name.Names.named; 33 import com.google.inject.name.Named; 52 public @Inject @Named("a") String foo; 53 public @Inject void bar(@Named("b") String param) {} 56 @Inject public Constructable(@Named("c") String param) {} 71 assertEquals("Key[type=java.lang.String, annotation=@com.google.inject.name.Named(value=a)]@" 75 assertEquals(Key.get(String.class, named("a")), dependency.getKey()); 94 assertEquals("Key[type=java.lang.String, annotation=@com.google.inject.name.Named(value=b)]@" 98 assertEquals(Key.get(String.class, named("b")), dependency.getKey()); 118 assertEquals("Key[type=java.lang.String, annotation=@com.google.inject.name.Named(value=c)]@ [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/ |
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/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;
|
/cts/tests/tests/view/src/android/view/cts/ |
TextureViewTest.java | 137 testGetBitmap(EGL_GL_COLORSPACE_DISPLAY_P3_EXT, ColorSpace.Named.DISPLAY_P3, false, 138 new FP16Compare(ColorSpace.Named.EXTENDED_SRGB)); 143 testGetBitmap(EGL_GL_COLORSPACE_DISPLAY_P3_EXT, ColorSpace.Named.DISPLAY_P3, true, 144 new FP16Compare(ColorSpace.Named.EXTENDED_SRGB)); 149 testGetBitmap(EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT, ColorSpace.Named.LINEAR_EXTENDED_SRGB, 150 true, new FP16Compare(ColorSpace.Named.EXTENDED_SRGB)); 155 testGetBitmap(EGL_GL_COLORSPACE_SRGB_KHR, ColorSpace.Named.SRGB, true, 161 testGetBitmap(EGL_GL_COLORSPACE_SRGB_KHR, ColorSpace.Named.SRGB, true, 168 void verify(float[] srcColor, ColorSpace.Named srcColorSpace, Bitmap dstBitmap); 174 FP16Compare(ColorSpace.Named namedCS) [all...] |
/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...] |
/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/flatbuffers/include/flatbuffers/ |
minireflect.h | 315 template<typename T> void Named(T x, const char *name) { 319 void UType(uint8_t x, const char *name) { Named(x, name); } 321 void Char(int8_t x, const char *name) { Named(x, name); } 322 void UChar(uint8_t x, const char *name) { Named(x, name); } 323 void Short(int16_t x, const char *name) { Named(x, name); } 324 void UShort(uint16_t x, const char *name) { Named(x, name); } 325 void Int(int32_t x, const char *name) { Named(x, name); } 326 void UInt(uint32_t x, const char *name) { Named(x, name); }
|
/system/libvintf/include/vintf/ |
CompatibilityMatrix.h | 31 #include "Named.h" 92 std::vector<Named<CompatibilityMatrix>>* matrices, 95 std::vector<Named<CompatibilityMatrix>>* matrices, std::string* error);
|
/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...] |
/prebuilts/go/darwin-x86/src/go/types/ |
type.go | 228 // as a *Named or an *Interface. Due to embedding, an interface may 244 embeddeds []*Named // ordered list of explicitly embedded types 258 func NewInterface(methods []*Func, embeddeds []*Named) *Interface { 271 // TODO(gri) Ideally, we should use a named type here instead of 298 func (t *Interface) Embedded(i int) *Named { return t.embeddeds[i] } 390 // A Named represents a named type. 391 type Named struct { 393 underlying Type // possibly a *Named during setup; never a *Named once set up completel [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
type.go | 228 // as a *Named or an *Interface. Due to embedding, an interface may 244 embeddeds []*Named // ordered list of explicitly embedded types 258 func NewInterface(methods []*Func, embeddeds []*Named) *Interface { 271 // TODO(gri) Ideally, we should use a named type here instead of 298 func (t *Interface) Embedded(i int) *Named { return t.embeddeds[i] } 390 // A Named represents a named type. 391 type Named struct { 393 underlying Type // possibly a *Named during setup; never a *Named once set up completel [all...] |