HomeSort by relevance Sort by last modified time
    Searched refs:array (Results 101 - 125 of 1532) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/guava/src/com/google/common/primitives/
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...]
Bytes.java 60 * {@code array}.
62 * @param array an array of {@code byte} values, possibly empty
64 * @return {@code true} if {@code array[i] == target} for some value of {@code
67 public static boolean contains(byte[] array, byte target) {
68 for (byte value : array) {
78 * {@code array}.
80 * @param array an array of {@code byte} values, possibly empty
82 * @return the least index {@code i} for which {@code array[i] == target}, o
261 final byte[] array; field in class:Bytes.ByteArrayAsList
    [all...]
UnsignedBytes.java 86 * Returns the least value present in {@code array}.
88 * @param array a <i>nonempty</i> array of {@code byte} values
89 * @return the value present in {@code array} that is less than or equal to
90 * every other value in the array
91 * @throws IllegalArgumentException if {@code array} is empty
93 public static byte min(byte... array) {
94 checkArgument(array.length > 0);
95 int min = array[0] & 0xFF;
96 for (int i = 1; i < array.length; i++)
    [all...]
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/
ListOfVariables.java 25 ArrayList<TypeVariable<?>> array = new ArrayList<TypeVariable<?>>(); field in class:ListOfVariables
29 array.add(elem);
33 TypeVariable<?>[] a = new TypeVariable[array.size()];
34 return array.toArray(a);
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/
15.4.1.js 24 ECMA Section: 15.4.1 The Array Constructor Called as a Function
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
39 var TITLE = "The Array Constructor Called as a Function";
47 var array = new Array();
50 array[item++] = new TestCase( SECTION,
51 "Array() +''"
    [all...]
15.4-2.js 24 ECMA Section: 15.4 Array Objects
26 Description: Whenever a property is added whose name is an array
28 to be one more than the numeric value of that array
30 every property whose name is an array index whose value
32 deleted. This constraint applies only to the Array
33 object itself, and is unaffected by length or array
44 var TITLE = "Array Objects";
52 var array = new Array();
55 array[item++] = new TestCase( SECTION, "var arr=new Array(); arr[Math.pow(2,16)] = 'hi'; arr.length", (…)
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/Math/
15.8.2.8.js 49 var array = new Array();
52 array[item++] = new TestCase( SECTION, "Math.exp.length", 1, Math.exp.length );
54 array[item++] = new TestCase( SECTION, "Math.exp()", Number.NaN, Math.exp() );
55 array[item++] = new TestCase( SECTION, "Math.exp(null)", 1, Math.exp(null) );
56 array[item++] = new TestCase( SECTION, "Math.exp(void 0)", Number.NaN, Math.exp(void 0) );
57 array[item++] = new TestCase( SECTION, "Math.exp(1)", Math.E, Math.exp(1) );
58 array[item++] = new TestCase( SECTION, "Math.exp(true)", Math.E, Math.exp(true) );
59 array[item++] = new TestCase( SECTION, "Math.exp(false)", 1, Math.exp(false) );
61 array[item++] = new TestCase( SECTION, "Math.exp('1')", Math.E, Math.exp('1') )
    [all...]
15.8.2.3.js 48 var array = new Array();
51 array[item++] = new TestCase( SECTION, "Math.asin()", Number.NaN, Math.asin() );
52 array[item++] = new TestCase( SECTION, "Math.asin(void 0)", Number.NaN, Math.asin(void 0) );
53 array[item++] = new TestCase( SECTION, "Math.asin(null)", 0, Math.asin(null) );
54 array[item++] = new TestCase( SECTION, "Math.asin(NaN)", Number.NaN, Math.asin(Number.NaN) );
56 array[item++] = new TestCase( SECTION, "Math.asin('string')", Number.NaN, Math.asin("string") );
57 array[item++] = new TestCase( SECTION, "Math.asin('0')", 0, Math.asin("0") );
58 array[item++] = new TestCase( SECTION, "Math.asin('1')", Math.PI/2, Math.asin("1") );
59 array[item++] = new TestCase( SECTION, "Math.asin('-1')", -Math.PI/2, Math.asin("-1") )
    [all...]
15.8.2.7.js 43 var array = new Array();
46 array[item++] = new TestCase( SECTION, "Math.cos.length", 1, Math.cos.length );
48 array[item++] = new TestCase( SECTION, "Math.cos()", Number.NaN, Math.cos() );
49 array[item++] = new TestCase( SECTION, "Math.cos(void 0)", Number.NaN, Math.cos(void 0) );
50 array[item++] = new TestCase( SECTION, "Math.cos(false)", 1, Math.cos(false) );
51 array[item++] = new TestCase( SECTION, "Math.cos(null)", 1, Math.cos(null) );
53 array[item++] = new TestCase( SECTION, "Math.cos('0')", 1, Math.cos('0') );
54 array[item++] = new TestCase( SECTION, "Math.cos('Infinity')", Number.NaN, Math.cos("Infinity") );
55 array[item++] = new TestCase( SECTION, "Math.cos('3.14159265359')", -1, Math.cos('3.141 (…)
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/Number/
15.7.1.js 53 var array = new Array();
56 array[item++] = new TestCase(SECTION, "Number()", 0, Number() );
57 array[item++] = new TestCase(SECTION, "Number(void 0)", Number.NaN, Number(void 0) );
58 array[item++] = new TestCase(SECTION, "Number(null)", 0, Number(null) );
59 array[item++] = new TestCase(SECTION, "Number()", 0, Number() );
60 array[item++] = new TestCase(SECTION, "Number(new Number())", 0, Number( new Number() ) );
61 array[item++] = new TestCase(SECTION, "Number(0)", 0, Number(0) );
62 array[item++] = new TestCase(SECTION, "Number(1)", 1, Number(1) );
63 array[item++] = new TestCase(SECTION, "Number(-1)", -1, Number(-1) )
    [all...]
15.7.2.js 60 var array = new Array();
66 array[item++] = new TestCase(SECTION, "(new Number()).constructor", Number.prototype.constructor, (new Number()).constructor );
68 array[item++] = new TestCase(SECTION, "typeof (new Number())", "object", typeof (new Number()) );
69 array[item++] = new TestCase(SECTION, "(new Number()).valueOf()", 0, (new Number()).valueOf() );
70 array[item++] = new TestCase(SECTION,
75 array[item++] = new TestCase(SECTION, "(new Number(0)).constructor", Number.prototype.constructor, (new Number(0)).constructor );
76 array[item++] = new TestCase(SECTION, "typeof (new Number(0))", "object", typeof (new Number(0)) );
77 array[item++] = new TestCase(SECTION, "(new Number(0)).valueOf()", 0, (new Number(0)).valueOf() );
78 array[item++] = new TestCase(SECTION
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
TestUtils.java 27 /** Shortcut to create byte array */
28 public static byte[] b(int... array) {
29 if (array == null) {
32 byte[] ret = new byte[array.length];
34 ret[i] = (byte) array[i];
  /external/icu4c/layoutex/
LXUtilities.h 20 static le_int32 search(le_int32 value, const le_int32 array[], le_int32 count);
21 static void reverse(le_int32 array[], le_int32 count);
22 static void reverse(float array[], le_int32 count);
  /external/stlport/test/unit/
unary_test.cpp 46 int array [3] = { 1, 2, 3 }; local
48 int* p = find_if((int*)array, (int*)array + 3, unary_negate<odd>(odd()));
49 CPPUNIT_ASSERT((p != array + 3));
54 int array [3] = { 1, 2, 3 }; local
55 int* p = find_if((int*)array, (int*)array + 3, not1(odd()));
56 CPPUNIT_ASSERT(p != array + 3);
66 int array [3] = { 1, 2, 3 }; local
67 int* p = find_if((int*)array, (int*)array + 3, not1(ptr_fun(test_func)))
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/LexicalConventions/
7.8.2-n.js 40 var array = new Array();
43 // array[item++] = new TestCase( "7.8.2", "{ 1 \n 2 } 3", 3, "{ 1 \n 2 } 3" );
44 array[item++] = new TestCase( "7.8.2", "{ 1 2 } 3", "error", eval("{1 2 } 3") );
46 return ( array );
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/String/
15.5.4.2.js 42 var array = new Array();
45 array[item++] = new TestCase( SECTION, "String.prototype.toString.__proto__", Function.prototype, String.prototype.toString.__proto__ );
46 array[item++] = new TestCase( SECTION,
51 array[item++] = new TestCase( SECTION, "String.prototype.toString()", "", String.prototype.toString() );
52 array[item++] = new TestCase( SECTION, "String.prototype.toString.length", 0, String.prototype.toString.length );
55 array[item++] = new TestCase( SECTION,
59 array[item++] = new TestCase( SECTION,
63 array[item++] = new TestCase( SECTION,
67 array[item++] = new TestCase( SECTION
    [all...]
15.5.4.5-3.js 71 var array = new Array();
76 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(0)", 0x0068, foo.charCodeAt(0) );
77 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(1)", 0x0065, foo.charCodeAt(1) );
78 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(2)", 0x006c, foo.charCodeAt(2) );
79 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(3)", 0x006c, foo.charCodeAt(3) );
80 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(4)", 0x006f, foo.charCodeAt(4) );
81 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(-1)", Number.NaN, foo.charCodeAt(-1) );
82 array[item++] = new TestCase( SECTION, "var foo = new MyObject('hello');foo.charCodeAt(5)", Number.NaN, foo.charCodeAt(5) );
86 array[item++] = new TestCase( SECTION, "var boo = new MyObject(true);boo.charCodeAt(0)", 0x0074, boo.cha (…)
    [all...]
15.5.4.6-2.js 96 var array = new Array();
101 array[item++] = new TestCase( SECTION, "function f() { return this; }; function g() { var h = f; return h(); }; g().toString()", GLOBAL, g().toString() );
104 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length", 1, String.prototype.indexOf.length );
105 array[item++] = new TestCase( SECTION, "String.prototype.indexOf.length = null; String.prototype.indexOf.length", 1, eval("String.prototype.indexOf.length = null; String.prototype.indexOf.length") );
106 array[item++] = new TestCase( SECTION, "delete String.prototype.indexOf.length", false, delete String.prototype.indexOf.length );
107 array[item++] = new TestCase( SECTION, "delete String.prototype.indexOf.length; String.prototype.indexOf.length", 1, eval("delete String.prototype.indexOf.length; String.prototype.indexOf.length") );
109 array[item++] = new TestCase( SECTION, "var s = new String(); s.indexOf()", -1, eval("var s = new String(); s.indexOf()") );
122 array[item++] = new TestCase( SECTION,
128 array[item++] = new TestCase( SECTION
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/TypeConversion/
9.4-1.js 84 var array = new Array();
89 array[item++] = new TestCase( SECTION, "td = new Date(Number.NaN); td.valueOf()", Number.NaN, eval("td = new Date(Number.NaN); td.valueOf()") );
90 array[item++] = new TestCase( SECTION, "td = new Date(Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.POSITIVE_INFINITY); td.valueOf()") );
91 array[item++] = new TestCase( SECTION, "td = new Date(-Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.NEGATIVE_INFINITY); td.valueOf()") );
92 array[item++] = new TestCase( SECTION, "td = new Date(-0); td.valueOf()", -0, eval("td = new Date(-0); td.valueOf()" ) );
93 array[item++] = new TestCase( SECTION, "td = new Date(0); td.valueOf()", 0, eval("td = new Date(0); td.valueOf()") );
97 array[item++] = new TestCase( SECTION, "td = new Date(3.14159); td.valueOf()", 3, eval("td = new Date(3.14159); td.valueOf()") );
98 array[item++] = new TestCase( SECTION, "td = new Date(Math.PI); td.valueOf()", 3, eval("td = new Date(Math.PI); td.valueOf()") );
99 array[item++] = new TestCase( SECTION, "td = new Date(-Math.PI);td.valueOf()", -3, eval("td (…)
    [all...]
9.4-2.js 84 var array = new Array();
89 array[item++] = new TestCase( SECTION, "td = new Date(Number.NaN); td.valueOf()", Number.NaN, eval("td = new Date(Number.NaN); td.valueOf()") );
90 array[item++] = new TestCase( SECTION, "td = new Date(Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.POSITIVE_INFINITY); td.valueOf()") );
91 array[item++] = new TestCase( SECTION, "td = new Date(-Infinity); td.valueOf()", Number.NaN, eval("td = new Date(Number.NEGATIVE_INFINITY); td.valueOf()") );
92 array[item++] = new TestCase( SECTION, "td = new Date(-0); td.valueOf()", -0, eval("td = new Date(-0); td.valueOf()" ) );
93 array[item++] = new TestCase( SECTION, "td = new Date(0); td.valueOf()", 0, eval("td = new Date(0); td.valueOf()") );
97 array[item++] = new TestCase( SECTION, "td = new Date(3.14159); td.valueOf()", 3, eval("td = new Date(3.14159); td.valueOf()") );
98 array[item++] = new TestCase( SECTION, "td = new Date(Math.PI); td.valueOf()", 3, eval("td = new Date(Math.PI); td.valueOf()") );
99 array[item++] = new TestCase( SECTION, "td = new Date(-Math.PI);td.valueOf()", -3, eval("td (…)
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/
11.5.2.js 77 var array = new Array();
82 array[item++] = new TestCase( SECTION, "Number.NaN / Number.NaN", Number.NaN, Number.NaN / Number.NaN );
83 array[item++] = new TestCase( SECTION, "Number.NaN / 1", Number.NaN, Number.NaN / 1 );
84 array[item++] = new TestCase( SECTION, "1 / Number.NaN", Number.NaN, 1 / Number.NaN );
86 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY / Number.NaN", Number.NaN, Number.POSITIVE_INFINITY / Number.NaN );
87 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY / Number.NaN", Number.NaN, Number.NEGATIVE_INFINITY / Number.NaN );
91 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY );
92 array[item++] = new TestCase( SECTION, "Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY", Number.NaN, Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY );
93 array[item++] = new TestCase( SECTION, "Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY", Numb (…)
    [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...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/
15.3.1.1-1.js 51 var array = new Array();
58 // array[item++] = new TestCase( SECTION, "myfunc.toString()", "function anonymous() { }", myfunc.toString() );
61 array[item++] = new TestCase( SECTION,
65 array[item++] = new TestCase( SECTION, "myfunc.length", 0, myfunc.length );
66 array[item++] = new TestCase( SECTION, "myfunc.prototype.toString()", "[object Object]", myfunc.prototype.toString() );
67 array[item++] = new TestCase( SECTION, "myfunc.prototype.constructor", myfunc, myfunc.prototype.constructor );
68 array[item++] = new TestCase( SECTION, "myfunc.arguments", null, myfunc.arguments );
69 array[item++] = new TestCase( SECTION, "var OBJ = new MyObject(true); OBJ.valueOf()", true, eval("var OBJ = new MyObject(true); OBJ.valueOf()") );
70 array[item++] = new TestCase( SECTION, "OBJ.toString()", "true", (…)
    [all...]
15.3.2.1-1.js 52 var array = new Array();
58 // array[item++] = new TestCase( SECTION, "myfunc.toString()", "function anonymous() { }", myfunc.toString() );
62 array[item++] = new TestCase( SECTION, "myfunc = new Function(); myfunc.toString = Object.prototype.toString; myfunc.toString()",
65 array[item++] = new TestCase( SECTION, "myfunc.length", 0, myfunc.length );
66 array[item++] = new TestCase( SECTION, "myfunc.prototype.toString()", "[object Object]", myfunc.prototype.toString() );
68 array[item++] = new TestCase( SECTION, "myfunc.prototype.constructor", myfunc, myfunc.prototype.constructor );
69 array[item++] = new TestCase( SECTION, "myfunc.arguments", null, myfunc.arguments );
71 array[item++] = new TestCase( SECTION, "var OBJ = new MyObject(true); OBJ.valueOf()", true, eval("var OBJ = new MyObject(true); OBJ.valueOf()") );
72 array[item++] = new TestCase( SECTION, "OBJ.toString()", "true", (…)
    [all...]

Completed in 370 milliseconds

1 2 3 45 6 7 8 91011>>