Home
last modified time | relevance | path

Searched refs:attributeMap (Results 1 – 25 of 31) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/header/
Dheader_read_write_utils_test.cpp44 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/
DEapSimAkaTypeData.java48 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 …]
DEapSimTypeData.java66 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()
DEapAkaTypeData.java72 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()
DEapAkaPrimeTypeData.java38 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/
DEapSimAkaMethodStateMachine.java223 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()
DEapSimMethodStateMachine.java236 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()
DEapAkaMethodStateMachine.java245 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/
Ddict_file_writing_utils.cpp43 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()
Ddict_file_writing_utils.h36 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/
DBinaryDictionaryUtils.java96 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()
DCombinedFormatUtils.java40 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/
Ddictionary_structure_with_buffer_policy_factory.cpp58 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()
Ddictionary_structure_with_buffer_policy_factory.h38 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap);
47 const DictionaryHeaderStructurePolicy::AttributeMap *const attributeMap);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java209 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()
DBinaryDictionary.java145 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/
DEapSimTypeDataTest.java72 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/
DUserHistoryDictionary.java118 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/
DBinaryDictionaryTests.java81 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/
DEapSimChallengeStateTest.java162 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/
Dheader_policy.cpp157 DictionaryHeaderStructurePolicy::AttributeMap attributeMap; in createAttributeMapAndReadAllAttributes() local
158 HeaderReadWriteUtils::fetchAllHeaderAttributes(dictBuf, &attributeMap); in createAttributeMapAndReadAllAttributes()
159 return attributeMap; in createAttributeMapAndReadAllAttributes()
Dheader_policy.h62 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/
Djni_data_utils.h46 DictionaryHeaderStructurePolicy::AttributeMap attributeMap; in constructAttributeMap() local
68 attributeMap[key] = value; in constructAttributeMap()
70 return attributeMap; in constructAttributeMap()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp52 DictionaryHeaderStructurePolicy::AttributeMap attributeMap = in latinime_BinaryDictionaryUtils_createEmptyDictFile() local
56 localeCodePoints, &attributeMap); in latinime_BinaryDictionaryUtils_createEmptyDictFile()
Dcom_android_inputmethod_latin_BinaryDictionary.cpp85 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()

12