Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 43) sorted by relevance

12

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DResourceValueCompleter.java90 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 …]
DValueCompleter.java70 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/
DUiResourceAttributeNode.java221 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 …]
DUiAttributeNode.java133 public abstract String[] getPossibleValues(String prefix); in getPossibleValues() argument
DUiSeparatorAttributeNode.java105 public String[] getPossibleValues(String prefix) { in getPossibleValues() argument
DUiTextAttributeNode.java79 public String[] getPossibleValues(String prefix) { in getPossibleValues() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/
DAndroidPrintStream.java44 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()
DAdtUtils.java756 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/
DValuesContentAssist.java143 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/
DFileUtils.java32 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/
DCompletionProposal.java195 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()
DAndroidContentAssist.java737 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/
DSetPropertyFix.java76 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()
DAddPrefixFix.java51 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/
DDescriptorsUtils.java861 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/
DLayoutMetadataTest.java56 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/
DMockXmlNode.java103 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/
DAndroidManifestWriter.java78 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/
DVisualRefactoring.java424 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/
DRenderLogger.java287 public boolean seenTagPrefix(String prefix) { in seenTagPrefix() argument
290 if (tag.startsWith(prefix)) { in seenTagPrefix()
DDomUtilities.java525 @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/
DWidgetClassLoader.java175 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/
DBasePullParser.java107 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/
DKeyCreationPage.java325 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/
DUiElementNodeTest.java281 String prefix = XmlUtils.lookupNamespacePrefix(baz, SdkConstants.ANDROID_URI); in testCreateNameSpace() local
282 assertEquals("android", prefix); in testCreateNameSpace()

12