Home
last modified time | relevance | path

Searched refs:ResourceHelper (Results 1 – 18 of 18) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/resources/
DResourceHelperTest.java98 assertNull(ResourceHelper.getIcon(FakeQualifierClass.class)); in testGetIcon()
108 ResourceHelper.getIcon(qual.getClass())); in testGetIcon()
114 ResourceHelper.getResourceDeltaKind(IResourceDelta.ADDED)); in testGetResourceDeltaKind()
116 ResourceHelper.getResourceDeltaKind(IResourceDelta.REMOVED)); in testGetResourceDeltaKind()
118 ResourceHelper.getResourceDeltaKind(IResourceDelta.CHANGED)); in testGetResourceDeltaKind()
120 assertNull(ResourceHelper.getResourceDeltaKind(IResourceDelta.ADDED_PHANTOM)); in testGetResourceDeltaKind()
124 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.ANIMATOR)); in testIsFileBasedResourceType()
125 assertTrue(ResourceHelper.isFileBasedResourceType(ResourceType.LAYOUT)); in testIsFileBasedResourceType()
127 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.STRING)); in testIsFileBasedResourceType()
128 assertFalse(ResourceHelper.isFileBasedResourceType(ResourceType.DIMEN)); in testIsFileBasedResourceType()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/manifest/
DManifestInfoTest.java25 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
58 assertEquals("Theme", ResourceHelper.styleToTheme(info.getDefaultTheme(null, NORMAL))); 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()
147 assertEquals("NoBackground", ResourceHelper.styleToTheme(info.getDefaultTheme(null, in testGetActivityThemes5()
168 assertEquals("Theme.Holo", ResourceHelper.styleToTheme(info.getDefaultTheme(null, in testGetActivityThemes6()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DThemeMenuAction.java25 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
99 currentName = ResourceHelper.styleToTheme(currentTheme); in showThemeMenu()
112 ResourceHelper.styleToTheme(preferred), in showThemeMenu()
225 if (ResourceHelper.isProjectStyle(theme)) { in addMenuItems()
293 String title = ResourceHelper.styleToTheme(theme); in addMenuItem()
DActivityMenuListener.java23 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
106 String layoutName = ResourceHelper.getLayoutName(chooser.getEditedFile()); in show()
DConfiguration.java43 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
364 return ResourceHelper.isProjectStyle(theme); in isProjectTheme()
645 String themeName = ResourceHelper.styleToTheme(theme); in toPersistentString()
DConfigurationChooser.java61 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
440 theme = ResourceHelper.styleToTheme(theme); in getThemeName()
1223 theme = ResourceHelper.styleToTheme(theme); in getThemeLabel()
1979 String layoutName = ResourceHelper.getLayoutName(mEditedFile); in getPreferredActivity()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DAaptQuickFix.java28 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
127 if (ResourceHelper.canCreateResource(resource)) { in getResolutions()
188 if (ResourceHelper.canCreateResource(resource)) { in computeQuickAssistProposals()
369 ResourceHelper.createResource(mProject, type, name, value); in perform()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/
DResourceNameValidator.java209 boolean isFileType = ResourceHelper.isFileBasedResourceType(type); in create()
238 boolean isFileType = ResourceHelper.isFileBasedResourceType(type); in create()
DResourceHelper.java119 public class ResourceHelper { class
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java29 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
131 RGB color = ResourceHelper.resolveColor(resources, value); in updatePreview()
DResourceChooser.java35 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
491 if (ResourceHelper.isValueBasedResourceType(mResourceType)) { in createNewResButtons()
663 Pair<IFile, IRegion> resource = ResourceHelper.createResource(mProject, type, name, in createNewFile()
692 Pair<IFile, IRegion> resource = ResourceHelper.createResource(mProject, type, name, value); in createNewValue()
813 mNewButton.setEnabled(!isSystem && ResourceHelper.canCreateResourceType(mResourceType)); in updateNewButton()
DConfigurationSelector.java43 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
691 return ResourceHelper.getIcon(((ResourceQualifier)element).getClass()); in getColumnImage()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DResourceManager.java27 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
353 ResourceHelper.getResourceDeltaKind(kind), context); in updateFile()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DPreviewIconFactory.java44 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
457 return ResourceHelper.resolveColor(resources, textColor); in resolveThemeColor()
DRenderPreview.java51 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
654 ResourceHelper.styleToTheme(theme), in getResourceResolver()
655 ResourceHelper.isProjectStyle(theme)); in getResourceResolver()
DGraphicalEditorPart.java91 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
1708 return ResourceHelper.getLayoutName(mEditedFile); in getLayoutResourceName()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/properties/
DXmlPropertyEditor.java49 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
179 RGB rgb = ResourceHelper.resolveColor(resolver, resValue); in paint()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/
DHyperlinks.java65 import com.android.ide.eclipse.adt.internal.resources.ResourceHelper;
1255 boolean valueResource = ResourceHelper.isValueBasedResourceType(type); in getResourceLinks()