/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.4-4.js | 61 var array = new Array(); 64 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(0)", "n", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(0)") ); 65 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(1)", "u", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(1)") ); 66 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(2)", "l", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(2)") ); 67 array[item++] = new TestCase( SECTION, "x = null; x.__proto.charAt = String.prototype.charAt; x.charAt(3)", "l", eval("x=null; x.__proto__.charAt = String.prototype.charAt; x.charAt(3)") ); 69 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(0)", "u", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(0)") ); 70 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(1)", "n", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(1)") ); 71 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x.charAt(2)", "d", eval("x=undefined; x.__proto__.charAt = String.prototype.charAt; x.charAt(2)") ); 72 array[item++] = new TestCase( SECTION, "x = undefined; x.__proto.charAt = String.prototype.charAt; x (…) [all...] |
15.5.4.10-1.js | 73 var array = new Array(); 76 array[item++] = new TestCase( SECTION, "String.prototype.substring.length", 2, String.prototype.substring.length ); 77 array[item++] = new TestCase( SECTION, "delete String.prototype.substring.length", false, delete String.prototype.substring.length ); 78 array[item++] = new TestCase( SECTION, "delete String.prototype.substring.length; String.prototype.substring.length", 2, eval("delete String.prototype.substring.length; String.prototype.substring.length") ); 84 array[item++] = new TestCase( SECTION, 89 array[item++] = new TestCase( SECTION, 94 array[item++] = new TestCase( SECTION, 99 array[item++] = new TestCase( SECTION, 105 array[item++] = new TestCase( SECTION [all...] |
/external/astl/tests/ |
test_algorithm.cpp | 75 int array[10]; local 77 std::fill(array, array + 10, 0xaa); 78 EXPECT_TRUE(array[0] == 0xaa); 79 EXPECT_TRUE(array[1] == 0xaa); 80 EXPECT_TRUE(array[2] == 0xaa); 81 EXPECT_TRUE(array[3] == 0xaa); 82 EXPECT_TRUE(array[4] == 0xaa); 83 EXPECT_TRUE(array[5] == 0xaa); 84 EXPECT_TRUE(array[6] == 0xaa) 93 int array[10]; local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.4.2-1.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "new Boolean(1)", "true", (new Boolean(1)).toString() ); 52 array[item++] = new TestCase( SECTION, "new Boolean(0)", "false", (new Boolean(0)).toString() ); 53 array[item++] = new TestCase( SECTION, "new Boolean(-1)", "true", (new Boolean(-1)).toString() ); 54 array[item++] = new TestCase( SECTION, "new Boolean('1')", "true", (new Boolean("1")).toString() ); 55 array[item++] = new TestCase( SECTION, "new Boolean('0')", "true", (new Boolean("0")).toString() ); 56 array[item++] = new TestCase( SECTION, "new Boolean(true)", "true", (new Boolean(true)).toString() ); 57 array[item++] = new TestCase( SECTION, "new Boolean(false)", "false", (new Boolean(false)).toString() ); 58 array[item++] = new TestCase( SECTION, "new Boolean('true')", "true", (new Boolean('true')).toStrin (…) [all...] |
15.6.2.js | 51 var array = new Array(); 54 array[item++] = new TestCase( SECTION, "typeof (new Boolean(1))", "object", typeof (new Boolean(1)) ); 55 array[item++] = new TestCase( SECTION, "(new Boolean(1)).constructor", Boolean.prototype.constructor, (new Boolean(1)).constructor ); 56 array[item++] = new TestCase( SECTION, 60 array[item++] = new TestCase( SECTION, "(new Boolean(1)).valueOf()", true, (new Boolean(1)).valueOf() ); 61 array[item++] = new TestCase( SECTION, "typeof new Boolean(1)", "object", typeof new Boolean(1) ); 62 array[item++] = new TestCase( SECTION, "(new Boolean(0)).constructor", Boolean.prototype.constructor, (new Boolean(0)).constructor ); 63 array[item++] = new TestCase( SECTION, 67 array[item++] = new TestCase( SECTION, "(new Boolean(0)).valueOf()", false, (new Boolean(0)).v (…) [all...] |
15.6.4.3-1.js | 47 var array = new Array(); 50 array[item++] = new TestCase( SECTION, "new Boolean(1)", true, (new Boolean(1)).valueOf() ); 52 array[item++] = new TestCase( SECTION, "new Boolean(0)", false, (new Boolean(0)).valueOf() ); 53 array[item++] = new TestCase( SECTION, "new Boolean(-1)", true, (new Boolean(-1)).valueOf() ); 54 array[item++] = new TestCase( SECTION, "new Boolean('1')", true, (new Boolean("1")).valueOf() ); 55 array[item++] = new TestCase( SECTION, "new Boolean('0')", true, (new Boolean("0")).valueOf() ); 56 array[item++] = new TestCase( SECTION, "new Boolean(true)", true, (new Boolean(true)).valueOf() ); 57 array[item++] = new TestCase( SECTION, "new Boolean(false)", false, (new Boolean(false)).valueOf() ); 58 array[item++] = new TestCase( SECTION, "new Boolean('true')", true, (new Boolean("true")).valueOf() (…) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.4.2.js | 42 var array = new Array(); 45 array[item++] = new TestCase( SECTION, "void(new String('string object'))", void 0, void(new String( 'string object' )) ); 46 array[item++] = new TestCase( SECTION, "void('string primitive')", void 0, void("string primitive") ); 47 array[item++] = new TestCase( SECTION, "void(Number.NaN)", void 0, void(Number.NaN) ); 48 array[item++] = new TestCase( SECTION, "void(Number.POSITIVE_INFINITY)", void 0, void(Number.POSITIVE_INFINITY) ); 49 array[item++] = new TestCase( SECTION, "void(1)", void 0, void(1) ); 50 array[item++] = new TestCase( SECTION, "void(0)", void 0, void(0) ); 51 array[item++] = new TestCase( SECTION, "void(-1)", void 0, void(-1) ); 52 array[item++] = new TestCase( SECTION, "void(Number.NEGATIVE_INFINITY)", void 0, void(Number. (…) [all...] |
11.12-1.js | 58 var array = new Array(); 61 array[item++] = new TestCase( SECTION, "true ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 62 array[item++] = new TestCase( SECTION, "false ? 'FAILED' : 'PASSED'", "PASSED", (false?"FAILED":"PASSED")); 64 array[item++] = new TestCase( SECTION, "1 ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 65 array[item++] = new TestCase( SECTION, "0 ? 'FAILED' : 'PASSED'", "PASSED", (false?"FAILED":"PASSED")); 66 array[item++] = new TestCase( SECTION, "-1 ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 68 array[item++] = new TestCase( SECTION, "NaN ? 'FAILED' : 'PASSED'", "PASSED", (Number.NaN?"FAILED":"PASSED")); 70 array[item++] = new TestCase( SECTION, "var VAR = true ? , : 'FAILED'", "PASSED", (VAR = true ? "PASSED" : "FAILED") ); 72 return ( array ); [all...] |
11.13.js | 58 var array = new Array(); 61 array[item++] = new TestCase( SECTION, "true ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 62 array[item++] = new TestCase( SECTION, "false ? 'FAILED' : 'PASSED'", "PASSED", (false?"FAILED":"PASSED")); 64 array[item++] = new TestCase( SECTION, "1 ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 65 array[item++] = new TestCase( SECTION, "0 ? 'FAILED' : 'PASSED'", "PASSED", (false?"FAILED":"PASSED")); 66 array[item++] = new TestCase( SECTION, "-1 ? 'PASSED' : 'FAILED'", "PASSED", (true?"PASSED":"FAILED")); 68 array[item++] = new TestCase( SECTION, "NaN ? 'FAILED' : 'PASSED'", "PASSED", (Number.NaN?"FAILED":"PASSED")); 70 array[item++] = new TestCase( SECTION, "var VAR = true ? , : 'FAILED'", "PASSED", (VAR = true ? "PASSED" : "FAILED") ); 72 return ( array ); [all...] |
11.6.3.js | 79 var array = new Array(); 82 array[item++] = new TestCase( SECTION, "Number.NaN + 1", Number.NaN, Number.NaN + 1 ); 83 array[item++] = new TestCase( SECTION, "1 + Number.NaN", Number.NaN, 1 + Number.NaN ); 85 array[item++] = new TestCase( SECTION, "Number.NaN - 1", Number.NaN, Number.NaN - 1 ); 86 array[item++] = new TestCase( SECTION, "1 - Number.NaN", Number.NaN, 1 - Number.NaN ); 88 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY + Number.POSITIVE_INFINITY", Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY + Number.POSITIVE_INFINITY); 89 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY + Number.NEGATIVE_INFINITY", Number.NEGATIVE_INFINITY, Number.NEGATIVE_INFINITY + Number.NEGATIVE_INFINITY); 91 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_INFINITY + Number.NEGATIVE_INFINITY); 92 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY + Number.POSITIVE_INFINITY", Number.N (…) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.15.js | 66 var array = new Array(); 69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length ); 71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() ); 72 array[item++] = new TestCase( SECTION, "Math.round(null)", 0, Math.round(0) ); 73 array[item++] = new TestCase( SECTION, "Math.round(void 0)", Number.NaN, Math.round(void 0) ); 74 array[item++] = new TestCase( SECTION, "Math.round(true)", 1, Math.round(true) ); 75 array[item++] = new TestCase( SECTION, "Math.round(false)", 0, Math.round(false) ); 76 array[item++] = new TestCase( SECTION, "Math.round('.99999')", 1, Math.round('.99999') ); 77 array[item++] = new TestCase( SECTION, "Math.round('12345e-2')", 123, Math.round('12345e-2') (…) [all...] |
15.8.1.js | 49 var array = new Array(); 52 array[item++] = new TestCase( "15.8.1.1", "Math.E", 2.7182818284590452354, Math.E ); 53 array[item++] = new TestCase( "15.8.1.1", "typeof Math.E", "number", typeof Math.E ); 54 array[item++] = new TestCase( "15.8.1.2", "Math.LN10", 2.302585092994046, Math.LN10 ); 55 array[item++] = new TestCase( "15.8.1.2", "typeof Math.LN10", "number", typeof Math.LN10 ); 56 array[item++] = new TestCase( "15.8.1.3", "Math.LN2", 0.6931471805599453, Math.LN2 ); 57 array[item++] = new TestCase( "15.8.1.3", "typeof Math.LN2", "number", typeof Math.LN2 ); 58 array[item++] = new TestCase( "15.8.1.4", "Math.LOG2E", 1.4426950408889634, Math.LOG2E ); 59 array[item++] = new TestCase( "15.8.1.4", "typeof Math.LOG2E", "number", typeof Math.LOG2 (…) [all...] |
15.8.2.1.js | 46 var array = new Array(); 49 array[item++] = new TestCase( SECTION, "Math.abs.length", 1, Math.abs.length ); 51 array[item++] = new TestCase( SECTION, "Math.abs()", Number.NaN, Math.abs() ); 52 array[item++] = new TestCase( SECTION, "Math.abs( void 0 )", Number.NaN, Math.abs(void 0) ); 53 array[item++] = new TestCase( SECTION, "Math.abs( null )", 0, Math.abs(null) ); 54 array[item++] = new TestCase( SECTION, "Math.abs( true )", 1, Math.abs(true) ); 55 array[item++] = new TestCase( SECTION, "Math.abs( false )", 0, Math.abs(false) ); 56 array[item++] = new TestCase( SECTION, "Math.abs( string primitive)", Number.NaN, Math.abs("a string primitive") ); 57 array[item++] = new TestCase( SECTION, "Math.abs( string object )", Number.NaN, Math.abs(new Str (…) [all...] |
15.8.2.6.js | 51 var array = new Array(); 54 array[item++] = new TestCase( SECTION, "Math.ceil.length", 1, Math.ceil.length ); 56 array[item++] = new TestCase( SECTION, "Math.ceil(NaN)", Number.NaN, Math.ceil(Number.NaN) ); 57 array[item++] = new TestCase( SECTION, "Math.ceil(null)", 0, Math.ceil(null) ); 58 array[item++] = new TestCase( SECTION, "Math.ceil()", Number.NaN, Math.ceil() ); 59 array[item++] = new TestCase( SECTION, "Math.ceil(void 0)", Number.NaN, Math.ceil(void 0) ); 61 array[item++] = new TestCase( SECTION, "Math.ceil('0')", 0, Math.ceil('0') ); 62 array[item++] = new TestCase( SECTION, "Math.ceil('-0')", -0, Math.ceil('-0') ); 63 array[item++] = new TestCase( SECTION, "Infinity/Math.ceil('0')", Infinity, Infinity/Math.ceil('0')) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.5-2.js | 91 var array = new Array(); 94 array[item++] = new TestCase( SECTION, "0 << 0", 0, 0 << 0 ); 95 array[item++] = new TestCase( SECTION, "-0 << 0", 0, -0 << 0 ); 96 array[item++] = new TestCase( SECTION, "Infinity << 0", 0, "Infinity" << 0 ); 97 array[item++] = new TestCase( SECTION, "-Infinity << 0", 0, "-Infinity" << 0 ); 98 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY << 0", 0, Number.POSITIVE_INFINITY << 0 ); 99 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY << 0", 0, Number.NEGATIVE_INFINITY << 0 ); 100 array[item++] = new TestCase( SECTION, "Number.NaN << 0", 0, Number.NaN << 0 ); 102 array[item++] = new TestCase( SECTION, "Number.MIN_VALUE << 0", 0, Number.MIN_VAL (…) [all...] |
9.6.js | 91 var array = new Array(); 94 array[item++] = new TestCase( SECTION, "0 >>> 0", 0, 0 >>> 0 ); 95 // array[item++] = new TestCase( SECTION, "+0 >>> 0", 0, +0 >>> 0); 96 array[item++] = new TestCase( SECTION, "-0 >>> 0", 0, -0 >>> 0 ); 97 array[item++] = new TestCase( SECTION, "'Infinity' >>> 0", 0, "Infinity" >>> 0 ); 98 array[item++] = new TestCase( SECTION, "'-Infinity' >>> 0", 0, "-Infinity" >>> 0); 99 array[item++] = new TestCase( SECTION, "'+Infinity' >>> 0", 0, "+Infinity" >>> 0 ); 100 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY >>> 0", 0, Number.POSITIVE_INFINITY >>> 0 ); 101 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY >>> 0", 0, Number.NEGATIV (…) [all...] |
9.3.1-2.js | 67 var array = new Array(); 72 array[item++] = new TestCase( SECTION, "Number(00)", 0, Number("00")); 73 array[item++] = new TestCase( SECTION, "Number(01)", 1, Number("01")); 74 array[item++] = new TestCase( SECTION, "Number(02)", 2, Number("02")); 75 array[item++] = new TestCase( SECTION, "Number(03)", 3, Number("03")); 76 array[item++] = new TestCase( SECTION, "Number(04)", 4, Number("04")); 77 array[item++] = new TestCase( SECTION, "Number(05)", 5, Number("05")); 78 array[item++] = new TestCase( SECTION, "Number(06)", 6, Number("06")); 79 array[item++] = new TestCase( SECTION, "Number(07)", 7, Number("07")) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.7.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "isFinite.length", 1, isFinite.length ); 52 array[item++] = new TestCase( SECTION, "isFinite.length = null; isFinite.length", 1, eval("isFinite.length=null; isFinite.length") ); 53 array[item++] = new TestCase( SECTION, "delete isFinite.length", false, delete isFinite.length ); 54 array[item++] = new TestCase( SECTION, "delete isFinite.length; isFinite.length", 1, eval("delete isFinite.length; isFinite.length") ); 55 array[item++] = new TestCase( SECTION, "var MYPROPS=''; for ( p in isFinite ) { MYPROPS+= p }; MYPROPS", "", eval("var MYPROPS=''; for ( p in isFinite ) { MYPROPS += p }; MYPROPS") ); 57 array[item++] = new TestCase( SECTION, "isFinite()", false, isFinite() ); 58 array[item++] = new TestCase( SECTION, "isFinite( null )", true, isFinite(null) ); 59 array[item++] = new TestCase( SECTION, "isFinite( void 0 )", false, isFinite(void 0) ) [all...] |
/external/bluetooth/bluez/tools/ |
bccmd.c | 242 uint8_t array[8]; local 251 memset(array, 0, sizeof(array)); 252 array[0] = def & 0xff; 253 array[1] = def >> 8; 255 err = transport_read(transport, CSR_VARID_GET_NEXT_BUILDDEF, array, 8); 261 nextdef = array[2] | (array[3] << 8); 276 uint8_t array[8]; local 284 memset(array, 0, sizeof(array)) 304 uint8_t array[8]; local 327 uint8_t array[8]; local 350 uint8_t array[8]; local 410 uint8_t array[130]; local 435 uint8_t array[8]; local 459 uint8_t array[8]; local 503 uint8_t array[8]; local 532 uint8_t array[8]; local 557 uint8_t array[8]; local 584 uint8_t array[8]; local 670 uint8_t array[128]; local 745 uint8_t array[128]; local 851 uint8_t array[8]; local 888 uint8_t array[8]; local 933 uint8_t array[256]; local 1002 uint8_t array[256]; local 1050 uint8_t array[256]; local [all...] |
/libcore/luni/src/main/java/java/util/ |
UnsafeArrayList.java | 19 import java.lang.reflect.Array; 22 * An array-backed list that exposes its array. 28 private T[] array; field in class:UnsafeArrayList 32 this.array = (T[]) Array.newInstance(elementType, initialCapacity); 37 if (size == array.length) { 38 T[] newArray = (T[]) Array.newInstance(elementType, size * 2); 39 System.arraycopy(array, 0, newArray, 0, size); 40 array = newArray 47 public T[] array() { method in class:UnsafeArrayList [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4-1.js | 24 ECMA Section: 15.4 Array Objects 26 Description: Every Array object has a length property whose value 37 var TITLE = "Array Objects"; 45 var array = new Array(); 48 array[item++] = new TestCase( SECTION, 49 "var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr[Math.pow(2,32)-2]", 51 eval("var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr[Math.pow(2,32)-2]") 53 array[item++] = new TestCase( SECTION, 54 "var myarr = new Array(); myarr[Math.pow(2,32)-2]='hi'; myarr.length" [all...] |
/external/guava/src/com/google/common/primitives/ |
SignedBytes.java | 85 * Returns the least value present in {@code array}. 87 * @param array a <i>nonempty</i> array of {@code byte} values 88 * @return the value present in {@code array} that is less than or equal to 89 * every other value in the array 90 * @throws IllegalArgumentException if {@code array} is empty 92 public static byte min(byte... array) { 93 checkArgument(array.length > 0); 94 byte min = array[0]; 95 for (int i = 1; i < array.length; i++) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ObjectObjects/ |
15.2.4.2.js | 49 var array = new Array(); 52 array[item++] = new TestCase( SECTION, "(new Object()).toString()", "[object Object]", (new Object()).toString() ); 54 array[item++] = new TestCase( SECTION, "myvar = this; myvar.toString = Object.prototype.toString; myvar.toString()", 58 array[item++] = new TestCase( SECTION, "myvar = MyObject; myvar.toString = Object.prototype.toString; myvar.toString()", 62 array[item++] = new TestCase( SECTION, "myvar = new MyObject( true ); myvar.toString = Object.prototype.toString; myvar.toString()", 66 array[item++] = new TestCase( SECTION, "myvar = new Number(0); myvar.toString = Object.prototype.toString; myvar.toString()", 70 array[item++] = new TestCase( SECTION, "myvar = new String(''); myvar.toString = Object.prototype.toString; myvar.toString()", 74 array[item++] = new TestCase( SECTION, "myvar = Math; myvar.toString = Object.prototype.toString; myvar.toString()", 78 array[item++] = new TestCase( SECTION, "myvar = new Function(); myvar.toString = Object.prototype.toStr (…) [all...] |
/external/bluetooth/glib/tests/ |
qsort-test.c | 8 guint32 array[SIZE]; variable 22 array[i] = g_random_int (); 24 g_qsort_with_data (array, SIZE, sizeof (guint32), sort, NULL); 27 g_assert (array[i] <= array[i+1]); 30 g_qsort_with_data (array, 0, sizeof (guint32), sort, NULL);
|
/external/clang/test/CXX/temp/temp.fct.spec/temp.deduct/temp.deduct.type/ |
p17.cpp | 20 int array[5]; local 21 h(array); 22 h<5>(array); 28 int array[5]; local 29 h(array, a); // expected-error{{no matching function for call}} 30 h<5>(array, a);
|