/packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/ |
D | header_read_write_utils_test.cpp | 44 DictionaryHeaderStructurePolicy::AttributeMap attributeMap; in TEST() local 47 EXPECT_EQ(-1, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "", -1)); in TEST() 48 EXPECT_EQ(100, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "abc", 100)); in TEST() 50 HeaderReadWriteUtils::setIntAttribute(&attributeMap, "abc", 10); in TEST() 51 EXPECT_EQ(10, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "abc", 100)); in TEST() 52 HeaderReadWriteUtils::setIntAttribute(&attributeMap, "abc", 20); in TEST() 53 EXPECT_EQ(20, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "abc", 100)); in TEST() 54 HeaderReadWriteUtils::setIntAttribute(&attributeMap, "abcd", 30); in TEST() 55 EXPECT_EQ(30, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "abcd", 100)); in TEST() 56 EXPECT_EQ(20, HeaderReadWriteUtils::readIntAttributeValue(&attributeMap, "abc", 100)); in TEST() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | TrackInfo.java | 70 Map<Integer, String> attributeMap = new HashMap<>(); in TrackInfo() local 72 attributeMap.put(attrIds.get(i), attrMap.get(i)); in TrackInfo() 76 mTrackTitle = attributeMap.getOrDefault(MEDIA_ATTRIBUTE_TITLE, UNPOPULATED_ATTRIBUTE); in TrackInfo() 78 mArtistName = attributeMap.getOrDefault(MEDIA_ATTRIBUTE_ARTIST_NAME, UNPOPULATED_ATTRIBUTE); in TrackInfo() 80 mAlbumTitle = attributeMap.getOrDefault(MEDIA_ATTRIBUTE_ALBUM_NAME, UNPOPULATED_ATTRIBUTE); in TrackInfo() 82 attribute = attributeMap.get(MEDIA_ATTRIBUTE_TRACK_NUMBER); in TrackInfo() 85 attribute = attributeMap.get(MEDIA_ATTRIBUTE_TOTAL_TRACK_NUMBER); in TrackInfo() 88 mGenre = attributeMap.getOrDefault(MEDIA_ATTRIBUTE_GENRE, UNPOPULATED_ATTRIBUTE); in TrackInfo() 90 attribute = attributeMap.get(MEDIA_ATTRIBUTE_PLAYING_TIME); in TrackInfo()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | dict_file_writing_utils.cpp | 43 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) { in createEmptyDictFile() argument 51 filePath, localeAsCodePointVector, attributeMap, formatVersion); in createEmptyDictFile() 56 filePath, localeAsCodePointVector, attributeMap, formatVersion); in createEmptyDictFile() 67 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap, in createEmptyV4DictFile() argument 69 HeaderPolicy headerPolicy(formatVersion, localeAsCodePointVector, attributeMap); in createEmptyV4DictFile()
|
D | dict_file_writing_utils.h | 36 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap); 51 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap, 57 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | CombinedFormatUtils.java | 40 public static String formatAttributeMap(final HashMap<String, String> attributeMap) { in formatAttributeMap() argument 43 if (attributeMap.containsKey(DictionaryHeader.DICTIONARY_ID_KEY)) { in formatAttributeMap() 44 builder.append(attributeMap.get(DictionaryHeader.DICTIONARY_ID_KEY)); in formatAttributeMap() 46 for (final String key : attributeMap.keySet()) { in formatAttributeMap() 50 final String value = attributeMap.get(key); in formatAttributeMap()
|
D | BinaryDictionaryUtils.java | 96 final Locale locale, final Map<String, String> attributeMap) { in createEmptyDictFile() argument 97 final String[] keyArray = new String[attributeMap.size()]; in createEmptyDictFile() 98 final String[] valueArray = new String[attributeMap.size()]; in createEmptyDictFile() 100 for (final String key : attributeMap.keySet()) { in createEmptyDictFile() 102 valueArray[index] = attributeMap.get(key); in createEmptyDictFile()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ExpandableBinaryDictionary.java | 209 HashMap<String, String> attributeMap = new HashMap<>(); in getHeaderAttributeMap() local 211 attributeMap.putAll(mAdditionalAttributeMap); in getHeaderAttributeMap() 213 attributeMap.put(DictionaryHeader.DICTIONARY_ID_KEY, mDictName); in getHeaderAttributeMap() 214 attributeMap.put(DictionaryHeader.DICTIONARY_LOCALE_KEY, mLocale.toString()); in getHeaderAttributeMap() 215 attributeMap.put(DictionaryHeader.DICTIONARY_VERSION_KEY, in getHeaderAttributeMap() 217 return attributeMap; in getHeaderAttributeMap() 682 final Map<String, String> attributeMap) { in clearAndFlushDictionaryWithAdditionalAttributes() argument 683 mAdditionalAttributeMap = attributeMap; in clearAndFlushDictionaryWithAdditionalAttributes()
|
D | BinaryDictionary.java | 145 final Map<String, String> attributeMap) { in BinaryDictionary() argument 153 final String[] keyArray = new String[attributeMap.size()]; in BinaryDictionary() 154 final String[] valueArray = new String[attributeMap.size()]; in BinaryDictionary() 156 for (final String key : attributeMap.keySet()) { in BinaryDictionary() 158 valueArray[index] = attributeMap.get(key); in BinaryDictionary()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 70 final HashMap<String, String> attributeMap) { in createEmptyDictionaryWithAttributesAndGetFile() argument 73 attributeMap); in createEmptyDictionaryWithAttributesAndGetFile() 83 final HashMap<String, String> attributeMap) throws IOException { in createEmptyVer4DictionaryAndGetFile() argument 89 Locale.ENGLISH, attributeMap)) { in createEmptyVer4DictionaryAndGetFile() 505 final HashMap<String, String> attributeMap = new HashMap<>(); in testRandomOperationsAndFlashWithGC() local 506 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testRandomOperationsAndFlashWithGC() 507 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testRandomOperationsAndFlashWithGC() 519 attributeMap); in testRandomOperationsAndFlashWithGC() 634 final HashMap<String, String> attributeMap = new HashMap<>(); in testUnigramAndBigramCount() local 635 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testUnigramAndBigramCount() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 58 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) { in newPolicyForOnMemoryDict() argument 66 dictFormatVersion, locale, attributeMap); in newPolicyForOnMemoryDict() 72 dictFormatVersion, locale, attributeMap); in newPolicyForOnMemoryDict() 87 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) { in newPolicyForOnMemoryV4Dict() argument 88 HeaderPolicy headerPolicy(formatVersion, locale, attributeMap); in newPolicyForOnMemoryV4Dict()
|
D | dictionary_structure_with_buffer_policy_factory.h | 38 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap); 47 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | UserHistoryDictionary.java | 118 final Map<String, String> attributeMap = super.getHeaderAttributeMap(); in getHeaderAttributeMap() local 119 attributeMap.put(DictionaryHeader.USES_FORGETTING_CURVE_KEY, in getHeaderAttributeMap() 121 attributeMap.put(DictionaryHeader.HAS_HISTORICAL_INFO_KEY, in getHeaderAttributeMap() 123 return attributeMap; in getHeaderAttributeMap()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_policy.cpp | 157 DictionaryHeaderStructurePolicy::AttributeMap attributeMap; in createAttributeMapAndReadAllAttributes() local 158 HeaderReadWriteUtils::fetchAllHeaderAttributes(dictBuf, &attributeMap); in createAttributeMapAndReadAllAttributes() 159 return attributeMap; in createAttributeMapAndReadAllAttributes()
|
D | header_policy.h | 62 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap) in HeaderPolicy() argument 65 attributeMap)), mSize(0), mAttributeMap(*attributeMap), mLocale(locale), in HeaderPolicy()
|
D | header_read_write_utils.h | 44 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap);
|
D | header_read_write_utils.cpp | 65 const AttributeMap *const attributeMap) { in createAndGetDictionaryFlagsUsingAttributeMap() argument
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | jni_data_utils.h | 46 DictionaryHeaderStructurePolicy::AttributeMap attributeMap; in constructAttributeMap() local 68 attributeMap[key] = value; in constructAttributeMap() 70 return attributeMap; in constructAttributeMap()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 85 DictionaryHeaderStructurePolicy::AttributeMap attributeMap = in latinime_BinaryDictionary_createOnMemory() local 90 formatVersion, localeCodePoints, &attributeMap); in latinime_BinaryDictionary_createOnMemory() 147 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap = in latinime_BinaryDictionary_getHeaderInfo() local 149 for (DictionaryHeaderStructurePolicy::AttributeMap::const_iterator it = attributeMap->begin(); in latinime_BinaryDictionary_getHeaderInfo() 150 it != attributeMap->end(); ++it) { in latinime_BinaryDictionary_getHeaderInfo()
|
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 52 DictionaryHeaderStructurePolicy::AttributeMap attributeMap = in latinime_BinaryDictionaryUtils_createEmptyDictFile() local 56 localeCodePoints, &attributeMap); in latinime_BinaryDictionaryUtils_createEmptyDictFile()
|