HomeSort by relevance Sort by last modified time
    Searched refs:Array (Results 1 - 25 of 1201) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /system/core/include/cutils/
array.h 18 * A pointer array which intelligently expands its capacity ad needed.
30 /** An array. */
31 typedef struct Array Array;
33 /** Constructs a new array. Returns NULL if we ran out of memory. */
34 Array* arrayCreate();
36 /** Frees an array. Does not free elements themselves. */
37 void arrayFree(Array* array);
40 int arrayAdd(Array* array, void* pointer)
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma/Array/
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.2.2-1.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".
57 var TITLE = "The Array Constructor: new Array( len )";
65 var array = new Array();
68 array[item++] = new TestCase( SECTION, "new Array(0)", "", (new Array(0)).toString() )
    [all...]
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...]
  /frameworks/base/tests/CoreTests/android/core/
ReflectArrayTest.java 21 import java.lang.reflect.Array;
25 * Test java.lang.reflect.Array methods.
31 Object intArray = Array.newInstance(Integer.TYPE, 2);
33 int[] array = (int[]) intArray; local
34 array[0] = 5;
35 Array.setInt(intArray, 1, 6);
37 assertEquals(5, Array.getInt(intArray, 0));
38 assertEquals(6, array[1]);
41 array[2] = 27;
47 assertEquals(2, array.length)
65 String[] array = (String[]) strArray; local
    [all...]
  /external/webkit/JavaScriptCore/tests/mozilla/ecma_3/RegExp/
regress-202564.js 52 var statusmessages = new Array();
54 var patterns = new Array();
56 var strings = new Array();
58 var actualmatches = new Array();
60 var expectedmatches = new Array();
67 expectedmatch = Array(string, undefined, "Seattle", "WA", undefined, "Buckley", "WA");
regress-31316.js 33 var statusmessages = new Array();
35 var patterns = new Array();
37 var strings = new Array();
39 var actualmatches = new Array();
41 var expectedmatches = new Array();
48 expectedmatch = Array('<p>', undefined, 'p');
regress-209919.js 48 var statusmessages = new Array();
50 var patterns = new Array();
52 var strings = new Array();
54 var actualmatches = new Array();
56 var expectedmatches = new Array();
74 expectedmatch = Array(string, 'a');
87 expectedmatch = Array(string, '');
102 expectedmatch = Array('', undefined);
115 expectedmatch = Array('', '');
127 expectedmatch = Array(string, '00', undefined)
    [all...]
regress-105972.js 33 var statusmessages = new Array();
35 var patterns = new Array();
37 var strings = new Array();
39 var actualmatches = new Array();
41 var expectedmatches = new Array();
57 expectedmatch = Array(string);
70 expectedmatch = Array(cnEmptyString);
87 expectedmatch = Array('Hello:', ':');
106 expectedmatch = Array(string, cnEmptyString);
regress-72964.js 33 var statusmessages = new Array();
35 var patterns = new Array();
37 var strings = new Array();
39 var actualmatches = new Array();
41 var expectedmatches = new Array();
49 expectedmatch = Array(string);
56 expectedmatch = Array('\u00BF\u00CD');
64 expectedmatch = Array(string);
71 expectedmatch = Array('\u4e00\uac00');
regress-87231.js 30 * expectedmatch = Array('A', '', 'A');
45 var statusmessages = new Array();
47 var patterns = new Array();
49 var strings = new Array();
51 var actualmatches = new Array();
53 var expectedmatches = new Array();
60 expectedmatch = Array('AAA', 'A', 'AA');
66 expectedmatch = Array('AA', 'A', 'A');
72 expectedmatch = Array('A', undefined, 'A'); // 'altruistic' case: see above
83 expectedmatch = Array('AAA' + strR, 'A', 'AA' + strR)
    [all...]
regress-123437.js 49 var statusmessages = new Array();
51 var patterns = new Array();
53 var strings = new Array();
55 var actualmatches = new Array();
57 var expectedmatches = new Array();
64 expectedmatch = Array('a', undefined);
71 expectedmatch = Array('a', undefined);
78 expectedmatch = Array('a', undefined, 'a');
perlstress-001.js 57 //expectedmatch = Array('.', '.', ''); <<<--- Perl
58 expectedmatch = Array('.', '.', undefined); <<<--- JS
91 var statusmessages = new Array();
93 var patterns = new Array();
95 var strings = new Array();
97 var actualmatches = new Array();
99 var expectedmatches = new Array();
108 expectedmatch = Array('abc');
115 expectedmatch = Array('abc');
122 expectedmatch = Array('abc')
    [all...]
octal-001.js 47 var statusmessages = new Array();
49 var patterns = new Array();
51 var strings = new Array();
53 var actualmatches = new Array();
55 var expectedmatches = new Array();
74 expectedmatch = Array('ab*c');
81 expectedmatch = Array('abc');
88 expectedmatch = Array('ab****c', '*');
95 expectedmatch = Array('ab****c', '****', '*');
102 expectedmatch = Array('*c')
    [all...]
regress-165353.js 47 var statusmessages = new Array();
49 var patterns = new Array();
51 var strings = new Array();
53 var actualmatches = new Array();
55 var expectedmatches = new Array();
62 expectedmatch = Array('a', undefined);
68 expectedmatch = Array('ab', 'a');
74 expectedmatch = Array('abc', 'ab');
82 expectedmatch = Array('www.netscape.com', 'netscape.', 'netscap');
89 expectedmatch = Array('www.netscape.com', 'netscape.', 'netscap', 'e')
    [all...]
regress-191479.js 48 var statusmessages = new Array();
50 var patterns = new Array();
52 var strings = new Array();
54 var actualmatches = new Array();
56 var expectedmatches = new Array();
63 expectedmatch = Array('12', '2');
70 expectedmatch = Array(string, '5');
77 expectedmatch = Array('12', '2');
84 expectedmatch = Array(string, '5');
94 expectedmatch = Array(string, '5')
    [all...]
regress-57572.js 34 var statusmessages = new Array();
36 var patterns = new Array();
38 var strings = new Array();
40 var actualmatches = new Array();
42 var expectedmatches = new Array();
49 expectedmatch = Array(string, 'Test', ' this'); //single space in front of 'this'
56 expectedmatch = Array(string, 'Test', 'this'); //NO space in front of 'this'
63 expectedmatch = Array(string, 'Stupid', ' phrase, with six - (short) words'); //single space in front of 'phrase'
70 expectedmatch = Array(string, 'Stupid', 'phrase, with six - (short) words'); //NO space in front of 'phrase'
79 expectedmatch = Array(string, 'Stupid', cnSingleSpace, 'phrase, with six - (short) words')
    [all...]
15.10.2-1.js 49 var statusmessages = new Array();
51 var patterns = new Array();
53 var strings = new Array();
55 var actualmatches = new Array();
57 var expectedmatches = new Array();
64 expectedmatch = Array('a');
71 expectedmatch = Array('abc', 'a', 'a', undefined, 'bc', undefined, 'bc');
78 expectedmatch = Array('abcde');
85 expectedmatch = Array('abc');
92 expectedmatch = Array('aaba', 'ba')
    [all...]
regress-216591.js 48 var statusmessages = new Array();
50 var patterns = new Array();
52 var strings = new Array();
54 var actualmatches = new Array();
56 var expectedmatches = new Array();
63 expectedmatch = Array('{result.data.DATA}', 'result.data.', 'data.', 'DATA');
82 expectedmatch = Array('{result.data.DATA}');
  /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/webkit/JavaScriptCore/tests/mozilla/js1_5/Array/
regress-157652.js 38 * SUMMARY: Testing that Array.sort() doesn't crash on very large arrays
41 * How large can a JavaScript array be?
42 * ECMA-262 Ed.3 Final, Section 15.4.2.2 : new Array(len)
48 * js> var arr = new Array(0xFFFFFFFF)
52 * js> var arr = new Array(0x100000000)
53 * RangeError: invalid array length
56 * We'll try the largest possible array first, then a couple others.
57 * We're just testing that we don't crash on Array.sort().
59 * Try to be good about memory by nulling each array variable after it is
79 * FURTHER HEADACHE: Rhino can't seem to handle the largest array: it hangs
    [all...]
regress-178722.js 41 * ECMA-262 Ed.3: 15.4.4.11 Array.prototype.sort (comparefn)
54 * If |arr| is an empty array, the return value of |arr.sort()| should be
55 * an empty array, not the value |undefined| as was occurring in bug 178722.
71 // create empty array or pseudo-array objects in various ways
72 var arr1 = Array();
73 var arr2 = new Array();
79 arr5.__proto__ = Array.prototype;
84 actual = arr instanceof Array && arr.length === 0 && arr === arr1;
90 actual = arr instanceof Array && arr.length === 0 && arr === arr2
    [all...]
  /dalvik/tests/045-reflect-array/src/
Main.java 5 import java.lang.reflect.Array;
8 * Test java.lang.reflect.Array.
23 intArray = Array.newInstance(Integer.TYPE, 2);
25 int[] array = (int[]) intArray; local
26 array[0] = 5;
27 Array.setInt(intArray, 1, 6);
29 if (Array.getInt(intArray, 0) != 5)
31 if (array[1] != 6)
34 array[2] = 27;
39 if (array.length != Array.getLength(intArray) |
64 String[] array = (String[]) strArray; local
    [all...]
  /system/core/libcutils/
array.c 17 #include <cutils/array.h>
26 struct Array {
32 Array* arrayCreate() {
33 return calloc(1, sizeof(struct Array));
36 void arrayFree(Array* array) {
37 assert(array != NULL);
39 // Free internal array.
40 free(array->contents);
42 // Free the Array itself
    [all...]

Completed in 336 milliseconds

1 2 3 4 5 6 7 8 91011>>