/external/guava/src/com/google/common/collect/ |
SingletonImmutableList.java | 108 @Override public <T> T[] toArray(T[] array) { 109 if (array.length == 0) { 110 array = ObjectArrays.newArray(array, 1); 111 } else if (array.length > 1) { 112 array[1] = null; 115 Object[] objectArray = array; 117 return array;
|
SingletonImmutableSet.java | 73 @Override public <T> T[] toArray(T[] array) { 74 if (array.length == 0) { 75 array = ObjectArrays.newArray(array, 1); 76 } else if (array.length > 1) { 77 array[1] = null; 80 Object[] objectArray = array; 82 return array;
|
RegularImmutableList.java | 38 private final transient Object[] array; field in class:RegularImmutableList 40 RegularImmutableList(Object[] array, int offset, int size) { 43 this.array = array; 46 RegularImmutableList(Object[] array) { 47 this(array, 0, array.length); 65 return (UnmodifiableIterator<E>) Iterators.forArray(array, offset, size); 70 Platform.unsafeArrayCopy(array, offset, newArray, 0, size); 80 Platform.unsafeArrayCopy(array, offset, other, 0, size) 232 Object[] array() { method [all...] |
/frameworks/base/core/jni/ |
android_nio_utils.h | 28 * (and releasePointer if array is returned non-null) must be done in the 33 * @param array REQUIRED. Output. If on return it is set to non-null, then 34 * nio_releasePointer must be called with the array 40 void* nio_getPointer(JNIEnv *env, jobject buffer, jarray *array); 43 * Call this if android_nio_getPointer returned non-null in its array parameter. 44 * Pass that array and the returned pointer when you are done accessing the 45 * pointer. If called (i.e. array is non-null), it must be called in the same 49 * @param buffer The array returned from android_nio_getPointer (!= null) 54 void nio_releasePointer(JNIEnv *env, jarray array, void *pointer,
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/ |
15.9.2.2-1.js | 45 // all tests must call a function that returns an array of TestCase objects. 49 var array = new Array(); 54 array[item++] = new TestCase( SECTION, "Date(1970,0,1,0,0,0)", (new Date()).toString(), Date(1970,0,1,0,0,0) ); 55 array[item++] = new TestCase( SECTION, "Date(1969,11,31,15,59,59)", (new Date()).toString(), Date(1969,11,31,15,59,59)) 56 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,0)", (new Date()).toString(), Date(1969,11,31,16,0,0)) 57 array[item++] = new TestCase( SECTION, "Date(1969,11,31,16,0,1)", (new Date()).toString(), Date(1969,11,31,16,0,1)) 60 array[item++] = new TestCase( SECTION, "Date(1999,11,15,59,59)", (new Date()).toString(), Date(1999,11,15,59,59)); 61 array[item++] = new TestCase( SECTION, "Date(1999,11,16,0,0,0)", (new Date()).toString(), Date(1999,11,16,0,0,0)); 62 array[item++] = new TestCase( SECTION, "Date(1999,11,31,23,59,59)", (new Date()).toString(), Date (…) [all...] |
15.9.2.2-3.js | 45 // all tests must call a function that returns an array of TestCase objects. 49 var array = new Array(); 54 array[item++] = new TestCase( SECTION, "Date(1899,11,31,23,59,59)", (new Date()).toString(), Date(1899,11,31,23,59,59)); 55 array[item++] = new TestCase( SECTION, "Date(1900,0,1,0,0,0)", (new Date()).toString(), Date(1900,0,1,0,0,0) ); 56 array[item++] = new TestCase( SECTION, "Date(1900,0,1,0,0,1)", (new Date()).toString(), Date(1900,0,1,0,0,1) ); 57 array[item++] = new TestCase( SECTION, "Date(1899,11,31,16,0,0,0)", (new Date()).toString(), Date(1899,11,31,16,0,0,0)); 62 array[item++] = new TestCase( SECTION, "Date( 2000,1,29,0,0,0)", (new Date()).toString(), Date(2000,1,29,0,0,0)); 63 array[item++] = new TestCase( SECTION, "Date( 2000,1,28,23,59,59)", (new Date()).toString(), Date( 2000,1,28,23,59,59)); 64 array[item++] = new TestCase( SECTION, "Date( 2000,1,27,16,0,0)", (new Date()).toString(), Date (…) [all...] |
15.9.2.2-5.js | 45 // all tests must call a function that returns an array of TestCase objects. 49 var array = new Array(); 53 array[item++] = new TestCase( SECTION, "Date(2004,11,31,23,59,59)", (new Date()).toString(), Date(2004,11,31,23,59,59)); 54 array[item++] = new TestCase( SECTION, "Date(2005,0,1,0,0,0)", (new Date()).toString(), Date(2005,0,1,0,0,0) ); 55 array[item++] = new TestCase( SECTION, "Date(2005,0,1,0,0,1)", (new Date()).toString(), Date(2005,0,1,0,0,1) ); 56 array[item++] = new TestCase( SECTION, "Date(2004,11,31,16,0,0,0)", (new Date()).toString(), Date(2004,11,31,16,0,0,0)); 59 array[item++] = new TestCase( SECTION, "Date(2031,11,31,23,59,59)", (new Date()).toString(), Date(2031,11,31,23,59,59)); 60 array[item++] = new TestCase( SECTION, "Date(2032,0,1,0,0,0)", (new Date()).toString(), Date(2032,0,1,0,0,0) ); 61 array[item++] = new TestCase( SECTION, "Date(2032,0,1,0,0,1)", (new Date()).toString(), Date (…) [all...] |
15.9.2.2-6.js | 45 // all tests must call a function that returns an array of TestCase objects. 49 var array = new Array(); 53 array[item++] = new TestCase( SECTION, "Date(2031,11,31,23,59,59)", (new Date()).toString(), Date(2031,11,31,23,59,59)); 54 array[item++] = new TestCase( SECTION, "Date(2032,0,1,0,0,0)", (new Date()).toString(), Date(2032,0,1,0,0,0) ); 55 array[item++] = new TestCase( SECTION, "Date(2032,0,1,0,0,1)", (new Date()).toString(), Date(2032,0,1,0,0,1) ); 56 array[item++] = new TestCase( SECTION, "Date(2031,11,31,16,0,0,0)", (new Date()).toString(), Date(2031,11,31,16,0,0,0)); 58 return ( array );
|
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Expressions/ |
11.4.1.js | 45 var array = new Array(); 48 // array[item++] = new TestCase( SECTION, "x=[9,8,7];delete(x[2]);x.length", 2, eval("x=[9,8,7];delete(x[2]);x.length") ); 49 // array[item++] = new TestCase( SECTION, "x=[9,8,7];delete(x[2]);x.toString()", "9,8", eval("x=[9,8,7];delete(x[2]);x.toString()") ); 50 array[item++] = new TestCase( SECTION, "x=new Date();delete x;typeof(x)", "undefined", eval("x=new Date();delete x;typeof(x)") ); 52 // array[item++] = new TestCase( SECTION, "delete(x=new Date())", true, delete(x=new Date()) ); 53 // array[item++] = new TestCase( SECTION, "delete('string primitive')", true, delete("string primitive") ); 54 // array[item++] = new TestCase( SECTION, "delete(new String( 'string object' ) )", true, delete(new String("string object")) ); 55 // array[item++] = new TestCase( SECTION, "delete(new Number(12345) )", true, delete(new Number(12345)) ); 56 array[item++] = new TestCase( SECTION, "delete(Math.PI)", false, delete(Math.PI) ) [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/FunctionObjects/ |
15.3.4-1.js | 56 var array = new Array(); 58 array[item++] = new TestCase( SECTION, 64 // array[item++] = new TestCase( SECTION, "Function.prototype.__proto__", Object.prototype, Function.prototype.__proto__ ); 65 array[item++] = new TestCase( SECTION, "Function.prototype.valueOf", Object.prototype.valueOf, Function.prototype.valueOf ); 66 array[item++] = new TestCase( SECTION, "Function.prototype()", (void 0), Function.prototype() ); 67 array[item++] = new TestCase( SECTION, "Function.prototype(1,true,false,'string', new Date(),null)", (void 0), Function.prototype(1,true,false,'string', new Date(),null) ); 68 return ( array );
|
15.3.4.js | 55 var array = new Array(); 57 array[item++] = new TestCase( SECTION, 63 // array[item++] = new TestCase( SECTION, "Function.prototype.__proto__", Object.prototype, Function.prototype.__proto__ ); 64 array[item++] = new TestCase( SECTION, "Function.prototype.valueOf", Object.prototype.valueOf, Function.prototype.valueOf ); 65 array[item++] = new TestCase( SECTION, "Function.prototype()", (void 0), Function.prototype() ); 66 array[item++] = new TestCase( SECTION, "Function.prototype(1,true,false,'string', new Date(),null)", (void 0), Function.prototype(1,true,false,'string', new Date(),null) ); 67 return ( array );
|
15.3.5-2.js | 68 var array = new Array(); 73 array[item++] = new TestCase( SECTION, "MyObject.length", 3, MyObject.length ); 74 array[item++] = new TestCase( SECTION, "typeof MyObject.prototype", "object", typeof MyObject.prototype ); 75 array[item++] = new TestCase( SECTION, "typeof MyObject.prototype.constructor", "function", typeof MyObject.prototype.constructor ); 76 array[item++] = new TestCase( SECTION, "MyObject.arguments", null, MyObject.arguments ); 78 return ( array );
|
/frameworks/base/core/java/android/os/ |
LatencyTimer.java | 65 long[] array = getArray(tag); local 67 // array[mSampleSize] holds the number of used entries 68 final int index = (int) array[mSampleSize]++; 69 array[index] = delta; 70 if (array[mSampleSize] == mSampleSize) { 72 for (long d : array) { 75 array[mSampleSize] = 0;
|
/frameworks/base/core/jni/android/graphics/ |
ColorFilter.cpp | 52 SkFixed array[20]; local 54 array[i] = SkFloatToScalar(src[i]); 56 return new SkColorMatrixFilter(array); 83 #define REG(env, name, array) \ 84 result = android::AndroidRuntime::registerNativeMethods(env, name, array, \ 85 SK_ARRAY_COUNT(array)); \
|
/external/v8/test/mjsunit/ |
array-functions-prototype.js | 28 // This file contains a number of tests of array functions and their 39 // Set elements on the array prototype. 40 Array.prototype[0] = 'zero'; 41 Array.prototype[1] = 'one'; 42 Array.prototype[2] = 'two'; 60 var array = ['zero', , 'two']; 62 assertEquals('zero', array.shift()); 63 assertEquals('zero', Array.prototype.shift.call(nonArray)); 66 assertEquals(2, array.length); 68 assertHasOwnProperties(array, 2) [all...] |
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
LongBufferTest.java | 73 assertNotNull(testBuf.array()); 80 assertNotNull(testBuf.array()); 97 method = "array", 101 long array[] = buf.array(); local 102 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 104 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 105 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 107 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 108 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) 124 long array[] = buf.array(); local 359 long array[] = new long[1]; local 396 long array[] = new long[buf.capacity()]; local 591 long array[] = new long[1]; local 626 long array[] = new long[buf.capacity()]; local 826 long array[] = new long[BUFFER_LENGTH]; local 858 long array[] = new long[BUFFER_LENGTH]; local 917 assertEquals(buf.get(i), array[offset + i]); local [all...] |
DoubleBufferTest.java | 72 assertNotNull(testBuf.array()); 79 assertNotNull(testBuf.array()); 127 method = "array", 131 double array[] = buf.array(); local 132 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 134 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 135 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 137 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 138 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) 154 double array[] = buf.array(); local 409 double array[] = new double[1]; local 446 double array[] = new double[buf.capacity()]; local 642 double array[] = new double[1]; local 671 double array[] = new double[buf.capacity()]; local 861 double array[] = new double[BUFFER_LENGTH]; local 893 double array[] = new double[BUFFER_LENGTH]; local 952 assertEquals(buf.get(i), array[offset + i], 0.01); local [all...] |
FloatBufferTest.java | 73 assertNotNull(testBuf.array()); 80 assertNotNull(testBuf.array()); 123 method = "array", 127 float array[] = buf.array(); local 128 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 130 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 131 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 133 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 134 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) 150 float array[] = buf.array(); local 404 float array[] = new float[1]; local 441 float array[] = new float[buf.capacity()]; local 639 float array[] = new float[1]; local 674 float array[] = new float[buf.capacity()]; local 868 float array[] = new float[BUFFER_LENGTH]; local 900 float array[] = new float[BUFFER_LENGTH]; local 959 assertEquals(buf.get(i), array[offset + i], 0.01); local [all...] |
IntBufferTest.java | 74 assertNotNull(testBuf.array()); 81 assertNotNull(testBuf.array()); 98 method = "array", 102 int array[] = buf.array(); local 103 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 105 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 106 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 108 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 109 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) 125 int array[] = buf.array(); local 360 int array[] = new int[1]; local 397 int array[] = new int[buf.capacity()]; local 592 int array[] = new int[1]; local 627 int array[] = new int[buf.capacity()]; local 844 int array[] = new int[BUFFER_LENGTH]; local 876 int array[] = new int[BUFFER_LENGTH]; local 935 assertEquals(buf.get(i), array[offset + i]); local [all...] |
ShortBufferTest.java | 73 assertNotNull(testBuf.array()); 80 assertNotNull(testBuf.array()); 97 method = "array", 101 short array[] = buf.array(); local 102 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 104 loadTestData1(array, buf.arrayOffset(), buf.capacity()); 105 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); 107 loadTestData2(array, buf.arrayOffset(), buf.capacity()); 108 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()) 124 short array[] = buf.array(); local 359 short array[] = new short[1]; local 396 short array[] = new short[buf.capacity()]; local 585 short array[] = new short[1]; local 620 short array[] = new short[buf.capacity()]; local 837 short array[] = new short[BUFFER_LENGTH]; local 869 short array[] = new short[BUFFER_LENGTH]; local 928 assertEquals(buf.get(i), array[offset + i]); local [all...] |
/external/skia/include/core/ |
SkFlattenable.h | 84 void setRefCntArray(SkRefCnt* array[], int count) { 85 fRCArray = array; 89 void setTypefaceArray(SkTypeface* array[], int count) { 90 fTFArray = array; 94 void setFactoryPlayback(SkFlattenable::Factory array[], int count) { 95 fFactoryArray = array; 134 void get(SkRefCnt* array[]) const { 135 this->getPtrs((void**)array); 156 void get(SkFlattenable::Factory array[]) const { 157 this->getPtrs((void**)array); [all...] |
/external/webkit/JavaScriptCore/tests/mozilla/ecma/String/ |
15.5.3.2-3.js | 52 var array = new Array(); 56 array[item++] = new TestCase( SECTION, 63 array[item++] = new TestCase( SECTION, 70 array[item++] = new TestCase( SECTION, 77 array[item++] = new TestCase( SECTION, 84 array[item++] = new TestCase( SECTION, 90 array[item++] = new TestCase( SECTION, "(String.fromCharCode(65535)).charCodeAt(0)", 65535, (String.fromCharCode(65535)).charCodeAt(0) ); 91 array[item++] = new TestCase( SECTION, "(String.fromCharCode(65536)).charCodeAt(0)", 0, (String.fromCharCode(65536)).charCodeAt(0) ); 92 array[item++] = new TestCase( SECTION, "(String.fromCharCode(65537)).charCodeAt(0)", 1, (String. (…) [all...] |
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
PriorityQueueTest.java | 55 Integer[] array = { 2, 45, 7, -12, 9 }; local 56 for (int i = 0; i < array.length; i++) { 57 integerQueue.offer(array[i]); 66 Arrays.sort(array); 68 assertTrue(Arrays.equals(array, resultArray)); 142 Integer[] array = { 2, 45, 7, -12, 9 }; local 143 for (int i = 0; i < array.length; i++) { 144 integerQueue.offer(array[i]); 148 for (int i = 0; i < array.length; i++) { 154 assertEquals(array.length - 1, integerQueue.size()) 180 Integer[] array = { 2, 45, 7, -12, 9 }; local 215 int[] array = { 2, 45, 7, -12, 9 }; local 325 Integer[] array = { 2, 45, 7, -12, 9 }; local 342 Integer[] array = { 2, 45, 7, -12, 9 }; local 406 String[] array = { "AAAAA", "AA", "AAAA", "AAAAAAAA" }; local 431 int[] array = { 3, 5, 79, -17, 5 }; local 458 int[] array = { 2, 45, 7, -12, 9 }; local 508 int[] array = { 3, 5, 79, -17, 5 }; local 550 String[] array = { "AAAAA", "AA", "AAAA", "AAAAAAAA" }; local 621 String[] array = { "MYTESTSTRING", "AAAAA", "BCDEF", "ksTRD", "AAAAA" }; local 659 int[] array = { 2, 45, 7, -12, 9 }; local 695 int[] array = { 2, 45, 7, -12, 9 }; local 714 Integer[] array = { 2, 45, 7, -12, 9 }; local 785 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 810 String[] array = { "AAAAA", "AA", "AAAA", "AAAAAAAA" }; local 829 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 853 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 870 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 927 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 950 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local 973 Integer[] array = { 2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39 }; local [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...] |
/dalvik/libcore/luni/src/main/java/java/util/ |
ArrayList.java | 29 import java.lang.reflect.Array; 32 * ArrayList is an implementation of {@link List}, backed by an array. 50 * An empty array of objects (to be shared among all empty lists). 71 transient Object[] array; field in class:ArrayList 84 array = (capacity == 0 ? EMPTY_OBJECT_ARRAY : new Object[capacity]); 91 array = EMPTY_OBJECT_ARRAY; 108 array = a; 120 Object[] a = array; 127 array = a = newArray; 149 Object[] a = array; [all...] |