/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/modules/IPsec/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimAkaTypeData.java | 48 public final LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap; field in EapSimAkaTypeData 52 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in EapSimAkaTypeData() argument 54 this.attributeMap = attributeMap; in EapSimAkaTypeData() 64 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode() 74 for (EapSimAkaAttribute attribute : attributeMap.values()) { in encode() 124 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap = new LinkedHashMap<>(); in decode() local 128 if (attributeMap.containsKey(attribute.attributeType)) { in decode() 138 attributeMap.put(attribute.attributeType, attribute); in decode() 141 T eapSimAkaTypeData = getInstance(eapSubType, attributeMap); in decode() 160 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap); in getInstance() argument [all …]
|
D | EapSimTypeData.java | 66 public EapSimTypeData(int eapSubType, LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in EapSimTypeData() argument 67 super(eapSubType, attributeMap); in EapSimTypeData() 78 if (attributeMap.containsKey(attribute.attributeType)) { in EapSimTypeData() 82 attributeMap.put(attribute.attributeType, attribute); in EapSimTypeData() 121 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in getInstance() argument 122 return new EapSimTypeData(eapSubtype, attributeMap); in getInstance()
|
D | EapAkaTypeData.java | 72 public EapAkaTypeData(int eapSubType, LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in EapAkaTypeData() argument 73 super(eapSubType, attributeMap); in EapAkaTypeData() 90 if (attributeMap.containsKey(attribute.attributeType)) { in EapAkaTypeData() 94 attributeMap.put(attribute.attributeType, attribute); in EapAkaTypeData() 133 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in getInstance() argument 134 return new EapAkaTypeData(eapSubtype, attributeMap); in getInstance()
|
D | EapAkaPrimeTypeData.java | 38 int eapSubType, LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in EapAkaPrimeTypeData() argument 39 super(eapSubType, attributeMap); in EapAkaPrimeTypeData() 91 int eapSubtype, LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap) { in getInstance() argument 92 return new EapAkaPrimeTypeData(eapSubtype, attributeMap); in getInstance()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapSimAkaMethodStateMachine.java | 223 AtMac atMac = (AtMac) typeData.attributeMap.get(EAP_AT_MAC); in isValidMac() 247 AtMac originalMac = (AtMac) typeData.attributeMap.get(EAP_AT_MAC); in getMac() 248 typeData.attributeMap.put(EAP_AT_MAC, new AtMac()); in getMac() 262 typeData.attributeMap.put(EAP_AT_MAC, originalMac); in getMac() 284 eapSimAkaTypeData.attributeMap.put(EAP_AT_MAC, new AtMac(mac)); in buildResponseMessageWithMac() 309 (AtNotification) eapSimAkaTypeData.attributeMap.get(EAP_AT_NOTIFICATION); in handleEapSimAkaNotification() 328 if (eapSimAkaTypeData.attributeMap.containsKey(EAP_AT_MAC)) { in handleEapSimAkaNotification() 335 } else if (!eapSimAkaTypeData.attributeMap.containsKey(EAP_AT_MAC)) { in handleEapSimAkaNotification() 345 AtMac atMac = (AtMac) eapSimAkaTypeData.attributeMap.get(EAP_AT_MAC); in handleEapSimAkaNotification()
|
D | EapSimMethodStateMachine.java | 236 LOG.e(mTAG, "Invalid attributes: " + eapSimTypeData.attributeMap.keySet()); in process() 248 eapSimTypeData.attributeMap.get(EAP_AT_VERSION_LIST); in process() 288 Set<Integer> attrs = eapSimTypeData.attributeMap.keySet(); in isValidStartAttributes() 321 Set<Integer> attributes = eapSimTypeData.attributeMap.keySet(); in getIdentityResponse() 411 LOG.e(mTAG, "Invalid attributes: " + eapSimTypeData.attributeMap.keySet()); in process() 476 Set<Integer> attrs = eapSimTypeData.attributeMap.keySet(); in isValidChallengeAttributes() 483 AtRandSim atRand = (AtRandSim) eapSimTypeData.attributeMap.get(EAP_AT_RAND); in getRandChallengeResults()
|
D | EapAkaMethodStateMachine.java | 245 LOG.e(mTAG, "Invalid attributes: " + eapAkaTypeData.attributeMap.keySet()); in process() 279 Set<Integer> attrs = eapAkaTypeData.attributeMap.keySet(); in isValidIdentityAttributes() 366 LOG.e(mTAG, "Invalid attributes: " + eapAkaTypeData.attributeMap.keySet()); in process() 427 AtBidding atBidding = (AtBidding) eapAkaTypeData.attributeMap.get(EAP_AT_BIDDING); in handleChallengeAuthentication() 491 Set<Integer> attrs = eapAkaTypeData.attributeMap.keySet(); in isValidChallengeAttributes() 501 AtRandAka atRandAka = (AtRandAka) eapAkaTypeData.attributeMap.get(EAP_AT_RAND); in getRandChallengeResult() 502 AtAutn atAutn = (AtAutn) eapAkaTypeData.attributeMap.get(EAP_AT_AUTN); in getRandChallengeResult()
|
/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 | 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()
|
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()
|
/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/ |
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/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/message/simaka/ |
D | EapSimTypeDataTest.java | 72 eapSimTypeData.attributeMap.entrySet().iterator(); in testConstructor() 89 assertTrue(eapSimTypeData.attributeMap.containsKey(EAP_AT_VERSION_LIST)); in testDecode() 91 eapSimTypeData.attributeMap.get(EAP_AT_VERSION_LIST); in testDecode() 93 assertTrue(eapSimTypeData.attributeMap.containsKey(EAP_AT_PERMANENT_ID_REQ)); in testDecode() 96 Iterator<Integer> itr = eapSimTypeData.attributeMap.keySet().iterator(); in testDecode()
|
/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/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 81 final HashMap<String, String> attributeMap) { in createEmptyDictionaryWithAttributesAndGetFile() argument 84 attributeMap); in createEmptyDictionaryWithAttributesAndGetFile() 94 final HashMap<String, String> attributeMap) throws IOException { in createEmptyVer4DictionaryAndGetFile() argument 100 Locale.ENGLISH, attributeMap)) { in createEmptyVer4DictionaryAndGetFile() 528 final HashMap<String, String> attributeMap = new HashMap<>(); in testRandomOperationsAndFlashWithGC() local 529 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testRandomOperationsAndFlashWithGC() 530 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testRandomOperationsAndFlashWithGC() 542 attributeMap); in testRandomOperationsAndFlashWithGC() 659 final HashMap<String, String> attributeMap = new HashMap<>(); in testUnigramAndBigramCount() local 660 attributeMap.put(DictionaryHeader.MAX_UNIGRAM_COUNT_KEY, String.valueOf(maxUnigramCount)); in testUnigramAndBigramCount() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | EapSimChallengeStateTest.java | 162 LinkedHashMap<Integer, EapSimAkaAttribute> attributeMap = new LinkedHashMap<>(); in testIsValidChallengeAttributes() local 163 EapSimTypeData eapSimTypeData = new EapSimTypeData(EAP_SIM_CHALLENGE, attributeMap); in testIsValidChallengeAttributes() 166 attributeMap.put(EAP_AT_RAND, null); // value doesn't matter, just need key in testIsValidChallengeAttributes() 167 eapSimTypeData = new EapSimTypeData(EAP_SIM_CHALLENGE, attributeMap); in testIsValidChallengeAttributes() 170 attributeMap.put(EAP_AT_MAC, null); // value doesn't matter, just need key in testIsValidChallengeAttributes() 171 eapSimTypeData = new EapSimTypeData(EAP_SIM_CHALLENGE, attributeMap); in testIsValidChallengeAttributes()
|
/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()
|
/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_BinaryDictionaryUtils.cpp | 52 DictionaryHeaderStructurePolicy::AttributeMap attributeMap = in latinime_BinaryDictionaryUtils_createEmptyDictFile() local 56 localeCodePoints, &attributeMap); in latinime_BinaryDictionaryUtils_createEmptyDictFile()
|
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()
|