Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 160) sorted by relevance

1234567

/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/format/
DGLDataTypeSpec.java27 public GLDataTypeSpec(String type, String name) { in GLDataTypeSpec() argument
28 mCType = type; in GLDataTypeSpec()
31 mType = getDataType(type); in GLDataTypeSpec()
32 mIsPointer = type.contains("*"); //$NON-NLS-1$ in GLDataTypeSpec()
35 private Type getDataType(String type) { in getDataType() argument
36 type = type.toLowerCase(); in getDataType()
41 if (type.contains("boolean")) { //$NON-NLS-1$ in getDataType()
43 } else if (type.contains("enum")) { //$NON-NLS-1$ in getDataType()
45 } else if (type.contains("float") || type.contains("clampf")) { //$NON-NLS-1$ //$NON-NLS-2$ in getDataType()
47 } else if (type.contains("void")) { //$NON-NLS-1$ in getDataType()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DAndroidXmlCharacterMatcher.java77 String type = subRegion.getType(); in findOppositeTag() local
81 if (type.equals(XML_TAG_OPEN)) { in findOppositeTag()
83 } else if (type.equals(XML_END_TAG_OPEN)) { in findOppositeTag()
85 } else if (!(type.equals(XML_TAG_CLOSE) || type.equals(XML_TAG_NAME)) && in findOppositeTag()
99 type = subRegion.getType(); in findOppositeTag()
105 if (type.equals(XML_TAG_CLOSE) || type.equals(XML_TAG_NAME)) { in findOppositeTag()
108 type = subRegion.getType(); in findOppositeTag()
109 if (type.equals(XML_TAG_OPEN)) { in findOppositeTag()
112 } else if (type.equals(XML_END_TAG_OPEN)) { in findOppositeTag()
162 String type = subRegion.getType(); in findTagBackwards() local
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DMatch.java38 public final ConstraintType type; field in Match
56 ConstraintType type, int delta) { in Match() argument
61 this.type = type; in Match()
72 if (type.targetParent) { in getConstraint()
73 return type.name + '=' + VALUE_TRUE; in getConstraint()
91 return type.name + '=' + id; in getConstraint()
97 return "Match [type=" + type + ", delta=" + delta + ", edge=" + edge in toString()
DConstraintPainter.java70 ConstraintType type = match.type; in paintConstraint() local
71 assert type != null; in paintConstraint()
72 paintConstraint(graphics, type, match.with.node, sourceBounds, match.edge.node, in paintConstraint()
99 paintConstraint(graphics, constraint.type, sourceNode, sourceBounds, targetNode, in paintConstraint()
160 if (constraint.type == ALIGN_BASELINE) { in paintConstraints()
163 if (c.type == ALIGN_BOTTOM && c.to.node == constraint.to.node) { in paintConstraints()
183 private static void paintConstraint(IGraphics graphics, ConstraintType type, INode sourceNode, in paintConstraint() argument
187 SegmentType sourceSegmentTypeX = type.sourceSegmentTypeX; in paintConstraint()
188 SegmentType sourceSegmentTypeY = type.sourceSegmentTypeY; in paintConstraint()
189 SegmentType targetSegmentTypeX = type.targetSegmentTypeX; in paintConstraint()
[all …]
DDependencyGraph.java95 ConstraintType type = ConstraintType.fromAttribute(name); in DependencyGraph() local
96 if (type != null) { in DependencyGraph()
99 if (type.targetParent) { in DependencyGraph()
101 Constraint constraint = new Constraint(type, view, parentView); in DependencyGraph()
117 Constraint constraint = new Constraint(type, view, target); in DependencyGraph()
189 if (vertical && !constraint.type.verticalEdge) { in findBackwards()
191 } else if (!vertical && !constraint.type.horizontalEdge) { in findBackwards()
231 if (vertical && !constraint.type.verticalEdge) { in findForwards()
233 } else if (!vertical && !constraint.type.horizontalEdge) { in findForwards()
286 public final ConstraintType type; field in DependencyGraph.Constraint
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/
DNewXmlFileCreationPage.java459 TypeInfo type = getSelectedType(); in createControl()
460 if (type != null) { in createControl()
461 onSelectType(type); in createControl()
548 int typeIndex = getTypeComboIndex(mValues.type); in initialSelectType()
552 assert mValues.type == types[typeIndex]; in initialSelectType()
749 for (TypeInfo type : sTypes) { in initializeFromFixedType()
750 if (type.getResFolderType() == mInitialFolderType) { in initializeFromFixedType()
751 mValues.type = type; in initializeFromFixedType()
752 updateFolderPath(type); in initializeFromFixedType()
768 for (TypeInfo type : sTypes) { in selectTypeFromFolder()
[all …]
DNewXmlFileWizard.java171 TypeInfo type = mValues.type; in createXmlFile() local
172 if (type == null) { in createXmlFile()
178 String xmlns = type.getXmlns(); in createXmlFile()
187 String attrs = type.getDefaultAttrs(mValues.project, root); in createXmlFile()
188 String child = type.getChild(mValues.project, root); in createXmlFile()
189 return createXmlFile(file, xmlns, root, attrs, child, type.getResFolderType()); in createXmlFile()
323 TypeInfo type = NewXmlFileCreationPage.getTypeInfo(folderType); in createXmlFile() local
324 String xmlns = type.getXmlns(); in createXmlFile()
325 String root = type.getDefaultRoot(project); in createXmlFile()
327 root = type.getRootSeed().toString(); in createXmlFile()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/uimodel/
DUiItemElementNode.java48 String type = elem.getAttribute(SdkConstants.ATTR_TYPE); in getShortDescription() local
50 if (type != null && name != null && type.length() > 0 && name.length() > 0) { in getShortDescription()
51 type = AdtUtils.capitalize(type); in getShortDescription()
52 return String.format("%1$s (%2$s %3$s)", name, type, getDescriptor().getUiName()); in getShortDescription()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/
DReplaceStringsVisitor.java152 Type type = null; in examineVariableDeclaration() local
154 type = ((VariableDeclarationStatement) parent).getType(); in examineVariableDeclaration()
156 type = ((VariableDeclarationExpression) parent).getType(); in examineVariableDeclaration()
159 if (type instanceof SimpleType) { in examineVariableDeclaration()
160 return isJavaString(type.resolveBinding()); in examineVariableDeclaration()
254 ITypeBinding type = types[index]; in examineMethodInvocation() local
255 useStringType = isJavaString(type); in examineMethodInvocation()
449 private boolean isAndroidContext(Type type) { in isAndroidContext() argument
450 if (type != null) { in isAndroidContext()
451 return isAndroidContext(type.resolveBinding()); in isAndroidContext()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/
DCustomViewDescriptorService.java183 IType type = javaProject.findType(javaClassName); in getDescriptor() local
184 if (type != null && type.exists()) { in getDescriptor()
188 ITypeHierarchy hierarchy = type.newSupertypeHierarchy( in getDescriptor()
192 hierarchy.getSuperclass(type), project, hierarchy); in getDescriptor()
198 Map<ResourceFile, Long> files = findCustomDescriptors(project, type, in getDescriptor()
202 getAttributeDescriptor(type, parentDescriptor); in getDescriptor()
207 getLayoutAttributeDescriptors(type, parentDescriptor); in getDescriptor()
279 IType type, in findCustomDescriptors() argument
284 IProject library = getProjectDeclaringType(type); in findCustomDescriptors()
289 String className = type.getElementName(); in findCustomDescriptors()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceXmlTextAction.java117 ResourceType type = resource.type; in run() local
122 RenameResourceWizard.renameResource(shell, project, type, name, null, canClear); in run()
129 IType type = findType(className, project); in run() local
130 if (type != null) { in run()
131 RenameTypeProcessor processor = new RenameTypeProcessor(type); in run()
264 ResourceType type = ResourceType.getEnum(typeString); in findItemDefinition() local
265 if (type != null) { in findItemDefinition()
266 return ResourceUrl.create(type, name, false, false); in findItemDefinition()
346 IType type = null; in findType() local
349 type = javaProject.findType(className); in findType()
[all …]
DRenameResourceWizard.java53 @NonNull ResourceType type, in RenameResourceWizard() argument
60 mType = type; in RenameResourceWizard()
86 @NonNull ResourceType type, in renameResource() argument
91 RenameResourceProcessor processor = new RenameResourceProcessor(project, type, in renameResource()
98 if (!show(refactoring, processor, shell, type, canClear)) { in renameResource()
126 @NonNull ResourceType type, in show() argument
135 RenameResourceWizard wizard = new RenameResourceWizard(refactoring, type, canClear); in show()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/
DUiResourceAttributeNode.java94 public UiResourceAttributeNode(ResourceType type, in UiResourceAttributeNode() argument
98 mType = type; in UiResourceAttributeNode()
440 String type = null; in score() local
443 type = "bool"; //$NON-NLS-1$ in score()
446 type = "color"; //$NON-NLS-1$ in score()
449 type = "dimen"; //$NON-NLS-1$ in score()
452 type = "integer"; //$NON-NLS-1$ in score()
455 type = "string"; //$NON-NLS-1$ in score()
461 if (type != null) { in score()
463 if (value.startsWith(PREFIX_RESOURCE_REF + type + '/')) { in score()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/grid/
DGridMatch.java33 public final SegmentType type; field in GridMatch
59 GridMatch(SegmentType type, int distance, int matchedLine, int cellIndex, in GridMatch() argument
62 this.type = type; in GridMatch()
89 switch (type) { in getDisplayName()
139 switch (type) { in getPriority()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidator.java191 ResourceFolderType type) { in create() argument
192 boolean isFileType = type != ResourceFolderType.VALUES; in create()
194 type == ResourceFolderType.DRAWABLE); in create()
208 ResourceType type) { in create() argument
209 boolean isFileType = ResourceHelper.isFileBasedResourceType(type); in create()
211 type == ResourceType.DRAWABLE).unique(); in create()
226 @NonNull ResourceType type) { in create() argument
232 Collection<ResourceItem> items = projectResources.getResourceItemsOfType(type); in create()
238 boolean isFileType = ResourceHelper.isFileBasedResourceType(type); in create()
240 type == ResourceType.DRAWABLE); in create()
DResourceHelper.java193 public static boolean isValueBasedResourceType(ResourceType type) { in isValueBasedResourceType() argument
194 List<ResourceFolderType> folderTypes = FolderTypeRelationship.getRelatedFolders(type); in isValueBasedResourceType()
217 public static boolean isFileBasedResourceType(ResourceType type) { in isFileBasedResourceType() argument
218 List<ResourceFolderType> folderTypes = FolderTypeRelationship.getRelatedFolders(type); in isFileBasedResourceType()
222 if (type == ResourceType.ID) { in isFileBasedResourceType()
255 ResourceType type = parsed.type; in canCreateResource() local
260 ResourceNameValidator.create(false, (Set<String>) null /* existing */, type); in canCreateResource()
265 return canCreateResourceType(type); in canCreateResource()
279 public static boolean canCreateResourceType(ResourceType type) { in canCreateResourceType() argument
281 if (isValueBasedResourceType(type)) { in canCreateResourceType()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DRenameResourceParticipantTest.java241 IType type = javaProject.findType("com.example.refactoringtest.R.layout"); in testRefactor8() local
242 if (type == null || !type.exists()) { in testRefactor8()
243 type = javaProject.findType("com.example.refactoringtest.R$layout"); in testRefactor8()
246 assertNotNull(type); in testRefactor8()
247 assertTrue(type.exists()); in testRefactor8()
248 IField field = type.getField("activity_main"); in testRefactor8()
372 ResourceType type = parsedUrl.type; in renameResource() local
375 p = new RenameResourceProcessor(project, type, currentName, newName); in renameResource()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/draw9patch/graphics/
DNinePatchedImageTest.java234 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
242 assertEquals(Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
250 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
259 assertEquals(Chunk.TYPE_HORIZONTAL, c.type); in test9Patch1()
267 assertEquals(Chunk.TYPE_FIXED, c.type); in test9Patch1()
275 assertEquals(Chunk.TYPE_HORIZONTAL, c.type); in test9Patch1()
284 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
292 assertEquals(Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
300 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch1()
339 assertEquals(Chunk.TYPE_HORIZONTAL | Chunk.TYPE_VERTICAL, c.type); in test9Patch2()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DReferenceChooserDialog.java204 ResourceType type = null; in handleSelection() local
208 type = (ResourceType) segment; in handleSelection()
214 mPreviewHelper.updatePreview(type, mCurrentResource); in handleSelection()
273 ResourceType type = getSelectedResourceType(); in updateNewResButton() local
276 mNewResButton.setEnabled(type == ResourceType.STRING); in updateNewResButton()
279 type == null ? "Resource" : type.getDisplayName()); in updateNewResButton()
292 ResourceType type = getSelectedResourceType(); in widgetSelected() local
295 if (type == ResourceType.STRING) { in widgetSelected()
308 setupInitialSelection(type, ref.getXmlStringId()); in widgetSelected()
322 ResourceType type = null; in getSelectedResourceType() local
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
DGLSparseArrayProperty.java32 public GLSparseArrayProperty(GLStateType type, IGLProperty defaultValue) { in GLSparseArrayProperty() argument
33 this(type, defaultValue, false); in GLSparseArrayProperty()
42 public GLSparseArrayProperty(GLStateType type, IGLProperty defaultValue, in GLSparseArrayProperty() argument
44 mType = type; in GLSparseArrayProperty()
50 private GLSparseArrayProperty(GLStateType type, IGLProperty defaultValue, in GLSparseArrayProperty() argument
52 mType = type; in GLSparseArrayProperty()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DResourceValueCompleter.java146 for (ResourceType type : repository.getAvailableResourceTypes()) { in addMatches()
147 if (prefix.regionMatches(typeStart, type.getName(), 0, in addMatches()
148 Math.min(type.getName().length(), prefix.length() - typeStart))) { in addMatches()
153 if (type != ResourceType.ATTR) { in addMatches()
159 if (type == ResourceType.ID && prefix.startsWith(NEW_ID_PREFIX)) { in addMatches()
167 sb.append(type.getName()).append('/'); in addMatches()
170 int nameStart = typeStart + type.getName().length() + 1; // +1: add "/" divider in addMatches()
173 for (ResourceItem item : repository.getResourceItemsOfType(type)) { in addMatches()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeRenameParticipantTest.java145 IType type = javaProject.findType(typeFqcn); in renameType() local
146 assertNotNull(typeFqcn, type); in renameType()
147 assertTrue(typeFqcn, type.exists()); in renameType()
148 RenameTypeProcessor processor = new RenameTypeProcessor(type); in renameType()
DAndroidTypeMoveParticipantTest.java112 IType type = javaProject.findType(typeFqcn); in moveType() local
113 assertNotNull(typeFqcn, type); in moveType()
114 assertTrue(typeFqcn, type.exists()); in moveType()
115 IResource resource = type.getResource(); in moveType()
120 IJavaElement[] elements = new IJavaElement[] { type }; in moveType()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DCustomViewFinder.java213 ResolvedBinaryType type = (ResolvedBinaryType) element; in findViews()
214 IPackageFragment fragment = type.getPackageFragment(); in findViews()
221 if (!isValidView(type, layoutsOnly)) { in findViews()
227 String fqn = type.getFullyQualifiedName(); in findViews()
234 ResolvedSourceType type = (ResolvedSourceType) element; in findViews()
235 if (!isValidView(type, layoutsOnly)) { in findViews()
238 String fqn = type.getFullyQualifiedName(); in findViews()
287 private static boolean isValidView(IType type, boolean layoutsOnly) in isValidView() argument
290 if (type.isAnonymous()) { in isValidView()
293 int flags = type.getFlags(); in isValidView()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/
DCommonXmlEditor.java139 ResourceFolderType type = resFolder == null ? null : resFolder.getType(); in init() local
141 if (type == null) { in init()
145 type = ResourceFolderType.getFolderType(folderName); in init()
148 if (type != null) { in init()
150 mDelegate = creator.createForFile(this, type); in init()
164 type); in init()
169 ResourceFolderType type = ResourceFolderType.getFolderType(folderName); in init() local
170 if (type == ResourceFolderType.LAYOUT) { in init()
175 } else if (type != null) { in init()
177 mDelegate = creator.createForFile(this, type); in init()
[all …]

1234567