/cts/tests/tests/util/src/android/util/cts/ |
LongSparseArrayTest.java | 37 private static final long[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 51 sparseArray.put(KEYS[i], VALUES[i]); 56 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); 60 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); 64 long existKey = KEYS[0]; 90 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); 92 sparseArray.delete(KEYS[1]); 94 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 98 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); 100 sparseArray.remove(KEYS[2]) [all...] |
SparseArrayTest.java | 34 private static final int[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 48 sparseArray.put(KEYS[i], VALUES[i]); 53 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); 57 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); 61 int existKey = KEYS[0]; 87 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); 89 sparseArray.delete(KEYS[1]); 91 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 95 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); 97 sparseArray.remove(KEYS[2]) [all...] |
SparseLongArrayTest.java | 35 private static final int[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 49 sparseArray.put(KEYS[i], VALUES[i]); 54 assertEquals(i, sparseArray.get(KEYS[i])); 58 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); 62 int existKey = KEYS[0]; 84 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); 86 sparseArray.delete(KEYS[1]); 88 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 92 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); 94 sparseArray.delete(KEYS[2]) [all...] |
SparseBooleanArrayTest.java | 32 private static final int[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 45 sparseBooleanArray.put(KEYS[i], VALUES[i]); 49 assertEquals(VALUES[i], sparseBooleanArray.get(KEYS[i])); 56 keyIndex = sparseBooleanArray.indexOfKey(KEYS[i]); 63 int existKey = KEYS[0]; 85 assertEquals(VALUES[1], sparseBooleanArray.get(KEYS[1])); 87 sparseBooleanArray.delete(KEYS[1]); 89 sparseBooleanArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 102 sparseBooleanArray.put(KEYS[i], VALUES[i]); 106 assertEquals(VALUES[i], sparseBooleanArray.get(KEYS[i])) [all...] |
SparseIntArrayTest.java | 32 private static final int[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 44 sparseIntArray.put(KEYS[i], VALUES[i]); 48 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); 52 sparseIntArray.indexOfKey(KEYS[i])); 56 int existKey = KEYS[0]; 77 assertEquals(VALUES[1], sparseIntArray.get(KEYS[1])); 79 sparseIntArray.delete(KEYS[1]); 81 sparseIntArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 94 sparseIntArray.put(KEYS[i], VALUES[i]); 98 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])) [all...] |
ArraySetTest.java | 75 private static int[] KEYS = new int[] { 219 assertEquals("OPS and KEYS must be equal length", OPS.length, KEYS.length); 228 ControlledHash key = KEYS[i] < 0 ? null : new ControlledHash(KEYS[i]);
|
ArrayMapTest.java | 80 static int[] KEYS = new int[] { 361 ControlledHash key = KEYS[i] < 0 ? null : new ControlledHash(KEYS[i]); 362 String strKey = KEYS[i] < 0 ? null : Integer.toString(KEYS[i]); 482 * Test creating a malformed array map with duplicated keys and that we will catch this 593 // Assert iteration over the expected two keys in any order
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
SparseArrayTest.java | 39 private static final int[] KEYS = {12, 23, 4, 6, 8, 1, 3, -12, 0, -3, 11, 14, -23}; 54 sparseArray.put(KEYS[i], VALUES[i]); 59 assertEquals(new Integer(i), sparseArray.get(KEYS[i])); 63 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); 67 int existKey = KEYS[0]; 93 assertEquals(VALUES[1], sparseArray.get(KEYS[1])); 95 sparseArray.delete(KEYS[1]); 97 sparseArray.get(KEYS[1], VALUE_FOR_NON_EXISTED_KEY)); 101 assertEquals(VALUES[2], sparseArray.get(KEYS[2])); 103 sparseArray.remove(KEYS[2]) [all...] |
/frameworks/base/core/tests/coretests/src/android/app/backup/ |
BackupDataTest.java | 51 private static final String[] KEYS = {KEY1, KEY2, KEY3, KEY4}; 106 for(int i = 0; i < KEYS.length; i++) { 107 writeEntity(bdo, KEYS[i], DATA[i].getBytes()); 116 readAndVerifyEntity(bdi, KEYS[count], DATA[count].getBytes()); 119 assertEquals("four entities in this stream", KEYS.length, count); 127 for(int i = 0; i < KEYS.length; i++) { 128 deleteEntity(bdo, KEYS[i]); 137 readAndVerifyDeletedEntity(bdi, KEYS[count]); 140 assertEquals("four deletes in this stream", KEYS.length, count); 150 deleteEntity(bdo, KEYS[i]); i++ [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/dream/ |
DreamSettingsTest.java | 39 private static final List<String> KEYS = Arrays.asList( 62 for (int i = 0; i < KEYS.size(); i++) { 63 assertThat(DreamSettings.getSettingFromPrefKey(KEYS.get(i))).isEqualTo(SETTINGS[i]); 73 assertThat(DreamSettings.getKeyFromSetting(SETTINGS[i])).isEqualTo(KEYS.get(i));
|
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/ |
PchLpss.asl | 242 OperationRegion (KEYS, SystemMemory, U11A, 0x100)
243 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
317 OperationRegion (KEYS, SystemMemory, U21A, 0x100)
318 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
391 OperationRegion (KEYS, SystemMemory, SP1A, 0x100)
392 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
478 OperationRegion (KEYS, SystemMemory, I11A, 0x100)
479 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
566 OperationRegion (KEYS, SystemMemory, I21A, 0x100)
567 Field (KEYS, DWordAcc, NoLock, WriteAsZeros) [all...] |
PchScc.asl | 248 OperationRegion (KEYS, SystemMemory, eM1A, 0x100)
249 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
341 OperationRegion (KEYS, SystemMemory, eM1A, 0x100)
342 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
443 OperationRegion (KEYS, SystemMemory, SI1A, 0x100)
444 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
593 OperationRegion (KEYS, SystemMemory, SD1A, 0x100)
594 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
|
Pch.asl | 181 OperationRegion (KEYS, SystemMemory, LPE1, 0x100)
182 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
266 OperationRegion (KEYS, SystemMemory, LPE1, 0x100)
267 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)
|
/frameworks/base/services/core/jni/ |
com_android_server_tv_TvUinputBridge.cpp | 60 for (size_t i = 0; i < NELEM(KEYS); i++) { 61 keysMap[KEYS[i].androidKeyCode] = KEYS[i].linuxKeyCode; 150 // set the keys mapped 152 for (size_t i = 0; i < NELEM(KEYS); i++) { 153 ioctl(fd, UI_SET_KEYBIT, KEYS[i].linuxKeyCode); 256 // Clear keys. 257 for (size_t i = 0; i < NELEM(KEYS); i++) { 258 connection->sendEvent(EV_KEY, KEYS[i].linuxKeyCode, 0);
|
com_android_server_tv_TvKeys.h | 9 // Map the keys specified in virtual-remote.kl. 10 // Only specify the keys actually used in the layout here. 17 static Key KEYS[] = {
|
/development/build/tools/ |
mk_sdk_repo_xml.sh | 213 local KEYS="major minor micro preview" 216 while [[ -n "$VALUE" && -n "$KEYS" ]]; do 224 KEYS="" 226 K="${KEYS%% *}" 234 K="${KEYS#* }" 235 if [[ "$K" == "$KEYS" ]]; then KEYS=""; else KEYS="$K"; fi
|
/external/libxkbcommon/xkbcommon/src/xkbcomp/ |
parser.h | 73 KEYS = 30, 139 #define KEYS 30
|
parser.y | 115 KEYS 30 214 %type <geom> Keys Key OverlayDecl OverlayKeyList OverlayKey OutlineList OutlineInList 515 RowBodyItem : KEYS OBRACE Keys CBRACE SEMI { $$ = NULL; } 520 Keys : Keys COMMA Key { $$ = NULL; }
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
SlicesIndexerTest.java | 46 private final String[] KEYS = new String[]{"key1", "key2", "key3"}; 117 KEYS[i]); 159 for (int i = 0; i < KEYS.length; i++) { 160 builder.setKey(KEYS[i]).setTitle(TITLES[i]);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
SAXParserTestSupport.java | 33 * Support for SAXParserTest. Shares the element keys used in the golden files. 71 static String [] KEYS = {KEY_IS_START_DOC, KEY_IS_END_DOC, KEY_TEXT, 105 if(i < KEYS.length) { 106 storage.put(KEYS[i], str.toString()); 150 for(int i = 0; i < KEYS.length; i++) { 151 if(!original.get(KEYS[i]).equals(result.get(KEYS[i]))) { 152 System.out.println("for "+KEYS[i]+": original:" + 153 original.get(KEYS[i])); 155 System.out.println(" result:" + result.get(KEYS[i])) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
TZDBTimeZoneNames.java | 146 private static final String[] KEYS = {"ss", "sd"}; 166 String[] names = new String[KEYS.length]; 169 names[i] = table.getString(KEYS[i]);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
TZDBTimeZoneNames.java | 144 private static final String[] KEYS = {"ss", "sd"}; 164 String[] names = new String[KEYS.length]; 167 names[i] = table.getString(KEYS[i]);
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
MonkeyLogItem.java | 35 KEYS, 79 DroppedCategory.KEYS.toString(),
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
ArrayMapTests.java | 57 static int[] KEYS = new int[] { 346 ControlledHash key = KEYS[i] < 0 ? null : new ControlledHash(KEYS[i]); 349 Log.i("test", "Adding key: " + KEYS[i]); 356 Log.i("test", "Removing key: " + KEYS[i]);
|
/libcore/ojluni/src/main/java/java/util/ |
Hashtable.java | 35 * This class implements a hash table, which maps keys to values. Any 39 * objects used as keys must implement the <code>hashCode</code> 72 * the numbers as keys: 95 * The Enumerations returned by Hashtable's keys and elements methods are 231 * Returns the number of keys in this hashtable. 233 * @return the number of keys in this hashtable. 240 * Tests if this hashtable maps no keys to values. 242 * @return <code>true</code> if this hashtable maps no keys to values; 250 * Returns an enumeration of the keys in this hashtable. 252 * @return an enumeration of the keys in this hashtable 258 public synchronized Enumeration<K> keys() { method in class:Hashtable [all...] |