Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/CoreTests/android/core/
DTreeMapPerformanceTest.java56 TreeMap map = new TreeMap(); in testTreeMapPut() local
58 map.put(i, i); in testTreeMapPut()
59 map.put(i, i); in testTreeMapPut()
60 map.put(i, i); in testTreeMapPut()
61 map.put(i, i); in testTreeMapPut()
62 map.put(i, i); in testTreeMapPut()
63 map.put(i, i); in testTreeMapPut()
64 map.put(i, i); in testTreeMapPut()
65 map.put(i, i); in testTreeMapPut()
66 map.put(i, i); in testTreeMapPut()
[all …]
DHashMapTest.java34 private void addItems(HashMap map) { in addItems() argument
35 map.put("one", ONE); in addItems()
36 map.put("two", TWO); in addItems()
37 map.put("three", THREE); in addItems()
38 map.put("four", FOUR); in addItems()
40 assertEquals(4, map.size()); in addItems()
42 assertEquals(ONE, map.get("one")); in addItems()
43 assertEquals(TWO, map.get("two")); in addItems()
44 assertEquals(THREE, map.get("three")); in addItems()
45 assertEquals(FOUR, map.get("four")); in addItems()
[all …]
DHashMapPerfTest.java70 HashMap<String, StringThing> map = new HashMap<String, StringThing>(); in testHashMapPerformance() local
73 map.put(s.getId(), s); in testHashMapPerformance()
78 map.get(s.getId()); in testHashMapPerformance()
80 map.get(keyCopies[j]); in testHashMapPerformance()
DMiscRegressionTest.java226 LinkedHashMap map = new LinkedHashMap<String, String>(10, 0.75f, true); in testLinkedHashMap() local
228 map.put("key1", "value1"); in testLinkedHashMap()
229 map.put("key2", "value2"); in testLinkedHashMap()
230 map.put("key3", "value3"); in testLinkedHashMap()
232 Iterator iterator = map.keySet().iterator(); in testLinkedHashMap()
234 map.get(id); in testLinkedHashMap()
247 LinkedHashMap mapClone = (LinkedHashMap) map.clone(); in testLinkedHashMap()
249 iterator = map.keySet().iterator(); in testLinkedHashMap()
/frameworks/base/test-runner/src/android/test/
DTestRecorder.java91 ContentValues map = new ContentValues(2); in started() local
92 map.put("name", className); in started()
93 map.put("started", System.currentTimeMillis()); in started()
96 int rowsAffected = getDatabase().update("tests", map, "name = '" + className + "'", null); in started()
99 getDatabase().insert("tests", null, map); in started()
104 ContentValues map = new ContentValues(1); in finished() local
105 map.put("finished", System.currentTimeMillis()); in finished()
107 getDatabase().update("tests", map, "name = '" + className + "'", null); in finished()
111 ContentValues map = new ContentValues(); in performance() local
112 map.put("time", itemTimeNS); in performance()
[all …]
DSimpleCache.java23 private Map<K, V> map = new HashMap<K, V>(); field in SimpleCache
28 if (map.containsKey(key)) { in get()
29 return map.get(key); in get()
32 map.put(key, value); in get()
DMoreAsserts.java386 public static void assertEmpty(String message, Map<?,?> map) { in assertEmpty() argument
387 if (!map.isEmpty()) { in assertEmpty()
388 failNotEmpty(message, map.toString()); in assertEmpty()
396 public static void assertEmpty(Map<?,?> map) { in assertEmpty() argument
397 assertEmpty(null, map); in assertEmpty()
420 public static void assertNotEmpty(String message, Map<?,?> map) { in assertNotEmpty() argument
421 if (map.isEmpty()) { in assertNotEmpty()
430 public static void assertNotEmpty(Map<?,?> map) { in assertNotEmpty() argument
431 assertNotEmpty(null, map); in assertNotEmpty()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DCallbackProxy.java93 HashMap map = (HashMap) msg.obj; in handleMessage() local
94 mEventSender.keyDown((String) map.get("character"), in handleMessage()
95 (String[]) map.get("withModifiers")); in handleMessage()
291 HashMap map = new HashMap(); in keyDown() local
292 map.put("character", character); in keyDown()
293 map.put("withModifiers", withModifiers); in keyDown()
294 obtainMessage(EVENT_KEY_DOWN_1, map).sendToTarget(); in keyDown()
330 Bundle map = new Bundle(); in updateTouchPoint() local
331 map.putInt("x", x); in updateTouchPoint()
332 map.putInt("y", y); in updateTouchPoint()
[all …]
DFileList.java55 Map map = (Map) getListView().getItemAtPosition(getListView().getSelectedItemPosition()); in onKeyDown() local
56 String path = (String)map.get("path"); in onKeyDown()
122 Map map = (Map) l.getItemAtPosition(position); in onListItemClick() local
123 final String path = (String)map.get("path"); in onListItemClick()
/frameworks/base/core/java/android/provider/
DBrowser.java275 ContentValues map = new ContentValues(); in updateVisitedHistory() local
277 map.put(BookmarkColumns.VISITS, c in updateVisitedHistory()
280 map.put(BookmarkColumns.USER_ENTERED, 1); in updateVisitedHistory()
282 map.put(BookmarkColumns.DATE, now); in updateVisitedHistory()
285 cr.update(BOOKMARKS_URI, map, "_id = ?", projection); in updateVisitedHistory()
288 ContentValues map = new ContentValues(); in updateVisitedHistory() local
298 map.put(BookmarkColumns.URL, url); in updateVisitedHistory()
299 map.put(BookmarkColumns.VISITS, visits); in updateVisitedHistory()
300 map.put(BookmarkColumns.DATE, now); in updateVisitedHistory()
301 map.put(BookmarkColumns.BOOKMARK, 0); in updateVisitedHistory()
[all …]
/frameworks/base/services/java/com/android/server/
DAttributeCache.java100 HashMap<int[], Entry> map = null; in get() local
103 map = pkg.mMap.get(resId); in get()
104 if (map != null) { in get()
105 ent = map.get(styleable); in get()
124 if (map == null) { in get()
125 map = new HashMap<int[], Entry>(); in get()
126 pkg.mMap.put(resId, map); in get()
132 map.put(styleable, ent); in get()
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java54 ContentValues map = new ContentValues(); in testProvider() local
55 map.put("address", "+15045551337"); in testProvider()
56 map.put("read", 0); in testProvider()
61 map.put("body", "Test " + i + " !"); in testProvider()
62 map.put("date", dates[i]); in testProvider()
63 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); in testProvider()
/frameworks/base/core/tests/coretests/src/android/os/
DFileObserverTest.java47 Map<String, Object> map = Maps.newHashMap(); in onEvent() local
49 map.put("event", event); in onEvent()
50 map.put("path", path); in onEvent()
52 events.add(map); in onEvent()
113 Map map = it.next(); in waitForEvent() local
114 ….i("FileObserverTest", "event: " + getEventString((Integer)map.get("event")) + " path: " + map.get… in waitForEvent()
/frameworks/base/tools/localize/
Dlocalize.h27 int read_settings(const string& filename, map<string,Settings>* result, const string& rootDir);
30 int validate_config(const string& settingsFile, const map<string,Settings>& settings,
32 int validate_configs(const string& settingsFile, const map<string,Settings>& settings,
35 const map<string,Settings>& settings, const string& rootDir);
37 const map<string,Settings>& settings, const string& rootDir);
/frameworks/base/opengl/tools/glgen/src/
DParameterChecker.java22 HashMap<String,String[]> map = new HashMap<String,String[]>(); field in ParameterChecker
28 map.put(tokens[0], tokens); in ParameterChecker()
33 String[] checks = map.get(functionName); in getChecks()
39 checks = map.get(functionName); in getChecks()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java475 Map<String, Integer> map = sRFullMap.get(type); in getResourceId() local
476 if (map != null) { in getResourceId()
477 return map.get(name); in getResourceId()
510 Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey); in getCachedBitmap() local
511 if (map != null) { in getCachedBitmap()
512 SoftReference<Bitmap> ref = map.get(value); in getCachedBitmap()
535 Map<String, SoftReference<Bitmap>> map = sProjectBitmapCache.get(projectKey); in setCachedBitmap() local
537 if (map == null) { in setCachedBitmap()
538 map = new HashMap<String, SoftReference<Bitmap>>(); in setCachedBitmap()
539 sProjectBitmapCache.put(projectKey, map); in setCachedBitmap()
[all …]
/frameworks/base/core/java/android/webkit/
DCallbackProxy.java344 HashMap<String, Object> map = in handleMessage() local
347 (SslErrorHandler) map.get("handler"), in handleMessage()
348 (SslError) map.get("error")); in handleMessage()
441 HashMap<String, Object> map = in handleMessage() local
444 (String) map.get("databaseIdentifier"); in handleMessage()
445 String url = (String) map.get("url"); in handleMessage()
447 ((Long) map.get("currentQuota")).longValue(); in handleMessage()
449 ((Long) map.get("totalUsedQuota")).longValue(); in handleMessage()
451 ((Long) map.get("estimatedSize")).longValue(); in handleMessage()
453 (WebStorage.QuotaUpdater) map.get("quotaUpdater"); in handleMessage()
[all …]
DWebIconDatabase.java149 HashMap map = (HashMap) msg.obj; in bulkRequestIcons() local
150 IconListener listener = (IconListener) map.get("listener"); in bulkRequestIcons()
151 ContentResolver cr = (ContentResolver) map.get("contentResolver"); in bulkRequestIcons()
152 String where = (String) map.get("where"); in bulkRequestIcons()
256 HashMap<String, Object> map = new HashMap<String, Object>(); in bulkRequestIconForPageUrl() local
257 map.put("contentResolver", cr); in bulkRequestIconForPageUrl()
258 map.put("where", where); in bulkRequestIconForPageUrl()
259 map.put("listener", listener); in bulkRequestIconForPageUrl()
261 Message.obtain(null, EventHandler.BULK_REQUEST_ICON, map); in bulkRequestIconForPageUrl()
DHTML5VideoViewProxy.java252 Map<String, Object> map = new HashMap<String, Object>(); in onPrepared() local
253 map.put("dur", new Integer(mp.getDuration())); in onPrepared()
254 map.put("width", new Integer(mp.getVideoWidth())); in onPrepared()
255 map.put("height", new Integer(mp.getVideoHeight())); in onPrepared()
256 msg.obj = map; in onPrepared()
489 Map<String, Object> map = (Map<String, Object>) msg.obj; in createWebCoreHandler()
490 Integer duration = (Integer) map.get("dur"); in createWebCoreHandler()
491 Integer width = (Integer) map.get("width"); in createWebCoreHandler()
492 Integer height = (Integer) map.get("height"); in createWebCoreHandler()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DResultReceiver.java38 Bundle map = getResultExtras(false); in onReceive() local
39 map.remove("remove"); in onReceive()
40 map.putString("bar", "them"); in onReceive()
/frameworks/base/core/java/android/app/
DLoadedApk.java543 HashMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> map = null; in getReceiverDispatcher() local
545 map = mReceivers.get(context); in getReceiverDispatcher()
546 if (map != null) { in getReceiverDispatcher()
547 rd = map.get(r); in getReceiverDispatcher()
554 if (map == null) { in getReceiverDispatcher()
555 map = new HashMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher>(); in getReceiverDispatcher()
556 mReceivers.put(context, map); in getReceiverDispatcher()
558 map.put(r, rd); in getReceiverDispatcher()
570 HashMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> map = mReceivers.get(context); in forgetReceiverDispatcher() local
572 if (map != null) { in forgetReceiverDispatcher()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmSMSDispatcher.java327 HashMap<String, Object> map = new HashMap<String, Object>(); in sendMultipartTextWithPermit() local
328 map.put("smsc", pdus.encodedScAddress); in sendMultipartTextWithPermit()
329 map.put("pdu", pdus.encodedMessage); in sendMultipartTextWithPermit()
331 SmsTracker tracker = SmsTrackerFactory(map, sentIntent, deliveryIntent); in sendMultipartTextWithPermit()
338 HashMap map = tracker.mData; in sendSms() local
340 byte smsc[] = (byte[]) map.get("smsc"); in sendSms()
341 byte pdu[] = (byte[]) map.get("pdu"); in sendSms()
359 HashMap map = tracker.mData; in sendMultipartSms() local
361 String destinationAddress = (String) map.get("destination"); in sendMultipartSms()
362 String scAddress = (String) map.get("scaddress"); in sendMultipartSms()
[all …]
/frameworks/base/core/java/android/text/
DHtml.java825 HashMap<String,Integer> map = new HashMap<String,Integer>(); in buildColorMap() local
826 map.put("aqua", 0x00FFFF); in buildColorMap()
827 map.put("black", 0x000000); in buildColorMap()
828 map.put("blue", 0x0000FF); in buildColorMap()
829 map.put("fuchsia", 0xFF00FF); in buildColorMap()
830 map.put("green", 0x008000); in buildColorMap()
831 map.put("grey", 0x808080); in buildColorMap()
832 map.put("lime", 0x00FF00); in buildColorMap()
833 map.put("maroon", 0x800000); in buildColorMap()
834 map.put("navy", 0x000080); in buildColorMap()
[all …]
/frameworks/base/core/java/com/google/android/mms/pdu/
DPduParser.java686 HashMap<Integer, Object> map = in parseHeaders() local
689 parseContentType(pduDataStream, map); in parseHeaders()
703 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders()
706 mTypeParam= (byte[]) map.get(PduPart.P_TYPE); in parseHeaders()
749 HashMap<Integer, Object> map = new HashMap<Integer, Object>(); in parseParts() local
750 byte[] contentType = parseContentType(pduDataStream, map); in parseParts()
758 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts()
764 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts()
1233 HashMap<Integer, Object> map, Integer length) { in parseContentTypeParams() argument
1288 map.put(PduPart.P_TYPE, type); in parseContentTypeParams()
[all …]
/frameworks/base/docs/html/resources/tutorials/views/
Dhello-mapview.jd6 <p>Using the Google Maps library, you can create your own map-viewing Activity. In this
7 tutorial, you'll create a simple map application in two parts. In Part 1, you'll create an app that
8 shows a map the user can pan and zoom. In Part 2, you'll add overlay items that mark
46 <li>You also need access to the Internet in order to retrieve map tiles,
52 <li>While you're in the manifest, give the map some more space by getting rid of the title bar
75 user-interaction with the map. If this is "false" then touching the map does nothing.</p>
79 Maps service. This is required in order to receive the map data, even while you are
96 library, which provides important map capabilities.</p>
120 display map tiles and allow the user to pan around the map. But there's no ability to zoom.
136 <p>So, now you have a map, but in many cases you'll also want to create your own map
[all …]

1234