Home
last modified time | relevance | path

Searched refs:apply (Results 1 – 25 of 1009) sorted by relevance

12345678910>>...41

/external/v8/test/mjsunit/
Dapply.js36 assertSame(this, f0.apply(), "1-0");
38 assertSame(this, f0.apply(this), "2a");
39 assertSame(this, f0.apply(this, new Array(1)), "2b");
40 assertSame(this, f0.apply(this, new Array(2)), "2c");
41 assertSame(this, f0.apply(this, new Array(4242)), "2d");
43 assertSame(this, f0.apply(null), "3a");
44 assertSame(this, f0.apply(null, new Array(1)), "3b");
45 assertSame(this, f0.apply(null, new Array(2)), "3c");
46 assertSame(this, f0.apply(this, new Array(4242)), "3d");
48 assertSame(this, f0.apply(void 0), "4a");
[all …]
Darguments-apply.js38 return ReturnArguments.apply(this, arguments);
51 return object.f.apply(this, arguments);
64 return ReturnArguments.apply(this, arguments);
73 return ReturnReceiver.apply(receiver, arguments);
84 return ReturnReceiver.apply(Object, arguments);
92 f.apply = function() { return 87; } function
93 return f.apply(this, arguments);
102 var object = { apply: Function.prototype.apply }; property
103 return object.apply(this, arguments);
113 var result = ReturnArguments.apply(this, arguments);
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Function/
D15.3.4.3-1.js77 actual = Function.prototype.apply.length;
87 actual = F0.apply();
97 actual = F0.apply("");
102 actual = F0.apply(true);
112 actual = F1.apply(0, undefined);
113 expect = F1.apply(0);
117 actual = F1.apply("", undefined);
118 expect = F1.apply("");
122 actual = F1.apply(null, undefined);
123 expect = F1.apply(null);
[all …]
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/analysis/
DDepthFirstAdapter.java34 node.getPCommand().apply(this); in caseStart()
35 node.getEOF().apply(this); in caseStart()
57 e.apply(this); in caseAMultipleCommand()
79 node.getPosition().apply(this); in caseACommentCommand()
83 node.getComment().apply(this); in caseACommentCommand()
104 node.getData().apply(this); in caseADataCommand()
125 node.getPosition().apply(this); in caseAVarCommand()
129 node.getExpression().apply(this); in caseAVarCommand()
150 node.getPosition().apply(this); in caseALvarCommand()
154 node.getExpression().apply(this); in caseALvarCommand()
[all …]
DReversedDepthFirstAdapter.java34 node.getEOF().apply(this); in caseStart()
35 node.getPCommand().apply(this); in caseStart()
58 e.apply(this); in caseAMultipleCommand()
80 node.getComment().apply(this); in caseACommentCommand()
84 node.getPosition().apply(this); in caseACommentCommand()
105 node.getData().apply(this); in caseADataCommand()
126 node.getExpression().apply(this); in caseAVarCommand()
130 node.getPosition().apply(this); in caseAVarCommand()
151 node.getExpression().apply(this); in caseALvarCommand()
155 node.getPosition().apply(this); in caseALvarCommand()
[all …]
/external/clang/test/SemaTemplate/
Ddependent-type-identity.cpp13 struct apply { struct
47 void f4(typename T::template apply<U>*); // expected-note{{previous}}
48 void f4(typename U::template apply<U>*);
49 void f4(typename type::template apply<T>*);
50 void f4(typename type::template apply<U_type>*); // expected-error{{redeclar}}
52 void f5(typename T::template apply<U>::type*); // expected-note{{previous}}
53 void f5(typename U::template apply<U>::type*);
54 void f5(typename U::template apply<T>::type*);
55 void f5(typename type::template apply<T>::type*);
56 void f5(typename type::template apply<U_type>::type*); // expected-error{{redeclar}}
[all …]
Dtypename-specifier-4.cpp14 typedef typename MetaFun::template apply<T1, T2> inner;
22 struct apply { struct
30 …typename make_pair::template apply<int, float>, // expected-warning{{'template' keyword outside of…
32 make_pair::apply<int, float> argument
38 struct apply { struct
39 typedef typename MetaFun::template apply<T2, T1> new_metafun; argument
44 int a2[is_same<swap_and_apply2<make_pair>::apply<int, float>::type,
50 struct apply { struct
51 typedef typename MetaFun::template apply<T2, T1>::type type; argument
55 int a3[is_same<swap_and_apply2b<make_pair>::apply<int, float>::type,
Dinstantiate-template-template-parm.cpp3 struct apply { struct
18 apply<add_pointer, int>::type ip = &i; argument
19 apply<add_reference, int>::type ir = i;
20 apply<add_reference, float>::type fr = i; // expected-error{{non-const lvalue reference to type 'fl…
66 static void apply();
77 X0<Init::template VeryInner>::apply(); in g()
/external/guava/guava-tests/test/com/google/common/base/
DFunctionsTest.java43 assertNull(identity.apply(null)); in testIdentity_same()
44 assertSame("foo", identity.apply("foo")); in testIdentity_same()
49 assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); in testIdentity_notSame()
58 assertEquals("3", Functions.toStringFunction().apply(3)); in testToStringFunction_apply()
59 assertEquals("hiya", Functions.toStringFunction().apply("hiya")); in testToStringFunction_apply()
61 Functions.toStringFunction().apply( in testToStringFunction_apply()
68 Functions.toStringFunction().apply(null); in testToStringFunction_apply()
93 assertEquals(1, function.apply("One").intValue()); in testForMapWithoutDefault()
94 assertEquals(3, function.apply("Three").intValue()); in testForMapWithoutDefault()
95 assertNull(function.apply("Null")); in testForMapWithoutDefault()
[all …]
DPredicatesTest.java51 public boolean apply(Integer i) {
61 public boolean apply(Integer i) { in apply() method in PredicatesTest.IsOdd
304 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied()
306 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied()
313 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied()
315 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied()
328 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied()
330 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied()
467 assertEquals(pre.apply(0), post.apply(0)); in testOr_serializationIterable()
474 assertFalse(predicate.apply(1)); in testOr_arrayDefensivelyCopied()
[all …]
DEnumsTest.java45 assertEquals(TestEnum.CHEETO, function.apply("CHEETO")); in testValueOfFunction()
46 assertEquals(TestEnum.HONDA, function.apply("HONDA")); in testValueOfFunction()
47 assertEquals(TestEnum.POODLE, function.apply("POODLE")); in testValueOfFunction()
52 assertNull(function.apply("cHEETO")); in testValueOfFunction_caseSensitive()
53 assertNull(function.apply("Honda")); in testValueOfFunction_caseSensitive()
54 assertNull(function.apply("poodlE")); in testValueOfFunction_caseSensitive()
59 assertNull(function.apply("WOMBAT")); in testValueOfFunction_nullWhenNotMatchingConstant()
DEquivalenceTest.java56 @Override public Integer apply(String input) { in apply() method in EquivalenceTest.LengthFunction
117 assertTrue(equalTo1.apply("1")); in testEquivalentTo()
118 assertFalse(equalTo1.apply("2")); in testEquivalentTo()
119 assertFalse(equalTo1.apply(null)); in testEquivalentTo()
121 assertFalse(isNull.apply("1")); in testEquivalentTo()
122 assertFalse(isNull.apply("2")); in testEquivalentTo()
123 assertTrue(isNull.apply(null)); in testEquivalentTo()
/external/llvm/include/llvm/Support/
DCommandLine.h271 void apply(Option &O) const { O.setDescription(Desc); } in apply() function
279 void apply(Option &O) const { O.setValueStr(Desc); } in apply() function
292 void apply(Opt &O) const { O.setInitialValue(Init); } in apply() function
311 void apply(Opt &O) const { O.setLocation(O, Loc); } in apply() function
473 void apply(Opt &O) const {
978 static void opt(const Mod &M, Opt &O) { M.apply(O); }
1015 void apply(const Mod &M, Opt *O) {
1177 apply(M0, this);
1184 apply(M0, this); apply(M1, this);
1192 apply(M0, this); apply(M1, this); apply(M2, this);
[all …]
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/
Dp6.cpp4 …template<class T> void apply(T x, void (*f)(T)) { f(x); } // expected-note 2 {{candidate template … in apply() function
10 apply(0, &temp); in test0()
11 apply(0, &temp<>); in test0()
14 apply(0, &temp<int>); in test0()
17 apply(0, &temp<long>); // expected-error {{no matching function for call to 'apply'}} in test0()
25 apply(0, &over); in test1()
28 apply(0L, &over); // expected-error {{no matching function for call to 'apply'}} in test1()
36 apply(0, &over); in test2()
42 apply(0, &temp2); in test3()
43 apply(0, &temp2<>); in test3()
[all …]
/external/v8/test/mjsunit/compiler/
Dinline-arguments.js41 this.X.apply(this, arguments);
53 A.prototype.X.apply = function (receiver, args) {
54 return Function.prototype.apply.call(this, receiver, args);
62 function F2() { F1.apply(this, arguments); }
70 return F1.apply(this, arguments);
99 G2.apply(this, arguments);
103 G4.apply(this, arguments);
/external/skia/src/animator/
DSkDrawExtraPathEffect.cpp112 SkApply* apply = (SkApply*) fDraw->addPath; in next() local
113 apply->refresh(*fMaker); in next()
114 apply->activate(*fMaker); in next()
115 apply->interpolate(*fMaker, SkScalarMulRound(distance, 1000)); in next()
116 drawPath = (SkDrawPath*) apply->getScope(); in next()
125 SkApply* apply = (SkApply*) fDraw->addMatrix; in next() local
126 apply->refresh(*fMaker); in next()
127 apply->activate(*fMaker); in next()
128 apply->interpolate(*fMaker, SkScalarMulRound(distance, 1000)); in next()
129 matrix = (SkDrawMatrix*) apply->getScope(); in next()
[all …]
DSkDisplayList.cpp79 SkApply* apply = (SkApply*) draw; in SearchForMatch() local
80 if (apply->scope == match) in SearchForMatch()
82 …if (apply->scope->isGroup() && SearchGroupForMatch(apply->scope, match, list, parent, found, grand… in SearchForMatch()
84 if (apply->mode == SkApply::kMode_create) { in SearchForMatch()
85 for (SkDrawable** ptr = apply->fScopes.begin(); ptr < apply->fScopes.end(); ptr++) { in SearchForMatch()
121 SkApply* apply = (SkApply*) draw; in reset() local
122 apply->reset(); in reset()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DPredicates.java210 @Override public boolean apply(@Nullable Object o) { in apply() method
215 @Override public boolean apply(@Nullable Object o) { in apply() method
220 @Override public boolean apply(@Nullable Object o) { in apply() method
225 @Override public boolean apply(@Nullable Object o) { in apply() method
244 public boolean apply(T t) { in apply() method in Predicates.NotPredicate
245 return !predicate.apply(t); in apply()
273 public boolean apply(T t) { in apply() method in Predicates.AndPredicate
275 if (!components.get(i).apply(t)) { in apply()
306 public boolean apply(T t) { in apply() method in Predicates.OrPredicate
308 if (components.get(i).apply(t)) { in apply()
[all …]
/external/guava/guava/src/com/google/common/base/
DPredicates.java273 @Override public boolean apply(@Nullable Object o) { in apply() method
278 @Override public boolean apply(@Nullable Object o) { in apply() method
283 @Override public boolean apply(@Nullable Object o) { in apply() method
288 @Override public boolean apply(@Nullable Object o) { in apply() method
307 public boolean apply(T t) { in apply() method in Predicates.NotPredicate
308 return !predicate.apply(t); in apply()
336 public boolean apply(T t) { in apply() method in Predicates.AndPredicate
338 if (!components.get(i).apply(t)) { in apply()
369 public boolean apply(T t) { in apply() method in Predicates.OrPredicate
371 if (components.get(i).apply(t)) { in apply()
[all …]
DFunctions.java60 public String apply(Object o) { in apply() method in Functions.ToStringFunction
83 public Object apply(Object o) { in apply() method in Functions.IdentityFunction
108 public V apply(K key) { in apply() method in Functions.FunctionForMapNoDefault
157 public V apply(K key) { in apply() method in Functions.ForMapWithDefault
204 public C apply(A a) { in apply() method in Functions.FunctionComposition
205 return g.apply(f.apply(a)); in apply()
246 public Boolean apply(T t) { in apply() method in Functions.PredicateFunction
247 return predicate.apply(t); in apply()
287 public E apply(@Nullable Object from) { in apply() method in Functions.ConstantFunction
330 @Override public T apply(@Nullable Object input) { in apply() method in Functions.SupplierFunction
/external/v8/test/mjsunit/regress/
Dregress-1102760.js32 assertEquals(0, F.apply(), "no receiver or args");
33 assertEquals(0, F.apply(this), "no args");
34 assertEquals(0, F.apply(this, []), "empty args");
35 assertEquals(0, F.apply(this, [], 0), "empty args, extra argument");
Dregress-603.js50 Function.prototype.call.apply(
56 Function.prototype.apply.call(
62 Function.prototype.apply.apply(
Dregress-1412.js36 assertEquals(void 0, strict.apply(undefined, arguments));
37 assertEquals(42, strict.apply(42, arguments));
38 assertEquals("asdf", strict.apply("asdf", arguments));
46 Object.prototype.valueOf.apply(receiver, arguments);
/external/v8/test/mjsunit/tools/
Dtickprocessor.js86 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
112 libc_syms.push(Array.prototype.slice.apply(arguments, [0]));
150 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
173 stdc_syms.push(Array.prototype.slice.apply(arguments, [0]));
216 shell_syms.push(Array.prototype.slice.apply(arguments, [0]));
257 exe_exe_syms.push(Array.prototype.slice.apply(arguments, [0]));
269 exe_dll_syms.push(Array.prototype.slice.apply(arguments, [0]));
280 dll_dll_syms.push(Array.prototype.slice.apply(arguments, [0]));
292 dll_exe_syms.push(Array.prototype.slice.apply(arguments, [0]));
320 symbolAdder.apply(null, syms[i]);
[all …]
/external/clang/test/SemaCXX/
Dnested-name-spec-locations.cpp91 typedef typename T::template apply<typename add_reference<U>::type
98 struct apply { struct
107 typedef typename T::template apply<typename add_reference<U>::type
116 T::template apply<typename add_reference<U>::type
125 typedef class T::template apply<typename add_reference<U>::type
140 template apply<

12345678910>>...41