/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/ |
D | ResourceValueCompleter.java | 90 AttributeDescriptor attributeDescriptor, String prefix) { in computeResourceStringMatches() argument 95 if (prefix.startsWith("@a") && //$NON-NLS-1$ in computeResourceStringMatches() 96 prefix.regionMatches(true /* ignoreCase */, 0, ANDROID_PREFIX, 0, in computeResourceStringMatches() 97 Math.min(prefix.length() - 1, ANDROID_PREFIX.length()))) { in computeResourceStringMatches() 101 addMatches(repository, prefix, true /* isSystem */, results); in computeResourceStringMatches() 103 } else if (prefix.startsWith("?") && //$NON-NLS-1$ in computeResourceStringMatches() 104 prefix.regionMatches(true /* ignoreCase */, 0, ANDROID_THEME_PREFIX, 0, in computeResourceStringMatches() 105 Math.min(prefix.length() - 1, ANDROID_THEME_PREFIX.length()))) { in computeResourceStringMatches() 109 addMatches(repository, prefix, true /* isSystem */, results); in computeResourceStringMatches() 117 if (!prefix.startsWith("@and") && !prefix.startsWith("?and")) { //$NON-NLS-1$ //$NON-NLS-2$ in computeResourceStringMatches() [all …]
|
D | ValueCompleter.java | 70 String prefix = contents; // TODO: Go back to position inside the array? in getProposals() local 127 int flagStart = prefix.lastIndexOf('|'); in getProposals() 130 prepend = prefix.substring(0, flagStart + 1); in getProposals() 131 prefix = prefix.substring(flagStart + 1).trim(); in getProposals() 136 if (prefix.equals(value)) { in getProposals() 146 prefix = ""; in getProposals() 150 if (SdkUtils.startsWithIgnoreCase(value, prefix)) { in getProposals() 168 if (SdkUtils.startsWithIgnoreCase(value, prefix)) { in getProposals() 174 if (!SdkUtils.startsWithIgnoreCase(value, prefix)) { in getProposals()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/ |
D | UiResourceAttributeNode.java | 221 public String[] getPossibleValues(String prefix) { in getPossibleValues() argument 222 return computeResourceStringMatches(getUiParent().getEditor(), getDescriptor(), prefix); in getPossibleValues() 237 @Nullable String prefix) { in computeResourceStringMatches() argument 239 if (prefix == null || !prefix.regionMatches(1, ANDROID_PKG, 0, ANDROID_PKG.length())) { in computeResourceStringMatches() 252 String[] projectMatches = computeResourceStringMatches(descriptor, prefix, in computeResourceStringMatches() 267 projectMatches = computeResourceStringMatches(descriptor, prefix, in computeResourceStringMatches() 284 return computeResourceStringMatches(descriptor, prefix, repository, true); in computeResourceStringMatches() 305 @Nullable String prefix, in computeResourceStringMatches() argument 316 if (prefix != null) { in computeResourceStringMatches() 317 Matcher m = Pattern.compile(".*?([a-z]+)/.*").matcher(prefix); //$NON-NLS-1$ in computeResourceStringMatches() [all …]
|
D | UiAttributeNode.java | 133 public abstract String[] getPossibleValues(String prefix); in getPossibleValues() argument
|
D | UiSeparatorAttributeNode.java | 105 public String[] getPossibleValues(String prefix) { in getPossibleValues() argument
|
D | UiTextAttributeNode.java | 79 public String[] getPossibleValues(String prefix) { in getPossibleValues() argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/ |
D | AndroidPrintStream.java | 44 public AndroidPrintStream(IProject project, String prefix, OutputStream stream) { in AndroidPrintStream() argument 53 public void setPrefix(String prefix) { in setPrefix() argument 54 mPrefix = prefix; in setPrefix()
|
D | AdtUtils.java | 756 String prefix = XmlUtils.lookupNamespacePrefix(element, TOOLS_URI, null, true); 757 if (prefix == null) { 759 prefix = XmlUtils.lookupNamespacePrefix(element, 781 element.setAttribute(prefix + ':' + name, v); 783 element.removeAttribute(prefix + ':' + name); 882 String prefix = XmlUtils.lookupNamespacePrefix(element, TOOLS_URI, 884 if (prefix == null) { 886 prefix = XmlUtils.lookupNamespacePrefix(element, 901 element.setAttribute(prefix + ':' + name, v); 903 element.removeAttribute(prefix + ':' + name); [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/ |
D | ValuesContentAssist.java | 143 String prefix) { in computeTextValues() argument 145 prefix); in computeTextValues() 189 prefix); in computeTextValues() 192 prefix = attrInfo.correctedPrefix; in computeTextValues() 198 prefix, needTag, isAttribute, isNew, in computeTextValues() 210 if (prefix.startsWith(PREFIX_RESOURCE_REF) || prefix.trim().length() == 0) { in computeTextValues() 212 mEditor, null /*attributeDescriptor*/, prefix); in computeTextValues() 235 prefix, (char) 0 /*needTag*/, true /* isAttribute */, false /*isNew*/, in computeTextValues()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
D | FileUtils.java | 32 public static File createTempFile(String prefix, String suffix) { in createTempFile() argument 35 f = File.createTempFile(prefix, suffix, sCacheDir); in createTempFile()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | CompletionProposal.java | 195 String prefix = mNsPrefix; in apply() local 196 if (mNsUri != null && prefix != null) { in apply() 213 if (prefix.endsWith(":")) { //$NON-NLS-1$ in apply() 214 prefix = prefix.substring(0, prefix.length() - 1); in apply() 216 XmlUtils.lookupNamespacePrefix(root, mNsUri, prefix, true); in apply()
|
D | AndroidContentAssist.java | 737 protected static boolean startsWith(String word, String prefix) { in startsWith() argument 738 int prefixLength = prefix.length(); in startsWith() 745 if (Character.toLowerCase(prefix.charAt(i)) in startsWith() 777 protected static boolean nameStartsWith(String word, String prefix, String nsPrefix) { in nameStartsWith() argument 785 if (startsWith(prefix, nsPrefix)) { in nameStartsWith() 788 } else if (startsWith(nsPrefix, prefix)) { in nameStartsWith() 792 int prefixLength = prefix.length(); in nameStartsWith() 801 char c1 = Character.toLowerCase(prefix.charAt(i)); in nameStartsWith() 810 && !prefix.startsWith(ATTR_LAYOUT_RESOURCE_PREFIX, prefixStart)) { in nameStartsWith() 818 char c1 = Character.toLowerCase(prefix.charAt(i)); in nameStartsWith()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | SetPropertyFix.java | 76 String prefix = null; in apply() local 78 prefix = XmlUtils.lookupNamespacePrefix(node, ANDROID_URI); in apply() 80 String attribute = prefix != null ? prefix + ':' + localAttribute : localAttribute; in apply()
|
D | AddPrefixFix.java | 51 String prefix = XmlUtils.lookupNamespacePrefix(node, ANDROID_URI); in apply() local 53 document.replace(start, 0, prefix + ':'); in apply()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
D | DescriptorsUtils.java | 861 String prefix = (String) params[0]; 863 int pos = prefix.indexOf('.'); 865 prefix = prefix.substring(pos + 1); 867 pos = prefix.indexOf('$'); 869 prefix = prefix.substring(pos + 1); 871 prefix = prefix.replaceAll("[^a-zA-Z]", ""); //$NON-NLS-1$ $NON-NLS-2$ 872 if (prefix.length() == 0) { 873 prefix = DEFAULT_WIDGET_PREFIX; 876 prefix = Character.toLowerCase(prefix.charAt(0)) + prefix.substring(1); 884 generated = String.format("%1$s%2$d", prefix, num); //$NON-NLS-1$ [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | LayoutMetadataTest.java | 56 String prefix = XmlUtils.lookupNamespacePrefix(element, TOOLS_URI, null, false); in testMetadata1() local 57 if (prefix == null) { in testMetadata1() 59 prefix = XmlUtils.lookupNamespacePrefix(element, in testMetadata1() 62 element.setAttribute(prefix + ':' + "foo", "bar"); in testMetadata1()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/mock/ |
D | MockXmlNode.java | 103 public void setPrefix(String namespace, String prefix) { in setPrefix() argument 108 mNsMap.put(namespace, prefix); in setPrefix() 274 public String lookupNamespaceURI(String prefix) { in lookupNamespaceURI() argument 305 public void setPrefix(String prefix) throws DOMException { in setPrefix() argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/sampleProjects/ |
D | AndroidManifestWriter.java | 78 String prefix = mDoc.lookupPrefix(SdkConstants.NS_RESOURCES); in setMinSdkVersion() local 79 minSdkAttr.setPrefix(prefix); in setMinSdkVersion()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | VisualRefactoring.java | 424 String prefix = attributeNode.getPrefix(); in getAndroidNamespacePrefix() local 425 if (XMLNS.equals(prefix)) { in getAndroidNamespacePrefix() 450 String prefix = attributeNode.getPrefix(); in getAndroidNamespacePrefix() local 451 if (XMLNS.equals(prefix)) { in getAndroidNamespacePrefix() 491 String prefix = attributeNode.getPrefix(); in findNamespaceAttributes() local 492 if (XMLNS.equals(prefix)) { in findNamespaceAttributes() 884 protected String ensureHasId(MultiTextEdit rootEdit, Element element, String prefix) { in ensureHasId() argument 885 return ensureHasId(rootEdit, element, prefix, true); in ensureHasId() 888 protected String ensureHasId(MultiTextEdit rootEdit, Element element, String prefix, in ensureHasId() argument 896 || (prefix != null && !getId(element).startsWith(prefix))) { in ensureHasId() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | RenderLogger.java | 287 public boolean seenTagPrefix(String prefix) { in seenTagPrefix() argument 290 if (tag.startsWith(prefix)) { in seenTagPrefix()
|
D | DomUtilities.java | 525 @Nullable String prefix) { in getFreeWidgetId() argument 538 if (prefix == null) { in getFreeWidgetId() 539 prefix = DescriptorsUtils.getBasename(element.getTagName()); in getFreeWidgetId() 544 generated = String.format("%1$s%2$d", prefix, num++); //$NON-NLS-1$ in getFreeWidgetId()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
D | WidgetClassLoader.java | 175 char prefix = line.charAt(0); in parseWidgetList() local 178 switch (prefix) { in parseWidgetList()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | BasePullParser.java | 107 public String getNamespace(String prefix) { in getNamespace() argument
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/ |
D | KeyCreationPage.java | 325 private void buildDName(String prefix, Text textField, StringBuilder sb) { in buildDName() argument 333 sb.append(prefix); in buildDName()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/manifest/model/ |
D | UiElementNodeTest.java | 281 String prefix = XmlUtils.lookupNamespacePrefix(baz, SdkConstants.ANDROID_URI); in testCreateNameSpace() local 282 assertEquals("android", prefix); in testCreateNameSpace()
|