/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/common/resources/platform/ |
D | AttributeInfoTest.java | 56 assertTrue(info.isValid("", null, null)); in testSimple() 57 assertTrue(info.isValid("a b c", null, null)); in testSimple() 58 assertTrue(info.isValid("@android foo bar", null, null)); in testSimple() 63 assertTrue(info.isValid("", null, null)); in testIsValidString() 64 assertTrue(info.isValid("a b c", null, null)); in testIsValidString() 65 assertTrue(info.isValid("@android foo bar", null, null)); in testIsValidString() 70 assertTrue(info.isValid("true", null, null)); in testIsValidBoolean() 71 assertTrue(info.isValid("false", null, null)); in testIsValidBoolean() 72 assertFalse(info.isValid("", null, null)); in testIsValidBoolean() 73 assertTrue(info.isValid("TRUE", null, null)); in testIsValidBoolean() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/drawable/ |
D | DrawableDescriptors.java | 52 if (mDescriptor == null) { in getDescriptor() 71 if (nameToDescriptor == null) { in getElementDescriptor() 79 if (descriptor == null) { in getElementDescriptor() 91 … "animation-list", "Animation List", "AnimationDrawable", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() 95 xmlns, null, true /*mandatory*/); in updateDescriptors() 108 "bitmap", "BitMap", "BitmapDrawable", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() 114 xmlns, null, true /* mandatory */); in updateDescriptors() 117 "clip", "Clip", "ClipDrawable", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() 121 xmlns, null, true /*mandatory*/); in updateDescriptors() 124 "color", "Color", "ColorDrawable", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/manager/ |
D | ConfigMatchTest.java | 92 null, // country code in setUp() 93 null, // network code in setUp() 94 null, // language in setUp() 95 null, // region in setUp() 96 null, // smallest width dp in setUp() 97 null, // width dp in setUp() 98 null, // height dp in setUp() 99 null, // screen size in setUp() 100 null, // screen ratio in setUp() 101 null, // screen orientation in setUp() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | RenderLoggerTest.java | 23 RenderLogger l = new RenderLogger("foo", null); in testLogger1() 28 RenderLogger l = new RenderLogger("foo", null); in testLogger2() 30 l.fidelityWarning(null, "No perspective Transforms", null, null); in testLogger2() 31 l.fidelityWarning(null, "No GPS", null, null); in testLogger2() 36 assertFalse(l.seenTag(null)); in testLogger2() 40 RenderLogger l = new RenderLogger("foo", null); in testLogger3() 42 l.error("timeout", "Sample Error", new RuntimeException(), null); in testLogger3() 43 l.warning("slow", "Sample warning", null); in testLogger3() 59 RenderLogger l = new RenderLogger("foo", null); in testLoggerSuppressWarnings() 62 l.fidelityWarning(null, "No perspective Transforms", null, null); in testLoggerSuppressWarnings() [all …]
|
D | SimpleElementTest.java | 40 String strExpected = expected == null ? "(null)" : Arrays.toString(expected); in assertArrayEquals() 41 String strActual = actual == null ? "(null)" : Arrays.toString(actual); in assertArrayEquals() 45 expected == null ? 0 : expected.length, in assertArrayEquals() 47 actual == null ? 0 : actual.length, in assertArrayEquals() 126 null, null, null) }, in testParseString() 134 null, null) }, in testParseString() 141 null, in testParseString() 253 e.addInnerElement(new SimpleElement("android.view.Button", null, null, null)); in testAddGetInnerElements() 255 new SimpleElement[] { new SimpleElement("android.view.Button", null, null, null) }, in testAddGetInnerElements() 258 e.addInnerElement(new SimpleElement("android.view.CheckBox", null, null, null)); in testAddGetInnerElements() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/ui/tree/ |
D | UiActions.java | 68 doAdd(uiNode, null /* descriptorFilters */, shell, new UiModelTreeLabelProvider()); in doAdd() 93 if (results != null && results.length > 0) { in doAdd() 94 addElement(dlg.getChosenRootNode(), null, (ElementDescriptor) results[0], in doAdd() local 124 if (uiSibling != null && uiSibling.getUiParent() != uiParent) { in addElement() 125 uiSibling = null; in addElement() 143 if (nodes == null || nodes.size() == 0) { in doRemove() 163 UiElementNode previous = null; in doRemove() 164 UiElementNode parent = null; in doRemove() 176 if (previous != null) { in doRemove() 178 } else if (parent != null) { in doRemove() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
D | ConstraintType.java | 56 null /* sourceX */, BOTTOM, null /* targetX */, TOP, 60 LAYOUT_BELOW(ATTR_LAYOUT_BELOW, null, TOP, null, BOTTOM, false, true, false, true), 61 ALIGN_TOP(ATTR_LAYOUT_ALIGN_TOP, null, TOP, null, TOP, false, true, false, false), 62 ALIGN_BOTTOM(ATTR_LAYOUT_ALIGN_BOTTOM, null, BOTTOM, null, BOTTOM, false, true, false, false), 63 ALIGN_LEFT(ATTR_LAYOUT_ALIGN_LEFT, LEFT, null, LEFT, null, false, false, true, false), 64 ALIGN_RIGHT(ATTR_LAYOUT_ALIGN_RIGHT, RIGHT, null, RIGHT, null, false, false, true, false), 65 LAYOUT_LEFT_OF(ATTR_LAYOUT_TO_LEFT_OF, RIGHT, null, LEFT, null, false, false, true, true), 66 LAYOUT_RIGHT_OF(ATTR_LAYOUT_TO_RIGHT_OF, LEFT, null, RIGHT, null, false, false, true, true), 67 ALIGN_PARENT_TOP(ATTR_LAYOUT_ALIGN_PARENT_TOP, null, TOP, null, TOP, true, true, false, false), 68 ALIGN_BASELINE(ATTR_LAYOUT_ALIGN_BASELINE, null, BASELINE, null, BASELINE, false, true, false, [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/values/descriptors/ |
D | ValuesDescriptors.java | 92 null /* nsUri */, in ValuesDescriptors() 99 null, // no child nodes in ValuesDescriptors() 109 null /* nsUri */, in ValuesDescriptors() 116 null, // no child nodes in ValuesDescriptors() 122 null, // TODO find javadoc in ValuesDescriptors() 123 null, // TODO find link to javadoc in ValuesDescriptors() 126 null /* nsUri */, in ValuesDescriptors() 130 null /* nsUri */, in ValuesDescriptors() 136 null /* nsUri */, in ValuesDescriptors() 155 null, // no child nodes in ValuesDescriptors() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/animator/ |
D | AnimatorDescriptors.java | 46 if (mDescriptor == null) { in getDescriptor() 59 if (nameToDescriptor == null) { in getElementDescriptor() 67 if (descriptor == null) { in getElementDescriptor() 74 if (styleMap == null) { in updateDescriptors() 87 "set", "Animator Set", "AnimatorSet", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() 88 null /* tooltip */, sdkUrl, in updateDescriptors() 89 xmlns, null, true /*mandatory*/); in updateDescriptors() 94 null /* tooltip */, sdkUrl, in updateDescriptors() 95 xmlns, null, true /*mandatory*/); in updateDescriptors() 98 "animator", "Animator", "Animator", null, //$NON-NLS-1$ //$NON-NLS-3$ in updateDescriptors() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
D | SimpleElement.java | 49 private IDragAttribute[] mCachedAttributes = null; 50 private IDragElement[] mCachedElements = null; 67 mBounds = bounds == null ? new Rect() : bounds.copy(); in SimpleElement() 68 mParentBounds = parentBounds == null ? new Rect() : parentBounds.copy(); in SimpleElement() 111 if (mCachedAttributes == null) { in getAttributes() 125 return null; in getAttribute() 130 if (mCachedElements == null) { in getInnerElements() 137 mCachedAttributes = null; in addAttribute() 142 mCachedElements = null; in addInnerElement() 148 if (mSelectionItem != null) { in isSame() [all …]
|
D | CanvasViewInfo.java | 184 if (mNodeSiblings == null || mNodeSiblings.size() == 0) { in getPrimaryNodeSibling() 185 return null; in getPrimaryNodeSibling() 236 if (info.mNodeSiblings != null) { in getUniqueChildren() 241 if (vi.mNodeSiblings == null) { in getUniqueChildren() 277 while (p != null) { in isParent() 316 if (mViewInfo != null) { in getBaseline() 333 if (mViewInfo != null) { in getMargins() 346 return null; in getMargins() 355 if (uiView != null) { in getEditableValue() 358 return null; in getEditableValue() [all …]
|
D | MoveGesture.java | 174 mLeaveTargetNode = null; in dragEnter() 175 mLeaveFeedback = null; in dragEnter() 176 mLeaveView = null; in dragEnter() 191 if (mCurrentDragElements == null) { in dragEnter() 201 if (mCurrentDragElements == null || in dragEnter() 203 mCurrentDragElements[0] == null || in dragEnter() 204 mCurrentDragElements[0].getFqcn() == null || in dragEnter() 286 if (mLeaveTargetNode != null) { in dropAccept() 292 if (mFeedback != null && mFeedback.invalidTarget) { in dropAccept() 297 if (mLeaveTargetNode == null || event.detail == DND.DROP_NONE) { in dropAccept() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/menu/descriptors/ |
D | MenuDescriptors.java | 40 private ElementDescriptor mDescriptor = null; 72 if (mDescriptor == null) { in updateDescriptors() 76 null, // TODO SDK URL in updateDescriptors() 77 null, // extraAttribute in updateDescriptors() 78 null, // childrenElements, in updateDescriptors() 87 null, // TODO SDK URL in updateDescriptors() 88 null, // extraAttribute in updateDescriptors() 89 null, // childrenElements, in updateDescriptors() 95 null, // TODO SDK URL in updateDescriptors() 96 null, // extraAttribute in updateDescriptors() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/ |
D | ResourceNameValidatorTest.java | 36 assertTrue(validator.isValid("foo") == null); in testValidator() 37 assertTrue(validator.isValid("foo.xml") == null); in testValidator() 38 assertTrue(validator.isValid("Foo123_$") == null); in testValidator() 39 assertTrue(validator.isValid("foo.xm") == null); // For non-file types, . => _ in testValidator() 42 assertTrue(validator.isValid("") != null); in testValidator() 43 assertTrue(validator.isValid(" ") != null); in testValidator() 44 assertTrue(validator.isValid("foo bar") != null); in testValidator() 45 assertTrue(validator.isValid("1foo") != null); in testValidator() 46 assertTrue(validator.isValid("foo%bar") != null); in testValidator() 48 ResourceType.STRING).isValid("foo") != null); in testValidator() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/uimodel/ |
D | UiElementNode.java | 153 mUiParent != null ? mUiParent.toString() : "none", //$NON-NLS-1$ in toString() 154 mUiChildren != null ? mUiChildren.size() : 0 in toString() 167 mXmlNode = null; in clearContent() 168 mXmlDocument = null; in clearContent() 169 mEditor = null; in clearContent() 171 mReadOnlyUiChildren = null; in clearContent() 172 if (mUiChildren == null) { in clearContent() 187 mUiAttributes = null; in clearAttributes() 188 mCachedAllUiAttributes = null; in clearAttributes() 189 mCachedHiddenAttributes = null; in clearAttributes() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/descriptors/ |
D | LayoutDescriptors.java | 62 new DocumentDescriptor("layout_doc", null); //$NON-NLS-1$ 110 if (mBaseViewDescriptor == null) { in getBaseViewDescriptor() 139 if (views != null) { in updateDescriptors() 152 if (layouts != null) { in updateDescriptors() 189 if (gestureView != null) { in updateDescriptors() 212 mBaseViewDescriptor = null; in updateDescriptors() 245 null, //nsUri in convertView() 248 null); // overrides in convertView() 253 null, // elementName in convertView() 256 null, // requiredAttributes in convertView() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/otherxml/descriptors/ |
D | OtherXmlDescriptors.java | 50 …private DocumentDescriptor mDescriptor = new DocumentDescriptor("xml_doc", null /* children */); /… 53 …private DocumentDescriptor mSearchDescriptor = new DocumentDescriptor("xml_doc", null /* children … 56 …private DocumentDescriptor mPrefDescriptor = new DocumentDescriptor("xml_doc", null /* children */… 59 …private DocumentDescriptor mAppWidgetDescriptor = new DocumentDescriptor("xml_doc", null /* childr… 152 if (searchable != null) { 156 if (appWidget != null) { 160 if (preferences != null) { 185 null, // sdk url 186 null, // extraAttribute 187 null, // childrenElements [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/resources/platform/ |
D | AttrsXmlParser.java | 90 this(osAttrsXmlPath, null /* inheritableAttributes */, log, expectedAttributeCount); in AttrsXmlParser() 126 assert osAttrsXmlPath != null; in AttrsXmlParser() local 127 assert log != null; in AttrsXmlParser() local 130 if (inheritableAttributes == null) { in AttrsXmlParser() 160 if (doc == null) { in preload() 167 while (res != null && in preload() 173 if (res == null) { in preload() 187 if (getDocument() != null) { in loadViewAttributes() 190 if (style != null) { in loadViewAttributes() 194 if (attribute.getDefinedBy() == null) { in loadViewAttributes() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/descriptors/ |
D | ElementDescriptor.java | 89 mTooltip = (tooltip != null && tooltip.length() > 0) ? tooltip : null; in ElementDescriptor() 90 mSdkUrl = (sdk_url != null && sdk_url.length() > 0) ? sdk_url : null; in ElementDescriptor() 91 setAttributes(attributes != null ? attributes : new AttributeDescriptor[]{}); in ElementDescriptor() 92 mChildren = children != null ? children : new ElementDescriptor[]{}; in ElementDescriptor() 117 mTooltip = (tooltip != null && tooltip.length() > 0) ? tooltip : null; in ElementDescriptor() 118 mSdkUrl = (sdk_url != null && sdk_url.length() > 0) ? sdk_url : null; in ElementDescriptor() 119 setAttributes(attributes != null ? attributes : new AttributeDescriptor[]{}); in ElementDescriptor() 120 mChildren = children != null ? children : new ElementDescriptor[]{}; in ElementDescriptor() 136 this(xml_name, prettyName(xml_name), null, null, null, children, mandatory); in ElementDescriptor() 148 this(xml_name, prettyName(xml_name), null, null, null, children, false); in ElementDescriptor() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/ |
D | NodeProxy.java | 84 if (bounds == null) { in NodeProxy() 100 if (view != null) { in getMargins() 102 if (margins != null) { in getMargins() 115 if (view != null) { in getBaseline() 143 if (mNode != null) { in getFqcn() 159 if (mNode != null) { in getRoot() 171 while (p != null && !(p instanceof UiViewElementNode)) { in getRoot() 183 return null; in getRoot() 188 if (mNode != null) { in getParent() 195 return null; in getParent() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newxmlfile/ |
D | NewXmlFileCreationPage.java | 103 if (visible && mFileNameTextField != null) { in setVisible() 228 return null; in getChild() 279 if (currentSdk != null) { 282 if (target != null && target.getVersion().getApiLevel() >= 8) { 310 return null; 317 null, // default root 318 null, // xmlns 319 null, // default attributes 326 null, // default root 328 null, // default attributes [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/refactorings/core/ |
D | RenameResourceXmlTextAction.java | 94 if (file == null) { in run() 98 if (project == null) { in run() 102 if (document == null) { in run() 106 if (selection == null) { in run() 112 if (resource == null) { in run() 116 if (resource != null) { in run() 122 RenameResourceWizard.renameResource(shell, project, type, name, null, canClear); in run() 127 if (className != null) { in run() 130 if (type != null) { in run() 164 else if (mEditor != null) in validateEditorInputState() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ |
D | NewProjectWizardState.java | 206 if (manifestData == null) { in extractFromAndroidManifest() 210 String newPackageName = null; in extractFromAndroidManifest() 211 Activity activity = null; in extractFromAndroidManifest() 212 String newActivityName = null; in extractFromAndroidManifest() 213 String minSdkVersion = null; in extractFromAndroidManifest() 220 if (activity == null) { in extractFromAndroidManifest() 222 if (activities != null && activities.length > 0) { in extractFromAndroidManifest() 230 if (newPackageName != null && newPackageName.length() > 0) { in extractFromAndroidManifest() 234 if (activity != null) { in extractFromAndroidManifest() 239 if (newActivityName != null && newActivityName.length() > 0) { in extractFromAndroidManifest() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/manifest/ |
D | ManifestInfoTest.java | 58 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, NORMAL))); in testGetActivityThemes1() 59 assertEquals("@android:style/Theme", info.getDefaultTheme(null, null)); in testGetActivityThemes1() 60 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, XLARGE))); in testGetActivityThemes1() 72 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null, in testGetActivityThemes2() 74 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, LARGE))); in testGetActivityThemes2() 86 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null, in testGetActivityThemes3() 88 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, NORMAL))); in testGetActivityThemes3() 113 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, XLARGE))); in testGetActivityThemes4() 145 assertEquals("@style/NoBackground", info.getDefaultTheme(null, XLARGE)); in testGetActivityThemes5() 146 assertEquals("@style/NoBackground", info.getDefaultTheme(null, NORMAL)); in testGetActivityThemes5() [all …]
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/common/ |
D | CommonXmlEditor.java | 94 private CommonXmlDelegate mDelegate = null; 114 String id = file_desc == null ? null : file_desc.getId(); in init() 115 boolean mustChange = id != null && in init() 121 mustChange = id != null && in init() 139 ResourceFolderType type = resFolder == null ? null : resFolder.getType(); in init() 141 if (type == null) { in init() 148 if (type != null) { in init() 151 if (mDelegate != null) { in init() 157 if (mDelegate == null) { in init() 175 } else if (type != null) { in init() [all …]
|