Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 1738) sorted by relevance

12345678910>>...70

/external/libcxx/test/std/utilities/function.objects/bind/func.bind/func.bind.bind/
Dinvoke_rvalue.pass.cpp51 std::bind(f_void_1, _1)(2); in test_void_1()
56 std::bind(f_void_1, 2)(); in test_void_1()
63 std::bind(fp, _1)(3); in test_void_1()
69 std::bind(fp, 3)(); in test_void_1()
76 std::bind(a0, _1)(4); in test_void_1()
82 std::bind(a0, 4)(); in test_void_1()
89 std::bind(fp, _1)(A_void_1()); in test_void_1()
93 std::bind(fp, _1)(&a); in test_void_1()
99 std::bind(fp, A_void_1())(); in test_void_1()
103 std::bind(fp, &a)(); in test_void_1()
[all …]
Dinvoke_lvalue.pass.cpp52 std::bind(f_void_1, _1)(i); in test_void_1()
58 std::bind(f_void_1, i)(); in test_void_1()
66 std::bind(fp, _1)(i); in test_void_1()
73 std::bind(fp, i)(); in test_void_1()
81 std::bind(a0, _1)(i); in test_void_1()
88 std::bind(a0, i)(); in test_void_1()
96 std::bind(fp, _1)(a); in test_void_1()
100 std::bind(fp, _1)(ap); in test_void_1()
107 std::bind(fp, a)(); in test_void_1()
111 std::bind(fp, ap)(); in test_void_1()
[all …]
Dinvoke_void_0.pass.cpp60 test(std::bind(f)); in main()
61 test(std::bind(&f)); in main()
62 test(std::bind(A_void_0())); in main()
63 test_const(std::bind(A_void_0())); in main()
65 test(std::bind<void>(f)); in main()
66 test(std::bind<void>(&f)); in main()
67 test(std::bind<void>(A_void_0())); in main()
68 test_const(std::bind<void>(A_void_0())); in main()
70 test(std::bind<void>(g)); in main()
71 test(std::bind<void>(&g)); in main()
[all …]
Dinvoke_int_0.pass.cpp46 test(std::bind(f), 1); in main()
47 test(std::bind(&f), 1); in main()
48 test(std::bind(A_int_0()), 4); in main()
49 test_const(std::bind(A_int_0()), 5); in main()
51 test(std::bind<int>(f), 1); in main()
52 test(std::bind<int>(&f), 1); in main()
53 test(std::bind<int>(A_int_0()), 4); in main()
54 test_const(std::bind<int>(A_int_0()), 5); in main()
/external/clang/unittests/AST/
DDeclPrinterTest.cpp107 namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX98Matches()
130 namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX11Matches()
463 functionDecl(hasName("A"), isExplicitTemplateSpecialization()).bind("id"), in TEST()
474 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
483 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
492 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
501 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
510 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
519 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
528 cxxConstructorDecl(ofClass(hasName("A"))).bind("id"), in TEST()
[all …]
/external/guice/core/test/com/google/inject/
DJitBindingsTest.java62 bind(Foo.class).to(FooImpl.class); in testLinkedBindingWorks()
78 bind(Foo.class).to(FooImpl.class); in testMoreBasicsWork()
79 bind(Bar.class); in testMoreBasicsWork()
80 bind(FooBar.class); in testMoreBasicsWork()
96 bind(Foo.class).to(FooImpl.class).asEagerSingleton(); in testLinkedEagerSingleton()
112 bind(Foo.class).to(FooImpl.class).asEagerSingleton(); in testBasicsWithEagerSingleton()
113 bind(Bar.class); in testBasicsWithEagerSingleton()
114 bind(FooBar.class); in testBasicsWithEagerSingleton()
130 bind(Foo.class).to(ScopedFooImpl.class); in testLinkedToScoped()
146 bind(Foo.class).to(ScopedFooImpl.class); in testBasicsWithScoped()
[all …]
DBinderTest.java96 bind(Comparator.class); in testMissingBindings()
98 bind(Date.class).annotatedWith(Names.named("date")); in testMissingBindings()
132 bind(NeedsRunnable.class); in testMissingDependency()
167 bind(Runnable.class).to(Runnable.class); in testRecursiveBinding()
184 bind(String.class).annotatedWith(Names.named("nullTwo")).toInstance(none); in testBindingNullConstant()
205 bind(Integer.class).toString()); in testToStringOnBinderApi()
207 bind(Integer.class).annotatedWith(Names.named("a")).toString()); in testToStringOnBinderApi()
228 assertNotSerializable(bind(Integer.class)); in testNothingIsSerializableInBinderApi()
229 assertNotSerializable(bind(Integer.class).annotatedWith(Names.named("a"))); in testNothingIsSerializableInBinderApi()
254 bind(String[].class).toInstance(strings); in testArrayTypeCanonicalization()
[all …]
DErrorHandlingTest.java45 bind(String.class).toProvider(new Provider<String>() { in main()
121 bind(Runnable.class); in configure()
122 bind(Foo.class); in configure()
123 bind(Bar.class); in configure()
124 bind(Tee.class); in configure()
125 bind(new TypeLiteral<List<String>>() {}); in configure()
126 bind(String.class).annotatedWith(Names.named("foo")).in(Named.class); in configure()
127 bind(Key.get(Runnable.class)).to(Key.get(Runnable.class)); in configure()
128 bind(TooManyScopes.class); in configure()
130 bind(Object.class).toInstance(new Object() { in configure()
[all …]
DDuplicateBindingsTest.java257 bind(A.class); in testJitBindingsAreCheckedAfterConversions()
258 bind(A.class).to(RealA.class); in testJitBindingsAreCheckedAfterConversions()
269 bind(String.class); in testEqualsNotCalledByDefaultOnInstance()
270 bind(HashEqualsTester.class).toInstance(a); in testEqualsNotCalledByDefaultOnInstance()
281 bind(String.class); in testEqualsNotCalledByDefaultOnProvider()
282 bind(Object.class).toProvider(a); in testEqualsNotCalledByDefaultOnProvider()
298 bind(String.class); in testHashcodeNeverCalledOnInstance()
299 bind(HashEqualsTester.class).toInstance(a); in testHashcodeNeverCalledOnInstance()
300 bind(HashEqualsTester.class).toInstance(b); in testHashcodeNeverCalledOnInstance()
316 bind(String.class); in testHashcodeNeverCalledOnProviderInstance()
[all …]
DPrivateModuleTest.java46 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()
59 bind(String.class).annotatedWith(named("b")).toInstance("ii"); in testBasicUsage()
61 bind(AB.class).annotatedWith(named("two")).to(AB.class); in testBasicUsage()
81 bindA.bind(String.class).annotatedWith(named("a")).toInstance("i"); in testWithoutPrivateModules()
83 bindA.bind(String.class).annotatedWith(named("c")).toInstance("private to A"); in testWithoutPrivateModules()
86 bindB.bind(String.class).annotatedWith(named("b")).toInstance("ii"); in testWithoutPrivateModules()
88 bindB.bind(String.class).annotatedWith(named("c")).toInstance("private to B"); in testWithoutPrivateModules()
183 bind(String.class).toInstance("public"); in testCannotBindAKeyExportedByASibling()
[all …]
DBindingTest.java59 bind(A.class); in testExplicitCyclicDependency()
60 bind(B.class); in testExplicitCyclicDependency()
74 bind(Object.class).to(Runnable.class).in(Scopes.SINGLETON); in configure()
77 bind(Runnable.class).toInstance(Runnables.doNothing()); in configure()
80 bind(Foo.class).toProvider(new Provider<Foo>() { in configure()
87 bind(Foo.class) in configure()
92 bind(Bar.class).in(Scopes.SINGLETON); in configure()
113 bind(Collection.class).to(List.class); in testBindToUnboundLinkedBinding()
129 bind(Integer.class).toProvider(Counter.class).asEagerSingleton(); in testScopeIsAppliedToKeyNotTarget()
130 bind(Number.class).toProvider(Counter.class).asEagerSingleton(); in testScopeIsAppliedToKeyNotTarget()
[all …]
DProviderInjectionTest.java36 bind(Bar.class); in testProviderInjection()
37 bind(SampleSingleton.class).in(Scopes.SINGLETON); in testProviderInjection()
57 bind(Bar.class).toProvider(new Provider<Bar>() { in testProvidersAreInjectedWhenBound()
86 bind(String.class).toProvider(new Provider<String>() { in testProvidersAreInjectedBeforeTheyAreUsed()
97 bind(List.class).toProvider(new Provider<List>() { in testProvidersAreInjectedBeforeTheyAreUsed()
105 bind(Boolean.class).toInstance(Boolean.TRUE); in testProvidersAreInjectedBeforeTheyAreUsed()
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()
[all …]
DCircularDependencyTest.java50 bind(A.class).to(AImpl.class); in testCircularlyDependentConstructors()
51 bind(B.class).to(BImpl.class); in testCircularlyDependentConstructors()
72 bind(A.class).toProvider(new Provider<A>() { in testCircularlyDependentConstructorsWithProviderInstances()
78 bind(B.class).toProvider(new Provider<B>() { in testCircularlyDependentConstructorsWithProviderInstances()
93 bind(A.class).toProvider(AP.class).in(Singleton.class); in testCircularlyDependentConstructorsWithProviderKeys()
94 bind(B.class).toProvider(BP.class); in testCircularlyDependentConstructorsWithProviderKeys()
222 bind(C2.class).toProvider(C2P.class); in testUnresolvableCircularDependenciesWithProviderKeys()
223 bind(D2.class).toProvider(D2P.class); in testUnresolvableCircularDependenciesWithProviderKeys()
313 bind(C2.class).toProvider(C2P.class); in testDisabledCircularDependenciesWithProviderKeys()
314 bind(D2.class).toProvider(D2P.class); in testDisabledCircularDependenciesWithProviderKeys()
[all …]
/external/guice/core/test/com/google/inject/util/
DOverrideModuleTest.java111 bind(String.class).toInstance("A"); in testGetProviderInModule()
112 bind(key2).toProvider(getProvider(String.class)); in testGetProviderInModule()
124 bind(String.class).toInstance("A"); in testOverrideWhatGetProviderProvided()
125 bind(key2).toProvider(getProvider(String.class)); in testOverrideWhatGetProviderProvided()
139 bind(String.class).toInstance("A"); in testOverrideUsingOriginalsGetProvider()
140 bind(key2).toInstance("B"); in testOverrideUsingOriginalsGetProvider()
146 bind(String.class).toProvider(getProvider(key2)); in testOverrideUsingOriginalsGetProvider()
158 bind(String.class).toInstance("A1"); in testOverrideOfOverride()
159 bind(key2).toInstance("A2"); in testOverrideOfOverride()
160 bind(key3).toInstance("A3"); in testOverrideOfOverride()
[all …]
/external/clang/test/SemaCXX/
Dmember-pointer.cpp194 template <class F> void bind(F f); // expected-note 12 {{candidate template ignored}}
210 bind(&nonstat); // expected-error {{no matching function for call}} in test()
211 bind(&A::nonstat); // expected-error {{no matching function for call}} in test()
213 bind(&mixed); // expected-error {{no matching function for call}} in test()
214 bind(&A::mixed); // expected-error {{no matching function for call}} in test()
216 bind(&stat); // expected-error {{no matching function for call}} in test()
217 bind(&A::stat); // expected-error {{no matching function for call}} in test()
261 bind(&nonstat); in test0a()
262 bind(&B::nonstat); in test0a()
264 bind(&mixed); in test0a()
[all …]
/external/guice/core/test/com/googlecode/guice/
DJsr330Test.java64 bind(B.class).toInstance(b); in testInject()
65 bind(C.class).toInstance(c); in testInject()
66 bind(D.class).toInstance(d); in testInject()
67 bind(E.class).toInstance(e); in testInject()
68 bind(A.class); in testInject()
82 bind(B.class).annotatedWith(Names.named("jodie")).toInstance(b); in testQualifiedInject()
83 bind(C.class).annotatedWith(Red.class).toInstance(c); in testQualifiedInject()
84 bind(D.class).annotatedWith(RED).toInstance(d); in testQualifiedInject()
85 bind(E.class).annotatedWith(Names.named("jesse")).toInstance(e); in testQualifiedInject()
86 bind(F.class); in testQualifiedInject()
[all …]
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProviderTest.java58 bind(Double.class).toInstance(5.0d); in testAssistedFactory()
59 bind(ColoredCarFactory.class) in testAssistedFactory()
78 bind(Double.class).toInstance(5.0d); in testFactoryBindingDependencies()
79 bind(ColoredCarFactory.class) in testFactoryBindingDependencies()
94 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); in testAssistedFactoryWithAnnotations()
95 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); in testAssistedFactoryWithAnnotations()
96 bind(ColoredCarFactory.class) in testAssistedFactoryWithAnnotations()
157 bind(float.class).toInstance(140f); in testFactoryWithMultipleMethods()
158 bind(SummerCarFactory.class).toProvider( in testFactoryWithMultipleMethods()
230 bind(String.class).toInstance("turbo"); in testMethodsAndFieldsGetInjected()
[all …]
DFactoryProvider2Test.java54 bind(Double.class).toInstance(5.0d); in testAssistedFactory()
55 bind(ColoredCarFactory.class).toProvider( in testAssistedFactory()
74 bind(int.class).annotatedWith(Names.named("horsePower")).toInstance(250); in testAssistedFactoryWithAnnotations()
75 bind(int.class).annotatedWith(Names.named("modelYear")).toInstance(1984); in testAssistedFactoryWithAnnotations()
76 bind(ColoredCarFactory.class).toProvider( in testAssistedFactoryWithAnnotations()
137 bind(float.class).toInstance(140f); in testFactoryUsesInjectedConstructor()
138 bind(SummerCarFactory.class).toProvider( in testFactoryUsesInjectedConstructor()
173 bind(SummerCarFactory.class).toProvider( in testConstructorDoesntNeedAllFactoryMethodArguments()
195 bind(String.class).toInstance("turbo"); in testMethodsAndFieldsGetInjected()
196 bind(int.class).toInstance(911); in testMethodsAndFieldsGetInjected()
[all …]
/external/webrtc/webrtc/tools/rtcbot/test/
Dthree_bots_video_conference.js20 createBotPeerConnectionsWithLocalStream.bind(bot1),
21 createBotPeerConnectionsWithLocalStream.bind(bot2),
22 createBotPeerConnectionsWithLocalStream.bind(bot3)],
30 onUserMediaSuccess.bind(this), test.fail);
36 test.createTurnConfig(onTurnConfig.bind(this), test.fail);
39 this.createPeerConnection(config, addStream.bind(this),
41 this.createPeerConnection(config, addStream.bind(this),
47 pc.addEventListener('addstream', onAddStream.bind(this));
69 pc1.addEventListener('icecandidate', onIceCandidate.bind(pc2));
70 pc2.addEventListener('icecandidate', onIceCandidate.bind(pc1));
Dtwo_way_video_streaming.js19 createPeerConnectionWithLocalStream.bind(bot1),
20 createPeerConnectionWithLocalStream.bind(bot2)],
25 onUserMediaSuccess.bind(this), test.fail);
29 test.createTurnConfig(onTurnConfig.bind(this), test.fail);
32 this.createPeerConnection(config, addAndShowStream.bind(this),
47 pc1.addEventListener('addstream', onAddStream.bind(bot1));
48 pc2.addEventListener('addstream', onAddStream.bind(bot2));
49 pc1.addEventListener('icecandidate', onIceCandidate.bind(pc2));
50 pc2.addEventListener('icecandidate', onIceCandidate.bind(pc1));
/external/guice/extensions/grapher/test/com/google/inject/grapher/demo/
DBackToTheFutureModule.java34 bind(DeLorian.class); in configure()
36 bind(EnergySource.class).annotatedWith(Nuclear.class).to(Plutonium.class); in configure()
37 bind(EnergySource.class).annotatedWith(Renewable.class).to(Lightning.class); in configure()
39 bind(Plutonium.class).toProvider(PlutoniumProvider.class); in configure()
40 bind(PinballParts.class).annotatedWith(Used.class).toInstance(new PinballParts()); in configure()
42 bind(Person.class).annotatedWith(Driver.class).to(MartyMcFly.class).in(Singleton.class); in configure()
43 bind(Person.class).annotatedWith(Inventor.class).to(DocBrown.class).in(Singleton.class); in configure()
/external/libvncserver/webclients/novnc/include/chrome-app/
Dtcp-client.js62 socket.create('tcp', {}, this._onCreate.bind(this));
66 }.bind(this));
90 socket.write(this.socketId, buf, this._onWriteComplete.bind(this));
110 socket.write(this.socketId, arrayBuffer, this._onWriteComplete.bind(this));
111 }.bind(this));
174 socket.connect(this.socketId, this.addr, this.port, this._onConnectComplete.bind(this));
191 setTimeout(this._periodicallyRead.bind(this), this.pollInterval);
209 setTimeout(that._periodicallyRead.bind(that), that.pollInterval);
210 socket.read(that.socketId, null, that._onDataRead.bind(that));
250 }.bind(this));
[all …]
/external/v8/src/ia32/
Dcodegen-ia32.cc90 __ bind(&loop); in MemMoveEmitMainLoop() local
107 __ bind(&move_last_63); in MemMoveEmitMainLoop() local
119 __ bind(&move_last_31); in MemMoveEmitMainLoop() local
242 __ bind(&move_last_15); in CreateMemMoveFunction() local
247 __ bind(&skip_last_move); in CreateMemMoveFunction() local
251 __ bind(&unaligned_source); in CreateMemMoveFunction() local
257 __ bind(&loop_until_aligned); in CreateMemMoveFunction() local
263 __ bind(&forward_much_overlap); // Entry point into this block. in CreateMemMoveFunction() local
271 __ bind(&last_15_much_overlap); in CreateMemMoveFunction() local
282 __ bind(&backward); in CreateMemMoveFunction() local
[all …]
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp83 varDecl(hasDescendant(isInteger())).bind("x"))), in TEST()
98 qualType(asString("int ***"), forEachDescendant(pointerType().bind("x"))), in TEST()
110 qualType(functionType(), forEach(qualType(isInteger()).bind("x"))), in TEST()
363 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
364 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
376 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
377 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
405 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
406 DeclarationMatcher IntParam = parmVarDecl(hasType(isInteger())).bind("param"); in TEST()
429 declRefExpr(to(varDecl(hasName("y")))).bind("arg"); in TEST()
[all …]
/external/v8/src/x87/
Dcode-stubs-x87.cc165 __ bind(&process_64_bits); in Generate() local
185 __ bind(&skip_mov); in Generate() local
189 __ bind(&check_negative); in Generate() local
201 __ bind(&skip_mov); in Generate() local
205 __ bind(&done); in Generate() local
209 __ bind(&done_no_stash); in Generate() local
228 __ bind(&load_smi); in LoadFloatOperand() local
234 __ bind(&done); in LoadFloatOperand() local
250 __ bind(&test_other); in CheckFloatOperands() local
257 __ bind(&done); in CheckFloatOperands() local
[all …]

12345678910>>...70