/external/guava/src/com/google/common/primitives/ |
generate.sh | 134 * {@code array}. 136 * @param array an array of {@code primtyp} values, possibly empty 138 * @return {@code true} if {@code array[i] == target} for some value of {@code 141 public static boolean contains(primtyp[] array, primtyp target) { 142 for (primtyp value : array) { 152 * {@code array}. 154 * @param array an array of {@code primtyp} values, possibly empty 156 * @return the least index {@code i} for which {@code array[i] == target}, o [all...] |
Chars.java | 111 * {@code array}. 113 * @param array an array of {@code char} values, possibly empty 115 * @return {@code true} if {@code array[i] == target} for some value of {@code 118 public static boolean contains(char[] array, char target) { 119 for (char value : array) { 129 * {@code array}. 131 * @param array an array of {@code char} values, possibly empty 133 * @return the least index {@code i} for which {@code array[i] == target}, o 416 char[] array = new char[len]; local 447 final char[] array; field in class:Chars.CharArrayAsList [all...] |
Doubles.java | 77 * {@code array}. Note that this always returns {@code false} when {@code 80 * @param array an array of {@code double} values, possibly empty 82 * @return {@code true} if {@code array[i] == target} for some value of {@code 85 public static boolean contains(double[] array, double target) { 86 for (double value : array) { 96 * {@code array}. Note that this always returns {@code -1} when {@code target} 99 * @param array an array of {@code double} values, possibly empty 101 * @return the least index {@code i} for which {@code array[i] == target}, o 349 double[] array = new double[len]; local 383 final double[] array; field in class:Doubles.DoubleArrayAsList [all...] |
Floats.java | 74 * {@code array}. Note that this always returns {@code false} when {@code 77 * @param array an array of {@code float} values, possibly empty 79 * @return {@code true} if {@code array[i] == target} for some value of {@code 82 public static boolean contains(float[] array, float target) { 83 for (float value : array) { 93 * {@code array}. Note that this always returns {@code -1} when {@code target} 96 * @param array an array of {@code float} values, possibly empty 98 * @return the least index {@code i} for which {@code array[i] == target}, o 346 float[] array = new float[len]; local 380 final float[] array; field in class:Floats.FloatArrayAsList [all...] |
/dalvik/docs/opcodes/ |
opcode-26-fill-array-data.html | 6 <title>fill-array-data</title> 12 <h1>fill-array-data</h1> 17 Fill the given array with the indicated data. The reference must be to an array 39 <td>fill-array-data vAA, +BBBBBBBB <i>(with supplemental data as specified 40 below in "<code>fill-array-data</code> Format")</i></td> 41 <td><code>A:</code> array reference (8 bits)<br/> 55 an array-reference. 67 The table entry size must match the size of the data type of the array. 70 The table size must be equal or smaller than the array length [all...] |
/external/webkit/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...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
ArrayTest.java | 25 import java.lang.reflect.Array; 27 @TestTargetClass(Array.class) 31 * @tests java.lang.reflect.Array#get(java.lang.Object, int) 41 // java.lang.reflect.Array.get(java.lang.Object, int) 47 ret = Array.get(x, 0); 54 ret = Array.get(new Object(), 0); 60 fail("Passing non-array failed to throw exception"); 64 ret = Array.get(x, 4); 78 ret = Array.get(y, 0); 85 ret = Array.get(new Object(), 0) [all...] |
/external/v8/test/mjsunit/ |
array-iteration.js | 28 // Tests for non-standard array iteration functions. 32 // <http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array> 37 // Array.prototype.filter 50 // Modify original array. 52 assertArrayEquals([42,42], a.filter(function(n, index, array) { array[index] = 43; return 42 == n; })); 55 // Only loop through initial part of array eventhough elements are 58 assertArrayEquals([], a.filter(function(n, index, array) { array.push(n+1); return n == 2; })); 62 a = new Array(20) [all...] |
/external/webkit/WebCore/bindings/v8/custom/ |
V8WebGLArrayCustom.h | 54 // WebGLArray, e.g. from the call to WebGL<T>Array.slice(). 58 // the user calls "new WebGL<T>Array()" from JavaScript. 63 // WebGL<T>Array(n) where n is an integer: 64 // -- create an empty array of n elements 65 // WebGL<T>Array(arr) where arr is an array: 66 // -- create a WebGL<T>Array containing the contents of "arr" 67 // WebGL<T>Array(buf, offset, length) 68 // -- create a WebGL<T>Array pointing to the WebGLArrayBuffer 75 return throwError("Wrong number of arguments to new WebGL<T>Array(WebGLArrayBuffer, int, int)") 155 T* array = reinterpret_cast<T*>(args.Holder()->GetPointerFromInternalField(v8DOMWrapperObjectIndex)); local 169 v8::Local<v8::Object> array = args[0]->ToObject(); local 193 CPlusPlusArrayType* array = JavaScriptWrapperArrayType::toNative(args.Holder()); local [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/ |
15.4.5.2-2.js | 24 ECMA Section: Array.length 27 The length property of this Array object is always numerically greater 28 than the name of every property whose name is an array index. 32 This test verifies that the Array.length property is not Read Only. 41 var TITLE = "Array.length"; 45 var testcases = new Array(); 47 addCase( new Array(), 0, Math.pow(2,14), Math.pow(2,14) ); 49 addCase( new Array(), 0, 1, 1 ); 51 addCase( new Array(Math.pow(2,12)), Math.pow(2,12), 0, 0 ); 52 addCase( new Array(Math.pow(2,13)), Math.pow(2,13), Math.pow(2,12), Math.pow(2,12) ) [all...] |
15.4.4.4-1.js | 24 ECMA Section: 15.4.4.3-1 Array.prototype.reverse() 27 The elements of the array are rearranged so as to reverse their order. 60 that its this value be an Array object. Therefore it can be transferred to other 64 Note: Array.prototype.reverse allows some flexibility in implementation 65 regarding array indices that have not been populated. This test covers the 77 writeHeaderToLog( SECTION + " Array.prototype.reverse()"); 79 var testcases = new Array(); 84 var ARR_PROTOTYPE = Array.prototype; 86 testcases[testcases.length] = new TestCase( SECTION, "Array.prototype.reverse.length", 0, Array.prototype.reverse.length ) [all...] |
15.4.2.1-2.js | 24 ECMA Section: 15.4.2.1 new Array( item0, item1, ... ) 29 object is set to the original Array prototype object, 30 the one that is the initial value of Array.prototype 34 is set to "Array". 52 var TITLE = "The Array Constructor: new Array( item0, item1, ...)"; 61 var array = new Array(); 63 var TEST_STRING = "new Array("; 77 array[item] = new TestCase( SECTION, "["+item+"]", item, TEST_ARRAY[item] ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/ |
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.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.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.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...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.3.1.js | 63 var array = new Array(); 67 array[item++] = new TestCase( SECTION, "var MYVAR; MYVAR++", NaN, eval("var MYVAR; MYVAR++") ); 68 array[item++] = new TestCase( SECTION, "var MYVAR= void 0; MYVAR++", NaN, eval("var MYVAR=void 0; MYVAR++") ); 69 array[item++] = new TestCase( SECTION, "var MYVAR=null; MYVAR++", 0, eval("var MYVAR=null; MYVAR++") ); 70 array[item++] = new TestCase( SECTION, "var MYVAR=true; MYVAR++", 1, eval("var MYVAR=true; MYVAR++") ); 71 array[item++] = new TestCase( SECTION, "var MYVAR=false; MYVAR++", 0, eval("var MYVAR=false; MYVAR++") ); 75 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;MYVAR++", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;MYVAR++") ); 76 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;MYVAR++", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;MYVAR++") ); 77 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NaN;MYVAR++", Number.NaN, (…) [all...] |
11.3.2.js | 63 var array = new Array(); 67 array[item++] = new TestCase( SECTION, "var MYVAR; MYVAR--", NaN, eval("var MYVAR; MYVAR--") ); 68 array[item++] = new TestCase( SECTION, "var MYVAR= void 0; MYVAR--", NaN, eval("var MYVAR=void 0; MYVAR--") ); 69 array[item++] = new TestCase( SECTION, "var MYVAR=null; MYVAR--", 0, eval("var MYVAR=null; MYVAR--") ); 70 array[item++] = new TestCase( SECTION, "var MYVAR=true; MYVAR--", 1, eval("var MYVAR=true; MYVAR--") ); 71 array[item++] = new TestCase( SECTION, "var MYVAR=false; MYVAR--", 0, eval("var MYVAR=false; MYVAR--") ); 75 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;MYVAR--", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;MYVAR--") ); 76 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;MYVAR--", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;MYVAR--") ); 77 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NaN;MYVAR--", Number.NaN, (…) [all...] |
11.4.4.js | 62 var array = new Array(); 67 array[item++] = new TestCase( SECTION, "var MYVAR; ++MYVAR", NaN, eval("var MYVAR; ++MYVAR") ); 68 array[item++] = new TestCase( SECTION, "var MYVAR= void 0; ++MYVAR", NaN, eval("var MYVAR=void 0; ++MYVAR") ); 69 array[item++] = new TestCase( SECTION, "var MYVAR=null; ++MYVAR", 1, eval("var MYVAR=null; ++MYVAR") ); 70 array[item++] = new TestCase( SECTION, "var MYVAR=true; ++MYVAR", 2, eval("var MYVAR=true; ++MYVAR") ); 71 array[item++] = new TestCase( SECTION, "var MYVAR=false; ++MYVAR", 1, eval("var MYVAR=false; ++MYVAR") ); 76 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;++MYVAR", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;++MYVAR") ); 77 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;++MYVAR", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;++MYVAR") ); 78 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NaN;++MYVAR", Number.NaN, (…) [all...] |
11.4.5.js | 61 var array = new Array(); 65 array[item++] = new TestCase( SECTION, "var MYVAR; --MYVAR", NaN, eval("var MYVAR; --MYVAR") ); 66 array[item++] = new TestCase( SECTION, "var MYVAR= void 0; --MYVAR", NaN, eval("var MYVAR=void 0; --MYVAR") ); 67 array[item++] = new TestCase( SECTION, "var MYVAR=null; --MYVAR", -1, eval("var MYVAR=null; --MYVAR") ); 68 array[item++] = new TestCase( SECTION, "var MYVAR=true; --MYVAR", 0, eval("var MYVAR=true; --MYVAR") ); 69 array[item++] = new TestCase( SECTION, "var MYVAR=false; --MYVAR", -1, eval("var MYVAR=false; --MYVAR") ); 74 array[item++] = new TestCase( SECTION, "var MYVAR=Number.POSITIVE_INFINITY;--MYVAR", Number.POSITIVE_INFINITY, eval("var MYVAR=Number.POSITIVE_INFINITY;--MYVAR") ); 75 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR", Number.NEGATIVE_INFINITY, eval("var MYVAR=Number.NEGATIVE_INFINITY;--MYVAR") ); 76 array[item++] = new TestCase( SECTION, "var MYVAR=Number.NaN;--MYVAR", Number.NaN, (…) [all...] |
11.5.1.js | 77 var array = new Array(); 80 array[item++] = new TestCase( SECTION, "Number.NaN * Number.NaN", Number.NaN, Number.NaN * Number.NaN ); 81 array[item++] = new TestCase( SECTION, "Number.NaN * 1", Number.NaN, Number.NaN * 1 ); 82 array[item++] = new TestCase( SECTION, "1 * Number.NaN", Number.NaN, 1 * Number.NaN ); 84 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY * 0", Number.NaN, Number.POSITIVE_INFINITY * 0 ); 85 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY * 0", Number.NaN, Number.NEGATIVE_INFINITY * 0 ); 86 array[item++] = new TestCase( SECTION, "0 * Number.POSITIVE_INFINITY", Number.NaN, 0 * Number.POSITIVE_INFINITY ); 87 array[item++] = new TestCase( SECTION, "0 * Number.NEGATIVE_INFINITY", Number.NaN, 0 * Number.NEGATIVE_INFINITY ); 89 array[item++] = new TestCase( SECTION, "-0 * Number.POSITIVE_INFINITY", Number.NaN, -0 * Number.PO (…) [all...] |
/packages/apps/Settings/res/values/ |
arrays.xml | 25 <string-array name="timezone_filters"> 40 </string-array> 43 <string-array name="date_format_values" translatable="false"> 49 </string-array> 52 <string-array name="animations_entries"> 56 </string-array> 59 <string-array name="animations_summaries"> 63 </string-array> 66 <string-array name="animations_values"> 73 </string-array> [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/ObjectObjects/ |
15.2.1.1.js | 60 var array = new Array(); 65 array[item++] = new TestCase( SECTION, "Object(null).valueOf()", NULL_OBJECT, (NULL_OBJECT).valueOf() ); 66 array[item++] = new TestCase( SECTION, "typeof Object(null)", "object", typeof (Object(null)) ); 67 array[item++] = new TestCase( SECTION, "Object(null).__proto__", Object.prototype, (Object(null)).__proto__ ); 71 array[item++] = new TestCase( SECTION, "Object(void 0).valueOf()", UNDEFINED_OBJECT, (UNDEFINED_OBJECT).valueOf() ); 72 array[item++] = new TestCase( SECTION, "typeof Object(void 0)", "object", typeof (Object(void 0)) ); 73 array[item++] = new TestCase( SECTION, "Object(void 0).__proto__", Object.prototype, (Object(void 0)).__proto__ ); 75 array[item++] = new TestCase( SECTION, "Object(true).valueOf()", true, (Object(true)).valueOf() ); 76 array[item++] = new TestCase( SECTION, "typeof Object(true)", "object", typeof Objec (…) [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...] |
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/utils/ |
ArrayHelper.java | 20 * Utility class providing array to int/long conversion for data received from devices through adb. 25 * Swaps an unsigned value around, and puts the result in an array that can be sent to a device. 27 * @param dest the destination array 28 * @param offset the offset in the array where to put the swapped value. 29 * Array length must be at least offset + 4 39 * Reads a signed 32 bit integer from an array coming from a device. 40 * @param value the array containing the int 41 * @param offset the offset in the array at which the int starts 42 * @return the integer read from the array 55 * Reads an unsigned 16 bit integer from an array coming from a device [all...] |