/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.11.js | 50 var array = new Array(); 53 array[item++] = new TestCase( SECTION, "Math.max.length", 2, Math.max.length ); 55 array[item++] = new TestCase( SECTION, "Math.max()", -Infinity, Math.max() ); 56 array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( void 0, 1 ) ); 57 array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( void 0, void 0 ) ); 58 array[item++] = new TestCase( SECTION, "Math.max(null, 1)", 1, Math.max( null, 1 ) ); 59 array[item++] = new TestCase( SECTION, "Math.max(-1, null)", 0, Math.max( -1, null ) ); 60 array[item++] = new TestCase( SECTION, "Math.max(true, false)", 1, Math.max(true,false) ); 62 array[item++] = new TestCase( SECTION, "Math.max('-99','99')", 99, Math.max( "-99" (…) [all...] |
15.8.2.18.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "Math.tan.length", 1, Math.tan.length ); 53 array[item++] = new TestCase( SECTION, "Math.tan()", Number.NaN, Math.tan() ); 54 array[item++] = new TestCase( SECTION, "Math.tan(void 0)", Number.NaN, Math.tan(void 0)); 55 array[item++] = new TestCase( SECTION, "Math.tan(null)", 0, Math.tan(null) ); 56 array[item++] = new TestCase( SECTION, "Math.tan(false)", 0, Math.tan(false) ); 58 array[item++] = new TestCase( SECTION, "Math.tan(NaN)", Number.NaN, Math.tan(Number.NaN) ); 59 array[item++] = new TestCase( SECTION, "Math.tan(0)", 0, Math.tan(0)); 60 array[item++] = new TestCase( SECTION, "Math.tan(-0)", -0, Math.tan(-0)) [all...] |
15.8.2.2.js | 46 var array = new Array(); 49 array[item++] = new TestCase( SECTION, "Math.acos.length", 1, Math.acos.length ); 51 array[item++] = new TestCase( SECTION, "Math.acos(void 0)", Number.NaN, Math.acos(void 0) ); 52 array[item++] = new TestCase( SECTION, "Math.acos()", Number.NaN, Math.acos() ); 53 array[item++] = new TestCase( SECTION, "Math.acos(null)", Math.PI/2, Math.acos(null) ); 54 array[item++] = new TestCase( SECTION, "Math.acos(NaN)", Number.NaN, Math.acos(Number.NaN) ); 56 array[item++] = new TestCase( SECTION, "Math.acos(a string)", Number.NaN, Math.acos("a string") ); 57 array[item++] = new TestCase( SECTION, "Math.acos('0')", Math.PI/2, Math.acos('0') ); 58 array[item++] = new TestCase( SECTION, "Math.acos('1')", 0, Math.acos('1') ) [all...] |
15.8.2.4.js | 50 var array = new Array(); 53 array[item++] = new TestCase( SECTION, "Math.atan.length", 1, Math.atan.length ); 55 array[item++] = new TestCase( SECTION, "Math.atan()", Number.NaN, Math.atan() ); 56 array[item++] = new TestCase( SECTION, "Math.atan(void 0)", Number.NaN, Math.atan(void 0) ); 57 array[item++] = new TestCase( SECTION, "Math.atan(null)", 0, Math.atan(null) ); 58 array[item++] = new TestCase( SECTION, "Math.atan(NaN)", Number.NaN, Math.atan(Number.NaN) ); 60 array[item++] = new TestCase( SECTION, "Math.atan('a string')", Number.NaN, Math.atan("a string") ); 61 array[item++] = new TestCase( SECTION, "Math.atan('0')", 0, Math.atan('0') ); 62 array[item++] = new TestCase( SECTION, "Math.atan('1')", Math.PI/4, Math.atan('1') ) [all...] |
15.8.2.10.js | 49 var array = new Array(); 52 array[item++] = new TestCase( SECTION, "Math.log.length", 1, Math.log.length ); 54 array[item++] = new TestCase( SECTION, "Math.log()", Number.NaN, Math.log() ); 55 array[item++] = new TestCase( SECTION, "Math.log(void 0)", Number.NaN, Math.log(void 0) ); 56 array[item++] = new TestCase( SECTION, "Math.log(null)", Number.NEGATIVE_INFINITY, Math.log(null) ); 57 array[item++] = new TestCase( SECTION, "Math.log(true)", 0, Math.log(true) ); 58 array[item++] = new TestCase( SECTION, "Math.log(false)", -Infinity, Math.log(false) ); 59 array[item++] = new TestCase( SECTION, "Math.log('0')", -Infinity, Math.log('0') ); 60 array[item++] = new TestCase( SECTION, "Math.log('1')", 0, Math.log('1') ) [all...] |
15.8.2.9.js | 52 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "Math.floor.length", 1, Math.floor.length ); 57 array[item++] = new TestCase( SECTION, "Math.floor()", Number.NaN, Math.floor() ); 58 array[item++] = new TestCase( SECTION, "Math.floor(void 0)", Number.NaN, Math.floor(void 0) ); 59 array[item++] = new TestCase( SECTION, "Math.floor(null)", 0, Math.floor(null) ); 60 array[item++] = new TestCase( SECTION, "Math.floor(true)", 1, Math.floor(true) ); 61 array[item++] = new TestCase( SECTION, "Math.floor(false)", 0, Math.floor(false) ); 63 array[item++] = new TestCase( SECTION, "Math.floor('1.1')", 1, Math.floor("1.1") ); 64 array[item++] = new TestCase( SECTION, "Math.floor('-1.1')", -2, Math.flo (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.2-1.js | 104 var array = new Array(); 110 array[item++] = new TestCase( SECTION, "parseInt.length", 2, parseInt.length ); 111 array[item++] = new TestCase( SECTION, "parseInt.length = 0; parseInt.length", 2, eval("parseInt.length = 0; parseInt.length") ); 112 array[item++] = new TestCase( SECTION, "var PROPS=''; for ( var p in parseInt ) { PROPS += p; }; PROPS", "", eval("var PROPS=''; for ( var p in parseInt ) { PROPS += p; }; PROPS") ); 113 array[item++] = new TestCase( SECTION, "delete parseInt.length", false, delete parseInt.length ); 114 array[item++] = new TestCase( SECTION, "delete parseInt.length; parseInt.length", 2, eval("delete parseInt.length; parseInt.length") ); 115 array[item++] = new TestCase( SECTION, "parseInt.length = null; parseInt.length", 2, eval("parseInt.length = null; parseInt.length") ); 117 array[item++] = new TestCase( SECTION, "parseInt()", NaN, parseInt() ); 118 array[item++] = new TestCase( SECTION, "parseInt('')", NaN, parseInt("") ) [all...] |
/external/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)") 49 * Returns a new array of the given length with the same type as a reference 50 * array. 52 * @param reference any array of the desired type 53 * @param length the length of the new array 60 * Returns a new array that contains the concatenated contents of two arrays. 62 * @param first the first array of elements to concatenate 63 * @param second the second array of elements to concatenat [all...] |
/external/skia/src/effects/ |
SkColorMatrixFilter.cpp | 6 static int32_t rowmul4(const int32_t array[], unsigned r, unsigned g, 8 return array[0] * r + array[1] * g + array[2] * b + array[3] * a + array[4]; 11 static int32_t rowmul3(const int32_t array[], unsigned r, unsigned g, 13 return array[0] * r + array[1] * g + array[2] * b + array[4] 18 const int32_t* SK_RESTRICT array = state->fArray; local 30 const int32_t* SK_RESTRICT array = state->fArray; local 41 const int32_t* SK_RESTRICT array = state->fArray; local 53 const int32_t* SK_RESTRICT array = state->fArray; local 64 const int32_t* SK_RESTRICT array = state->fArray; local 77 const int32_t* SK_RESTRICT array = state->fArray; local 89 const int32_t* SK_RESTRICT array = state->fArray; local 101 const int32_t* SK_RESTRICT array = state->fArray; local 121 int32_t* SK_RESTRICT array = fState.fArray; local [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.6.2-1.js | 65 var array = new Array(); 72 array[item++] = new TestCase( SECTION, 77 array[item++] = new TestCase( SECTION, 82 array[item++] = new TestCase( SECTION, 87 array[item++] = new TestCase( SECTION, 92 array[item++] = new TestCase( SECTION, 97 array[item++] = new TestCase( SECTION, 102 array[item++] = new TestCase( SECTION, 107 array[item++] = new TestCase( SECTION [all...] |
11.6.1-1.js | 87 var array = new Array(); 94 array[item++] = new TestCase( SECTION, 99 array[item++] = new TestCase( SECTION, 104 array[item++] = new TestCase( SECTION, 109 array[item++] = new TestCase( SECTION, 114 array[item++] = new TestCase( SECTION, 119 array[item++] = new TestCase( SECTION, 124 array[item++] = new TestCase( SECTION, 129 array[item++] = new TestCase( SECTION [all...] |
11.6.1-2.js | 86 var array = new Array(); 93 array[item++] = new TestCase( SECTION, 98 array[item++] = new TestCase( SECTION, 103 array[item++] = new TestCase( SECTION, 108 array[item++] = new TestCase( SECTION, 113 array[item++] = new TestCase( SECTION, 118 array[item++] = new TestCase( SECTION, 123 array[item++] = new TestCase( SECTION, 128 array[item++] = new TestCase( SECTION [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/ObjectObjects/ |
15.2.2.1.js | 55 var array = new Array(); 58 array[item++] = new TestCase( SECTION, "typeof new Object(null)", "object", typeof new Object(null) ); 59 array[item++] = new TestCase( SECTION, "MYOB = new Object(null); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object Object]", eval("MYOB = new Object(null); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 61 array[item++] = new TestCase( SECTION, "typeof new Object(void 0)", "object", typeof new Object(void 0) ); 62 array[item++] = new TestCase( SECTION, "MYOB = new Object(new Object(void 0)); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object Object]", eval("MYOB = new Object(new Object(void 0)); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 64 array[item++] = new TestCase( SECTION, "typeof new Object('string')", "object", typeof new Object('string') ); 65 array[item++] = new TestCase( SECTION, "MYOB = (new Object('string'); MYOB.toString = Object.prototype.toString; MYOB.toString()", "[object String]", eval("MYOB = new Object('string'); MYOB.toString = Object.prototype.toString; MYOB.toString()") ); 66 array[item++] = new TestCase( SECTION, "(new Object('string').valueOf()", "string", (new Object('string')).valueOf() ); 68 array[item++] = new TestCase( SECTION, "typeof new Object('')", "object", typeof n (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.4-3.js | 67 var array = new Array(); 73 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "h", foo.charAt(0) ); 74 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "e", foo.charAt(1) ); 75 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(2) ); 76 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "l", foo.charAt(3) ); 77 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "o", foo.charAt(4) ); 78 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(-1) ); 79 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello'); ", "", foo.charAt(5) ); 83 array[item++] = new TestCase( SECTION, "var boo = new MyObject(true); ", "t", boo.charAt(0) ) [all...] |
15.5.5.1.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, 56 array[item++] = new TestCase( SECTION, 61 array[item++] = new TestCase( SECTION, 66 array[item++] = new TestCase( SECTION, 71 array[item++] = new TestCase( SECTION, 75 return array;
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Number/ |
15.7.4.2-1.js | 49 var array = new Array(); 53 array[item++] = new TestCase(SECTION, "Number.prototype.toString()", "0", "Number.prototype.toString()" ); 54 array[item++] = new TestCase(SECTION, "typeof(Number.prototype.toString())", "string", "typeof(Number.prototype.toString())" ); 56 array[item++] = new TestCase(SECTION, "s = Number.prototype.toString; o = new Number(); o.toString = s; o.toString()", "0", "s = Number.prototype.toString; o = new Number(); o.toString = s; o.toString()" ); 57 array[item++] = new TestCase(SECTION, "s = Number.prototype.toString; o = new Number(1); o.toString = s; o.toString()", "1", "s = Number.prototype.toString; o = new Number(1); o.toString = s; o.toString()" ); 58 array[item++] = new TestCase(SECTION, "s = Number.prototype.toString; o = new Number(-1); o.toString = s; o.toString()", "-1", "s = Number.prototype.toString; o = new Number(-1); o.toString = s; o.toString()" ); 60 array[item++] = new TestCase(SECTION, "var MYNUM = new Number(255); MYNUM.toString(10)", "255", "var MYNUM = new Number(255); MYNUM.toString(10)" ); 61 array[item++] = new TestCase(SECTION, "var MYNUM = new Number(Number.NaN); MYNUM.toString(10)", "NaN", "var MYNUM = new Number(Number.NaN); MYNUM.toString(10)" ); 62 array[item++] = new TestCase(SECTION, "var MYNUM = new Number(Infinity); MYNUM.toString(10)", "Infinit (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/LexicalConventions/ |
7.1-1.js | 54 var array = new Array(); 59 array[item++] = new TestCase( SECTION, 'var'+'\t'+'MYVAR1=10;MYVAR1', 10, eval('var'+'\t'+'MYVAR1=10;MYVAR1') ); 60 array[item++] = new TestCase( SECTION, 'var'+'\f'+'MYVAR2=10;MYVAR2', 10, eval('var'+'\f'+'MYVAR2=10;MYVAR2') ); 61 array[item++] = new TestCase( SECTION, 'var'+'\v'+'MYVAR2=10;MYVAR2', 10, eval('var'+'\v'+'MYVAR2=10;MYVAR2') ); 62 array[item++] = new TestCase( SECTION, 'var'+'\ '+'MYVAR2=10;MYVAR2', 10, eval('var'+'\ '+'MYVAR2=10;MYVAR2') ); 66 array[item++] = new TestCase( SECTION, 67 "var a = new Array(12345); a\t\v\f .\\u0009\\000B\\u000C\\u0020length", 69 eval("var a = new Array(12345); a\t\v\f .\u0009\u0020\u000C\u000Blength") ); 72 return ( array ); [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.5.1-1.js | 26 Array objects use a variation of the [[Put]] method used for other native 29 Assume A is an Array object and P is a string. 42 8. If P is not an array index, return. 61 var TITLE = "Array [[Put]] (P, V)"; 69 var array = new Array(); 75 array[item++] = new TestCase( SECTION, 76 "var A = new Array(); A.length = 1000; A.length", 78 eval("var A = new Array(); A.length = 1000; A.length") ); 80 // A has Property P, and P is not length or an array inde [all...] |
15.4.2.2-1.js | 24 ECMA Section: 15.4.2.2 new Array(len) 30 object is set to the original Array prototype object, 31 the one that is the initial value of Array.prototype(0) 35 is set to "Array". 57 var TITLE = "The Array Constructor: new Array( len )"; 65 var array = new Array(); 68 array[item++] = new TestCase( SECTION, "new Array(0)", "", (new Array(0)).toString() ) [all...] |
15.4.4.3-1.js | 24 ECMA Section: 15.4.4.3-1 Array.prototype.join() 33 ECMA-262 Ed.3 Section 15.4.4.5 Array.prototype.join() 43 writeHeaderToLog( SECTION + " Array.prototype.join()"); 49 var array = new Array(); 52 var ARR_PROTOTYPE = Array.prototype; 54 array[item++] = new TestCase( SECTION, "Array.prototype.join.length", 1, Array.prototype.join.length ); 55 array[item++] = new TestCase( SECTION, "delete Array.prototype.join.length", false, delete Array.pro (…) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
HexDump.java | 23 public static String dumpHexString(byte[] array) 25 return dumpHexString(array, 0, array.length); 28 public static String dumpHexString(byte[] array, int offset, int length) 61 byte b = array[i]; 99 public static String toHexString(byte[] array) 101 return toHexString(array, 0, array.length); 104 public static String toHexString(byte[] array, int offset, int length) 111 byte b = array[i] [all...] |
/external/v8/test/mjsunit/ |
array-slice.js | 28 // Check that slicing array of holes keeps it as array of holes 30 var array = new Array(10); 32 var sliced = array.slice(); 33 assertEquals(array.length, sliced.length); 41 var array = new Array(7); 44 assertEquals(array, array.slice()) [all...] |
/external/guava/src/com/google/common/primitives/ |
Booleans.java | 74 * {@code array}. 76 * <p><b>Note:</b> consider representing the array as a {@link 77 * BitSet} instead, replacing {@code Booleans.contains(array, true)} 78 * with {@code !bitSet.isEmpty()} and {@code Booleans.contains(array, false)} 81 * @param array an array of {@code boolean} values, possibly empty 83 * @return {@code true} if {@code array[i] == target} for some value of {@code 86 public static boolean contains(boolean[] array, boolean target) { 87 for (boolean value : array) { 97 * {@code array} 346 final boolean[] array; field in class:Booleans.BooleanArrayAsList [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.2.1.js | 46 // all tests must call a function that returns an array of TestCase objects. 50 var array = new Array(); 57 array[item++] = new TestCase( SECTION, "Date(1970,0,1,0,0,0,0)", (new Date()).toString(), Date(1970,0,1,0,0,0,0) ); 58 array[item++] = new TestCase( SECTION, "Date(1969,11,31,15,59,59,999)", (new Date()).toString(), Date(1969,11,31,15,59,59,999)) 59 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,0,0)", (new Date()).toString(), Date(1969,11,31,16,0,0,0)) 60 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,0,1)", (new Date()).toString(), Date(1969,11,31,16,0,0,1)) 63 array[item++] = new TestCase( SECTION, "Date(1999,11,15,59,59,999)", (new Date()).toString(), Date(1999,11,15,59,59,999)); 64 array[item++] = new TestCase( SECTION, "Date(1999,11,16,0,0,0,0)", (new Date()).toString(), Date(1999,11,16,0,0,0,0)); 65 array[item++] = new TestCase( SECTION, "Date(1999,11,31,23,59,59,999)", (new Date()).toString(), (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/ |
15.3.1.1-2.js | 51 var array = new Array(); 62 array[item++] = new TestCase( SECTION, "myfunc1 = Function('a','b','c'); myfunc.toString = Object.prototype.toString; myfunc.toString()", 66 array[item++] = new TestCase( SECTION, "myfunc1.length", 3, myfunc1.length ); 67 array[item++] = new TestCase( SECTION, "myfunc1.prototype.toString()", "[object Object]", myfunc1.prototype.toString() ); 69 array[item++] = new TestCase( SECTION, "myfunc1.prototype.constructor", myfunc1, myfunc1.prototype.constructor ); 70 array[item++] = new TestCase( SECTION, "myfunc1.arguments", null, myfunc1.arguments ); 71 array[item++] = new TestCase( SECTION, "myfunc1(1,2,3)", 6, myfunc1(1,2,3) ); 72 array[item++] = new TestCase( SECTION, "var MYPROPS = ''; for ( var p in myfunc1.prototype ) { MYPROPS += p; }; MYPROPS", 76 array[item++] = new TestCase( SECTION, "myfunc2 = Function('a','b','c'); myfunc.toString = Object.prot (…) [all...] |