Home
last modified time | relevance | path

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

12345678910>>...60

/external/v8/test/mjsunit/
Dfunction-bind.js40 var f = foo.bind(foo);
45 f = foo.bind(foo, 1);
50 f = foo.bind(foo, 1, 2);
55 f = foo.bind(foo, 1, 2, 3);
62 f = foo.bind(foo, 1, 2, 3, 4, 5, 6, 7, 8, 9);
78 f = f_bound_this.bind(obj);
82 f = f_bound_this.bind(obj, 2);
91 f = foo.bind(foo);
95 f = foo.bind(foo).bind(not_foo).bind(not_foo).bind(not_foo);
100 f = foo.bind(foo, 1).bind(not_foo).bind(not_foo).bind(not_foo);
[all …]
/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/v8/test/mjsunit/regress/
Dregress-bind-receiver.js32 assertEquals(true, strict.bind(true)());
33 assertEquals(42, strict.bind(42)());
34 assertEquals("", strict.bind("")());
35 assertEquals(null, strict.bind(null)());
36 assertEquals(undefined, strict.bind(undefined)());
37 assertEquals(obj, strict.bind(obj)());
39 assertEquals(true, lenient.bind(true)() instanceof Boolean);
40 assertEquals(true, lenient.bind(42)() instanceof Number);
41 assertEquals(true, lenient.bind("")() instanceof String);
42 assertEquals(this, lenient.bind(null)());
[all …]
/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 …]
/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/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Dshape-handler.js17 var consumeLengthOrPercent = scope.consumeParenthesised.bind(null, scope.parseLengthOrPercent);
18 …var consumeLengthOrPercentPair = scope.consumeRepeated.bind(undefined, consumeLengthOrPercent, /^/…
20 var mergeSizePair = scope.mergeNestedRepeated.bind(undefined, scope.mergeDimensions, ' ');
21 var mergeSizePairList = scope.mergeNestedRepeated.bind(undefined, mergeSizePair, ',');
27 scope.ignore(scope.consumeToken.bind(undefined, /^\(/)),
31 scope.ignore(scope.consumeToken.bind(undefined, /^\)/))
37 scope.ignore(scope.consumeToken.bind(undefined, /^\(/)),
41 scope.ignore(scope.consumeToken.bind(undefined, /^\)/))
47 scope.ignore(scope.consumeToken.bind(undefined, /^\(/)),
50 scope.ignore(scope.consumeToken.bind(undefined, /^\)/))
/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/performance/ui/
DMessages.java37 public static String bind(String message) { in bind() method in Messages
38 return bind(message, null); in bind()
48 public static String bind(String message, Object binding) { in bind() method in Messages
49 return bind(message, new Object[] {binding}); in bind()
60 public static String bind(String message, Object binding1, Object binding2) { in bind() method in Messages
61 return bind(message, new Object[] {binding1, binding2}); in bind()
71 public static String bind(String message, Object[] bindings) { in bind() method in Messages
/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 …]

12345678910>>...60