/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/guava/guava/src/com/google/common/collect/ |
ObjectArrays.java | 37 * Returns a new array of the given length with the specified component type. 40 * @param length the length of the new array 42 @GwtIncompatible("Array.newInstance(Class, int)") 48 * Returns a new array of the given length with the same type as a reference 49 * array. 51 * @param reference any array of the desired type 52 * @param length the length of the new array 59 * Returns a new array that contains the concatenated contents of two arrays. 61 * @param first the first array of elements to concatenate 62 * @param second the second array of elements to concatenat [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
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...] |
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...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
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...] |
/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...] |
/ndk/sources/cxx-stl/llvm-libc++/test/algorithms/alg.sorting/alg.nth.element/ |
nth_element.pass.cpp | 26 int* array = new int[N]; 28 array[i] = i; 29 std::random_shuffle(array, array+N); 30 std::nth_element(array, array+M, array+N); 31 assert(array[M] == M); 32 delete [] array;
|
/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/guava/src/com/google/common/primitives/ |
SignedBytes.java | 94 * Returns the least value present in {@code array}. 96 * @param array a <i>nonempty</i> array of {@code byte} values 97 * @return the value present in {@code array} that is less than or equal to 98 * every other value in the array 99 * @throws IllegalArgumentException if {@code array} is empty 101 public static byte min(byte... array) { 102 checkArgument(array.length > 0); 103 byte min = array[0]; 104 for (int i = 1; i < array.length; i++) [all...] |
/external/valgrind/main/memcheck/tests/ |
custom_alloc.c | 111 int *array, *array3; local 114 array = custom_alloc(sizeof(int) * 10); 115 array[8] = 8; 116 array[9] = 8; 117 array[10] = 10; // invalid write (ok w/o MALLOCLIKE -- in superblock) 119 VALGRIND_RESIZEINPLACE_BLOCK(array, sizeof(int) * 10, sizeof(int) * 5, RZ); 120 array[4] = 7; 121 array[5] = 9; // invalid write 123 // Make the entire array defined again such that it can be verified whether 125 VALGRIND_MAKE_MEM_DEFINED(array, sizeof(int) * 10) [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/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
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...] |
/development/ndk/platforms/android-3/arch-arm/src/ |
crtbegin_dynamic.c | 78 structors_array_t array; local 81 array.preinit_array = &__PREINIT_ARRAY__; 82 array.init_array = &__INIT_ARRAY__; 83 array.fini_array = &__FINI_ARRAY__; 84 array.ctor_list = &__CTOR_LIST__; 87 __libc_init(elfdata, (void *) 0, &main, &array);
|
crtbegin_static.c | 78 structors_array_t array; local 81 array.preinit_array = &__PREINIT_ARRAY__; 82 array.init_array = &__INIT_ARRAY__; 83 array.fini_array = &__FINI_ARRAY__; 84 array.ctor_list = &__CTOR_LIST__; 87 __libc_init(elfdata, (void *) 0, &main, &array);
|
/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);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
sanitizer_common_test.cc | 19 static bool IsSorted(const uptr *array, uptr n) { 21 if (array[i] < array[i - 1]) return false; 27 uptr array[100]; local 31 array[i] = i; 33 SortArray(array, n); 34 EXPECT_TRUE(IsSorted(array, n)); 37 array[i] = n - 1 - i; 39 SortArray(array, n); 40 EXPECT_TRUE(IsSorted(array, n)) [all...] |