Searched refs:sparseArray (Results 1 – 7 of 7) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | SparseArrayTest.java | 48 SparseArray<Integer> sparseArray = new SparseArray<Integer>(); in testSparseArrayWithDefaultCapacity() local 49 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 54 sparseArray.put(KEYS[i], VALUES[i]); in testSparseArrayWithDefaultCapacity() 55 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 59 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); in testSparseArrayWithDefaultCapacity() 63 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); in testSparseArrayWithDefaultCapacity() 70 assertEquals(oldValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() 71 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 72 sparseArray.put(existKey, newValue); in testSparseArrayWithDefaultCapacity() 73 assertEquals(newValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() [all …]
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowSparseBooleanArray.java | 14 private SparseArray<Boolean> sparseArray = new SparseArray<Boolean>(); field in ShadowSparseBooleanArray 26 return sparseArray.get(key, valueIfKeyNotFound); in get() 31 sparseArray.delete(key); in delete() 36 sparseArray.put(key, value); in put() 41 return sparseArray.size(); in size() 46 return sparseArray.keyAt(index); in keyAt() 51 return sparseArray.valueAt(index); in valueAt() 56 return sparseArray.indexOfKey(key); in indexOfKey() 61 return sparseArray.indexOfValue(value); in indexOfValue() 66 sparseArray.clear(); in clear() [all …]
|
D | ShadowSparseIntArray.java | 13 private SparseArray<Integer> sparseArray = new SparseArray<Integer>(); field in ShadowSparseIntArray 25 return sparseArray.get( key, valueIfKeyNotFound ); in get() 30 sparseArray.put( key, value ); in put() 35 return sparseArray.size(); in size() 40 return sparseArray.indexOfValue( value ); in indexOfValue() 45 return sparseArray.keyAt( index ); in keyAt() 50 return sparseArray.valueAt( index ); in valueAt()
|
/external/v8/test/webkit/ |
D | array-reduce-expected.txt | 41 PASS sparseArray.reduce(function(a,b){ return a + b; }, 0) is 10 42 PASS toObject(sparseArray).reduce(function(a,b){ return a + b; }, 0) is 10 43 PASS sparseArray.reduce(function(a,b){ callCount++; }); callCount is 0 44 PASS toObject(sparseArray).reduce(function(a,b){ callCount++; }); callCount is 0 45 PASS sparseArray.reduce(function(a,b){ callCount++; }, 0); callCount is 1 46 PASS toObject(sparseArray).reduce(function(a,b){ callCount++; }, 0); callCount is 1
|
D | array-reduceRight-expected.txt | 41 PASS sparseArray.reduceRight(function(a,b){ return a + b; }, 0) is 10 42 PASS toObject(sparseArray).reduceRight(function(a,b){ return a + b; }, 0) is 10 43 PASS sparseArray.reduceRight(function(a,b){ callCount++; }); callCount is 0 44 PASS toObject(sparseArray).reduceRight(function(a,b){ callCount++; }); callCount is 0 45 PASS sparseArray.reduceRight(function(a,b){ callCount++; }, 0); callCount is 1 46 PASS toObject(sparseArray).reduceRight(function(a,b){ callCount++; }, 0); callCount is 1
|
D | array-reduceRight.js | 60 sparseArray = []; 61 sparseArray[10] = 10;
|
D | array-reduce.js | 60 sparseArray = []; 61 sparseArray[10] = 10;
|