Searched refs:ResourceType (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java19 import com.android.resources.ResourceType;
29 private final Map<Pair<ResourceType, String>, Integer> mDynamicIds = new HashMap<Pair<ResourceType, String>, Integer>();
30 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
51 public Integer getId(ResourceType type, String name) {
62 public Integer getId(Pair<ResourceType, String> resource) {
73 public Pair<ResourceType, String> resolveId(int id) {
/frameworks/base/libs/hwui/
H A DResourceCache.h38 enum ResourceType { enum in namespace:android::uirenderer
51 ResourceReference(ResourceType type) {
58 ResourceType resourceType;
119 void incrementRefcount(void* resource, ResourceType resourceType);
120 void incrementRefcountLocked(void* resource, ResourceType resourceType);
H A DResourceCache.cpp59 void ResourceCache::incrementRefcount(void* resource, ResourceType resourceType) {
92 void ResourceCache::incrementRefcountLocked(void* resource, ResourceType resourceType) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DStatusBar.java20 import com.android.resources.ResourceType;
H A DCustomBar.java29 import com.android.resources.ResourceType;
176 protected Drawable loadIcon(int index, ResourceType type, String name) {
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/
H A DBridge.java34 import com.android.resources.ResourceType;
87 private final static Map<Integer, Pair<ResourceType, String>> sRMap =
88 new HashMap<Integer, Pair<ResourceType, String>>();
98 private final static Map<ResourceType, Map<String, Integer>> sRevRMap =
99 new EnumMap<ResourceType, Map<String,Integer>>(ResourceType.class);
269 ResourceType resType = ResourceType.getEnum(resTypeName);
487 public static Pair<ResourceType, String> resolveResourceId(int value) {
488 Pair<ResourceType, Strin
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DBridgeInflater.java28 import com.android.resources.ResourceType;
162 Pair<ResourceType, String> layoutInfo = Bridge.resolveResourceId(resource);
165 ResourceType.LAYOUT, layoutInfo.getSecond());
171 ResourceType.LAYOUT, layoutInfo.getSecond());
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderDrawable.java27 import com.android.resources.ResourceType;
71 drawableResource.getResourceType() != ResourceType.DRAWABLE) {
H A DRenderAction.java32 import com.android.resources.ResourceType;
386 public Integer getId(ResourceType resType, String resName) {
H A DRenderSessionImpl.java52 import com.android.resources.ResourceType;
651 ResourceType.ANIMATOR, animationName);
653 animationId = Bridge.getResourceId(ResourceType.ANIMATOR, animationName);
657 ResourceType.ANIMATOR, animationName);
660 ResourceType.ANIMATOR, animationName);
1055 ResourceValue value = resources.getFrameworkResource(ResourceType.DIMEN,
1163 ResourceValue value = resources.getFrameworkResource(ResourceType.DIMEN,
1360 Pair<ResourceType, String> resource = projectCallback.resolveResourceId(id);
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java25 import com.android.resources.ResourceType;
61 Integer v = Bridge.getResourceId(ResourceType.ATTR, name);
72 Integer v = mContext.getProjectCallback().getResourceId(ResourceType.ATTR, name);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
H A DBridgeContext.java31 import com.android.resources.ResourceType;
255 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(resid);
303 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
348 resValue = mRenderResources.getFrameworkResource(ResourceType.LAYOUT,
351 resValue = mRenderResources.getProjectResource(ResourceType.LAYOUT,
600 Pair<ResourceType, String> value = Bridge.resolveResourceId(defStyleRes);
607 if (value.getFirst() == ResourceType.STYLE) {
773 Pair<ResourceType, String> resolvedResource = Bridge.resolveResourceId(attrs[i]);
799 Pair<ResourceType, String> info = Bridge.resolveResourceId(attr);
842 public int getFrameworkResourceValue(ResourceType resTyp
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/content/res/
H A DBridgeTypedArray.java31 import com.android.resources.ResourceType;
240 ResourceValue attr = res.getProjectResource(ResourceType.ATTR, mNames[index]);
726 return mContext.getFrameworkResourceValue(ResourceType.ID, idName, defValue);
730 return mContext.getProjectResourceValue(ResourceType.ID, idName, defValue);
H A DBridgeResources.java29 import com.android.resources.ResourceType;
129 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);
676 Pair<ResourceType, String> resourceInfo = Bridge.resolveResourceId(id);

Completed in 334 milliseconds