Home
last modified time | relevance | path

Searched refs:VALUES (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DLongSparseArrayTest.java39 private static final Integer[] VALUES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; field in LongSparseArrayTest
40 private static final int LENGTH = VALUES.length;
49 int length = VALUES.length; in testSparseArrayWithDefaultCapacity()
52 sparseArray.put(KEYS[i], VALUES[i]); in testSparseArrayWithDefaultCapacity()
61 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); in testSparseArrayWithDefaultCapacity()
66 Integer oldValue = VALUES[0]; // 0 in testSparseArrayWithDefaultCapacity()
86 sparseArray.setValueAt(size, VALUES[1]); in testSparseArrayWithDefaultCapacity()
88 assertEquals(VALUES[1], sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
91 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity()
92 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[1]); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseBooleanArrayTest.java34 private static final boolean[] VALUES = field in SparseBooleanArrayTest
44 int length = VALUES.length; in testSparseBooleanArrayWithDefaultCapacity()
46 sparseBooleanArray.put(KEYS[i], VALUES[i]); in testSparseBooleanArrayWithDefaultCapacity()
50 assertEquals(VALUES[i], sparseBooleanArray.get(KEYS[i])); in testSparseBooleanArrayWithDefaultCapacity()
58 assertEquals(VALUES[i], sparseBooleanArray.valueAt(keyIndex)); in testSparseBooleanArrayWithDefaultCapacity()
59 expectPos = VALUES[i] ? truePos : falsePos; in testSparseBooleanArrayWithDefaultCapacity()
60 assertEquals(expectPos, sparseBooleanArray.indexOfValue(VALUES[i])); in testSparseBooleanArrayWithDefaultCapacity()
65 boolean oldValue = VALUES[0]; // true in testSparseBooleanArrayWithDefaultCapacity()
86 assertEquals(VALUES[1], sparseBooleanArray.get(KEYS[1])); in testSparseBooleanArrayWithDefaultCapacity()
87 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[1]); in testSparseBooleanArrayWithDefaultCapacity()
[all …]
DSparseLongArrayTest.java37 private static final long[] VALUES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; field in SparseLongArrayTest
38 private static final int LENGTH = VALUES.length;
47 int length = VALUES.length; in testSparseArrayWithDefaultCapacity()
50 sparseArray.put(KEYS[i], VALUES[i]); in testSparseArrayWithDefaultCapacity()
59 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); in testSparseArrayWithDefaultCapacity()
64 long oldValue = VALUES[0]; // 0 in testSparseArrayWithDefaultCapacity()
85 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity()
86 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[1]); in testSparseArrayWithDefaultCapacity()
93 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); in testSparseArrayWithDefaultCapacity()
94 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[2]); in testSparseArrayWithDefaultCapacity()
[all …]
DSparseIntArrayTest.java34 private static final int[] VALUES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; field in SparseIntArrayTest
43 int length = VALUES.length; in testSparseIntArrayWithDefaultCapacity()
45 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithDefaultCapacity()
49 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithDefaultCapacity()
52 assertEquals(sparseIntArray.indexOfValue(VALUES[i]), in testSparseIntArrayWithDefaultCapacity()
58 int oldValue = VALUES[0]; // 0 in testSparseIntArrayWithDefaultCapacity()
78 assertEquals(VALUES[1], sparseIntArray.get(KEYS[1])); in testSparseIntArrayWithDefaultCapacity()
79 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[1]); in testSparseIntArrayWithDefaultCapacity()
93 int length = VALUES.length; in testSparseIntArrayWithSpecifiedCapacity()
95 sparseIntArray.put(KEYS[i], VALUES[i]); in testSparseIntArrayWithSpecifiedCapacity()
[all …]
DSparseArrayTest.java43 private static final Integer[] VALUES = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; field in SparseArrayTest
44 private static final int LENGTH = VALUES.length;
53 int length = VALUES.length; in testSparseArrayWithDefaultCapacity()
56 sparseArray.put(KEYS[i], VALUES[i]); in testSparseArrayWithDefaultCapacity()
65 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); in testSparseArrayWithDefaultCapacity()
70 Integer oldValue = VALUES[0]; // 0 in testSparseArrayWithDefaultCapacity()
90 sparseArray.setValueAt(size, VALUES[1]); in testSparseArrayWithDefaultCapacity()
92 assertEquals(VALUES[1], sparseArray.valueAt(size)); in testSparseArrayWithDefaultCapacity()
95 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); in testSparseArrayWithDefaultCapacity()
96 assertFalse(VALUE_FOR_NON_EXISTED_KEY == VALUES[1]); in testSparseArrayWithDefaultCapacity()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DContentResolverWrapTest.java63 private static final ContentValues VALUES = new ContentValues(); field in ContentResolverWrapTest
149 doReturn(URI).when(mProvider).insert(URI, VALUES); in testInsert()
150 assertEquals(URI, mResolver.insert(URI, VALUES)); in testInsert()
155 doReturn(URI).when(mProvider).insert(URI, VALUES, EXTRAS); in testInsert_Extras()
156 assertEquals(URI, mResolver.insert(URI, VALUES, EXTRAS)); in testInsert_Extras()
161 doReturn(42).when(mProvider).update(URI, VALUES, ARG, ARG_ARRAY); in testUpdate()
162 assertEquals(42, mResolver.update(URI, VALUES, ARG, ARG_ARRAY)); in testUpdate()
167 doReturn(21).when(mProvider).update(URI, VALUES, EXTRAS); in testUpdate_Extras()
168 assertEquals(21, mResolver.update(URI, VALUES, EXTRAS)); in testUpdate_Extras()
DContentProviderClientTest.java77 private static final ContentValues VALUES = new ContentValues(); field in ContentProviderClientTest
78 private static final ContentValues[] VALUES_ARRAY = {VALUES};
221 mContentProviderClient.insert(URI, VALUES, EXTRAS); in testInsert()
222 verify(mIContentProvider).insert(mAttributionSource, URI, VALUES, EXTRAS); in testInsert()
227 VALUES, EXTRAS); in testInsertTimeout()
229 testTimeout(() -> mContentProviderClient.insert(URI, VALUES, EXTRAS)); in testInsertTimeout()
231 verify(mIContentProvider, after(150)).insert(mAttributionSource, URI, VALUES, EXTRAS); in testInsertTimeout()
262 mContentProviderClient.update(URI, VALUES, EXTRAS); in testUpdate()
263 verify(mIContentProvider).update(mAttributionSource, URI, VALUES, EXTRAS); in testUpdate()
268 VALUES, EXTRAS); in testUpdateTimeout()
[all …]