/external/webkit/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/ |
15.3.2.1-2.js | 44 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "myfunc1 = new Function('a','b','c'); myfunc.toString = Object.prototype.toString; myfunc.toString()", 59 array[item++] = new TestCase( SECTION, "myfunc1.length", 3, myfunc1.length ); 60 array[item++] = new TestCase( SECTION, "myfunc1.prototype.toString()", "[object Object]", myfunc1.prototype.toString() ); 62 array[item++] = new TestCase( SECTION, "myfunc1.prototype.constructor", myfunc1, myfunc1.prototype.constructor ); 63 array[item++] = new TestCase( SECTION, "myfunc1.arguments", null, myfunc1.arguments ); 64 array[item++] = new TestCase( SECTION, "myfunc1(1,2,3)", 6, myfunc1(1,2,3) ); 65 array[item++] = new TestCase( SECTION, "var MYPROPS = ''; for ( var p in myfunc1.prototype ) { MYPROPS += p; }; MYPROPS", 69 array[item++] = new TestCase( SECTION, "myfunc2 = new Function('a','b','c'); myfunc.toString = Object.p (…) [all...] |
15.3.5-1.js | 68 var array = new Array(); 93 array[item++] = new TestCase( SECTION, "MyFunc.length", 2000, MyFunc.length ); 94 array[item++] = new TestCase( SECTION, "var MY_OB = eval('MyFunc(s)')", 1, eval("var MY_OB = MyFunc("+s+"); MY_OB") ); 95 array[item++] = new TestCase( SECTION, "MyFunc.prototype.toString()", "[object Object]", MyFunc.prototype.toString() ); 96 array[item++] = new TestCase( SECTION, "typeof MyFunc.prototype", "object", typeof MyFunc.prototype ); 99 array[item++] = new TestCase( SECTION, "MyObject.length", 2000, MyObject.length ); 101 array[item++] = new TestCase( SECTION, "FUN1 = new Function( 'a','b','c', 'return FUN1.length' ); FUN1.length", 3, eval("FUN1 = new Function( 'a','b','c', 'return FUN1.length' ); FUN1.length") ); 102 array[item++] = new TestCase( SECTION, "FUN1 = new Function( 'a','b','c', 'return FUN1.length' ); FUN1()", 3, eval("FUN1 = new Function( 'a','b','c', 'return FUN1.length' ); FUN1()") ); 103 array[item++] = new TestCase( SECTION, "FUN1 = new Function( 'a','b','c', 'return FUN1.length' ); FUN1(1 (…) [all...] |
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/atomic/ |
AtomicIntegerArray.java | 12 * An {@code int} array in which elements may be updated atomically. 28 private final int[] array; field in class:AtomicIntegerArray 31 if (i < 0 || i >= array.length) 42 * @param length the length of the array 45 array = new int[length]; 48 unsafe.putIntVolatile(array, rawIndex(0), 0); 53 * all elements copied from, the given array. 55 * @param array the array to copy elements from 56 * @throws NullPointerException if array is nul [all...] |
AtomicLongArray.java | 12 * A {@code long} array in which elements may be updated atomically. 27 private final long[] array; field in class:AtomicLongArray 30 if (i < 0 || i >= array.length) 41 * @param length the length of the array 44 array = new long[length]; 47 unsafe.putLongVolatile(array, rawIndex(0), 0); 52 * all elements copied from, the given array. 54 * @param array the array to copy elements from 55 * @throws NullPointerException if array is nul [all...] |
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/ |
Util.java | 43 * Check array bounds method for methods like doSomething(Object[], offset, 45 * index, NullPointerException for null array, IndexOutOfBoundsException for 46 * offset+length > array.length 48 public static void assertArrayIndex(Object[] array, int offset, int length) { 53 if ((long) offset + (long) length > array.length) { 59 public static void assertArrayIndex(boolean[] array, int offset, int length) { 64 if ((long) offset + (long) length > array.length) { 70 public static void assertArrayIndex(byte[] array, int offset, int length) { 75 if ((long) offset + (long) length > array.length) { 81 public static void assertArrayIndex(short[] array, int offset, int length) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.1.2.js | 24 ECMA Section: 15.4.1.2 Array(len) 26 Description: When Array is called as a function rather than as a 27 constructor, it creates and initializes a new array 28 object. Thus, the function call Array(...) is 29 equivalent to the object creationi new Array(...) with 32 An array is created and returned as if by the 33 expression new Array(len). 41 var TITLE = "Array Constructor Called as a Function: Array(len)"; 49 var array = new Array() [all...] |
15.4.2.2-2.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". 46 This file tests length of the newly constructed array 55 var TITLE = "The Array Constructor: new Array( len )"; 63 var array = new Array(); 66 array[item++] = new TestCase( SECTION, "(new Array(new Number(1073741823))).length", 1, (new Arra (…) [all...] |
15.4.2.3.js | 24 ECMA Section: 15.4.2.3 new Array() 26 object is set to the origianl Array prototype object, 27 the one that is the initial value of Array.prototype. 29 "Array". The length of the object is set to 0. 38 var TITLE = "The Array Constructor: new Array()"; 46 var array = new Array(); 48 array[item++] = new TestCase( SECTION, "new Array() +''", "", (new Array()) +"" ) [all...] |
15.4.1.3.js | 24 ECMA Section: 15.4.1.3 Array() 26 Description: When Array is called as a function rather than as a 27 constructor, it creates and initializes a new array 28 object. Thus, the function call Array(...) is 29 equivalent to the object creationi new Array(...) with 32 An array is created and returned as if by the 33 expression new Array(len). 41 var TITLE = "Array Constructor Called as a Function: Array()"; 50 var array = new Array() [all...] |
15.4.3.1-2.js | 24 ECMA Section: 15.4.3.1 Array.prototype 25 Description: The initial value of Array.prototype is the built-in 26 Array prototype object (15.4.4). 35 var TITLE = "Array.prototype"; 43 var array = new Array(); 45 var ARRAY_PROTO = Array.prototype; 47 array[item++] = new TestCase( SECTION, "var props = ''; for ( p in Array ) { props += p } props", "", eval("var props = ''; for ( p in Array ) { props += p } props") ) [all...] |
/external/skia/include/core/ |
SkEndian.h | 46 low two bytes of each value in the array. 48 inline void SkEndianSwap16s(uint16_t array[], int count) 50 SkASSERT(count == 0 || array != NULL); 54 *array = SkEndianSwap16(*array); 55 array += 1; 71 bytes of each value in the array. 73 inline void SkEndianSwap32s(uint32_t array[], int count) 75 SkASSERT(count == 0 || array != NULL); 79 *array = SkEndianSwap32(*array) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.3-1.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "String.prototype.valueOf.length", 0, String.prototype.valueOf.length ); 53 array[item++] = new TestCase( SECTION, "String.prototype.valueOf()", "", String.prototype.valueOf() ); 54 array[item++] = new TestCase( SECTION, "(new String()).valueOf()", "", (new String()).valueOf() ); 55 array[item++] = new TestCase( SECTION, "(new String(\"\")).valueOf()", "", (new String("")).valueOf() ); 56 array[item++] = new TestCase( SECTION, "(new String( String() )).valueOf()","", (new String(String())).valueOf() ); 57 array[item++] = new TestCase( SECTION, "(new String( \"h e l l o\" )).valueOf()", "h e l l o", (new String("h e l l o")).valueOf() ); 58 array[item++] = new TestCase( SECTION, "(new String( 0 )).valueOf()", "0", (new String(0)).valueOf() ); 59 return ( array ); [all...] |
15.5.4.5-5.js | 71 var array = new Array(); 73 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(0)", 0x0074, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(0)") ); 74 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(1)", 0x0072, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(1)") ); 75 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(2)", 0x0075, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(2)") ); 76 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(3)", 0x0065, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(3)") ); 77 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)", Number.NaN, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(4)") ); 78 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(-1)", Number.NaN, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(-1)") ); 80 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(true)", 0x0072, eval("x = new Boolean(true); x.charCodeAt=String.prototype.charCodeAt;x.charCodeAt(true)") ); 81 array[item++] = new TestCase( SECTION, "x = new Boolean(true); x.charCodeAt=String.prototype.charCod (…) [all...] |
15.5.4.2-3.js | 66 var array = new Array(); 69 array[item++] = new TestCase( SECTION, 73 array[item++] = new TestCase( SECTION, 77 array[item++] = new TestCase( SECTION, 81 array[item++] = new TestCase( SECTION, 86 return ( array );
|
15.5.4.3-2.js | 63 var array = new Array(); 66 array[item++] = new TestCase( SECTION, 70 array[item++] = new TestCase( SECTION, 74 array[item++] = new TestCase( SECTION, 78 array[item++] = new TestCase( SECTION, 83 array[item++] = new TestCase( SECTION, 88 return ( array );
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.7.js | 79 var array = new Array(); 82 array[item++] = new TestCase( "9.7", "String.fromCharCode(0).charCodeAt(0)", 0, String.fromCharCode(0).charCodeAt(0) ); 83 array[item++] = new TestCase( "9.7", "String.fromCharCode(-0).charCodeAt(0)", 0, String.fromCharCode(-0).charCodeAt(0) ); 84 array[item++] = new TestCase( "9.7", "String.fromCharCode(1).charCodeAt(0)", 1, String.fromCharCode(1).charCodeAt(0) ); 85 array[item++] = new TestCase( "9.7", "String.fromCharCode(64).charCodeAt(0)", 64, String.fromCharCode(64).charCodeAt(0) ); 86 array[item++] = new TestCase( "9.7", "String.fromCharCode(126).charCodeAt(0)", 126, String.fromCharCode(126).charCodeAt(0) ); 87 array[item++] = new TestCase( "9.7", "String.fromCharCode(127).charCodeAt(0)", 127, String.fromCharCode(127).charCodeAt(0) ); 88 array[item++] = new TestCase( "9.7", "String.fromCharCode(128).charCodeAt(0)", 128, String.fromCharCode(128).charCodeAt(0) ); 89 array[item++] = new TestCase( "9.7", "String.fromCharCode(130).charCodeAt(0)", 130, String.f (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/GlobalObject/ |
15.1.2.4.js | 81 var array = new Array(); 84 array[item++] = new TestCase( SECTION, "escape.length", 1, escape.length ); 85 array[item++] = new TestCase( SECTION, "escape.length = null; escape.length", 1, eval("escape.length = null; escape.length") ); 86 array[item++] = new TestCase( SECTION, "delete escape.length", false, delete escape.length ); 87 array[item++] = new TestCase( SECTION, "delete escape.length; escape.length", 1, eval("delete escape.length; escape.length") ); 88 array[item++] = new TestCase( SECTION, "var MYPROPS=''; for ( var p in escape ) { MYPROPS+= p}; MYPROPS", "", eval("var MYPROPS=''; for ( var p in escape ) { MYPROPS+= p}; MYPROPS") ); 90 array[item++] = new TestCase( SECTION, "escape()", "undefined", escape() ); 91 array[item++] = new TestCase( SECTION, "escape('')", "", escape('') ); 92 array[item++] = new TestCase( SECTION, "escape( null )", "null", escape(null) ) [all...] |
15.1.2.5-1.js | 79 var array = new Array(); 82 array[item++] = new TestCase( SECTION, "unescape.length", 1, unescape.length ); 83 array[item++] = new TestCase( SECTION, "unescape.length = null; unescape.length", 1, eval("unescape.length=null; unescape.length") ); 84 array[item++] = new TestCase( SECTION, "delete unescape.length", false, delete unescape.length ); 85 array[item++] = new TestCase( SECTION, "delete unescape.length; unescape.length", 1, eval("delete unescape.length; unescape.length") ); 86 array[item++] = new TestCase( SECTION, "var MYPROPS=''; for ( var p in unescape ) { MYPROPS+= p }; MYPROPS", "", eval("var MYPROPS=''; for ( var p in unescape ) { MYPROPS+= p }; MYPROPS") ); 88 array[item++] = new TestCase( SECTION, "unescape()", "undefined", unescape() ); 89 array[item++] = new TestCase( SECTION, "unescape('')", "", unescape('') ); 90 array[item++] = new TestCase( SECTION, "unescape( null )", "null", unescape(null) ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/ |
15.8.2.5.js | 43 var array = new Array(); 46 array[item++] = new TestCase( SECTION, "Math.atan2.length", 2, Math.atan2.length ); 48 array[item++] = new TestCase( SECTION, "Math.atan2(NaN, 0)", Number.NaN, Math.atan2(Number.NaN,0) ); 49 array[item++] = new TestCase( SECTION, "Math.atan2(null, null)", 0, Math.atan2(null, null) ); 50 array[item++] = new TestCase( SECTION, "Math.atan2(void 0, void 0)", Number.NaN, Math.atan2(void 0, void 0) ); 51 array[item++] = new TestCase( SECTION, "Math.atan2()", Number.NaN, Math.atan2() ); 53 array[item++] = new TestCase( SECTION, "Math.atan2(0, NaN)", Number.NaN, Math.atan2(0,Number.NaN) ); 54 array[item++] = new TestCase( SECTION, "Math.atan2(1, 0)", Math.PI/2, Math.atan2(1,0) ); 55 array[item++] = new TestCase( SECTION, "Math.atan2(1,-0)", Math.PI/2, Math.atan2(1,-0) (…) [all...] |
15.8.2.12.js | 51 var array = new Array(); 54 array[item++] = new TestCase( SECTION, "Math.min.length", 2, Math.min.length ); 56 array[item++] = new TestCase( SECTION, "Math.min()", Infinity, Math.min() ); 57 array[item++] = new TestCase( SECTION, "Math.min(void 0, 1)", Number.NaN, Math.min( void 0, 1 ) ); 58 array[item++] = new TestCase( SECTION, "Math.min(void 0, void 0)", Number.NaN, Math.min( void 0, void 0 ) ); 59 array[item++] = new TestCase( SECTION, "Math.min(null, 1)", 0, Math.min( null, 1 ) ); 60 array[item++] = new TestCase( SECTION, "Math.min(-1, null)", -1, Math.min( -1, null ) ); 61 array[item++] = new TestCase( SECTION, "Math.min(true, false)", 0, Math.min(true,false) ); 63 array[item++] = new TestCase( SECTION, "Math.min('-99','99')", -99, Math.min( "-99" (…) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.4-1.js | 48 var array = new Array(); 51 array[item++] = new TestCase( SECTION, "typeof Boolean.prototype == typeof( new Boolean )", true, typeof Boolean.prototype == typeof( new Boolean ) ); 52 array[item++] = new TestCase( SECTION, "typeof( Boolean.prototype )", "object", typeof(Boolean.prototype) ); 53 array[item++] = new TestCase( SECTION, 57 array[item++] = new TestCase( SECTION, "Boolean.prototype.valueOf()", false, Boolean.prototype.valueOf() ); 59 return ( array );
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/LexicalConventions/ |
7.1-2.js | 53 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "'var'+'\u000B'+'MYVAR1=10;MYVAR1'", 10, eval('var'+'\u000B'+'MYVAR1=10;MYVAR1') ); 56 array[item++] = new TestCase( SECTION, "'var'+'\u0009'+'MYVAR2=10;MYVAR2'", 10, eval('var'+'\u0009'+'MYVAR2=10;MYVAR2') ); 57 array[item++] = new TestCase( SECTION, "'var'+'\u000C'+'MYVAR3=10;MYVAR3'", 10, eval('var'+'\u000C'+'MYVAR3=10;MYVAR3') ); 58 array[item++] = new TestCase( SECTION, "'var'+'\u0020'+'MYVAR4=10;MYVAR4'", 10, eval('var'+'\u0020'+'MYVAR4=10;MYVAR4') ); 60 return ( array );
|
/dalvik/dx/src/com/android/dx/dex/file/ |
EncodedArrayItem.java | 33 * Encoded array of constant values. 39 /** {@code non-null;} the array to represent */ 40 private final CstArray array; field in class:EncodedArrayItem 51 * @param array {@code non-null;} array to represent 53 public EncodedArrayItem(CstArray array) { 60 if (array == null) { 61 throw new NullPointerException("array == null"); 64 this.array = array; [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/NativeObjects/ |
15-2.js | 49 var array = new Array(); 52 array[item++] = new TestCase( SECTION, "Object.__proto__", Function.prototype, Object.__proto__ ); 53 array[item++] = new TestCase( SECTION, "Array.__proto__", Function.prototype, Array.__proto__ ); 54 array[item++] = new TestCase( SECTION, "String.__proto__", Function.prototype, String.__proto__ ); 55 array[item++] = new TestCase( SECTION, "Boolean.__proto__", Function.prototype, Boolean.__proto__ ); 56 array[item++] = new TestCase( SECTION, "Number.__proto__", Function.prototype, Number.__proto__ ); 57 array[item++] = new TestCase( SECTION, "Date.__proto__", Function.prototype, Date.__proto__ ) [all...] |
/packages/apps/Email/src/com/android/exchange/ |
MockParserStream.java | 31 int[] array; field in class:MockParserStream 36 array = _array; 42 return array[pos++];
|