/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | DynamicIdMap.java | 20 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/ |
D | ResourceCache.h | 37 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);
|
D | ResourceCache.cpp | 65 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/ |
D | LayoutLibTestCallback.java | 26 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/ |
D | Bridge.java | 35 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/ |
D | BridgeInflater.java | 28 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/ |
D | Resources_Theme_Delegate.java | 25 import com.android.resources.ResourceType; 151 .getFrameworkResource(ResourceType.STYLE, theme.getName()); in resolveStyle() 154 .getProjectResource(ResourceType.STYLE, theme.getName()); in resolveStyle()
|
D | BridgeTypedArray.java | 30 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()
|
D | BridgeResources.java | 29 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/ |
D | AppCompatActionBar.java | 26 import com.android.resources.ResourceType; 53 int contentRootId = context.getProjectResourceValue(ResourceType.ID, in AppCompatActionBar() 83 return context.getRenderResources().getProjectResource(ResourceType.LAYOUT, in getLayoutResource()
|
D | FrameworkActionBarWrapper.java | 50 import static com.android.resources.ResourceType.MENU;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContext.java | 33 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/ |
D | RenderDrawable.java | 27 import com.android.resources.ResourceType; 70 drawableResource.getResourceType() != ResourceType.DRAWABLE) { in render()
|
D | RenderSessionImpl.java | 64 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()
|
D | RenderAction.java | 32 import com.android.resources.ResourceType; 386 public Integer getId(ResourceType resType, String resName) { in getId()
|
/frameworks/base/tools/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 26 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()
|