Home
last modified time | relevance | path

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

12

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/manifest/
DManifestInfoTest.java55 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); in testGetActivityThemes1() local
56 assertEquals(map.toString(), 0, map.size()); in testGetActivityThemes1()
69 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); in testGetActivityThemes2() local
70 assertEquals(map.toString(), 0, map.size()); in testGetActivityThemes2()
83 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); in testGetActivityThemes3() local
84 assertEquals(map.toString(), 0, map.size()); in testGetActivityThemes3()
115 Map<String, ActivityAttributes> map = info.getActivityAttributesMap(); in testGetActivityThemes4() local
116 assertEquals(map.toString(), 2, map.size()); in testGetActivityThemes4()
117 assertNull(map.get("com.android.unittest.prefs.PrefsActivity").getTheme()); in testGetActivityThemes4()
119 map.get("com.android.unittest.app.IntroActivity").getTheme()); in testGetActivityThemes4()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/
DMockNamedNodeMap.java43 HashMap<String, Node> map = mNodeMap.get(namespace); in addAttribute() local
44 if (map == null) { in addAttribute()
45 map = new HashMap<String, Node>(); in addAttribute()
46 mNodeMap.put(namespace, map); in addAttribute()
50 map.put(localName, node); in addAttribute()
65 HashMap<String, Node> map = mNodeMap.get(""); // no namespace in getNamedItem() local
66 if (map != null) { in getNamedItem()
67 return map.get(name); in getNamedItem()
79 HashMap<String, Node> map = mNodeMap.get(namespaceURI); in getNamedItemNS() local
80 if (map != null) { in getNamedItemNS()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/export/
DExportFieldsPart.java73 HashMap<String, Control> map = getNameToField(); in ExportFieldsPart() local
74 map.put("package", packageField); //$NON-NLS-1$ in ExportFieldsPart()
75 map.put("projects", projectsField); //$NON-NLS-1$ in ExportFieldsPart()
76 map.put("versionCode", versionCodeField); //$NON-NLS-1$ in ExportFieldsPart()
77 map.put("_key.store", keyStoreField); //$NON-NLS-1$ in ExportFieldsPart()
78 map.put("_key.alias", keyAliasField); //$NON-NLS-1$ in ExportFieldsPart()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/sdk/
DAndroidJarLoaderTest.java57 HashMap<String, Class<?>> map = getPrivateClassCache(); in testPreLoadClasses() local
58 assertEquals(0, map.size()); in testPreLoadClasses()
70 HashMap<String, Class<?>> map = getPrivateClassCache(); in testPreLoadClasses_classNotFound() local
71 assertEquals(0, map.size()); in testPreLoadClasses_classNotFound()
80 HashMap<String, Class<?>> map = getPrivateClassCache(); in testFindClass_classFound() local
81 assertTrue(map.containsKey("jar.example.Class1")); //$NON-NLS-1$ in testFindClass_classFound()
82 assertTrue(map.containsKey("jar.example.Class2")); //$NON-NLS-1$ in testFindClass_classFound()
83 assertEquals(2, map.size()); in testFindClass_classFound()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/
DWidgetClassLoader.java234 Map<String, ClassDescriptor> map) { in processClass() argument
253 if (map != null) { in processClass()
254 map.put(fqcn, clazz); in processClass()
258 ClassDescriptor superClass = processClass(classes, index+1, map); in processClass()
315 HashMap<String, ArrayList<IClassDescriptor>> map = in findClassesDerivingFrom() local
320 map.put(SdkConstants.CLASS_VIEW, list); in findClassesDerivingFrom()
324 map.put(SdkConstants.CLASS_VIEWGROUP, list); in findClassesDerivingFrom()
328 map.put(SdkConstants.CLASS_VIEWGROUP_LAYOUTPARAMS, list); in findClassesDerivingFrom()
330 return map; in findClassesDerivingFrom()
DAndroidTargetParser.java233 Map<String, DeclareStyleableInfo> map = attrsXmlParser.getDeclareStyleableList(); in run() local
234 drawableDescriptors.updateDescriptors(map); in run()
242 animatorDescriptors.updateDescriptors(map); in run()
250 animDescriptors.updateDescriptors(map); in run()
258 colorDescriptors.updateDescriptors(map); in run()
525 Map<String, DeclareStyleableInfo> map = attrsXmlParser.getDeclareStyleableList(); in collectMenuDefinitions() local
530 if (map.containsKey(key)) { in collectMenuDefinitions()
531 map2.put(key, map.get(key)); in collectMenuDefinitions()
552 Map<String, DeclareStyleableInfo> map = attrsXmlParser.getDeclareStyleableList(); in collectSearchableDefinitions() local
556 if (map.containsKey(key)) { in collectSearchableDefinitions()
[all …]
DLayoutParamsParser.java366 private List<ViewClassInfo> getInstantiables(SortedMap<String, ExtViewClassInfo> map) { in getInstantiables() argument
367 Collection<ExtViewClassInfo> values = map.values(); in getInstantiables()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/
DContextPullParser.java102 Map<String, String> map = null; in getViewCookie() local
111 if (map == null) { in getViewCookie()
112 map = Maps.newHashMapWithExpectedSize(4); in getViewCookie()
114 map.put(attribute, getAttributeValue(i)); in getViewCookie()
118 return map; in getViewCookie()
DExplodedRenderingHelper.java355 Map<String, Node> map = new HashMap<String, Node>(); in computeIdNodeMap() local
359 map.put(cleanUpIdReference(viewId), node); in computeIdNodeMap()
362 return map; in computeIdNodeMap()
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ddms/
DDebugPortProvider.java132 public void setPortList(Map<String, Map<String,Integer>> map) { in setPortList() argument
135 mMap.putAll(map); in setPortList()
141 Set<String> deviceKeys = map.keySet(); in setPortList()
143 Map<String, Integer> deviceMap = map.get(deviceKey); in setPortList()
DStaticPortConfigDialog.java350 Map<String, Map<String, Integer>> map = provider.getPortList(); in updateFromStore() local
353 Set<String> deviceKeys = map.keySet(); in updateFromStore()
356 Map<String, Integer> deviceMap = map.get(deviceKey); in updateFromStore()
375 HashMap<String, Map<String, Integer>> map = new HashMap<String, Map<String, Integer>>(); in updateStore() local
383 Map<String, Integer> deviceMap = map.get(deviceName); in updateStore()
386 map.put(deviceName, deviceMap); in updateStore()
394 provider.setPortList(map); in updateStore()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/
DCustomViewDescriptorService.java162 HashMap<String, ViewElementDescriptor> map = mCustomDescriptorMap.get(project); in getDescriptor() local
164 if (map != null) { in getDescriptor()
165 ViewElementDescriptor descriptor = map.get(fqcn); in getDescriptor()
220 map = mCustomDescriptorMap.get(project); in getDescriptor()
221 if (map == null) { in getDescriptor()
222 map = new HashMap<String, ViewElementDescriptor>(); in getDescriptor()
223 mCustomDescriptorMap.put(project, map); in getDescriptor()
226 map.put(fqcn, descriptor); in getDescriptor()
479 HashMap<String, ViewElementDescriptor> map = mCustomDescriptorMap.get(project); in createViewDescriptor() local
481 if (map == null) { in createViewDescriptor()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DNodeProxy.java344 Map<String, String> map = null; in setAttribute() local
349 map = mPendingAttributes.get(uri); in setAttribute()
351 if (map == null) { in setAttribute()
352 map = new HashMap<String, String>(); in setAttribute()
353 mPendingAttributes.put(uri, map); in setAttribute()
355 map.put(name, value); in setAttribute()
369 Map<String, String> map = mPendingAttributes.get(uri == null ? "" : uri); //$NON-NLS-1$ in getStringAttr() local
370 if (map != null) { in getStringAttr()
371 String value = map.get(attrName); in getStringAttr()
/sdk/eclipse/plugins/com.android.ide.eclipse.ndk/src/com/android/ide/eclipse/ndk/internal/templates/
DTemplatedInputStream.java34 public TemplatedInputStream(InputStream in, Map<String, String> map) { in TemplatedInputStream() argument
36 this.mMap = map; in TemplatedInputStream()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DConstraintType.java147 Map<String, ConstraintType> map = new HashMap<String, ConstraintType>(types.length); in fromAttribute() local
149 map.put(type.name, type); in fromAttribute()
151 sNameToType = map; in fromAttribute()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/
DAttributeInfoTest.java315 Map<String, AttributeInfo> map, Set<String> seen) throws IOException { in checkDir() argument
321 checkXmlFile(file, map, seen); in checkDir()
323 checkDir(file, isResourceDir || file.getName().equals("res"), map, seen); in checkDir()
329 private void checkXmlFile(File file, Map<String, AttributeInfo> map, in checkXmlFile() argument
336 checkElement(file, doc.getDocumentElement(), map, seen); in checkXmlFile()
341 private void checkElement(File file, Element element, Map<String, AttributeInfo> map, in checkElement() argument
351 AttributeInfo info = map.get(name); in checkElement()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DProjectResources.java218 Map<String, Integer> map = mResourceValueMap.get(type); in getResourceId() local
219 if (map != null) { in getResourceId()
220 result = map.get(name); in getResourceId()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DLayoutMetadata.java306 @NonNull Map<String, String> map) { in getNodeBinding() argument
307 String header = map.get(KEY_LV_HEADER); in getNodeBinding()
308 String footer = map.get(KEY_LV_FOOTER); in getNodeBinding()
309 String layout = map.get(KEY_LV_ITEM); in getNodeBinding()
DIncludeFinder.java247 public static String encodeMap(Map<String, List<String>> map) { in encodeMap() argument
250 if (map != null) { in encodeMap()
253 List<String> keys = new ArrayList<String>(map.keySet()); in encodeMap()
256 List<String> values = map.get(key); in encodeMap()
291 HashMap<String, List<String>> map = new HashMap<String, List<String>>(); in decodeMap() local
346 map.put(key, values); in decodeMap()
351 return map; in decodeMap()
DGCWrapper.java504 Map<DrawingStyle, Color> map) { in getStyleColor() argument
505 Color color = map.get(style); in getStyleColor()
508 map.put(style, color); in getStyleColor()
DRenderService.java640 Map<INode, Rect> map = new HashMap<INode, Rect>(children.size()); in measureChildren() local
645 map.put(node, new Rect(info.getLeft(), info.getTop(), in measureChildren()
651 return map; in measureChildren()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/
DAttrsXmlParser.java610 Map<String, Integer> map = mEnumFlagValues.get(attrName); in parseEnumFlagValues() local
611 if (map == null) { in parseEnumFlagValues()
612 map = new HashMap<String, Integer>(); in parseEnumFlagValues()
613 mEnumFlagValues.put(attrName, map); in parseEnumFlagValues()
615 map.put(name, Integer.valueOf(i)); in parseEnumFlagValues()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/
DDescriptorsUtils.java853 Set<String> map = (Set<String>)params[3];
854 if (map == null) {
855 params[3] = map = new HashSet<String>();
885 } while (map.contains(generated.toLowerCase(Locale.US)));
896 if (map.add(id.toLowerCase(Locale.US))
897 && map.contains(generated.toLowerCase(Locale.US))) {
902 } while (map.contains(generated.toLowerCase(Locale.US)));
/sdk/attribute_stats/src/
DAnalyzer.java391 private static String processUageMap(String view, Map<String, Usage> map) { in processUageMap() argument
392 if (map == null) { in processUageMap()
401 List<Usage> values = new ArrayList<Usage>(map.values()); in processUageMap()
558 Map<String, Usage> map = entry.getValue(); in listAdvanced() local
559 for (Usage usage : map.values()) { in listAdvanced()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/
DUiElementPullParserTest.java244 private void check(UiElementPullParser parser, int i, HashMap<String, String> map) { in check() argument
248 String referenceValue = map.get(name); in check()

12