/external/v8/test/mjsunit/harmony/ |
D | reflect-apply.js | 9 assertEquals(3, Reflect.apply.length); 15 new Reflect.apply(function(){}, null, []); 24 assertSame(this, Reflect.apply(returnThis, void 0, [])); 25 assertSame(this, Reflect.apply(returnThis, null, [])); 26 assertSame(this, Reflect.apply(returnThis, this, [])); 27 assertSame(receiver, Reflect.apply(returnThis, receiver, [])); 31 Object.getPrototypeOf(Reflect.apply(returnThis, "str", []))); 33 Object.getPrototypeOf(Reflect.apply(returnThis, 123, []))); 35 Object.getPrototypeOf(Reflect.apply(returnThis, true, []))); 38 Reflect.apply(returnThis, Symbol("test"), []))); [all …]
|
/external/v8/test/mjsunit/ |
D | apply.js | 38 assertSame(this, f0.apply(), "1-0"); 40 assertSame(this, f0.apply(this), "2a"); 41 assertSame(this, f0.apply(this, new Array(1)), "2b"); 42 assertSame(this, f0.apply(this, new Array(2)), "2c"); 43 assertSame(this, f0.apply(this, new Array(4242)), "2d"); 45 assertSame(this, f0.apply(null), "3a"); 46 assertSame(this, f0.apply(null, new Array(1)), "3b"); 47 assertSame(this, f0.apply(null, new Array(2)), "3c"); 48 assertSame(this, f0.apply(this, new Array(4242)), "3d"); 50 assertSame(this, f0.apply(void 0), "4a"); [all …]
|
D | arguments-apply.js | 38 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/jsilver/src/com/google/clearsilver/jsilver/syntax/analysis/ |
D | DepthFirstAdapter.java | 34 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 …]
|
D | ReversedDepthFirstAdapter.java | 34 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/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | FunctionsTest.java | 40 assertNull(identity.apply(null)); in testIdentity_same() 41 assertSame("foo", identity.apply("foo")); in testIdentity_same() 46 assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); in testIdentity_notSame() 50 assertEquals("3", Functions.toStringFunction().apply(3)); in testToStringFunction_apply() 51 assertEquals("hiya", Functions.toStringFunction().apply("hiya")); in testToStringFunction_apply() 53 Functions.toStringFunction().apply( in testToStringFunction_apply() 60 Functions.toStringFunction().apply(null); in testToStringFunction_apply() 74 assertEquals(1, function.apply("One").intValue()); in testForMapWithoutDefault() 75 assertEquals(3, function.apply("Three").intValue()); in testForMapWithoutDefault() 76 assertNull(function.apply("Null")); in testForMapWithoutDefault() [all …]
|
D | PredicatesTest.java | 49 public boolean apply(Integer i) { 59 public boolean apply(Integer i) { in apply() method in PredicatesTest.IsOdd 258 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied() 260 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied() 266 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied() 268 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied() 280 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied() 282 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied() 395 assertFalse(predicate.apply(1)); in testOr_arrayDefensivelyCopied() 397 assertFalse(predicate.apply(1)); in testOr_arrayDefensivelyCopied() [all …]
|
/external/v8/test/webkit/fast/js/ |
D | function-apply.js | 32 return t.apply(null, arguments); 41 return t.apply(null, arguments); 50 return t.apply(null, arguments); 59 return t.apply(null, arguments); 68 return t.apply(null, arguments, executedAdditionalArgument = true); 84 return t.apply(null, array); 93 return t.apply(null, array); 102 return t.apply(null, array); 111 return t.apply(null, array); 127 return t.apply(null, arguments); [all …]
|
/external/clang/test/SemaTemplate/ |
D | dependent-type-identity.cpp | 13 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 …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | FunctionsTest.java | 44 assertNull(identity.apply(null)); in testIdentity_same() 45 assertSame("foo", identity.apply("foo")); in testIdentity_same() 50 assertNotSame(new Long(135135L), identity.apply(new Long(135135L))); in testIdentity_notSame() 59 assertEquals("3", Functions.toStringFunction().apply(3)); in testToStringFunction_apply() 60 assertEquals("hiya", Functions.toStringFunction().apply("hiya")); in testToStringFunction_apply() 62 Functions.toStringFunction().apply( in testToStringFunction_apply() 69 Functions.toStringFunction().apply(null); in testToStringFunction_apply() 94 assertEquals(1, function.apply("One").intValue()); in testForMapWithoutDefault() 95 assertEquals(3, function.apply("Three").intValue()); in testForMapWithoutDefault() 96 assertNull(function.apply("Null")); in testForMapWithoutDefault() [all …]
|
D | PredicatesTest.java | 54 public boolean apply(Integer i) { 64 public boolean apply(Integer i) { in apply() method in PredicatesTest.IsOdd 307 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied() 309 assertFalse(predicate.apply(1)); in testAnd_arrayDefensivelyCopied() 315 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied() 317 assertTrue(predicate.apply(1)); in testAnd_listDefensivelyCopied() 329 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied() 331 assertTrue(predicate.apply(1)); in testAnd_iterableDefensivelyCopied() 468 assertEquals(pre.apply(0), post.apply(0)); in testOr_serializationIterable() 475 assertFalse(predicate.apply(1)); in testOr_arrayDefensivelyCopied() [all …]
|
/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/ |
D | types.pass.cpp | 103 ex::apply(f_void_0, t); in test_void_0() 111 ex::apply(fp, t); in test_void_0() 119 ex::apply(a, t); in test_void_0() 127 ex::apply(a, t); in test_void_0() 139 ex::apply(f_void_1, t); in test_void_1() 147 ex::apply(fp, t); in test_void_1() 155 ex::apply(fn, t); in test_void_1() 163 ex::apply(a, t); in test_void_1() 175 ex::apply(f_void_2, t); in test_void_2() 183 ex::apply(fp, t); in test_void_2() [all …]
|
D | arg_type.pass.cpp | 38 assert(3 == ex::apply(call_with_value, t)); in test_values() 42 assert(4 == ex::apply(call_with_ref, t)); in test_values() 46 assert(5 == ex::apply(call_with_const_ref, t)); in test_values() 50 assert(6 == ex::apply(call_with_rvalue_ref, static_cast<Tuple &&>(t))); in test_values() 54 assert(8 == ex::apply(call_with_value, t)); in test_values() 58 assert(9 == ex::apply(call_with_const_ref, t)); in test_values() 70 assert(3 == ex::apply(call_with_value, t)); in test_refs() 75 assert(4 == ex::apply(call_with_ref, t)); in test_refs() 80 assert(5 == ex::apply(call_with_const_ref, t)); in test_refs() 85 assert(6 == ex::apply(call_with_value, t)); in test_refs() [all …]
|
D | large_arity.pass.cpp | 89 assert(ex::apply(val_fn, a)); in test_all() 90 assert(ex::apply(ref_fn, a)); in test_all() 91 assert(ex::apply(cref_fn, a)); in test_all() 92 assert(ex::apply(rref_fn, std::move(a))); in test_all() 96 assert(ex::apply(val_fn, a)); in test_all() 97 assert(ex::apply(cref_fn, a)); in test_all() 101 assert(ex::apply(val_fn, a)); in test_all() 102 assert(ex::apply(ref_fn, a)); in test_all() 103 assert(ex::apply(cref_fn, a)); in test_all() 104 assert(ex::apply(rref_fn, std::move(a))); in test_all() [all …]
|
D | extended_types.pass.cpp | 106 assert(1 == ex::apply(mem1, t)); in test_ext_int_0() 114 assert(1 == ex::apply(mem1, t)); in test_ext_int_0() 122 assert(1 == ex::apply(mem1, t)); in test_ext_int_0() 130 assert(1 == ex::apply(mem1, t)); in test_ext_int_0() 138 assert(1 == ex::apply(mem2, t)); in test_ext_int_0() 146 assert(1 == ex::apply(mem2, t)); in test_ext_int_0() 154 assert(1 == ex::apply(mem2, t)); in test_ext_int_0() 162 assert(1 == ex::apply(mem2, t)); in test_ext_int_0() 169 assert(42 == ex::apply(obj1, t)); in test_ext_int_0() 175 assert(42 == ex::apply(obj1, t)); in test_ext_int_0() [all …]
|
D | constexpr_types.pass.cpp | 57 static_assert(1 == ex::apply(f_int_0, t), ""); in test_0() 63 static_assert(1 == ex::apply(fp, t), ""); in test_0() 69 static_assert(1 == ex::apply(a, t), ""); in test_0() 79 static_assert(1 == ex::apply(f_int_1, t), ""); in test_1() 85 static_assert(2 == ex::apply(fp, t), ""); in test_1() 91 static_assert(3 == ex::apply(fn, t), ""); in test_1() 101 static_assert(3 == ex::apply(f_int_2, t), ""); in test_2() 107 static_assert(5 == ex::apply(fp, t), ""); in test_2() 113 static_assert(7 == ex::apply(a, t), ""); in test_2()
|
/external/droiddriver/src/io/appium/droiddriver/finders/ |
D | Predicates.java | 31 public boolean apply(Object o) { 55 public boolean apply(T input) { in not() 56 return !predicate.apply(input); in not() 83 public boolean apply(T input) { 84 return first.apply(input) && second.apply(input); 104 public boolean apply(T input) { 106 if (!each.apply(input)) { 130 public boolean apply(T input) { 132 if (each.apply(input)) { 153 public boolean apply(UiElement element) { [all …]
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
D | HtmlPolicyBuilderTest.java | 67 apply(new HtmlPolicyBuilder())); in testTextFilter() 82 apply(new HtmlPolicyBuilder() in testCannedFormattingTagFilter() 99 apply(new HtmlPolicyBuilder() in testCannedFormattingTagFilterNoItalics() 116 apply(new HtmlPolicyBuilder() in testSimpleTagFilter() 133 apply(new HtmlPolicyBuilder() in testLinksAllowed() 151 apply(new HtmlPolicyBuilder() in testExternalLinksAllowed() 170 apply(new HtmlPolicyBuilder() in testLinksWithNofollow() 190 apply(new HtmlPolicyBuilder() in testImagesAllowed() 210 apply(new HtmlPolicyBuilder() in testStyleFiltering() 229 apply(new HtmlPolicyBuilder() in testElementTransforming() [all …]
|
/external/v8/test/mjsunit/es6/ |
D | arrow-rest-params-lazy-parsing.js | 73 strictTest.apply(null, []); 74 strictTest.apply(null, [2, 1]); 75 strictTest.apply(null, [6, 5, 4, 3, 2, 1]); 76 strictTest.apply(null, [3, 2, 1]); 77 O.strict.apply(O, []); 78 O.strict.apply(O, [2, 1]); 79 O.strict.apply(O, [6, 5, 4, 3, 2, 1]); 80 O.strict.apply(O, [3, 2, 1]); 115 sloppyTest.apply(null, []); 116 sloppyTest.apply(null, [2, 1]); [all …]
|
D | arrow-rest-params.js | 71 strictTest.apply(null, []); 72 strictTest.apply(null, [2, 1]); 73 strictTest.apply(null, [6, 5, 4, 3, 2, 1]); 74 strictTest.apply(null, [3, 2, 1]); 75 O.strict.apply(O, []); 76 O.strict.apply(O, [2, 1]); 77 O.strict.apply(O, [6, 5, 4, 3, 2, 1]); 78 O.strict.apply(O, [3, 2, 1]); 113 sloppyTest.apply(null, []); 114 sloppyTest.apply(null, [2, 1]); [all …]
|
D | rest-params.js | 71 strictTest.apply(null, []); 72 strictTest.apply(null, [1, 2]); 73 strictTest.apply(null, [1, 2, 3, 4, 5, 6]); 74 strictTest.apply(null, [1, 2, 3]); 75 O.strict.apply(O, []); 76 O.strict.apply(O, [1, 2]); 77 O.strict.apply(O, [1, 2, 3, 4, 5, 6]); 78 O.strict.apply(O, [1, 2, 3]); 113 sloppyTest.apply(null, []); 114 sloppyTest.apply(null, [1, 2]); [all …]
|
D | string-repeat.js | 37 assertEquals("000", String.prototype.repeat.apply(0, [3])); 38 assertEquals("-1-1-1", String.prototype.repeat.apply(-1, [3])); 39 assertEquals("2.12.12.1", String.prototype.repeat.apply(2.1, [3])); 40 assertEquals("", String.prototype.repeat.apply([], [3])); 41 assertEquals("1,2,3", String.prototype.repeat.apply([1, 2, 3], [1])); 42 assertEquals("true", String.prototype.repeat.apply(true, [1])); 43 assertEquals("false", String.prototype.repeat.apply(false, [1])); 44 assertEquals("[object Object]", String.prototype.repeat.apply({}, [1]));
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.call/ |
D | p6.cpp | 4 …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/webkit/ |
D | function-apply-aliased-expected.txt | 24 This tests that we can correctly call Function.prototype.apply 29 PASS myObject.apply() is [myObject, "myObject.apply"] 30 PASS forwarder(myObject) is [myObject, "myObject.apply"] 33 PASS myFunction.apply(myObject, ['arg1']) is [myObject, "myFunction", "arg1"] 34 PASS myFunction.apply(myObject, arg1Array) is [myObject, "myFunction", "arg1"] 36 PASS myFunction.apply() is [this, "myFunction", undefined] 37 PASS myFunction.apply(null) is [this, "myFunction", undefined] 38 PASS myFunction.apply(undefined) is [this, "myFunction", undefined] 43 PASS myFunctionWithApply.apply(myObject, ['arg1']) is [myFunctionWithApply, "myFunctionWithApply.ap… 45 PASS myFunctionWithApply.apply(myObject, arg1Array) is [myFunctionWithApply, "myFunctionWithApply.a… [all …]
|
D | function-apply-aliased.js | 29 var myObject = { apply: function() { return [myObject, "myObject.apply"] } }; method 39 return f.apply(thisValue, arguments); 41 return g.apply(null, args); 44 recurseArguments.apply(null, arguments); 47 myFunctionWithApply.apply = function (arg1) { return [this, "myFunctionWithApply.apply", arg1] }; function 48 Function.prototype.aliasedApply = Function.prototype.apply;
|