Home
last modified time | relevance | path

Searched refs:ResourceType (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DDynamicIdMap.java20 import com.android.resources.ResourceType;
30 …private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType
31 …private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<Resour…
53 public Integer getId(ResourceType type, String name) { in getId()
65 public Integer getId(Pair<ResourceType, String> resource) { in getId() argument
76 public Pair<ResourceType, String> resolveId(int id) { in resolveId()
/frameworks/base/libs/hwui/
DResourceCache.h37 enum ResourceType { enum
46 ResourceReference(ResourceType type) { in ResourceReference()
53 ResourceType resourceType;
101 void incrementRefcount(void* resource, ResourceType resourceType);
102 void incrementRefcountLocked(void* resource, ResourceType resourceType);
DResourceCache.cpp65 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) { in incrementRefcount()
82 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) { in incrementRefcountLocked()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java26 import com.android.resources.ResourceType;
48 private final Map<Integer, Pair<ResourceType, String>> mProjectResources = Maps.newHashMap();
50 private final Map<ResourceType, Map<String, Integer>> mResources = Maps.newHashMap();
63 final ResourceType resType = ResourceType.getEnum(resClass.getSimpleName()); in initResources()
140 public Pair<ResourceType, String> resolveResourceId(int id) { in resolveResourceId()
150 public Integer getResourceId(ResourceType type, String name) { in getResourceId()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridge.java35 import com.android.resources.ResourceType;
89 private final static Map<Integer, Pair<ResourceType, String>> sRMap =
90 new HashMap<Integer, Pair<ResourceType, String>>();
100 private final static Map<ResourceType, Map<String, Integer>> sRevRMap =
101 new EnumMap<ResourceType, Map<String,Integer>>(ResourceType.class);
254 ResourceType resType = ResourceType.getEnum(resTypeName); in init()
471 public static Pair<ResourceType, String> resolveResourceId(int value) { in resolveResourceId()
472 Pair<ResourceType, String> pair = sRMap.get(value); in resolveResourceId()
497 public static Integer getResourceId(ResourceType type, String name) { in getResourceId()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DBridgeInflater.java28 import com.android.resources.ResourceType;
162 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource); in inflate()
165 ResourceType.LAYOUT, layoutInfo.getSecond()); in inflate()
171 ResourceType.LAYOUT, layoutInfo.getSecond()); in inflate()
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
DResources_Theme_Delegate.java25 import com.android.resources.ResourceType;
151 .getFrameworkResource(ResourceType.STYLE, theme.getName()); in resolveStyle()
154 .getProjectResource(ResourceType.STYLE, theme.getName()); in resolveStyle()
DBridgeTypedArray.java30 import com.android.resources.ResourceType;
625 idValue = Bridge.getResourceId(ResourceType.ID, idName); in getResourceId()
627 idValue = mContext.getProjectCallback().getResourceId(ResourceType.ID, idName); in getResourceId()
634 return mContext.getFrameworkResourceValue(ResourceType.ID, idName, defValue); in getResourceId()
636 return mContext.getProjectResourceValue(ResourceType.ID, idName, defValue); in getResourceId()
812 ResourceValue attr = res.getProjectResource(ResourceType.ATTR, mNames[index]); in resolveEnumAttribute()
DBridgeResources.java29 import com.android.resources.ResourceType;
130 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in getResourceValue()
682 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in throwException()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DAppCompatActionBar.java26 import com.android.resources.ResourceType;
53 int contentRootId = context.getProjectResourceValue(ResourceType.ID, in AppCompatActionBar()
83 return context.getRenderResources().getProjectResource(ResourceType.LAYOUT, in getLayoutResource()
DFrameworkActionBarWrapper.java50 import static com.android.resources.ResourceType.MENU;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java33 import com.android.resources.ResourceType;
275 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid); in resolveThemeAttribute()
327 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id); in resolveId()
377 resValue = mRenderResources.getFrameworkResource(ResourceType.LAYOUT, in inflateView()
380 resValue = mRenderResources.getProjectResource(ResourceType.LAYOUT, in inflateView()
650 Pair<ResourceType, String> value = Bridge.resolveResourceId(defStyleRes); in obtainStyledAttributes()
657 if ((value.getFirst() == ResourceType.STYLE)) { in obtainStyledAttributes()
828 Pair<ResourceType, String> resolvedResource = Bridge.resolveResourceId(attr); in searchAttrs()
854 Pair<ResourceType, String> info = Bridge.resolveResourceId(attr); in searchAttr()
897 public int getFrameworkResourceValue(ResourceType resType, String resName, int defValue) { in getFrameworkResourceValue()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderDrawable.java27 import com.android.resources.ResourceType;
70 drawableResource.getResourceType() != ResourceType.DRAWABLE) { in render()
DRenderSessionImpl.java64 import com.android.resources.ResourceType;
667 ResourceType.ANIMATOR, animationName); in animate()
669 animationId = Bridge.getResourceId(ResourceType.ANIMATOR, animationName); in animate()
673 ResourceType.ANIMATOR, animationName); in animate()
676 ResourceType.ANIMATOR, animationName); in animate()
1071 ResourceValue value = resources.getFrameworkResource(ResourceType.DIMEN, in findStatusBar()
1176 ResourceValue value = resources.getFrameworkResource(ResourceType.DIMEN, in findNavigationBar()
1406 Pair<ResourceType, String> resource = projectCallback.resolveResourceId(id); in setupTabHost()
DRenderAction.java32 import com.android.resources.ResourceType;
386 public Integer getId(ResourceType resType, String resName) { in getId()
/frameworks/base/tools/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java26 import com.android.resources.ResourceType;
62 Integer v = Bridge.getResourceId(ResourceType.ATTR, name); in getAttributeNameResource()
73 Integer v = mContext.getProjectCallback().getResourceId(ResourceType.ATTR, name); in getAttributeNameResource()