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

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CXX/temp/temp.spec/temp.expl.spec/
p11.cpp 4 template<class T> class Array { /* ... */ };
5 template<class T> void sort(Array<T>& v);
7 // explicit specialization for sort(Array<int>&)
9 template<> void sort(Array<int>&);
  /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/clang/test/CodeGen/
2002-01-24-ComplexSpaceInType.c 4 // %Array = uninitialized global [10 x %complex int]
9 struct { int X, Y; } Array[10];
2002-03-12-ArrayInitialization.c 4 specified for an array.
17 struct Test Array[10] = { { 2, 12.0 }, { 3, 24.0 } };
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ArrayTest.java 19 import java.lang.reflect.Array;
45 assertEquals(booleans[0], Array.getBoolean(booleans, 0));
46 try { Array.getBoolean(bytes, 0); fail(); } catch (IllegalArgumentException expected) {}
47 try { Array.getBoolean(chars, 0); fail(); } catch (IllegalArgumentException expected) {}
48 try { Array.getBoolean(doubles, 0); fail(); } catch (IllegalArgumentException expected) {}
49 try { Array.getBoolean(floats, 0); fail(); } catch (IllegalArgumentException expected) {}
50 try { Array.getBoolean(ints, 0); fail(); } catch (IllegalArgumentException expected) {}
51 try { Array.getBoolean(longs, 0); fail(); } catch (IllegalArgumentException expected) {}
52 try { Array.getBoolean(shorts, 0); fail(); } catch (IllegalArgumentException expected) {}
53 try { Array.getBoolean(null, 0); fail(); } catch (NullPointerException expected) {
    [all...]
OldAndroidArrayTest.java 19 import java.lang.reflect.Array;
23 * Test java.lang.reflect.Array methods.
28 Object intArray = Array.newInstance(Integer.TYPE, 2);
30 int[] array = (int[]) intArray; local
31 array[0] = 5;
32 Array.setInt(intArray, 1, 6);
34 assertEquals(5, Array.getInt(intArray, 0));
35 assertEquals(6, array[1]);
38 array[2] = 27;
44 assertEquals(2, array.length)
61 String[] array = (String[]) strArray; local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/
ArrayTest.java 20 import java.lang.reflect.Array;
25 * @tests java.lang.reflect.Array#get(java.lang.Object, int)
29 // java.lang.reflect.Array.get(java.lang.Object, int)
34 ret = Array.get(x, 0);
39 ret = Array.get(new Object(), 0);
45 fail("Passing non-array failed to throw exception");
49 ret = Array.get(x, 4);
60 * @tests java.lang.reflect.Array#getBoolean(java.lang.Object, int)
64 // java.lang.reflect.Array.getBoolean(java.lang.Object, int)
68 ret = Array.getBoolean(x, 0)
    [all...]
  /libcore/luni/src/test/java/tests/api/java/lang/reflect/
ArrayTest.java 20 import java.lang.reflect.Array;
25 * java.lang.reflect.Array#get(java.lang.Object, int)
29 // java.lang.reflect.Array.get(java.lang.Object, int)
35 ret = Array.get(x, 0);
42 ret = Array.get(new Object(), 0);
48 fail("Passing non-array failed to throw exception");
52 ret = Array.get(x, 4);
66 ret = Array.get(y, 0);
73 ret = Array.get(new Object(), 0);
79 fail("Passing non-array failed to throw exception")
    [all...]
  /external/webkit/Source/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...]
  /external/clang/test/CXX/temp/temp.spec/temp.explicit/
p2.cpp 4 template<class T> class Array { void mf() { } };
6 template class Array<char>;
7 template void Array<int>::mf();
8 template<class T> void sort(Array<T>& v) { /* ... */ }
9 template void sort(Array<char>&);
p6.cpp 4 template<class T> class Array { /* ... */ };
5 template<class T> void sort(Array<T>& v) { }
7 // instantiate sort(Array<int>&) - template-argument deduced
8 template void sort<>(Array<int>&);
10 template void sort(Array<long>&);
  /dalvik/tests/045-reflect-array/src/
Main.java 5 import java.lang.reflect.Array;
8 * Test java.lang.reflect.Array.
26 intArray = Array.newInstance(Integer.TYPE, 2);
28 int[] array = (int[]) intArray; local
29 array[0] = 5;
30 Array.setInt(intArray, 1, 6);
32 if (Array.getInt(intArray, 0) != 5)
34 if (array[1] != 6)
37 array[2] = 27;
41 Array.setInt(intArray, 2, 27)
74 char[] array = (char[]) charArray; local
145 long[] array = (long[]) longArray; local
166 String[] array = (String[]) strArray; local
    [all...]
  /external/mockito/src/org/mockito/internal/matchers/
Equality.java 7 import java.lang.reflect.Array;
28 return Array.getLength(o1) == Array.getLength(o2);
32 for (int i = 0; i < Array.getLength(o1); i++) {
33 if (!areEqual(Array.get(o1, i), Array.get(o2, i))) return false;
  /external/webkit/Source/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');
  /external/hamcrest/src/org/hamcrest/internal/
ArrayIterator.java 3 import java.lang.reflect.Array;
7 private final Object array; field in class:ArrayIterator
10 public ArrayIterator(Object array) {
11 if (!array.getClass().isArray()) {
12 throw new IllegalArgumentException("not an array");
14 this.array = array;
18 return currentIndex < Array.getLength(array);
22 return Array.get(array, currentIndex++)
    [all...]
  /external/webkit/Source/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...]
  /external/skia/include/utils/
SkJSON.h 27 class Array;
48 * parameter is copied, but ownership of the Array parameter is
49 * transferred. The Array parameter may be null, but the name must
52 void addArray(const char name[], Array* value);
90 bool findArray(const char name[], Array** = NULL) const;
146 Array* arrayValue() const;
184 friend class Array;
187 class Array {
190 * Creates an array with the specified Type and element count. All
193 Array(Type, int count)
    [all...]
  /external/skia/legacy/include/utils/
SkJSON.h 27 class Array;
48 * parameter is copied, but ownership of the Array parameter is
49 * transferred. The Array parameter may be null, but the name must
52 void addArray(const char name[], Array* value);
90 bool findArray(const char name[], Array** = NULL) const;
146 Array* arrayValue() const;
184 friend class Array;
187 class Array {
190 * Creates an array with the specified Type and element count. All
193 Array(Type, int count)
    [all...]

Completed in 2387 milliseconds

1 2 3 4 5 6 7 8 91011>>