Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 47) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryDictionaryBigramList.java56 final HashMap<String, Byte> map; in addBigram() local
58 map = mBigramMap.get(word1); in addBigram()
60 map = new HashMap<String, Byte>(); in addBigram()
61 mBigramMap.put(word1, map); in addBigram()
63 if (!map.containsKey(word2)) { in addBigram()
65 map.put(word2, fcValue); in addBigram()
76 final HashMap<String, Byte> map; in updateBigram() local
78 map = mBigramMap.get(word1); in updateBigram()
82 if (!map.containsKey(word2)) { in updateBigram()
85 map.put(word2, fcValue); in updateBigram()
DSettingsValues.java355 final HashMap<String, Long> map = Utils.localeAndTimeStrToHashMap(str); in getLastUserHistoryWriteTime() local
356 if (map.containsKey(locale)) { in getLastUserHistoryWriteTime()
357 return map.get(locale); in getLastUserHistoryWriteTime()
365 final HashMap<String, Long> map = Utils.localeAndTimeStrToHashMap(oldStr); in setLastUserHistoryWriteTime() local
366 map.put(locale, System.currentTimeMillis()); in setLastUserHistoryWriteTime()
367 final String newStr = Utils.localeAndTimeHashMapToStr(map); in setLastUserHistoryWriteTime()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java243 HashMap<String, String> map;
246 map = ACCOUNTS_PROJECTION_MAP;
247 map.put(Accounts.ACCOUNT_TYPE, Accounts.ACCOUNT_TYPE); in map.put()
248 map.put(Accounts.ACCOUNT_NAME, Accounts.ACCOUNT_NAME); in map.put()
249 map.put(Accounts.ROOT_ID, Accounts.ROOT_ID); in map.put()
252 map = BOOKMARKS_PROJECTION_MAP;
253 map.put(Bookmarks._ID, qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID)); in map.put()
254 map.put(Bookmarks.TITLE, Bookmarks.TITLE); in map.put()
255 map.put(Bookmarks.URL, Bookmarks.URL); in map.put()
256 map.put(Bookmarks.FAVICON, Bookmarks.FAVICON); in map.put()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java62 ContentCache.CounterMap<String> map = new ContentCache.CounterMap<String>(4); in testCounterMap() local
64 map.add("1"); in testCounterMap()
65 assertTrue(map.contains("1")); in testCounterMap()
66 map.add("2"); in testCounterMap()
67 map.add("2"); in testCounterMap()
69 map.subtract("2"); in testCounterMap()
70 assertTrue(map.contains("2")); in testCounterMap()
71 map.subtract("2"); in testCounterMap()
74 map.subtract("2"); in testCounterMap()
79 map.subtract("3"); in testCounterMap()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java246 ContentValues map = new ContentValues(); in getRow() local
252 map.put(Telephony.Carriers.NUMERIC,numeric); in getRow()
253 map.put(Telephony.Carriers.MCC, mcc); in getRow()
254 map.put(Telephony.Carriers.MNC, mnc); in getRow()
255 map.put(Telephony.Carriers.NAME, parser.getAttributeValue(null, "carrier")); in getRow()
256 map.put(Telephony.Carriers.APN, parser.getAttributeValue(null, "apn")); in getRow()
257 map.put(Telephony.Carriers.USER, parser.getAttributeValue(null, "user")); in getRow()
258 map.put(Telephony.Carriers.SERVER, parser.getAttributeValue(null, "server")); in getRow()
259 map.put(Telephony.Carriers.PASSWORD, parser.getAttributeValue(null, "password")); in getRow()
264 map.put(Telephony.Carriers.PROXY, proxy); in getRow()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTagClustering.java41 final TreeMap<String, ArrayList<Path>> map = in run() local
56 ArrayList<Path> list = map.get(key); in run()
59 map.put(key, list); in run()
66 int m = map.size(); in run()
70 for (Map.Entry<String, ArrayList<Path>> entry : map.entrySet()) { in run()
DFaceClustering.java92 final TreeMap<Face, FaceCluster> map = in run() local
105 FaceCluster cluster = map.get(face); in run()
108 map.put(face, cluster); in run()
115 int m = map.size(); in run()
116 mClusters = map.values().toArray(new FaceCluster[m + ((untagged.size() > 0) ? 1 : 0)]); in run()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java224 Map<String, byte[]> map = getPkeyMap(); in installOthers() local
225 byte[] privatekey = map.get(key); in installOthers()
228 map.remove(key); in installOthers()
229 savePkeyMap(map); in installOthers()
255 Map<String, byte[]> map = getPkeyMap(); in saveKeyPair() local
256 map.put(key, privatekey); in saveKeyPair()
257 savePkeyMap(map); in saveKeyPair()
258 Log.d(TAG, "save privatekey: " + key + " --> #keys:" + map.size()); in saveKeyPair()
261 private void savePkeyMap(Map<String, byte[]> map) { in savePkeyMap() argument
262 if (map.isEmpty()) { in savePkeyMap()
[all …]
/packages/apps/Calculator/src/com/android/calculator2/
DLogic.java253 private void addTranslation(HashMap<String, String> map, int t, int m) { in addTranslation() argument
258 map.put(translated, math); in addTranslation()
264 HashMap<String, String> map = new HashMap<String, String>(); in replaceTranslations() local
265 addTranslation(map, R.string.sin, R.string.sin_mathematical_value); in replaceTranslations()
266 addTranslation(map, R.string.cos, R.string.cos_mathematical_value); in replaceTranslations()
267 addTranslation(map, R.string.tan, R.string.tan_mathematical_value); in replaceTranslations()
268 addTranslation(map, R.string.e, R.string.e_mathematical_value); in replaceTranslations()
269 addTranslation(map, R.string.ln, R.string.ln_mathematical_value); in replaceTranslations()
270 addTranslation(map, R.string.lg, R.string.lg_mathematical_value); in replaceTranslations()
271 mTranslationsSet = map.entrySet(); in replaceTranslations()
/packages/apps/Settings/src/com/android/settings/
DZonePicker.java125 final HashMap<?,?> map = (HashMap<?,?>)adapter.getItem(i); in getTimeZoneIndex() local
126 final String id = (String)map.get(KEY_ID); in getTimeZoneIndex()
246 final HashMap<String, Object> map = new HashMap<String, Object>(); in addItem() local
247 map.put(KEY_ID, id); in addItem()
248 map.put(KEY_DISPLAYNAME, displayName); in addItem()
272 map.put(KEY_GMT, name.toString()); in addItem()
273 map.put(KEY_OFFSET, offset); in addItem()
275 myData.add(map); in addItem()
280 final Map<?, ?> map = (Map<?, ?>)listView.getItemAtPosition(position); in onListItemClick() local
281 final String tzId = (String) map.get(KEY_ID); in onListItemClick()
/packages/providers/ApplicationsProvider/src/com/android/providers/applications/
DApplicationsProvider.java449 HashMap<String, String> map = new HashMap<String, String>(); in buildSuggestionsProjectionMap() local
450 addProjection(map, Applications.ApplicationColumns._ID, _ID); in buildSuggestionsProjectionMap()
451 addProjection(map, SearchManager.SUGGEST_COLUMN_TEXT_1, NAME); in buildSuggestionsProjectionMap()
452 addProjection(map, SearchManager.SUGGEST_COLUMN_TEXT_2, DESCRIPTION); in buildSuggestionsProjectionMap()
453 addProjection(map, SearchManager.SUGGEST_COLUMN_INTENT_DATA, in buildSuggestionsProjectionMap()
456 addProjection(map, SearchManager.SUGGEST_COLUMN_ICON_1, ICON); in buildSuggestionsProjectionMap()
457 addProjection(map, SearchManager.SUGGEST_COLUMN_ICON_2, "NULL"); in buildSuggestionsProjectionMap()
458 addProjection(map, SearchManager.SUGGEST_COLUMN_SHORTCUT_ID, in buildSuggestionsProjectionMap()
461 addProjection(map, SearchManager.SUGGEST_COLUMN_LAST_ACCESS_HINT, in buildSuggestionsProjectionMap()
464 return map; in buildSuggestionsProjectionMap()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dunigram_dictionary.h82 const int *codes, const int codesSize, const std::map<int, int> *bigramMap,
90 const std::map<int, int> *bigramMap, const uint8_t *bigramFilter,
98 const std::map<int, int> *bigramMap, const uint8_t *bigramFilter,
106 const int *ycoordinates, const int *codes, const std::map<int, int> *bigramMap,
111 const std::map<int, int> *bigramMap, const uint8_t *bigramFilter,
125 bool processCurrentNode(const int initialPos, const std::map<int, int> *bigramMap,
Dbigram_dictionary.h35 std::map<int, int> *map, uint8_t *filter);
/packages/apps/Exchange/tests/src/com/android/exchange/
DTagsTests.java32 HashMap<String, Boolean> map = new HashMap<String, Boolean>(); in disable_testNoDuplicates() local
35 assertTrue(tag, !map.containsKey(tag)); in disable_testNoDuplicates()
36 map.put(tag, true); in disable_testNoDuplicates()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
DTagsTests.java32 HashMap<String, Boolean> map = new HashMap<String, Boolean>(); in disable_testNoDuplicates() local
35 assertTrue(tag, !map.containsKey(tag)); in disable_testNoDuplicates()
36 map.put(tag, true); in disable_testNoDuplicates()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DBasicSettingPopup.java66 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local
67 map.put("text", entries[i].toString()); in initialize()
68 if (iconIds != null) map.put("image", iconIds[i]); in initialize()
69 listItem.add(map); in initialize()
DEffectSettingPopup.java90 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local
91 map.put("value", value); in initialize()
92 map.put("text", entries[i].toString()); in initialize()
93 if (iconIds != null) map.put("image", iconIds[i]); in initialize()
95 mSillyFacesItem.add(map); in initialize()
97 mBackgroundItem.add(map); in initialize()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DPackedString.java84 HashMap<String, String> map = new HashMap<String, String>(); in explode() local
102 tag = Integer.toString(map.size()); in explode()
109 map.put(tag, value); in explode()
113 return map; in explode()
/packages/apps/Camera/src/com/android/camera/ui/
DEffectSettingPopup.java89 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local
90 map.put("value", value); in initialize()
91 map.put("text", entries[i].toString()); in initialize()
92 if (iconIds != null) map.put("image", iconIds[i]); in initialize()
94 mSillyFacesItem.add(map); in initialize()
96 mBackgroundItem.add(map); in initialize()
DBasicSettingPopup.java86 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local
87 map.put("text", entries[i].toString()); in initialize()
88 if (iconIds != null) map.put("image", iconIds[i]); in initialize()
89 listItem.add(map); in initialize()
/packages/apps/Phone/src/com/android/phone/
DGetPin2Screen.java62 Bundle map = new Bundle(); in returnResult() local
63 map.putString("pin2", getPin2()); in returnResult()
70 setResult(RESULT_OK, action.putExtras(map)); in returnResult()
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java251 HashMap<String, String> map = tokenizeImapId(id); in testImapIdBasic() local
252 assertEquals(mTestContext.getPackageName(), map.get("name")); in testImapIdBasic()
253 assertEquals("android", map.get("os")); in testImapIdBasic()
254 assertNotNull(map.get("os-version")); in testImapIdBasic()
255 assertNotNull(map.get("vendor")); in testImapIdBasic()
256 assertNotNull(map.get("AGUID")); in testImapIdBasic()
264 map = tokenizeImapId(id); in testImapIdBasic()
265 assertEquals("packageName", map.get("name")); in testImapIdBasic()
266 assertEquals("android", map.get("os")); in testImapIdBasic()
267 assertEquals("version; id", map.get("os-version")); in testImapIdBasic()
[all …]
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java109 Map<String, String> map = BOOKMARKS_PROJECTION_MAP;
110 map.put(PartnerBookmarksContract.Bookmarks.ID, in map.put()
112 map.put(PartnerBookmarksContract.Bookmarks.TITLE, in map.put()
114 map.put(PartnerBookmarksContract.Bookmarks.URL, in map.put()
116 map.put(PartnerBookmarksContract.Bookmarks.TYPE, in map.put()
118 map.put(PartnerBookmarksContract.Bookmarks.PARENT, in map.put()
120 map.put(PartnerBookmarksContract.Bookmarks.FAVICON, in map.put()
122 map.put(PartnerBookmarksContract.Bookmarks.TOUCHICON, in map.put()
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
DStringResourceMap.java57 final HashMap<String,StringResource> map = new HashMap<String,StringResource>(); in StringResourceMap() local
59 map.put(res.mName, res); in StringResourceMap()
61 mResourcesMap = map; in StringResourceMap()
/packages/apps/Settings/src/com/android/settings/quicklaunch/
DBookmarkPicker.java225 Map<String, Object> map = new TreeMap<String, Object>(); in fillAdapterList() local
226 map.put(KEY_TITLE, getResolveInfoTitle(info)); in fillAdapterList()
227 map.put(KEY_RESOLVE_INFO, info); in fillAdapterList()
228 list.add(map); in fillAdapterList()

12