Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 512) sorted by relevance

12345678910>>...21

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/layout/
DLinearLayoutRuleTest.java134 assertEquals("Edit ID...", contextMenu.get(0).getTitle()); in testContextMenu()
135 assertTrue(contextMenu.get(1) instanceof RuleAction.Separator); in testContextMenu()
136 assertEquals("Layout Width", contextMenu.get(2).getTitle()); in testContextMenu()
137 assertEquals("Layout Height", contextMenu.get(3).getTitle()); in testContextMenu()
138 assertTrue(contextMenu.get(4) instanceof RuleAction.Separator); in testContextMenu()
139 assertEquals("Other Properties", contextMenu.get(5).getTitle()); in testContextMenu()
141 RuleAction propertiesMenu = contextMenu.get(5); in testContextMenu()
156 assertEquals("Layout Width", contextMenu.get(2).getTitle()); in testContextMenuCustom()
157 RuleAction menuAction = contextMenu.get(2); in testContextMenuCustom()
162 assertEquals("Wrap Content", titles.get(0)); in testContextMenuCustom()
[all …]
/sdk/ddms/libs/ddmuilib/tests/src/com/android/ddmuilib/logcat/
DLogCatMessageParserTest.java76 assertEquals(mParsedMessages.get(0).getLogLevel(), LogLevel.DEBUG); in testLogLevel()
77 assertEquals(mParsedMessages.get(5).getLogLevel(), LogLevel.ASSERT); in testLogLevel()
82 assertEquals(mParsedMessages.get(1).getTag(), "etag"); //$NON-NLS-1$ in testTag()
87 assertEquals(mParsedMessages.get(6).getTime(), "08-11 21:15:35.7524"); //$NON-NLS-1$ in testTime()
92 assertEquals(mParsedMessages.get(2).getMessage(), MESSAGES[5]); in testMessage()
96 assertEquals(mParsedMessages.get(0).getTid(), Integer.toString(0x1ef)); in testTid()
97 assertEquals(mParsedMessages.get(1).getTid(), "234"); in testTid()
/sdk/chimpchat/test/com/android/chimpchat/adb/
DLinearInterpolatorTest.java65 assertEquals(new Point(STEP_POINTS.get(x), 100), points.get(x)); in testLerpRight()
79 assertEquals(new Point(REVERSE_STEP_POINTS.get(x), 100), points.get(x)); in testLerpLeft()
93 assertEquals(new Point(100, REVERSE_STEP_POINTS.get(x)), points.get(x)); in testLerpUp()
107 assertEquals(new Point(100, STEP_POINTS.get(x)), points.get(x)); in testLerpDown()
121 assertEquals(new Point(STEP_POINTS.get(x), STEP_POINTS.get(x)), points.get(x)); in testLerpNW()
135 … assertEquals(new Point(REVERSE_STEP_POINTS.get(x), REVERSE_STEP_POINTS.get(x)), points.get(x)); in testLerpNE()
/sdk/lint/libs/lint_api/src/com/android/tools/lint/client/api/
DJavaVisitor.java157 List<VisitingDetector> list = mNodeTypeDetectors.get(type); in JavaVisitor()
173 List<VisitingDetector> list = mMethodDetectors.get(name); in JavaVisitor()
292 mNodeTypeDetectors.get(AlternateConstructorInvocation.class); in visitAlternateConstructorInvocation()
303 List<VisitingDetector> list = mNodeTypeDetectors.get(Annotation.class); in visitAnnotation()
314 List<VisitingDetector> list = mNodeTypeDetectors.get(AnnotationDeclaration.class); in visitAnnotationDeclaration()
325 List<VisitingDetector> list = mNodeTypeDetectors.get(AnnotationElement.class); in visitAnnotationElement()
337 mNodeTypeDetectors.get(AnnotationMethodDeclaration.class); in visitAnnotationMethodDeclaration()
348 List<VisitingDetector> list = mNodeTypeDetectors.get(AnnotationValueArray.class); in visitAnnotationValueArray()
359 List<VisitingDetector> list = mNodeTypeDetectors.get(ArrayAccess.class); in visitArrayAccess()
370 List<VisitingDetector> list = mNodeTypeDetectors.get(ArrayCreation.class); in visitArrayCreation()
[all …]
DXmlVisitor.java90 List<Detector.XmlScanner> list = mAttributeToCheck.get(attribute); in XmlVisitor()
103 List<Detector.XmlScanner> list = mElementToCheck.get(element); in XmlVisitor()
165 List<Detector.XmlScanner> elementChecks = mElementToCheck.get(element.getTagName()); in visitElement()
169 Detector.XmlScanner check = elementChecks.get(i); in visitElement()
175 Detector.XmlScanner check = mAllElementDetectors.get(i); in visitElement()
188 List<Detector.XmlScanner> list = mAttributeToCheck.get(name); in visitElement()
191 Detector.XmlScanner check = list.get(j); in visitElement()
197 Detector.XmlScanner check = mAllAttributeDetectors.get(j); in visitElement()
216 Detector.XmlScanner check = elementChecks.get(i); in visitElement()
222 Detector.XmlScanner check = mAllElementDetectors.get(i); in visitElement()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DSelectionManagerTest.java59 manager.selectMultiple(Arrays.asList(rootView, rootView.getChildren().get(0), rootView in testBasic()
60 .getChildren().get(1))); in testBasic()
80 assertSame(rootView, manager.getSelections().get(0).getViewInfo()); in testBasic()
82 manager.selectMultiple(Arrays.asList(rootView, rootView.getChildren().get(0), rootView in testBasic()
83 .getChildren().get(1))); in testBasic()
86 manager.deselect(rootView.getChildren().get(0)); in testBasic()
90 assertSame(rootView.getChildren().get(1), manager.getSelections().get(0).getViewInfo()); in testBasic()
110 manager.selectMultiple(Arrays.asList(rootView.getChildren().get(0))); in testSelectParent()
113 assertSame(rootView.getChildren().get(0), manager.getSelections().get(0).getViewInfo()); in testSelectParent()
118 assertSame(rootView, manager.getSelections().get(0).getViewInfo()); in testSelectParent()
DCanvasViewInfoTest.java97 CanvasViewInfo childView1 = rootView.getChildren().get(0); in normal()
98 CanvasViewInfo childView2 = rootView.getChildren().get(1); in normal()
143 CanvasViewInfo includedView = rootView.getChildren().get(0); in showIn()
151 CanvasViewInfo grandChild = includedView.getChildren().get(0); in showIn()
183 CanvasViewInfo childView1 = rootView.getChildren().get(0); in testIncludeTag()
184 CanvasViewInfo includedView = rootView.getChildren().get(1); in testIncludeTag()
225 CanvasViewInfo childView1 = rootView.getChildren().get(0); in testNoIncludeTag()
226 CanvasViewInfo includedView = rootView.getChildren().get(1); in testNoIncludeTag()
270 CanvasViewInfo childView1 = rootView.getChildren().get(0); in testMergeMatching()
272 CanvasViewInfo includedView1 = rootView.getChildren().get(1); in testMergeMatching()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DViewMetadataRepositoryTest.java27 assertSame(ViewMetadataRepository.get(), ViewMetadataRepository.get()); in testSingleton()
31 ViewMetadataRepository repository = ViewMetadataRepository.get(); in testBasic()
47 ViewMetadataRepository repository = ViewMetadataRepository.get(); in testRelatedTo()
54 ViewMetadataRepository repository = ViewMetadataRepository.get(); in testSkip()
60 ViewMetadataRepository repository = ViewMetadataRepository.get(); in testRenderMode()
67 ViewMetadataRepository repository = ViewMetadataRepository.get(); in testGetTopAttributes()
/sdk/sdkmanager/libs/sdklib/tests/src/com/android/sdklib/devices/
DDeviceWriterTest.java45 assertEquals(devices.get(i), writtenDevices.get(i)); in testWriteIsValid()
61 assertEquals(devices.get(i), writtenDevices.get(i)); in testApiLowerBound()
77 assertEquals(devices.get(i), writtenDevices.get(i)); in testApiUpperBound()
93 assertEquals(devices.get(i), writtenDevices.get(i)); in testApiNeitherBound()
109 assertEquals(devices.get(i), writtenDevices.get(i)); in testApiBothBound()
124 assertEquals(devices.get(i), writtenDevices.get(i)); in testApiSingle()
/sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
DTypoLookupTest.java44 TypoLookup db = TypoLookup.get(client, "de", null); in testCapitalization()
82 TypoLookup db = TypoLookup.get(new TestLintClient(), "en", null); in test1()
88 assertEquals("would", db.getTypos("woudl", 0, "woudl".length()).get(1)); in test1()
89 assertEquals("would", db.getTypos(" woudl ", 2, 7).get(1)); in test1()
93 assertEquals("throught", typos.get(0)); // the typo in test1()
94 assertEquals("thought", typos.get(1)); in test1()
95 assertEquals("through", typos.get(2)); in test1()
96 assertEquals("throughout", typos.get(3)); in test1()
109 TypoLookup db = TypoLookup.get(new TestLintClient(), "en", "US"); in testRegion()
111 db = TypoLookup.get(new TestLintClient(), "en", "GB"); in testRegion()
[all …]
/sdk/monkeyrunner/test/com/android/monkeyrunner/
DJythonUtilsTest.java108 return ScriptRunner.runStringAndGet(EXECUTABLE_PATH, sb.toString(), "result").get("result"); in call()
150 assertEquals("a", listValue.get(0)); in testParseStringList()
151 assertEquals("b", listValue.get(1)); in testParseStringList()
152 assertEquals("c", listValue.get(2)); in testParseStringList()
159 assertEquals(new Integer(1), listValue.get(0)); in testParseIntList()
160 assertEquals(new Integer(2), listValue.get(1)); in testParseIntList()
161 assertEquals(new Integer(3), listValue.get(2)); in testParseIntList()
168 assertEquals("a", listValue.get(0)); in testParseMixedList()
169 assertEquals(new Integer(1), listValue.get(1)); in testParseMixedList()
170 assertEquals(new Double(3.14), listValue.get(2)); in testParseMixedList()
[all …]
/sdk/uiautomatorviewer/src/com/android/uiautomator/tree/
DUiNode.java49 String className = mAttributes.get("class"); in updateDisplayName()
52 String text = mAttributes.get("text"); in updateDisplayName()
55 String contentDescription = mAttributes.get("content-desc"); in updateDisplayName()
58 String index = mAttributes.get("index"); in updateDisplayName()
61 String bounds = mAttributes.get("bounds"); in updateDisplayName()
106 return mAttributes.get(key); in getAttribute()
118 mCachedAttributesArray[i++] = new AttributePair(attr, mAttributes.get(attr)); in getAttributesArray()
/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()
65 HashMap<String, Node> map = mNodeMap.get(""); // no namespace in getNamedItem()
67 return map.get(name); in getNamedItem()
79 HashMap<String, Node> map = mNodeMap.get(namespaceURI); in getNamedItemNS()
81 return map.get(localName); in getNamedItemNS()
89 return mNodeList.get(index); in item()
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/
DGLUtils.java52 sb.append(String.format("%.4f", bb.get())); in formatFloats()
66 sb.append(bb.get()); in formatInts()
81 sb.append(bb.get() & 0xffff); in formatShorts()
83 sb.append(bb.get()); in formatShorts()
99 sb.append(bb.get() & 0xff); in formatBytes()
101 sb.append(bb.get()); in formatBytes()
/sdk/chimpchat/src/com/android/chimpchat/core/
DChimpView.java67 int left = Integer.parseInt(result.get(0)); in getLocation()
68 int top = Integer.parseInt(result.get(1)); in getLocation()
69 int width = Integer.parseInt(result.get(2)); in getLocation()
70 int height = Integer.parseInt(result.get(3)); in getLocation()
169 List<String> ids = Lists.newArrayList(results.get(2 * i), results.get(2 * i + 1)); in getChildren()
190 accessibilityIds[0] = Integer.parseInt(results.get(0)); in getAccessibilityIds()
191 accessibilityIds[1] = Integer.parseInt(results.get(1)); in getAccessibilityIds()
/sdk/sdk_common/src/com/android/ide/common/resources/
DResourceResolver.java120 Map<String, ResourceValue> frameworkStyleMap = mFrameworkResources.get( in getTheme()
122 theme = frameworkStyleMap.get(name); in getTheme()
124 Map<String, ResourceValue> projectStyleMap = mProjectResources.get(ResourceType.STYLE); in getTheme()
125 theme = projectStyleMap.get(name); in getTheme()
138 childTheme = mStyleInheritanceMap.get(childTheme); in themeIsParentOf()
178 StyleResourceValue parentStyle = mStyleInheritanceMap.get(style); in findItemInStyle()
360 typeMap = mProjectResources.get(resType); in findResValue()
361 ResourceValue item = typeMap.get(resName); in findResValue()
368 typeMap = mFrameworkResources.get(resType); in findResValue()
369 ResourceValue item = typeMap.get(resName); in findResValue()
[all …]
DMultiResourceFile.java100 if (mResourceItems.get(type).keySet() in update()
101 .equals(oldResourceItems.get(type).keySet()) == false) { in update()
134 Map<String, ResourceValue> list = mResourceItems.get(type); in hasResources()
145 Map<String, ResourceValue> list = mResourceItems.get(type); in updateResourceItems()
186 Map<String, ResourceValue> list = mResourceItems.get(resType); in addResourceValue()
194 ResourceValue oldValue = list.get(value.getName()); in addResourceValue()
208 Map<String, ResourceValue> map = mResourceItems.get(type); in hasResourceValue()
215 Map<String, ResourceValue> list = mResourceItems.get(type); in getValue()
218 return list.get(name); in getValue()
DResourceRepository.java100 List<ResourceFolder> list = mFolderMap.get(type); in add()
144 List<ResourceFolder> list = mFolderMap.get(type); in removeFolder()
149 ResourceFolder resFolder = list.get(i); in removeFolder()
207 Map<String, ResourceItem> map = mResourceMap.get(type); in hasResourceItem()
211 ResourceItem resourceItem = map.get(name); in hasResourceItem()
240 Map<String, ResourceItem> map = mResourceMap.get(type); in getResourceItem()
335 return mFolderMap.get(type); in getFolders()
352 if (list.contains(types.get(0)) == false) { in getAvailableResourceTypes()
353 list.add(types.get(0)); in getAvailableResourceTypes()
358 List<ResourceFolder> folders = mFolderMap.get(folderType); in getAvailableResourceTypes()
[all …]
/sdk/sdkmanager/app/tests/com/android/sdkmanager/
DAvdManagerTest.java68 assertEquals("HVGA", map.get("skin.name")); in testCreateAvdWithoutSnapshot()
69 … assertEquals("platforms/v0_0/skins/HVGA", map.get("skin.path").replace(File.separatorChar, '/')); in testCreateAvdWithoutSnapshot()
70 …assertEquals("platforms/v0_0/images/", map.get("image.sysdir.1").replace(File.separatorChar, '/')); in testCreateAvdWithoutSnapshot()
71 assertEquals(null, map.get("snapshot.present")); in testCreateAvdWithoutSnapshot()
99 assertEquals("true", map.get("snapshot.present")); in testCreateAvdWithSnapshot()
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/log/event/
DDisplayGraph.java125 HashMap<Integer, TimeSeries> map = mValueDescriptorSeriesMap.get(descriptor); in updateChart()
134 TimeSeries timeSeries = map.get(event.pid); in updateChart()
152 tagMap.get(descriptor.eventTag), in updateChart()
159 logParser.getEventInfoMap().get(event.mTag)[descriptor.valueIndex] in updateChart()
202 HashMap<Integer, TimeSeries> map = mOcurrenceDescriptorSeriesMap.get(descriptor); in updateChart()
211 TimeSeries timeSeries = map.get(event.pid); in updateChart()
218 tagMap.get(descriptor.eventTag), seriesLabel); in updateChart()
277 TimeSeriesCollection dataset = mValueTypeDataSetMap.get(type); in getValueDataset()
403 chartDesc = logParser.getTagMap().get(mValueDescriptors.get(0).eventTag); in getChartTitle()
409 logParser.getTagMap().get(mValueDescriptors.get(0).eventTag), in getChartTitle()
[all …]
/sdk/layoutlib_api/src/com/android/resources/
DFolderTypeRelationship.java78 List<ResourceType> list = mFolderToTypeMap.get(folderType); in getRelatedResourceTypes()
93 List<ResourceFolderType> list = mTypeToFolderMap.get(resType); in getRelatedFolders()
109 List<ResourceFolderType> list = mTypeToFolderMap.get(resType); in match()
126 List<ResourceFolderType> folderList = mTypeToFolderMap.get(type); in add()
136 List<ResourceType> typeList = mFolderToTypeMap.get(folder); in add()
151 List<ResourceFolderType> list = mTypeToFolderMap.get(type); in makeSafe()
159 List<ResourceType> list = mFolderToTypeMap.get(folder); in makeSafe()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/sdk/
DAndroidJarLoaderTest.java126 found.get("jar.example.Class1").get(0).getFullClassName()); //$NON-NLS-1$ in testFindClassesDerivingFrom()
127 assertEquals(1, found.get("jar.example.Class1").size()); //$NON-NLS-1$ in testFindClassesDerivingFrom()
128 assertEquals(0, found.get("jar.example.Class2").size()); //$NON-NLS-1$ in testFindClassesDerivingFrom()
147 return (HashMap<String, Class<?>>) field.get(mFrameworkClassLoader); in getPrivateClassCache()
164 return (HashMap<String, byte[]>) field.get(mFrameworkClassLoader); in getPrivateEntryCache()
/sdk/ddms/app/src/com/android/ddms/
DDebugPortProvider.java67 Map<String, Integer> deviceMap = mMap.get(device.getSerialNumber()); in getPort()
69 Integer i = deviceMap.get(appName); in getPort()
115 Map<String, Integer> deviceMap = mMap.get(deviceName); in computePortList()
142 Map<String, Integer> deviceMap = map.get(deviceKey); in setPortList()
147 Integer port = deviceMap.get(appKey); in setPortList()
/sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/avd/
DAvdInfo.java139 String cpuArch = mProperties.get(AvdManager.AVD_INI_CPU_ARCH); in getCpuArch()
149 String deviceManufacturer = mProperties.get(AvdManager.AVD_INI_DEVICE_MANUFACTURER); in getDeviceManufacturer()
158 String deviceName = mProperties.get(AvdManager.AVD_INI_DEVICE_NAME); in getDeviceName()
294 mProperties.get(AvdManager.AVD_INI_DEVICE_MANUFACTURER), in getErrorMessage()
295 mProperties.get(AvdManager.AVD_INI_DEVICE_NAME)); in getErrorMessage()
298 mProperties.get(AvdManager.AVD_INI_DEVICE_MANUFACTURER), in getErrorMessage()
299 mProperties.get(AvdManager.AVD_INI_DEVICE_NAME)); in getErrorMessage()
/sdk/eclipse/plugins/com.android.ide.eclipse.monitor/src/com/android/ide/eclipse/monitor/ddms/
DDebugPortProvider.java68 Map<String, Integer> deviceMap = mMap.get(device.getSerialNumber()); in getPort()
70 Integer i = deviceMap.get(appName); in getPort()
116 Map<String, Integer> deviceMap = mMap.get(deviceName); in computePortList()
143 Map<String, Integer> deviceMap = map.get(deviceKey); in setPortList()
148 Integer port = deviceMap.get(appKey); in setPortList()

12345678910>>...21