/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/ |
D | SetAttributeFix.java | 52 if (mId.equals(AccessibilityDetector.ISSUE.getId())) { in getAttribute() 54 } else if (mId.equals(InefficientWeightDetector.BASELINE_WEIGHTS.getId())) { in getAttribute() 56 } else if (mId.equals(SecurityDetector.EXPORTED_SERVICE.getId())) { in getAttribute() 58 } else if (mId.equals(TextFieldDetector.ISSUE.getId())) { in getAttribute() 60 } else if (mId.equals(TranslationDetector.MISSING.getId())) { in getAttribute() 62 } else if (mId.equals(ManifestDetector.ALLOW_BACKUP.getId())) { in getAttribute() 64 } else if (mId.equals(MissingIdDetector.ISSUE.getId())) { in getAttribute() 74 if (mId.equals(TranslationDetector.MISSING.getId())) { in isAndroidAttribute() 83 if (mId.equals(AccessibilityDetector.ISSUE.getId())) { in getDisplayString() 85 } else if (mId.equals(InefficientWeightDetector.BASELINE_WEIGHTS.getId())) { in getDisplayString() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/ |
D | ContextPullParser.java | 98 if (LIST_VIEW.equals(name) in getViewCookie() 99 || EXPANDABLE_LIST_VIEW.equals(name) in getViewCookie() 100 || GRID_VIEW.equals(name) in getViewCookie() 101 || SPINNER.equals(name)) { in getViewCookie() 106 if (namespace != null && namespace.equals(TOOLS_URI)) { in getViewCookie() 108 if (attribute.equals(ATTR_IGNORE)) { in getViewCookie() 131 if (name.equals(VIEW_FRAGMENT)) { in getName() 146 if (ATTR_LAYOUT.equals(localName) && mFragmentLayout != null) { in getAttributeValue() 154 if (VALUE_MATCH_PARENT.equals(value) && in getAttributeValue() 155 (ATTR_LAYOUT_WIDTH.equals(localName) || in getAttributeValue() [all …]
|
D | UiElementPullParser.java | 331 if (mIncreaseExistingPadding && ATTR_PADDING.equals(attribute.getLocalName()) && in getAttributeValue() 332 ANDROID_URI.equals(attribute.getNamespaceURI())) { in getAttributeValue() 347 if (mExplodeNodes != null && ATTR_PADDING.equals(localName) && in getAttributeValue() 348 ANDROID_URI.equals(namespace)) { in getAttributeValue() 355 if (mZeroAttributeIsPadding && ATTR_PADDING.equals(localName) && in getAttributeValue() 356 ANDROID_URI.equals(namespace)) { in getAttributeValue() 367 if (ATTR_LAYOUT.equals(localName) && VIEW_FRAGMENT.equals(xmlNode.getNodeName())) { in getAttributeValue() 380 if (attribute == null && namespace != null && !namespace.equals(ANDROID_URI)) { in getAttributeValue() 386 if (mIncreaseExistingPadding && ATTR_PADDING.equals(localName) && in getAttributeValue() 387 ANDROID_URI.equals(namespace)) { in getAttributeValue() [all …]
|
D | BasePullParser.java | 49 if (FEATURE_PROCESS_NAMESPACES.equals(name) && state) { in setFeature() 52 if (FEATURE_REPORT_NAMESPACE_ATTRIBUTES.equals(name) && state) { in setFeature() 60 if (FEATURE_PROCESS_NAMESPACES.equals(name)) { in getFeature() 63 if (FEATURE_REPORT_NAMESPACE_ATTRIBUTES.equals(name)) { in getFeature() 240 if (type != getEventType() || (namespace != null && !namespace.equals(getNamespace())) in require() 241 || (name != null && !name.equals(getName()))) in require()
|
D | LayoutEditorMatchingStrategy.java | 51 if (!file.getName().equals(editorRef.getName()) || in matches() 52 !editorRef.getId().equals(CommonXmlEditor.ID)) { in matches() 71 return editorFile.getProject().equals(file.getProject()) in matches() 72 && editorFile.getName().equals(file.getName()); in matches()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ |
D | AndroidXmlCharacterMatcher.java | 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() 105 if (type.equals(XML_TAG_CLOSE) || type.equals(XML_TAG_NAME)) { in findOppositeTag() 109 if (type.equals(XML_TAG_OPEN)) { in findOppositeTag() 112 } else if (type.equals(XML_END_TAG_OPEN)) { in findOppositeTag() 167 if (XML_TAG_OPEN.equals(type)) { in findTagBackwards() 174 } else if (XML_END_TAG_OPEN.equals(type)) { in findTagBackwards() 176 } else if (XML_EMPTY_TAG_CLOSE.equals(type)) { in findTagBackwards() 178 } else if (XML_TAG_CLOSE.equals(type)) { in findTagBackwards() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/ |
D | GravityHelper.java | 101 if (GRAVITY_VALUE_CENTER.equals(anchor)) { in getGravity() 103 } else if (GRAVITY_VALUE_FILL.equals(anchor)) { in getGravity() 105 } else if (GRAVITY_VALUE_CENTER_VERTICAL.equals(anchor)) { in getGravity() 107 } else if (GRAVITY_VALUE_CENTER_HORIZONTAL.equals(anchor)) { in getGravity() 109 } else if (GRAVITY_VALUE_FILL_VERTICAL.equals(anchor)) { in getGravity() 111 } else if (GRAVITY_VALUE_FILL_HORIZONTAL.equals(anchor)) { in getGravity() 113 } else if (GRAVITY_VALUE_TOP.equals(anchor)) { in getGravity() 115 } else if (GRAVITY_VALUE_BOTTOM.equals(anchor)) { in getGravity() 117 } else if (GRAVITY_VALUE_LEFT.equals(anchor)) { in getGravity() 119 } else if (GRAVITY_VALUE_RIGHT.equals(anchor)) { in getGravity() [all …]
|
D | BaseViewRule.java | 133 if (canMatchParent && VALUE_FILL_PARENT.equals(currentWidth)) { in addContextMenuActions() 135 } else if (!canMatchParent && VALUE_MATCH_PARENT.equals(currentWidth)) { in addContextMenuActions() 137 } else if (!VALUE_WRAP_CONTENT.equals(currentWidth) && !fillParent.equals(currentWidth)) { in addContextMenuActions() 144 if (canMatchParent && VALUE_FILL_PARENT.equals(currentHeight)) { in addContextMenuActions() 146 } else if (!canMatchParent && VALUE_MATCH_PARENT.equals(currentHeight)) { in addContextMenuActions() 148 } else if (!VALUE_WRAP_CONTENT.equals(currentHeight) in addContextMenuActions() 149 && !fillParent.equals(currentHeight)) { in addContextMenuActions() 166 if (fullActionId.equals(ATTR_LAYOUT_WIDTH)) { in addContextMenuActions() 177 } else if (fullActionId.equals(ATTR_LAYOUT_HEIGHT)) { in addContextMenuActions() 189 } else if (fullActionId.equals(ATTR_ID)) { in addContextMenuActions() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/ |
D | AdtPrefs.java | 142 if (v.name().equals(name)) { in find() 163 if (property == null || PREFS_SDK_DIR.equals(property)) { in loadValues() 184 if (property == null || PREFS_BUILD_VERBOSITY.equals(property)) { in loadValues() 191 if (property == null || PREFS_BUILD_RES_AUTO_REFRESH.equals(property)) { in loadValues() 195 if (property == null || PREFS_BUILD_FORCE_ERROR_ON_NATIVELIB_IN_JAR.equals(property)) { in loadValues() 200 if (property == null || PREFS_BUILD_SKIP_POST_COMPILE_ON_FILE_SAVE.equals(property)) { in loadValues() 205 if (property == null || PREFS_MONITOR_DENSITY.equals(property)) { in loadValues() 209 if (property == null || PREFS_FORMAT_GUI_XML.equals(property)) { in loadValues() 213 if (property == null || PREFS_PREFER_XML.equals(property)) { in loadValues() 217 if (property == null || PREFS_USE_CUSTOM_XML_FORMATTER.equals(property)) { in loadValues() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RefactoringUtil.java | 208 if ((name.equals(ATTR_NAME) in isManifestClassAttribute() 209 && (AndroidManifest.NODE_ACTIVITY.equals(tag) in isManifestClassAttribute() 210 || AndroidManifest.NODE_APPLICATION.equals(tag) in isManifestClassAttribute() 211 || AndroidManifest.NODE_INSTRUMENTATION.equals(tag) in isManifestClassAttribute() 212 || AndroidManifest.NODE_PROVIDER.equals(tag) in isManifestClassAttribute() 213 || AndroidManifest.NODE_SERVICE.equals(tag) in isManifestClassAttribute() 214 || AndroidManifest.NODE_RECEIVER.equals(tag))) in isManifestClassAttribute() 215 || name.equals(ATTRIBUTE_TARGET_ACTIVITY) in isManifestClassAttribute() 216 || name.equals(ATTRIBUTE_MANAGE_SPACE_ACTIVITY) in isManifestClassAttribute() 217 || name.equals(ATTRIBUTE_BACKUP_AGENT) in isManifestClassAttribute() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SimpleAttributeTest.java | 64 assertFalse(a.equals(null)); in testEqualsObject() 65 assertFalse(a.equals(new Object())); in testEqualsObject() 68 assertFalse(a.equals(new SimpleAttribute(SdkConstants.NS_RESOURCES, in testEqualsObject() 72 assertFalse(a.equals(new SimpleAttribute(SdkConstants.NS_RESOURCES, in testEqualsObject() 76 assertFalse(a.equals(new SimpleAttribute("uri", "name", "value = with space "))); in testEqualsObject() 78 assertFalse(a.equals(new SimpleAttribute("uri", "wrong name", "value"))); in testEqualsObject() 80 assertTrue(a.equals(new SimpleAttribute(SdkConstants.NS_RESOURCES, in testEqualsObject()
|
D | LayoutPointTest.java | 32 assertFalse(point2.equals(null)); in testEquals() 39 assertFalse(point1.equals(point2)); in testEquals() 40 assertFalse(point1.equals(point3)); in testEquals() 41 assertFalse(point2.equals(point3)); in testEquals() 42 assertFalse(point1.equals(point2)); in testEquals()
|
D | SimpleElementTest.java | 37 if (!Arrays.equals(expected, actual)) { in assertArrayEquals() 43 if (strExpected.equals(strActual)) { in assertArrayEquals() 266 assertFalse(e.equals(null)); in testEqualsObject() 267 assertFalse(e.equals(new Object())); in testEqualsObject() 279 assertTrue(e.equals(new SimpleElement("android.view.LinearLayout", in testEqualsObject() 285 assertFalse(e.equals(new SimpleElement("android.view.Button", in testEqualsObject() 291 assertFalse(e.equals(new SimpleElement("android.view.LinearLayout", in testEqualsObject() 297 assertFalse(e.equals(new SimpleElement("android.view.LinearLayout", in testEqualsObject() 303 assertFalse(e.equals(new SimpleElement("android.view.LinearLayout", in testEqualsObject()
|
D | ControlPointTest.java | 61 assertFalse(point2.equals(null)); in testEquals() 68 assertFalse(point1.equals(point2)); in testEquals() 69 assertFalse(point1.equals(point3)); in testEquals() 70 assertFalse(point2.equals(point3)); in testEquals() 71 assertFalse(point1.equals(point2)); in testEquals()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SimpleElement.java | 120 if (attr.getUri().equals(uri) && attr.getName().equals(localName)) { in getAttribute() 151 return node.getBounds().equals(mBounds); in isSame() 251 if (key.equals("V")) { //$NON-NLS-1$ in parseLines() 253 if (!value.equals(FORMAT_VERSION)) { in parseLines() 260 } else if (key.equals("N")) { //$NON-NLS-1$ in parseLines() 263 } else if (key.equals("P")) { //$NON-NLS-1$ in parseLines() 266 } else if (key.equals("R") || key.equals("Q")) { //$NON-NLS-1$ //$NON-NLS-2$ in parseLines() 278 if (key.equals("R")) { in parseLines() 320 public boolean equals(Object obj) { in equals() method in SimpleElement 326 (mBounds != null && !mBounds.equals(se.mBounds))) { in equals() [all …]
|
D | SimpleAttribute.java | 101 public boolean equals(Object obj) { in equals() method in SimpleAttribute 105 return mName.equals(sa.mName) && in equals() 106 mUri.equals(sa.mUri) && in equals() 107 mValue.equals(sa.mValue); in equals()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/renamepackage/ |
D | ApplicationPackageNameRefactoring.java | 150 .equals(mOldPackageName.getFullyQualifiedName())) { in updateJavaFileImports() 239 if (!DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in editXmlResourceFile() 251 if (DOMRegionContext.XML_TAG_ATTRIBUTE_NAME.equals(type)) { in editXmlResourceFile() 255 } else if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE.equals(type)) { in editXmlResourceFile() 262 if (oldAppNamespaceString.equals(stripQuotes(lastAttrValue))) { in editXmlResourceFile() 330 if (!DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in editAndroidManifest() 342 if (DOMRegionContext.XML_TAG_NAME.equals(type)) { in editAndroidManifest() 346 } else if (DOMRegionContext.XML_TAG_ATTRIBUTE_NAME.equals(type)) { in editAndroidManifest() 350 } else if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE.equals(type)) { in editAndroidManifest() 357 if (SdkConstants.ANDROID_URI.equals(stripQuotes(lastAttrValue))) { in editAndroidManifest() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/ |
D | ProjectState.java | 140 public boolean equals(Object obj) { in equals() method in ProjectState.LibraryState 144 return mRelativePath.equals(objState.mRelativePath) && in equals() 145 getMainProjectState().equals(objState.getMainProjectState()); in equals() 147 return mProjectState != null && mProjectState.equals(obj); in equals() 149 return normalizePath(mRelativePath).equals(normalizePath((String) obj)); in equals() 325 if (libState.equals(convertedPath)) { in reloadProperties() 417 if (ps != null && ps.getProject().equals(library)) { in getLibrary() 439 if (ps != null && ps.getProject().getName().equals(name)) { in getLibrary() 475 if (absPath.equals(libraryFile)) { in needs() 499 library.getProject().equals(state.getProjectState().getProject())) { in dependsOn() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/ |
D | FolderDecorator.java | 61 if (name.equals(SdkConstants.FD_ASSETS)) { in decorate() 63 } else if (name.equals(SdkConstants.FD_RESOURCES)) { in decorate() 65 } else if (name.equals(SdkConstants.FD_GEN_SOURCES)) { in decorate() 67 } else if (name.equals(SdkConstants.FD_NATIVE_LIBS)) { in decorate() 69 } else if (name.equals(SdkConstants.FD_OUTPUT)) { in decorate()
|
D | ApkInstallManager.java | 61 public boolean equals(Object obj) { in equals() method in ApkInstallManager.ApkInstall 65 return (device == apkObj.device && project.equals(apkObj.project) && in equals() 66 packageName.equals(apkObj.packageName)); in equals() 138 if (project.equals(install.project) && packageName.equals(install.packageName) && in isApplicationInstalled() 175 if (install.project.equals(project)) { in resetInstallationFor()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
D | DescriptorsUtils.java | 170 !overrideAttrLocalName.equals(xmlLocalName)) { in appendAttribute() 177 if (element.equals("*") //$NON-NLS-1$ in appendAttribute() 178 || element.equals(elementXmlName)) { in appendAttribute() 247 if (desc.getXmlLocalName().equals(xmlLocalName)) { 249 (nsUri != null && nsUri.equals(desc.getNamespaceUri()))) { 384 if (CODE.equals(s)) { 389 } else if (LINK.equals(s)) { 420 } else if (ELEM.equals(s)) { 425 } else if (BREAK.equals(s)) { 474 if (CODE.equals(s)) { [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/ |
D | ChangeLayoutWizard.java | 98 mFlatten.setVisible(text.equals(RELATIVE_LAYOUT) || text.equals(GRID_LAYOUT)); in createControl() 120 boolean oldIsRelativeLayout = mOldType.equals(FQCN_RELATIVE_LAYOUT); in createControl() 121 boolean oldIsGridLayout = mOldType.equals(FQCN_GRID_LAYOUT); in createControl() 129 if (mTypeCombo.getItem(i).equals(GRID_LAYOUT)) { in createControl() 140 if (mTypeCombo.getItem(i).equals(GRID_LAYOUT)) { in createControl() 147 if (mTypeCombo.getItem(i).equals(RELATIVE_LAYOUT)) { in createControl() 153 mFlatten.setVisible(mTypeCombo.getText().equals(RELATIVE_LAYOUT) in createControl() 154 || mTypeCombo.getText().equals(GRID_LAYOUT)); in createControl()
|
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/model/ |
D | EditableItem.java | 121 if (this == PRESET && !PRESET_CUSTOM.equals(value)) in setValue() 126 PICTURE.setVisible(STYLE_BIG_PICTURE.equals(mValue)); in applyStyle() 127 BIG_TEXT.setVisible(STYLE_BIG_TEXT.equals(mValue)); in applyStyle() 128 LINES.setVisible(STYLE_INBOX.equals(mValue)); in applyStyle() 129 BIG_CONTENT_TITLE.setVisible(!STYLE_NONE.equals(mValue)); in applyStyle() 130 SUMMARY_TEXT.setVisible(!STYLE_NONE.equals(mValue)); in applyStyle() 138 if (PRESET_BASIC.equals(mValue)) { in applyPreset() 142 } else if (PRESET_EMAIL.equals(mValue)) { in applyPreset() 151 } else if (PRESET_PHOTO.equals(mValue)) { in applyPreset()
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/extractstring/ |
D | ExtractStringRefactoring.java | 428 if (mFile != null && SdkConstants.EXT_XML.equals(mFile.getFileExtension())) { in checkInitialConditions() 592 DOMRegionContext.XML_TAG_NAME.equals(region.getType())) { in findSelectionInXmlFile() 662 if (DOMRegionContext.XML_TAG_ATTRIBUTE_NAME.equals(type)) { in findSelectionInRegion() 676 DOMRegionContext.XML_TAG_ATTRIBUTE_EQUALS.equals( in findSelectionInRegion() 680 if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE.equals( in findSelectionInRegion() 689 DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE.equals(type)) { in findSelectionInRegion() 760 if (attrNode.getDescriptor().getXmlLocalName().equals(name)) { in validateSelectedAttribute() 785 if (ResourceType.STRING.getName().equals(kind)) { in validateSelectedAttribute() 897 if (!mXmlStringValue.equals( in checkFinalConditions() 950 if (currentIdentifier.equals(unit.getHandleIdentifier())) { in checkFinalConditions() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
D | LocaleTest.java | 78 assertTrue(Locale.create(qualifier1).equals(Locale.create(qualifier1))); in test() 79 assertTrue(Locale.create(qualifier3).equals(Locale.create(qualifier3))); in test() 80 assertFalse(Locale.create(qualifier3).equals(Locale.create(qualifier4))); in test() 81 assertFalse(Locale.create(qualifier1).equals(Locale.create(qualifier3))); in test() 82 assertFalse(Locale.create(qualifier1).equals(Locale.create(qualifier2))); in test() 83 assertFalse(Locale.create(qualifier3).equals(Locale.create(qualifier5))); in test()
|