Home
last modified time | relevance | path

Searched refs:ResourceValue (Results 1 – 25 of 37) sorted by relevance

12

/sdk/sdk_common/src/com/android/ide/common/resources/
DResourceResolver.java28 import com.android.ide.common.rendering.api.ResourceValue;
38 private final Map<ResourceType, Map<String, ResourceValue>> mProjectResources;
39 private final Map<ResourceType, Map<String, ResourceValue>> mFrameworkResources;
52 Map<ResourceType, Map<String, ResourceValue>> projectResources, in ResourceResolver()
53 Map<ResourceType, Map<String, ResourceValue>> frameworkResources) { in ResourceResolver()
68 Map<ResourceType, Map<String, ResourceValue>> projectResources, in create()
69 Map<ResourceType, Map<String, ResourceValue>> frameworkResources, in create()
90 public Map<ResourceType, Map<String, ResourceValue>> getProjectResources() { in getProjectResources()
94 public Map<ResourceType, Map<String, ResourceValue>> getFrameworkResources() { in getFrameworkResources()
117 ResourceValue theme = null; in getTheme()
[all …]
DMultiResourceFile.java19 import com.android.ide.common.rendering.api.ResourceValue;
48 private final Map<ResourceType, Map<String, ResourceValue>> mResourceItems =
49 new EnumMap<ResourceType, Map<String, ResourceValue>>(ResourceType.class);
82 Map<ResourceType, Map<String, ResourceValue>> oldResourceItems in update()
83 = new EnumMap<ResourceType, Map<String, ResourceValue>>(mResourceItems); in update()
134 Map<String, ResourceValue> list = mResourceItems.get(type); in hasResources()
145 Map<String, ResourceValue> list = mResourceItems.get(type); in updateResourceItems()
148 Collection<ResourceValue> values = list.values(); in updateResourceItems()
149 for (ResourceValue res : values) { in updateResourceItems()
183 public void addResourceValue(ResourceValue value) { in addResourceValue()
[all …]
DInlineResourceItem.java19 import com.android.ide.common.rendering.api.ResourceValue;
35 private ResourceValue mValue = null;
56 public ResourceValue getResourceValue(ResourceType type, FolderConfiguration referenceConfig, in getResourceValue()
60 mValue = new ResourceValue(type, getName(), isFramework); in getResourceValue()
DIdGeneratingResourceFile.java20 import com.android.ide.common.rendering.api.ResourceValue;
42 private final Map<String, ResourceValue> mIdResources =
43 new HashMap<String, ResourceValue>();
51 private final ResourceValue mFileValue;
125 public ResourceValue getValue(ResourceType type, String name) { in getValue()
191 private ResourceValue getFileValue(IAbstractFile file, ResourceFolder folder) { in getFileValue()
195 ResourceValue value; in getFileValue()
197 value = new ResourceValue(mFileType, mFileName, in getFileValue()
226 public void addResourceValue(ResourceValue value) { in addResourceValue()
DSingleResourceFile.java20 import com.android.ide.common.rendering.api.ResourceValue;
46 private ResourceValue mValue;
63 mValue = new ResourceValue(mType, getResourceName(mType), in SingleResourceFile()
128 public ResourceValue getValue(ResourceType type, String name) { in getValue()
DResourceFile.java19 import com.android.ide.common.rendering.api.ResourceValue;
91 public abstract ResourceValue getValue(ResourceType type, String name); in getValue()
DIdResourceParser.java20 import com.android.ide.common.rendering.api.ResourceValue;
135 ResourceValue newId = new ResourceValue(ResourceType.ID, id, in parse()
DResourceRepository.java22 import com.android.ide.common.rendering.api.ResourceValue;
518 public Map<ResourceType, Map<String, ResourceValue>> getConfiguredResources( in getConfiguredResources()
531 protected final Map<ResourceType, Map<String, ResourceValue>> doGetConfiguredResources( in doGetConfiguredResources()
534 Map<ResourceType, Map<String, ResourceValue>> map = in doGetConfiguredResources()
535 new EnumMap<ResourceType, Map<String, ResourceValue>>(ResourceType.class); in doGetConfiguredResources()
652 private Map<String, ResourceValue> getConfiguredResource(@NonNull ResourceType type, in getConfiguredResource()
658 return new HashMap<String, ResourceValue>(); in getConfiguredResource()
662 HashMap<String, ResourceValue> map = new HashMap<String, ResourceValue>(items.size()); in getConfiguredResource()
665 ResourceValue value = item.getResourceValue(type, referenceConfig, in getConfiguredResource()
DValueResourceParser.java21 import com.android.ide.common.rendering.api.ResourceValue;
46 void addResourceValue(ResourceValue value); in addResourceValue()
52 private ResourceValue mCurrentValue = null;
121 mCurrentValue = new ResourceValue(type, name, mIsFramework); in startElement()
140 mCurrentValue = new ResourceValue(null, name, mIsFramework); in startElement()
DResourceItem.java19 import com.android.ide.common.rendering.api.ResourceValue;
108 public ResourceValue getResourceValue(ResourceType type, FolderConfiguration referenceConfig, in getResourceValue()
/sdk/layoutlib_api/src/com/android/ide/common/rendering/api/
DRenderResources.java77 public ResourceValue getFrameworkResource(ResourceType resourceType, String resourceName) { in getFrameworkResource()
86 public ResourceValue getProjectResource(ResourceType resourceType, String resourceName) { in getProjectResource()
100 public ResourceValue findItemInTheme(String itemName) { in findItemInTheme()
117 public ResourceValue findItemInTheme(String attrName, boolean isFrameworkAttr) { in findItemInTheme()
141 public ResourceValue findItemInStyle(StyleResourceValue style, String attrName) { in findItemInStyle()
154 public ResourceValue findItemInStyle(StyleResourceValue style, String attrName, in findItemInStyle()
179 public ResourceValue findResValue(String reference, boolean forceFrameworkOnly) { in findResValue()
200 public ResourceValue resolveValue(ResourceType type, String name, String value, in resolveValue()
218 public ResourceValue resolveResValue(ResourceValue value) { in resolveResValue()
DStyleResourceValue.java30 public final class StyleResourceValue extends ResourceValue implements IStyleResourceValue {
33 …private HashMap<Pair<String, Boolean>, ResourceValue> mItems = new HashMap<Pair<String, Boolean>,
60 public ResourceValue findValue(String name) { in findValue()
68 public ResourceValue findValue(String name, boolean isFrameworkAttr) { in findValue()
72 public void addValue(ResourceValue value, boolean isFrameworkAttr) { in addValue()
77 public void replaceWith(ResourceValue value) { in replaceWith()
DResourceValue.java26 public class ResourceValue extends ResourceReference implements IResourceValue { class
30 public ResourceValue(ResourceType type, String name, boolean isFramework) { in ResourceValue() method in ResourceValue
35 public ResourceValue(ResourceType type, String name, String value, boolean isFramework) { in ResourceValue() method in ResourceValue
75 public void replaceWith(ResourceValue value) { in replaceWith()
108 ResourceValue other = (ResourceValue) obj; in equals()
DDrawableParams.java27 private final ResourceValue mDrawable;
57 ResourceValue drawable, in DrawableParams()
75 public ResourceValue getDrawable() { in getDrawable()
DAttrResourceValue.java31 public class AttrResourceValue extends ResourceValue {
DDeclareStyleableResourceValue.java36 public class DeclareStyleableResourceValue extends ResourceValue {
DIProjectCallback.java112 ILayoutPullParser getParser(ResourceValue layoutResource); in getParser()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DProjectResources.java20 import com.android.ide.common.rendering.api.ResourceValue;
86 public Map<ResourceType, Map<String, ResourceValue>> getConfiguredResources( in getConfiguredResources()
89 Map<ResourceType, Map<String, ResourceValue>> resultMap = in getConfiguredResources()
90 new EnumMap<ResourceType, Map<String, ResourceValue>>(ResourceType.class); in getConfiguredResources()
112 Map<ResourceType, Map<String, ResourceValue>> libMap = in getConfiguredResources()
117 for (Entry<ResourceType, Map<String, ResourceValue>> libEntry : in getConfiguredResources()
121 Map<String, ResourceValue> tempMap = resultMap.get(libEntry.getKey()); in getConfiguredResources()
139 Map<ResourceType, Map<String, ResourceValue>> thisProjectMap = in getConfiguredResources()
143 for (Entry<ResourceType, Map<String, ResourceValue>> entry : thisProjectMap.entrySet()) { in getConfiguredResources()
145 Map<String, ResourceValue> typeMap = resultMap.get(type); in getConfiguredResources()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/
DConfigurationClient.java20 import com.android.ide.common.rendering.api.ResourceValue;
111 Map<ResourceType, Map<String, ResourceValue>> getConfiguredProjectResources(); in getConfiguredProjectResources()
120 Map<ResourceType, Map<String, ResourceValue>> getConfiguredFrameworkResources(); in getConfiguredFrameworkResources()
/sdk/layoutlib_api/sample/src/com/example/android/render/
DRenderServiceFactory.java24 import com.android.ide.common.rendering.api.ResourceValue;
176 Map<ResourceType, Map<String, ResourceValue>> configedProjectRes =
179 Map<ResourceType, Map<String, ResourceValue>> configedFrameworkRes =
281 Map<ResourceType, Map<String, ResourceValue>> res =
285 Map<String, ResourceValue> attrItems = res.get(ResourceType.ATTR);
286 for (ResourceValue value : attrItems.values()) {
297 Map<String, ResourceValue> styleableItems = res.get(ResourceType.DECLARE_STYLEABLE);
300 for (ResourceValue value : styleableItems.values()) {
DProjectCallback.java23 import com.android.ide.common.rendering.api.ResourceValue;
73 public ILayoutPullParser getParser(ResourceValue layoutResource) { in getParser()
DRenderService.java26 import com.android.ide.common.rendering.api.ResourceValue;
184 ResourceValue value = mResourceResolver.getProjectResource(ResourceType.LAYOUT, layoutName); in createRenderSession()
289 public BufferedImage renderDrawable(ResourceValue drawableResourceValue) {
/sdk/layoutlib_api/src/com/android/layoutlib/api/
DIResourceValue.java19 import com.android.ide.common.rendering.api.ResourceValue;
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/ui/
DResourcePreviewHelper.java21 import com.android.ide.common.rendering.api.ResourceValue;
129 ResourceValue value = resources.findResValue(resource, false); in updatePreview()
140 ResourceValue drawable = resources.findResValue(resource, false); in updatePreview()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/tests/functests/layoutRendering/
DApiDemosRenderingTest.java26 import com.android.ide.common.rendering.api.ResourceValue;
163 public ILayoutPullParser getParser(ResourceValue layoutResource) { in getParser()
225 Map<ResourceType, Map<String, ResourceValue>> configuredFramework = in testSample()
227 Map<ResourceType, Map<String, ResourceValue>> configuredProject = in testSample()

12