/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/ |
15.6.4.3.js | 37 var array = new Array(); 40 array[item++] = new TestCase( "15.8.6.4", "new Boolean(1)", true, (new Boolean(1)).valueOf() ); 42 array[item++] = new TestCase( "15.8.6.4", "new Boolean(0)", false, (new Boolean(0)).valueOf() ); 43 array[item++] = new TestCase( "15.8.6.4", "new Boolean(-1)", true, (new Boolean(-1)).valueOf() ); 44 array[item++] = new TestCase( "15.8.6.4", "new Boolean('1')", true, (new Boolean("1")).valueOf() ); 45 array[item++] = new TestCase( "15.8.6.4", "new Boolean('0')", true, (new Boolean("0")).valueOf() ); 46 array[item++] = new TestCase( "15.8.6.4", "new Boolean(true)", true, (new Boolean(true)).valueOf() ); 47 array[item++] = new TestCase( "15.8.6.4", "new Boolean(false)", false, (new Boolean(false)).valueOf() ); 48 array[item++] = new TestCase( "15.8.6.4", "new Boolean('true')", true, (new Boolean("true")).valueO (…) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.9.1.js | 64 var array = new Array(); 69 array[item++] = new TestCase( SECTION, "void 0 = void 0", true, void 0 == void 0 ); 70 array[item++] = new TestCase( SECTION, "null == null", true, null == null ); 74 array[item++] = new TestCase( SECTION, "NaN == NaN", false, Number.NaN == Number.NaN ); 75 array[item++] = new TestCase( SECTION, "NaN == 0", false, Number.NaN == 0 ); 76 array[item++] = new TestCase( SECTION, "0 == NaN", false, 0 == Number.NaN ); 77 array[item++] = new TestCase( SECTION, "NaN == Infinity", false, Number.NaN == Number.POSITIVE_INFINITY ); 78 array[item++] = new TestCase( SECTION, "Infinity == NaN", false, Number.POSITIVE_INFINITY == Number.NaN ); 82 array[item++] = new TestCase( SECTION, "Number.MAX_VALUE == Number.MAX_VALUE", true, Number.MAX_V (…) [all...] |
11.9.2.js | 63 var array = new Array(); 68 array[item++] = new TestCase( SECTION, "void 0 == void 0", false, void 0 != void 0 ); 69 array[item++] = new TestCase( SECTION, "null == null", false, null != null ); 73 array[item++] = new TestCase( SECTION, "NaN != NaN", true, Number.NaN != Number.NaN ); 74 array[item++] = new TestCase( SECTION, "NaN != 0", true, Number.NaN != 0 ); 75 array[item++] = new TestCase( SECTION, "0 != NaN", true, 0 != Number.NaN ); 76 array[item++] = new TestCase( SECTION, "NaN != Infinity", true, Number.NaN != Number.POSITIVE_INFINITY ); 77 array[item++] = new TestCase( SECTION, "Infinity != NaN", true, Number.POSITIVE_INFINITY != Number.NaN ); 81 array[item++] = new TestCase( SECTION, "Number.MAX_VALUE != Number.MAX_VALUE", false, Number.MAX_ (…) [all...] |
11.9.3.js | 63 var array = new Array(); 68 array[item++] = new TestCase( SECTION, "void 0 = void 0", true, void 0 == void 0 ); 69 array[item++] = new TestCase( SECTION, "null == null", true, null == null ); 73 array[item++] = new TestCase( SECTION, "NaN == NaN", false, Number.NaN == Number.NaN ); 74 array[item++] = new TestCase( SECTION, "NaN == 0", false, Number.NaN == 0 ); 75 array[item++] = new TestCase( SECTION, "0 == NaN", false, 0 == Number.NaN ); 76 array[item++] = new TestCase( SECTION, "NaN == Infinity", false, Number.NaN == Number.POSITIVE_INFINITY ); 77 array[item++] = new TestCase( SECTION, "Infinity == NaN", false, Number.POSITIVE_INFINITY == Number.NaN ); 81 array[item++] = new TestCase( SECTION, "Number.MAX_VALUE == Number.MAX_VALUE", true, Number.MAX_V (…) [all...] |
11.4.6.js | 53 var array = new Array(); 55 array[item++] = new TestCase( SECTION, "+('')", 0, +("") ); 56 array[item++] = new TestCase( SECTION, "+(' ')", 0, +(" ") ); 57 array[item++] = new TestCase( SECTION, "+(\\t)", 0, +("\t") ); 58 array[item++] = new TestCase( SECTION, "+(\\n)", 0, +("\n") ); 59 array[item++] = new TestCase( SECTION, "+(\\r)", 0, +("\r") ); 60 array[item++] = new TestCase( SECTION, "+(\\f)", 0, +("\f") ); 62 array[item++] = new TestCase( SECTION, "+(String.fromCharCode(0x0009)", 0, +(String.fromCharCode(0x0009)) ); 63 array[item++] = new TestCase( SECTION, "+(String.fromCharCode(0x0020)", 0, +(String.fromCharCode(0x0 (…) [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
ObjectArrays.java | 36 * Returns a new array of the given length with the same type as a reference 37 * array. 39 * @param reference any array of the desired type 40 * @param length the length of the new array 47 * Returns a new array that prepends {@code element} to {@code array}. 49 * @param element the element to prepend to the front of {@code array} 50 * @param array the array of elements to append 51 * @return an array whose size is one larger than {@code array}, wit [all...] |
/external/compiler-rt/lib/asan/lit_tests/ |
stack-frame-demangle.cc | 11 char array[10]; local 12 memset(array, 0, 10); 13 return array[x]; // BOOOM
|
/external/eigen/doc/snippets/ |
Map_general_stride.cpp | 1 int array[24]; variable 2 for(int i = 0; i < 24; ++i) array[i] = i; 4 (array, 3, 3, Stride<Dynamic,2>(8, 2))
|
MatrixBase_array_const.cpp | 2 cout << "the absolute values:" << endl << v.array().abs() << endl; 3 cout << "the absolute values plus one:" << endl << v.array().abs()+1 << endl; 4 cout << "sum of the squares: " << v.array().square().sum() << endl;
|
MatrixBase_all.cpp | 5 << ((boxMin.array()<p0.array()).all() && (boxMax.array()>p0.array()).all()) << endl; 7 << ((boxMin.array()<p1.array()).all() && (boxMax.array()>p1.array()).all()) << endl;
|
/external/mockito/src/org/mockito/internal/util/collections/ |
ArrayUtils.java | 10 public <T> boolean isEmpty(T[] array) {
11 return array == null || array.length == 0;
|
/external/skia/legacy/src/core/ |
SkTSort.h | 16 void SkTHeapSort_SiftDown(T array[], int root, int bottom) { 19 if (child+1 <= bottom && array[child] < array[child+1]) { 22 if (array[root] < array[child]) { 23 SkTSwap<T>(array[root], array[child]); 31 template <typename T> void SkTHeapSort(T array[], int count) { 34 SkTHeapSort_SiftDown<T>(array, i, count-1); 37 SkTSwap<T>(array[0], array[i]) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/TypeConversion/ |
9.3.1-1.js | 67 var array = new Array(); 79 array[item++] = new TestCase( SECTION, "Number('')", 0, Number("") ); 80 array[item++] = new TestCase( SECTION, "Number(' ')", 0, Number(" ") ); 81 array[item++] = new TestCase( SECTION, "Number(\\t)", 0, Number("\t") ); 82 array[item++] = new TestCase( SECTION, "Number(\\n)", 0, Number("\n") ); 83 array[item++] = new TestCase( SECTION, "Number(\\r)", 0, Number("\r") ); 84 array[item++] = new TestCase( SECTION, "Number(\\f)", 0, Number("\f") ); 86 array[item++] = new TestCase( SECTION, "Number(String.fromCharCode(0x0009)", 0, Number(String.fromCharCode(0x0009)) ); 87 array[item++] = new TestCase( SECTION, "Number(String.fromCharCode(0x0020)", 0, Number(String.fromCh (…) [all...] |
/libcore/json/src/test/java/org/json/ |
JSONArrayTest.java | 30 JSONArray array = new JSONArray(); local 31 assertEquals(0, array.length()); 32 assertEquals("", array.join(" AND ")); 34 array.get(0); 39 array.getBoolean(0); 44 assertEquals("[]", array.toString()); 45 assertEquals("[]", array.toString(4)); 48 assertTrue(array.isNull(0)); 49 assertNull(array.opt(0)); 50 assertFalse(array.optBoolean(0)) 76 JSONArray array = new JSONArray(); local 126 JSONArray array = new JSONArray(); local 138 JSONArray array = new JSONArray(); local 180 JSONArray array = new JSONArray("[\\"null\\",null]"); local 199 JSONArray array = new JSONArray(); local 245 JSONArray array = new JSONArray(); local 298 JSONArray array = new JSONArray(); local 314 JSONArray array = new JSONArray(Arrays.asList(5, 6)); local 319 JSONArray array = new JSONArray(Arrays.asList(5, 6)); local 390 JSONArray array = new JSONArray(); local 410 JSONArray array = new JSONArray(); local 422 JSONArray array = new JSONArray(Arrays.asList(5.5, Double.NaN)); local 430 JSONArray array = new JSONArray(Arrays.asList(5.5, Double.NaN)); local 436 JSONArray array = new JSONArray(contents); local 506 JSONArray array = new JSONArray(Arrays.asList(5.5, true)); local 514 JSONArray array = new JSONArray(); local [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.4.8-1.js | 27 Returns an Array object into which substrings of the result of converting 30 occurrences are not part of any substring in the returned array, but serve 34 up into individual characters; the length of the result array equals the 37 If the separator is not supplied, then the result array contains just one 60 var array = new Array(); 63 array[item++] = new TestCase( SECTION, "String.prototype.split.length", 2, String.prototype.split.length ); 64 array[item++] = new TestCase( SECTION, "delete String.prototype.split.length", false, delete String.prototype.split.length ); 65 array[item++] = new TestCase( SECTION, "delete String.prototype.split.length; String.prototype.split.length", 2, eval("delete String.prototype.split.length; String.prototype.split.length") ); 71 array[item++] = new TestCase( SECTION [all...] |
/frameworks/base/graphics/java/android/graphics/ |
ColorMatrixColorFilter.java | 36 * @param array array of floats used to transform colors, treated as a 4x5 37 * matrix. The first 20 entries of the array are copied into 40 public ColorMatrixColorFilter(float[] array) { 41 if (array.length < 20) { 44 native_instance = nativeColorMatrixFilter(array); 45 nativeColorFilter = nColorMatrixFilter(native_instance, array); 48 private static native int nativeColorMatrixFilter(float[] array); 49 private static native int nColorMatrixFilter(int nativeFilter, float[] array);
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p15.cpp | 9 int array[3]; local 12 (void)[&array] () -> void {};
|
/external/icu4c/test/letest/ |
letest.h | 25 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0]) 31 #define DELETE_ARRAY(array) free((void *) (array)) 33 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/ExecutionContexts/ |
10.1.3.js | 44 var array = new Array(); 48 array[item++] = 56 array[item++] = 64 array[item++] = 69 array[item++] = 74 array[item++] = 79 array[item++] = 85 array[item++] = 89 array[item++] = [all...] |
/ndk/sources/cxx-stl/llvm-libc++/test/containers/sequences/array/array.tuple/ |
get.fail.cpp | 10 // <array> 12 // template <size_t I, class T, size_t N> T& get(array<T, N>& a); 14 #include <array> 21 typedef std::array<T, 3> C;
|
/dalvik/tests/096-array-copy-concurrent-gc/src/ |
Main.java | 22 * Size of array and amount of garbage created is based on experimental 45 Object [] array = new Object[10000]; field in class:Main 48 // We want many references in the array 54 for (int i = 0; i < array.length; i+=2) { 55 array[i] = new String("Creating some garbage" + i); 62 for (int j = 0; j < array.length; j++) { 63 Object obj = array[array.length - 1]; 64 System.arraycopy(array, 0, array, 1, array.length - 1) [all...] |
/external/stlport/test/unit/ |
binsert_test.cpp | 32 const char* array [] = { "laurie", "jennifer", "leisa" }; local 35 bit = copy(array, array + 3, bit); 37 CPPUNIT_ASSERT(!strcmp(names[0],array[0])); 38 CPPUNIT_ASSERT(!strcmp(names[1],array[1])); 39 CPPUNIT_ASSERT(!strcmp(names[2],array[2])); 41 copy(array, array + 3, bit); 42 CPPUNIT_ASSERT(!strcmp(names[3],array[0])); 43 CPPUNIT_ASSERT(!strcmp(names[4],array[1])) 48 const char* array [] = { "laurie", "jennifer", "leisa" }; local [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
binsert_test.cpp | 32 const char* array [] = { "laurie", "jennifer", "leisa" }; local 35 bit = copy(array, array + 3, bit); 37 CPPUNIT_ASSERT(!strcmp(names[0],array[0])); 38 CPPUNIT_ASSERT(!strcmp(names[1],array[1])); 39 CPPUNIT_ASSERT(!strcmp(names[2],array[2])); 41 copy(array, array + 3, bit); 42 CPPUNIT_ASSERT(!strcmp(names[3],array[0])); 43 CPPUNIT_ASSERT(!strcmp(names[4],array[1])) 48 const char* array [] = { "laurie", "jennifer", "leisa" }; local [all...] |
/ndk/tests/device/test-stlport/unit/ |
binsert_test.cpp | 32 const char* array [] = { "laurie", "jennifer", "leisa" }; local 35 bit = copy(array, array + 3, bit); 37 CPPUNIT_ASSERT(!strcmp(names[0],array[0])); 38 CPPUNIT_ASSERT(!strcmp(names[1],array[1])); 39 CPPUNIT_ASSERT(!strcmp(names[2],array[2])); 41 copy(array, array + 3, bit); 42 CPPUNIT_ASSERT(!strcmp(names[3],array[0])); 43 CPPUNIT_ASSERT(!strcmp(names[4],array[1])) 48 const char* array [] = { "laurie", "jennifer", "leisa" }; local [all...] |
/external/webkit/Source/WebCore/manual-tests/resources/ |
ArrayParameterTestApplet.java | 30 public void arrayFunction(String [] array) { 32 for (int i = 0; i < array.length; i++) 33 System.out.println(array[i]); 36 public void booleanFunction(boolean[] array) { 38 for (int i = 0; i < array.length; i++) 39 System.out.println(array[i]); 42 public void byteFunction(byte[] array) { 44 for (int i = 0; i < array.length; i++) 45 System.out.println(array[i]); 48 public void charFunction(char[] array) { [all...] |