Home
last modified time | relevance | path

Searched refs:named (Results 1 – 25 of 1017) sorted by relevance

12345678910>>...41

/external/guice/core/test/com/google/inject/
DPrivateModuleTest.java22 import static com.google.inject.name.Names.named;
46 bind(String.class).annotatedWith(named("a")).toInstance("public"); in testBasicUsage()
50 bind(String.class).annotatedWith(named("b")).toInstance("i"); in testBasicUsage()
52 bind(AB.class).annotatedWith(named("one")).to(AB.class); in testBasicUsage()
53 expose(AB.class).annotatedWith(named("one")); in testBasicUsage()
59 bind(String.class).annotatedWith(named("b")).toInstance("ii"); in testBasicUsage()
61 bind(AB.class).annotatedWith(named("two")).to(AB.class); in testBasicUsage()
62 expose(AB.class).annotatedWith(named("two")); in testBasicUsage()
68 AB ab1 = injector.getInstance(Key.get(AB.class, named("one"))); in testBasicUsage()
72 AB ab2 = injector.getInstance(Key.get(AB.class, named("two"))); in testBasicUsage()
[all …]
DDuplicateBindingsTest.java20 import static com.google.inject.name.Names.named;
61 assertTrue(bindings.remove(Key.get(Foo.class, named("instance")))); in testDuplicateBindingsAreIgnored()
62 assertTrue(bindings.remove(Key.get(Foo.class, named("pInstance")))); in testDuplicateBindingsAreIgnored()
63 assertTrue(bindings.remove(Key.get(Foo.class, named("pKey")))); in testDuplicateBindingsAreIgnored()
64 assertTrue(bindings.remove(Key.get(Foo.class, named("linkedKey")))); in testDuplicateBindingsAreIgnored()
66 assertTrue(bindings.remove(Key.get(Foo.class, named("constructor")))); in testDuplicateBindingsAreIgnored()
68 assertTrue(bindings.remove(Key.get(Foo.class, named("providerMethod")))); in testDuplicateBindingsAreIgnored()
137 + named("pInstance") + " was already configured at " + SimpleModule.class.getName(); in testMixedScopeFails()
138 String segment2 = "A binding to " + Foo.class.getName() + " annotated with " + named("pKey") in testMixedScopeFails()
141 + named("constructor") + " was already configured at " + SimpleModule.class.getName(); in testMixedScopeFails()
[all …]
DProviderInjectionTest.java19 import static com.google.inject.name.Names.named;
123 bind(Count.class).annotatedWith(named("a")).toInstance(new Count(0) { in testCreationTimeInjectionOrdering()
130 bind(Count.class).annotatedWith(named("b")).toProvider(new Provider<Count>() { in testCreationTimeInjectionOrdering()
141 bind(Count.class).annotatedWith(named("c")).toInstance(new Count(0) { in testCreationTimeInjectionOrdering()
151 bind(Count.class).annotatedWith(named("d")).toInstance(new Count(8)); in testCreationTimeInjectionOrdering()
152 bind(Count.class).annotatedWith(named("e")).toInstance(new Count(16)); in testCreationTimeInjectionOrdering()
156 assertEquals(28, injector.getInstance(Key.get(Count.class, named("c"))).value); in testCreationTimeInjectionOrdering()
157 assertEquals(30, injector.getInstance(Key.get(Count.class, named("b"))).value); in testCreationTimeInjectionOrdering()
158 assertEquals(31, injector.getInstance(Key.get(Count.class, named("a"))).value); in testCreationTimeInjectionOrdering()
DScopesTest.java22 import static com.google.inject.name.Names.named;
545 final Key<String> a = Key.get(String.class, named("A"));
546 final Key<String> b = Key.get(String.class, named("B"));
547 final Key<String> c = Key.get(String.class, named("C"));
548 final Key<String> d = Key.get(String.class, named("D"));
549 final Key<String> e = Key.get(String.class, named("E"));
550 final Key<String> f = Key.get(String.class, named("F"));
551 final Key<String> g = Key.get(String.class, named("G"));
552 final Key<Object> h = Key.get(Object.class, named("H"));
553 final Key<String> i = Key.get(String.class, named("I"));
[all …]
/external/chromium-trace/catapult/third_party/vinn/third_party/parse5/test/data/tokenization/
DnamedEntities.test68 "description": "Bad named entity: Abreve without a semi-colon",
110 "description": "Bad named entity: Acy without a semi-colon",
131 "description": "Bad named entity: Afr without a semi-colon",
173 "description": "Bad named entity: Alpha without a semi-colon",
194 "description": "Bad named entity: Amacr without a semi-colon",
215 "description": "Bad named entity: And without a semi-colon",
236 "description": "Bad named entity: Aogon without a semi-colon",
257 "description": "Bad named entity: Aopf without a semi-colon",
278 "description": "Bad named entity: ApplyFunction without a semi-colon",
320 "description": "Bad named entity: Ascr without a semi-colon",
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DExtensionSpiTest.java83 …new Params("/key", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLET), in validateVisitor()
84 …new Params("/key/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), SERVLE… in validateVisitor()
89 …new Params("/key/keyvalues", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of("… in validateVisitor()
90 …new Params("/key/keyvalues/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of… in validateVisitor()
96 …new Params("/key[0-9]", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), REG… in validateVisitor()
97 …new Params("/key[0-9]/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap.of(), R… in validateVisitor()
102 …new Params("/key[0-9]/keyvalues", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableMap… in validateVisitor()
103 …new Params("/key[0-9]/keyvalues/2", Key.get(DummyFilterImpl.class, Names.named("foo")), ImmutableM… in validateVisitor()
109 … new Params("/key", Key.get(DummyServlet.class, Names.named("foo")), ImmutableMap.of(), SERVLET), in validateVisitor()
110 … new Params("/key/2", Key.get(DummyServlet.class, Names.named("foo")), ImmutableMap.of(), SERVLET), in validateVisitor()
[all …]
DServletScopesTest.java19 import static com.google.inject.name.Names.named;
55 final Key<String> a = Key.get(String.class, named("A")); in testIsRequestScopedPositive()
56 final Key<String> b = Key.get(String.class, named("B")); in testIsRequestScopedPositive()
57 final Key<String> c = Key.get(String.class, named("C")); in testIsRequestScopedPositive()
58 final Key<String> d = Key.get(String.class, named("D")); in testIsRequestScopedPositive()
59 final Key<Object> e = Key.get(Object.class, named("E")); in testIsRequestScopedPositive()
60 final Key<String> f = Key.get(String.class, named("F")); in testIsRequestScopedPositive()
61 final Key<String> g = Key.get(String.class, named("G")); in testIsRequestScopedPositive()
112 final Key<String> a = Key.get(String.class, named("A")); in testIsRequestScopedNegative()
113 final Key<String> b = Key.get(String.class, named("B")); in testIsRequestScopedNegative()
[all …]
/external/ltrace/
Dvalue_dict.c39 VECT_INIT(&dict->named, struct named_value); in val_dict_init()
70 named_value_dtor(struct named_value *named, void *data) in named_value_dtor() argument
72 if (named->own_name) in named_value_dtor()
73 free((char *)named->name); in named_value_dtor()
74 value_destroy(&named->value); in named_value_dtor()
84 if (VECT_CLONE(&target->named, &source->named, struct named_value, in val_dict_clone()
106 if (VECT_PUSHBACK(&dict->named, &element) < 0) { in val_dict_push_named()
131 for (i = 0; i < vect_size(&dict->named); ++i) { in val_dict_get_name()
133 = VECT_ELEMENT(&dict->named, struct named_value, i); in val_dict_get_name()
147 VECT_DESTROY(&dict->named, struct named_value, named_value_dtor, NULL); in val_dict_destroy()
/external/guava/guava-testlib/test/com/google/common/testing/
DEqualsTesterTest.java225 .addEqualityGroup(named("foo").addPeers("bar"), named("bar")); in testSymmetryBroken()
240 named("foo").addPeers("bar", "baz"), in testTransitivityBrokenInEqualityGroup()
241 named("bar").addPeers("foo"), in testTransitivityBrokenInEqualityGroup()
242 named("baz").addPeers("foo")); in testTransitivityBrokenInEqualityGroup()
256 .addEqualityGroup(named("foo"), named("bar")); in testUnequalObjectsInEqualityGroup()
271 named("foo").addPeers("bar"), in testTransitivityBrokenAcrossEqualityGroups()
272 named("bar").addPeers("foo", "x")) in testTransitivityBrokenAcrossEqualityGroups()
274 named("baz").addPeers("x"), in testTransitivityBrokenAcrossEqualityGroups()
275 named("x").addPeers("baz", "bar")); in testTransitivityBrokenAcrossEqualityGroups()
290 named("foo").addPeers("bar"), named("bar").addPeers("foo")) in testEqualityGroups()
[all …]
/external/guice/core/test/com/google/inject/name/
DNamesTest.java49 Named actual = Names.named("foo"); in testConsistentEqualsAndHashcode()
55 assertEqualWhenReserialized(Names.named("foo")); in testNamedIsSerializable()
69 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); in testBindPropertiesUsingProperties()
70 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); in testBindPropertiesUsingProperties()
83 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); in testBindPropertiesUsingMap()
84 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); in testBindPropertiesUsingMap()
102 assertEquals("Pats", injector.getInstance(Key.get(String.class, Names.named("Regina")))); in testBindPropertiesIncludesInheritedProperties()
103 assertEquals("Oilers", injector.getInstance(Key.get(String.class, Names.named("Edmonton")))); in testBindPropertiesIncludesInheritedProperties()
104 assertEquals("Sharks", injector.getInstance(Key.get(String.class, Names.named("SanJose")))); in testBindPropertiesIncludesInheritedProperties()
107 injector.getInstance(Key.get(String.class, Names.named("Calgary"))); in testBindPropertiesIncludesInheritedProperties()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_state.h97 } named; member
102 (offsetof(union si_state, named.member) / sizeof(struct si_pm4_state *))
106 (rctx)->queued.named.member = (value); \
111 if ((rctx)->queued.named.member == (value)) { \
112 (rctx)->queued.named.member = NULL; \
120 if ((rctx)->queued.named.member != (value)) { \
122 (struct si_pm4_state *)(rctx)->queued.named.member, \
124 (rctx)->queued.named.member = (value); \
/external/guava/guava-tests/test/com/google/common/collect/
DSetOperationsTest.java54 .named("empty U empty") in suite()
66 .named("singleton U itself") in suite()
76 .named("empty U set") in suite()
87 .named("set U empty") in suite()
102 .named("set U itself") in suite()
115 .named("union of disjoint") in suite()
127 .named("venn") in suite()
138 .named("empty & empty") in suite()
149 .named("empty & singleton") in suite()
160 .named("intersection of disjoint") in suite()
[all …]
DMapsCollectionTest.java77 .named("unmodifiableNavigableMap[SafeTreeMap]") in suite()
94 .named("unmodifiableBiMap[HashBiMap]") in suite()
153 .named("Maps.asMap[Set, Function]") in suite()
214 .named("Maps.asMap[SortedSet, Function]") in suite()
275 .named("Maps.asMap[NavigableSet, Function]") in suite()
305 .named("Maps.filterKeys[Map, Predicate]") in filterMapSuite()
322 .named("Maps.filterValues[Map, Predicate]") in filterMapSuite()
339 .named("Maps.filterEntries[Map, Predicate]") in filterMapSuite()
357 .named("Maps.filterEntries[Maps.filterEntries[Map, Predicate], Predicate]") in filterMapSuite()
379 .named("Maps.filterKeys[BiMap, Predicate]") in filterBiMapSuite()
[all …]
/external/icu/icu4c/source/test/testdata/
Dra.txt11 * @note Comments for tag named ra
18 * e.g: The OS/400 job named SYSLOG
20 test1{"The {0} job named {1}"}
66 * comments for un-named string
68 * @note This resource is un-named string
72 * comments for un-named int
74 * @note This resource is un-named int
78 * comments for un-named binary
80 * @note This resource is for un-named binary
/external/llvm/test/Linker/
Donly-needed-named-metadata.ll3 ; RUN: llvm-link -S %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metadata.ll | File…
13 ; RUN: llvm-link -S -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metad…
14 …-link -S -internalize -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-me…
29 …rve-modules -o %t3.bc -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-me…
58 !llvm.named = !{!0, !1, !2, !3, !4, !5, !6}
/external/guice/core/test/com/google/inject/spi/
DSpiBindingsTest.java59 bindConstant().annotatedWith(Names.named("one")).to(1); in testBindConstant()
66 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testBindConstant()
157 final Key<String> aKey = Key.get(String.class, Names.named("a")); in testToKeyBinding()
158 final Key<String> bKey = Key.get(String.class, Names.named("b")); in testToKeyBinding()
223 bindConstant().annotatedWith(Names.named("one")).to(1); in testConstantBinding()
231 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testConstantBinding()
247 bindConstant().annotatedWith(Names.named("one")).to("1"); in testConvertedConstantBinding()
251 Binding<Integer> binding = injector.getBinding(Key.get(Integer.class, Names.named("one"))); in testConvertedConstantBinding()
252 assertEquals(Key.get(Integer.class, Names.named("one")), binding.getKey()); in testConvertedConstantBinding()
259 assertEquals(Key.get(String.class, Names.named("one")), binding.getSourceKey()); in testConvertedConstantBinding()
[all …]
DElementsTest.java161 bindConstant().annotatedWith(Names.named("Bee")).to("B"); in testBindConstantAnnotations()
177 assertEquals(Key.get(String.class, Names.named("Bee")), command.getKey()); in testBindConstantAnnotations()
189 bindConstant().annotatedWith(Names.named("String")).to("A"); in testBindConstantTypes()
190 bindConstant().annotatedWith(Names.named("int")).to(2); in testBindConstantTypes()
191 bindConstant().annotatedWith(Names.named("long")).to(3L); in testBindConstantTypes()
192 bindConstant().annotatedWith(Names.named("boolean")).to(false); in testBindConstantTypes()
193 bindConstant().annotatedWith(Names.named("double")).to(5.0d); in testBindConstantTypes()
194 bindConstant().annotatedWith(Names.named("float")).to(6.0f); in testBindConstantTypes()
195 bindConstant().annotatedWith(Names.named("short")).to((short) 7); in testBindConstantTypes()
196 bindConstant().annotatedWith(Names.named("char")).to('h'); in testBindConstantTypes()
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DTestsForSetsInJavaUtil.java121 .named("emptySet") in testsForEmptySet()
136 .named("singleton")
152 .named("HashSet")
170 .named("LinkedHashSet")
191 .named("EnumSet")
209 .named("TreeSet, natural")
230 .named("TreeSet, with comparator")
250 .named("CopyOnWriteArraySet")
271 .named("unmodifiableSet/HashSet")
290 .named("checkedSet/HashSet")
[all …]
DTestsForListsInJavaUtil.java103 .named("emptyList") in testsForEmptyList()
118 .named("singletonList")
134 .named("Arrays.asList")
151 .named("ArrayList")
169 .named("LinkedList")
188 .named("CopyOnWriteArrayList")
211 .named("unmodifiableList/ArrayList")
229 .named("checkedList/ArrayList")
254 .named("AbstractList")
280 .named("AbstractSequentialList")
DTestsForMapsInJavaUtil.java105 .named("emptyMap") in testsForEmptyMap()
122 .named("singletonMap")
141 .named("HashMap")
163 .named("LinkedHashMap")
190 .named("TreeMap, natural")
212 .named("TreeMap, with comparator")
236 .named("EnumMap")
257 .named("ConcurrentHashMap")
275 .named("ConcurrentSkipListMap, natural")
295 .named("ConcurrentSkipListMap, with comparator")
DTestsForQueuesInJavaUtil.java85 .named("LinkedList") in testsForLinkedList()
104 .named("ArrayBlockingQueue")
121 .named("ConcurrentLinkedQueue")
138 .named("LinkedBlockingQueue")
160 .named("PriorityBlockingQueue")
175 .named("PriorityQueue")
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DExtensionSpiTest.java19 import static com.google.inject.name.Names.named;
97 ImmutableList.<Key<?>>of(Key.get(String.class, named("catName2")))); in validateVisitor()
104 Key.get(String.class, named("catName1")), in validateVisitor()
105 Key.get(String.class, named("petName")), in validateVisitor()
106 Key.get(Integer.class, named("age"))); in validateVisitor()
173 bind(String.class).annotatedWith(named("catName1")).toInstance("kitty1"); in configure()
174 bind(String.class).annotatedWith(named("catName2")).toInstance("kitty2"); in configure()
175 bind(String.class).annotatedWith(named("petName")).toInstance("pussy"); in configure()
176 bind(Integer.class).annotatedWith(named("age")).toInstance(12); in configure()
179 .implement(Animal.class, named("SimpleCat"), SimpleCat.class) in configure()
/external/dnsmasq/contrib/Suse/
DREADME.susefirewall2 It fixes the depancy from the dns daemon name 'named'
4 the dnsmasq named service.
6 The SuSE people think the name of the dns server will allways 'named'
15 - test "$FW_SERVICE_DNS" = no -a '!' "$START_NAMED" = no && check_srv named && {
17 echo -e 'Warning: detected activated named, enabling FW_SERVICE_DNS!
24 - $AWK -F: '/^named .* UDP / {print $2}'| $GREP -vw 53 | $SORT -un`
/external/mockito/cglib-and-asm/src/org/mockito/asm/util/
DCheckAnnotationAdapter.java44 private final boolean named; field in CheckAnnotationAdapter
52 CheckAnnotationAdapter(final AnnotationVisitor av, final boolean named) { in CheckAnnotationAdapter() argument
54 this.named = named; in CheckAnnotationAdapter()
128 if (named && name == null) { in checkName()
/external/mockito/cglib-and-asm/src/org/mockito/asm/
DAnnotationWriter.java55 private final boolean named; field in AnnotationWriter
102 final boolean named, in AnnotationWriter() argument
108 this.named = named; in AnnotationWriter()
120 if (named) { in visit()
196 if (named) { in visitEnum()
207 if (named) { in visitAnnotation()
217 if (named) { in visitArray()

12345678910>>...41