/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
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...] |
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...] |
/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/webkit/Source/WebCore/html/canvas/ |
WebGLBuffer.cpp | 58 bool WebGLBuffer::associateBufferDataImpl(ArrayBuffer* array, GC3Dintptr byteOffset, GC3Dsizeiptr byteLength) 63 if (array && byteLength) { 67 if (!checkedMax.valid() || checkedMax.value() > static_cast<int32_t>(array->byteLength())) 81 if (array) { 86 static_cast<unsigned char*>(array->data()) + byteOffset, 107 bool WebGLBuffer::associateBufferData(ArrayBuffer* array) 109 if (!array) 111 return associateBufferDataImpl(array, 0, array->byteLength()); 114 bool WebGLBuffer::associateBufferData(ArrayBufferView* array) [all...] |
/external/guava/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} 348 final boolean[] array; field in class:Booleans.BooleanArrayAsList [all...] |
/external/webkit/Source/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/Source/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...] |
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...] |
/external/smack/src/org/xbill/DNS/ |
DNSOutput.java | 14 private byte [] array; field in class:DNSOutput 24 array = new byte[size]; 57 if (array.length - pos >= n) { 60 int newsize = array.length * 2; 65 System.arraycopy(array, 0, newarray, 0, pos); 66 array = newarray; 112 array[pos++] = (byte)(val & 0xFF); 123 array[pos++] = (byte)((val >>> 8) & 0xFF); 124 array[pos++] = (byte)(val & 0xFF); 138 array[where++] = (byte)((val >>> 8) & 0xFF) [all...] |
/external/webkit/Source/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...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
LongSparseLongArrayTest.java | 33 final LongSparseLongArray array = new LongSparseLongArray(5); local 36 array.put(value, value); 40 assertEquals(value, array.get(value, -1)); 41 assertEquals(-1, array.get(-value, -1)); 46 final LongSparseLongArray array = new LongSparseLongArray(5); local 49 array.put(value, value); 53 assertEquals(value, array.get(value, -1)); 54 assertEquals(-1, array.get(-value, -1)); 59 final LongSparseLongArray array = new LongSparseLongArray(5); local 62 array.put(value, value) 78 final LongSparseLongArray array = new LongSparseLongArray(r.nextInt(128)); local [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/animation/ |
CompactQuaternionArray.java | 46 * creates a compact Quaternion array
52 * creates a compact Quaternion array
53 * @param dataArray the data array
54 * @param index the indices array
74 out.write(array, "array", null);
81 array = in.readFloatArray("array", null);
88 array[j] = store.getX();
89 array[j + 1] = store.getY(); [all...] |
/external/webkit/Source/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...] |
/external/webkit/Source/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...] |
/cts/tests/tests/jni/src/android/jni/cts/ |
JniInstanceTest.java | 115 short[] array = target.returnShortArray(); local 116 assertSame(short[].class, array.getClass()); 117 assertEquals(3, array.length); 118 assertEquals(10, array[0]); 119 assertEquals(20, array[1]); 120 assertEquals(30, array[2]); 127 String[] array = target.returnStringArray(); local 128 assertSame(String[].class, array.getClass()); 129 assertEquals(100, array.length); 130 assertEquals("blort", array[0]) [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/ |
DynamicArray.java | 37 * An array that can be dynamically modified/
40 * the type of stored data in the array
44 /** An array object that holds the required data. */
45 private T[] array;
field in class:DynamicArray 54 * Constructor. Builds an empty array of the specified sizes.
70 this.array = (T[]) new Object[totalSize];
74 * Constructor. Builds an empty array of the specified sizes.
92 this.array = data;
108 return array[position];
112 * This method returns a value on the specified position in multidimensional array. Be careful not to exceed the [all...] |
/external/v8/test/mjsunit/ |
array-unshift.js | 28 // Check that unshifting array of holes keeps the original array 29 // as array of holes 31 var array = new Array(10); 32 assertEquals(13, array.unshift('1st', '2ns', '3rd')); 33 assertTrue(0 in array); 34 assertTrue(1 in array); 35 assertTrue(2 in array); 36 assertFalse(3 in array); [all...] |
array-join.js | 28 // Test that array join calls toString on subarrays. 46 // Replace array.prototype.toString. 47 var oldToString = Array.prototype.toString; 48 Array.prototype.toString = function() { return "array"; }; 50 assertEquals('array*3*4*array*array', a.join('*')); 51 assertEquals('array**3**4**array**array', a.join('**')) [all...] |
/external/webkit/Source/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...] |
/external/eigen/test/ |
first_aligned.cpp | 13 void test_first_aligned_helper(Scalar *array, int size) 16 VERIFY(((size_t(array) + sizeof(Scalar) * internal::first_aligned(array, size)) % packet_size) == 0); 20 void test_none_aligned_helper(Scalar *array, int size) 22 EIGEN_UNUSED_VARIABLE(array); 24 VERIFY(internal::packet_traits<Scalar>::size == 1 || internal::first_aligned(array, size) == size);
|