Searched refs:keyValues (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtilsTests.java | 59 final HashMap<String,String> keyValues = new HashMap<>(); in testFindConstantForKeyValuePairsSimple() local 60 keyValues.put(HARDWARE_KEY, "grouper"); in testFindConstantForKeyValuePairsSimple() 61 assertEquals("0.3", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 62 keyValues.put(HARDWARE_KEY, "mako"); in testFindConstantForKeyValuePairsSimple() 63 assertEquals("0.4", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 64 keyValues.put(HARDWARE_KEY, "manta"); in testFindConstantForKeyValuePairsSimple() 65 assertEquals("0.2", ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() 67 keyValues.clear(); in testFindConstantForKeyValuePairsSimple() 68 keyValues.put("hardware", "grouper"); in testFindConstantForKeyValuePairsSimple() 69 assertNull(ResourceUtils.findConstantForKeyValuePairs(keyValues, array)); in testFindConstantForKeyValuePairsSimple() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderUtils.java | 378 final LinkedList<String> keyValues = new LinkedList<>(); in decodeHeaderAttributes() local 382 keyValues.add(sb.toString()); in decodeHeaderAttributes() 395 if ((keyValues.size() & 1) != 0) { in decodeHeaderAttributes() 399 for (int i = 0; i < keyValues.size(); i += 2) { in decodeHeaderAttributes() 400 attributes.put(keyValues.get(i), keyValues.get(i + 1)); in decodeHeaderAttributes()
|