Home
last modified time | relevance | path

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

1234

/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java245 HashMap<String, String> map;
248 map = ACCOUNTS_PROJECTION_MAP;
249 map.put(Accounts.ACCOUNT_TYPE, Accounts.ACCOUNT_TYPE); in map.put()
250 map.put(Accounts.ACCOUNT_NAME, Accounts.ACCOUNT_NAME); in map.put()
251 map.put(Accounts.ROOT_ID, Accounts.ROOT_ID); in map.put()
254 map = BOOKMARKS_PROJECTION_MAP;
255 map.put(Bookmarks._ID, qualifyColumn(TABLE_BOOKMARKS, Bookmarks._ID)); in map.put()
256 map.put(Bookmarks.TITLE, Bookmarks.TITLE); in map.put()
257 map.put(Bookmarks.URL, Bookmarks.URL); in map.put()
258 map.put(Bookmarks.FAVICON, Bookmarks.FAVICON); in map.put()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAccount.java926 final Map<String, Object> map = new HashMap<String, Object>(); in getValueMap() local
928 map.put(AccountColumns._ID, 0); in getValueMap()
929 map.put(AccountColumns.NAME, displayName); in getValueMap()
930 map.put(AccountColumns.SENDER_NAME, senderName); in getValueMap()
931 map.put(AccountColumns.TYPE, type); in getValueMap()
932 map.put(AccountColumns.ACCOUNT_MANAGER_NAME, accountManagerName); in getValueMap()
933 map.put(AccountColumns.ACCOUNT_ID, accountId); in getValueMap()
934 map.put(AccountColumns.PROVIDER_VERSION, providerVersion); in getValueMap()
935 map.put(AccountColumns.URI, uri); in getValueMap()
936 map.put(AccountColumns.CAPABILITIES, capabilities); in getValueMap()
[all …]
DSettings.java289 public Map<String, Object> getValueMap(Map<String, Object> map) { in getValueMap() argument
290 if (map == null) { in getValueMap()
291 map = new HashMap<String, Object>(); in getValueMap()
294 map.put(SettingsColumns.SIGNATURE, signature); in getValueMap()
295 map.put(SettingsColumns.AUTO_ADVANCE, getAutoAdvanceSetting()); in getValueMap()
296 map.put(SettingsColumns.SNAP_HEADERS, snapHeaders); in getValueMap()
297 map.put(SettingsColumns.REPLY_BEHAVIOR, replyBehavior); in getValueMap()
298 map.put(SettingsColumns.CONV_LIST_ICON, convListIcon); in getValueMap()
299 map.put(SettingsColumns.CONFIRM_DELETE, confirmDelete ? 1 : 0); in getValueMap()
300 map.put(SettingsColumns.CONFIRM_ARCHIVE, confirmArchive ? 1 : 0); in getValueMap()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java429 ContentValues map = new ContentValues(); in getRow() local
435 map.put(Telephony.Carriers.NUMERIC,numeric); in getRow()
436 map.put(Telephony.Carriers.MCC, mcc); in getRow()
437 map.put(Telephony.Carriers.MNC, mnc); in getRow()
438 map.put(Telephony.Carriers.NAME, parser.getAttributeValue(null, "carrier")); in getRow()
439 map.put(Telephony.Carriers.APN, parser.getAttributeValue(null, "apn")); in getRow()
440 map.put(Telephony.Carriers.USER, parser.getAttributeValue(null, "user")); in getRow()
441 map.put(Telephony.Carriers.SERVER, parser.getAttributeValue(null, "server")); in getRow()
442 map.put(Telephony.Carriers.PASSWORD, parser.getAttributeValue(null, "password")); in getRow()
447 map.put(Telephony.Carriers.PROXY, proxy); in getRow()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DImapStoreUnitTests.java253 HashMap<String, String> map = tokenizeImapId(id); in testImapIdBasic() local
254 assertEquals(mTestContext.getPackageName(), map.get("name")); in testImapIdBasic()
255 assertEquals("android", map.get("os")); in testImapIdBasic()
256 assertNotNull(map.get("os-version")); in testImapIdBasic()
257 assertNotNull(map.get("vendor")); in testImapIdBasic()
258 assertNotNull(map.get("AGUID")); in testImapIdBasic()
266 map = tokenizeImapId(id); in testImapIdBasic()
267 assertEquals("packageName", map.get("name")); in testImapIdBasic()
268 assertEquals("android", map.get("os")); in testImapIdBasic()
269 assertEquals("version; id", map.get("os-version")); in testImapIdBasic()
[all …]
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java232 Map<String, byte[]> map = getPkeyMap(); in installOthers() local
233 byte[] privatekey = map.get(key); in installOthers()
236 map.remove(key); in installOthers()
237 savePkeyMap(map); in installOthers()
263 Map<String, byte[]> map = getPkeyMap(); in saveKeyPair() local
264 map.put(key, privatekey); in saveKeyPair()
265 savePkeyMap(map); in saveKeyPair()
266 Log.d(TAG, "save privatekey: " + key + " --> #keys:" + map.size()); in saveKeyPair()
269 private void savePkeyMap(Map<String, byte[]> map) { in savePkeyMap() argument
270 if (map.isEmpty()) { in savePkeyMap()
[all …]
/packages/apps/Email/tests/src/com/android/email/provider/
DContentCacheTests.java65 ContentCache.CounterMap<String> map = new ContentCache.CounterMap<String>(4); in testCounterMap() local
67 map.add("1"); in testCounterMap()
68 assertTrue(map.contains("1")); in testCounterMap()
69 map.add("2"); in testCounterMap()
70 map.add("2"); in testCounterMap()
72 map.subtract("2"); in testCounterMap()
73 assertTrue(map.contains("2")); in testCounterMap()
74 map.subtract("2"); in testCounterMap()
77 map.subtract("2"); in testCounterMap()
82 map.subtract("3"); in testCounterMap()
[all …]
/packages/apps/Settings/src/com/android/settings/
DZonePicker.java134 final HashMap<?,?> map = (HashMap<?,?>)adapter.getItem(i); in getTimeZoneIndex() local
135 final String id = (String)map.get(KEY_ID); in getTimeZoneIndex()
287 final HashMap<String, Object> map = new HashMap<String, Object>(); in addTimeZone() local
288 map.put(KEY_ID, olsonId); in addTimeZone()
289 map.put(KEY_DISPLAYNAME, displayName); in addTimeZone()
290 map.put(KEY_GMT, DateTimeSettings.getTimeZoneText(tz, false)); in addTimeZone()
291 map.put(KEY_OFFSET, tz.getOffset(mNow.getTime())); in addTimeZone()
293 mZones.add(map); in addTimeZone()
301 final Map<?, ?> map = (Map<?, ?>)listView.getItemAtPosition(position); in onListItemClick()
302 final String tzId = (String) map.get(KEY_ID); in onListItemClick()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java1572 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation()
1636 CellAndSpan cs = config.map.get(views.get(i)); in computeEdge()
1675 CellAndSpan cs = config.map.get(v); in isViewTouchingEdge()
1714 CellAndSpan c = config.map.get(v); in shift()
1743 CellAndSpan c = config.map.get(v); in getBoundingRect()
1801 CellAndSpan l = config.map.get(left); in compare()
1802 CellAndSpan r = config.map.get(right); in compare()
1855 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1883 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1911 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java1446 CellAndSpan c = currentState.map.get(v); in addViewToTempLocation()
1510 CellAndSpan cs = config.map.get(views.get(i)); in computeEdge()
1549 CellAndSpan cs = config.map.get(v); in isViewTouchingEdge()
1588 CellAndSpan c = config.map.get(v); in shift()
1617 CellAndSpan c = config.map.get(v); in getBoundingRect()
1675 CellAndSpan l = config.map.get(left); in compare()
1676 CellAndSpan r = config.map.get(right); in compare()
1729 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1757 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
1785 CellAndSpan c = currentState.map.get(v); in pushViewsToTempLocation()
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsFragment.java440 final Map<String, Object> map = new HashMap<>(); in loadInBackground() local
449 return map; in loadInBackground()
452 map.put(RESULT_KEY_ACCOUNT, account); in loadInBackground()
460 return map; in loadInBackground()
472 map.put(RESULT_KEY_UIACCOUNT_CURSOR, uiAccountCursor); in loadInBackground()
475 return map; in loadInBackground()
479 return map; in loadInBackground()
485 map.put(RESULT_KEY_UIACCOUNT, uiAccount); in loadInBackground()
496 return map; in loadInBackground()
504 map.put(RESULT_KEY_INBOX, inbox); in loadInBackground()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DSendersFormattingTests.java272 final Map<String, Object> map = new HashMap<>(2); in createAccount() local
273 map.put(UIProvider.AccountColumns.NAME, "Fred Flintstone"); in createAccount()
274 map.put(UIProvider.AccountColumns.ACCOUNT_MANAGER_NAME, "fflintstone@example.com"); in createAccount()
275 map.put(UIProvider.AccountColumns.TYPE, "IMAP"); in createAccount()
276 map.put(UIProvider.AccountColumns.PROVIDER_VERSION, 1); in createAccount()
277 map.put(UIProvider.AccountColumns.CAPABILITIES, 0); in createAccount()
279 final JSONObject json = new JSONObject(map); in createAccount()
/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/apps/Camera/src/com/android/camera/ui/
DEffectSettingPopup.java92 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local
93 map.put("value", value); in initialize()
94 map.put("text", entries[i].toString()); in initialize()
95 if (iconIds != null) map.put("image", iconIds[i]); in initialize()
97 mSillyFacesItem.add(map); in initialize()
99 mBackgroundItem.add(map); in initialize()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
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()
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()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java60 public SmartDialNameMatcher(String query, SmartDialMap map) { in SmartDialNameMatcher() argument
62 mMap = map; in SmartDialNameMatcher()
94 public static String normalizeNumber(String number, SmartDialMap map) { in normalizeNumber() argument
95 return normalizeNumber(number, 0, map); in normalizeNumber()
105 public static String normalizeNumber(String number, int offset, SmartDialMap map) { in normalizeNumber() argument
109 if (map.isValidDialpadNumericChar(ch)) { in normalizeNumber()
/packages/inputmethods/LatinIME/native/jni/tests/suggest/policyimpl/dictionary/utils/
Dtrie_map_test.cpp92 std::map<int, uint64_t> firstLevelEntries; in TEST()
94 std::map<int, std::map<int, uint64_t>> twoLevelMap; in TEST()
95 std::map<int, std::map<int, std::map<int, uint64_t>>> threeLevelMap; in TEST()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DTagClustering.java41 final TreeMap<String, ArrayList<Path>> map = in run() local
57 ArrayList<Path> list = map.get(key); in run()
60 map.put(key, list); in run()
67 int m = map.size(); in run()
71 for (Map.Entry<String, ArrayList<Path>> entry : map.entrySet()) { in run()
DFaceClustering.java92 final TreeMap<Face, FaceCluster> map = in run() local
106 FaceCluster cluster = map.get(face); in run()
109 map.put(face, cluster); in run()
116 int m = map.size(); in run()
117 mClusters = map.values().toArray(new FaceCluster[m + ((untagged.size() > 0) ? 1 : 0)]); in run()
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/
DBluetoothMapbMessageTest.java19 import com.android.bluetooth.map.BluetoothMapAppParams;
20 import com.android.bluetooth.map.BluetoothMapUtils.TYPE;
21 import com.android.bluetooth.map.BluetoothMapSmsPdu;
22 import com.android.bluetooth.map.BluetoothMapbMessage;
23 import com.android.bluetooth.map.BluetoothMapbMessageMms;
24 import com.android.bluetooth.map.BluetoothMapbMessageSms;
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java239 ContentValues map = new ContentValues(); in execute() local
244 map.put(pair.key, Integer.parseInt(value)); in execute()
246 map.put(pair.key, value); in execute()
249 if (map.size() == 1 && map.containsKey(Events.STATUS)) { in execute()
250 updateMatchingEventsStatusOnly(eventName, map); in execute()
252 updateMatchingEvents(eventName, map); in execute()
2837 Map<String, String> map = new HashMap<String, String>(); in testGetProviderProperties() local
2842 map.put(key, value); in testGetProviderProperties()
2845 assertTrue(map.containsKey(CalendarCache.KEY_TIMEZONE_DATABASE_VERSION)); in testGetProviderProperties()
2846 assertTrue(map.containsKey(CalendarCache.KEY_TIMEZONE_TYPE)); in testGetProviderProperties()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailboxUtilities.java231 private static String getHierarchicalName(Context context, long id, HashMap<Long, String> map, in getHierarchicalName() argument
234 if (map.containsKey(id)) { in getHierarchicalName()
235 return map.get(id); in getHierarchicalName()
241 hierarchicalName = getHierarchicalName(context, parentId, map, parent.mDisplayName, in getHierarchicalName()
244 map.put(id, hierarchicalName); in getHierarchicalName()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DCharEscaperBuilder.java65 private final Map<Character, String> map; field in CharEscaperBuilder
74 this.map = new HashMap<Character, String>(); in CharEscaperBuilder()
81 map.put(c, r); in addEscape()
107 for (Map.Entry<Character, String> entry : map.entrySet()) { in toArray()
/packages/apps/UnifiedEmail/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()

1234