Home
last modified time | relevance | path

Searched refs:ResourceReference (Results 1 – 24 of 24) sorted by relevance

/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutlibBridgeClientCallback.java23 import com.android.ide.common.rendering.api.ResourceReference;
52 private final Map<Integer, ResourceReference> mProjectResources = new HashMap<>();
53 private final Map<ResourceReference, Integer> mResources = new HashMap<>();
81 ResourceReference reference = in initResources()
82 new ResourceReference(RES_AUTO, resType, field.getName()); in initResources()
108 public ResourceReference resolveResourceId(int id) { in resolveResourceId()
113 public int getOrGenerateResourceId(@NonNull ResourceReference resource) { in getOrGenerateResourceId()
128 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue()
129 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue()
130 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java22 import com.android.ide.common.rendering.api.ResourceReference;
37 private final ResourceReference mAdapterRef;
43 private final List<ResourceReference> mGroupTypes = new ArrayList<ResourceReference>();
44 private final List<ResourceReference> mChildrenTypes = new ArrayList<ResourceReference>();
46 public FakeExpandableAdapter(ResourceReference adapterRef, AdapterBinding binding, in FakeExpandableAdapter()
55 final int repeatCount, List<ResourceReference> types, int depth) { in createItems()
64 ResourceReference viewRef = dataBindingItem.getViewReference(); in createItems()
DFakeAdapter.java22 import com.android.ide.common.rendering.api.ResourceReference;
43 private final List<ResourceReference> mTypes = new ArrayList<ResourceReference>();
45 private final ResourceReference mAdapterRef;
49 public FakeAdapter(ResourceReference adapterRef, AdapterBinding binding, in FakeAdapter()
65 ResourceReference viewRef = dataBindingItem.getViewReference(); in FakeAdapter()
DAdapterHelper.java23 import com.android.ide.common.rendering.api.ResourceReference;
42 LayoutlibCallback callback, ResourceReference adapterRef, boolean skipCallbackParser) { in getView()
67 AdapterItem parentItem, LayoutlibCallback callback, ResourceReference adapterRef) { in fillView()
77 ResourceReference resolvedRef = context.resolveId(id); in fillView()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java27 import com.android.ide.common.rendering.api.ResourceReference;
194 private final Map<Object, Map<ResourceReference, ResourceValue>> mDefaultPropMaps =
196 private final Map<Object, ResourceReference> mDefaultStyleMap = new IdentityHashMap<>();
367 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultProperties() { in getDefaultProperties()
371 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
423 ResourceReference resourceInfo = Bridge.resolveResourceId(resId); in resolveThemeAttribute()
501 public ResourceReference resolveId(int id) { in resolveId()
503 ResourceReference resourceInfo = Bridge.resolveResourceId(id); in resolveId()
521 public Pair<View, Boolean> inflateView(ResourceReference layout, ViewGroup parent, in inflateView()
769 ResourceReference ref = resolveId(resId); in internalObtainStyledAttributes()
[all …]
DDynamicRenderResources.java21 import com.android.ide.common.rendering.api.ResourceReference;
81 public ResourceValue findItemInTheme(ResourceReference attr) { in findItemInTheme()
87 public ResourceValue findItemInStyle(StyleResourceValue style, ResourceReference attr) { in findItemInStyle()
105 public ResourceValue getUnresolvedResource(ResourceReference reference) { in getUnresolvedResource()
111 public ResourceValue getResolvedResource(ResourceReference reference) { in getResolvedResource()
128 public StyleResourceValue getStyle(ResourceReference reference) { in getStyle()
/frameworks/layoutlib/bridge/src/android/view/
DBridgeInflater.java25 import com.android.ide.common.rendering.api.ResourceReference;
74 private static final ResourceReference RES_AUTO_INFLATER_CLASS_ATTR =
75 ResourceReference.attr(ResourceNamespace.RES_AUTO, INFLATER_CLASS_ATTR_NAME);
76 private static final ResourceReference LEGACY_APPCOMPAT_INFLATER_CLASS_ATTR =
77 ResourceReference.attr(ResourceNamespace.APPCOMPAT_LEGACY, INFLATER_CLASS_ATTR_NAME);
78 private static final ResourceReference ANDROIDX_APPCOMPAT_INFLATER_CLASS_ATTR =
79 ResourceReference.attr(ResourceNamespace.APPCOMPAT, INFLATER_CLASS_ATTR_NAME);
87 private ResourceReference mResourceReference;
209 ResourceReference attrRef; in findCustomInflater()
375 ResourceReference layoutInfo = Bridge.resolveResourceId(resource); in inflate()
[all …]
/frameworks/layoutlib/bridge/bridge_client/src/com/android/ide/common/resources/deprecated/
DSingleResourceFile.java20 import com.android.ide.common.rendering.api.ResourceReference;
62 new ResourceReference( in SingleResourceFile()
70 new ResourceReference( in SingleResourceFile()
DIdGeneratingResourceFile.java21 import com.android.ide.common.rendering.api.ResourceReference;
175 new ResourceReference( in getFileValue()
183 new ResourceReference( in getFileValue()
DIdResourceParser.java21 import com.android.ide.common.rendering.api.ResourceReference;
107 new ResourceReference( in parse()
DValueResourceParser.java22 import com.android.ide.common.rendering.api.ResourceReference;
52 private static final ResourceReference TMP_REF =
53 new ResourceReference(ResourceNamespace.RES_AUTO, ResourceType.STRING, "_tmp");
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DAppCompatActionBar.java21 import com.android.ide.common.rendering.api.ResourceReference;
67 ResourceReference resource = context.createAppCompatResourceReference( in AppCompatActionBar()
74 ResourceReference parentResource = context.createAppCompatResourceReference( in AppCompatActionBar()
196 List<ResourceReference> menuIds = getCallBack().getMenuIds(); in inflateMenus()
209 ResourceReference menuId = menuIds.get(0); in inflateMenus()
DFrameworkActionBarWrapper.java21 import com.android.ide.common.rendering.api.ResourceReference;
126 for (ResourceReference menuId : mCallback.getMenuIds()) { in inflateMenus()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java27 import com.android.ide.common.rendering.api.ResourceReference;
131 private static ResourceReference getResourceInfo(Resources resources, int id) { in getResourceInfo()
133 ResourceReference resourceInfo = Bridge.resolveResourceId(id); in getResourceInfo()
152 ResourceReference resourceInfo = getResourceInfo(resources, id); in getResourceValue()
548 ResourceReference reference = context.resolveId(id); in obtainTypedArray()
565 ResourceReference elementRef = in obtainTypedArray()
742 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourceEntryName()
752 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourceName()
764 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourcePackageName()
774 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourceTypeName()
[all …]
DResources_Theme_Delegate.java19 import com.android.ide.common.rendering.api.ResourceReference;
144 ResourceReference theme = context.resolveId(nativeResid); in resolveStyle()
DBridgeTypedArray.java25 import com.android.ide.common.rendering.api.ResourceReference;
639 ResourceReference referencedId = in getResourceId()
657 ResourceReference referencedId = in getResourceId()
898 ResourceReference.attr(mNamespaces[index], mNames[index])); in resolveEnumAttribute()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java22 import com.android.ide.common.rendering.api.ResourceReference;
82 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultNamespacedProperties() { in getDefaultNamespacedProperties()
88 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
DBridge.java23 import com.android.ide.common.rendering.api.ResourceReference;
617 public static ResourceReference resolveResourceId(int value) { in resolveResourceId()
624 return new ResourceReference(ResourceNamespace.ANDROID, pair.first, pair.second); in resolveResourceId()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java20 import com.android.ide.common.rendering.api.ResourceReference;
80 ResourceReference.attr(ns, attrName)); in BridgeXmlPullAttributes()
111 ResourceReference.attr(namespace, name)); in getAttributeNameResource()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/util/
DSessionParamsBuilder.java25 import com.android.ide.common.rendering.api.ResourceReference;
205 new ResourceReference( in build()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java24 import com.android.ide.common.rendering.api.ResourceReference;
849 ResourceReference resource = layoutlibCallback.resolveResourceId(id); in setupTabHost()
1111 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultNamespacedProperties() { in getDefaultNamespacedProperties()
1117 Map<Object, ResourceReference> namespacedStyles = getDefaultNamespacedStyles(); in getDefaultStyles()
1119 ResourceReference style = namespacedStyles.get(key); in getDefaultStyles()
1125 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
DLayout.java21 import com.android.ide.common.rendering.api.ResourceReference;
576 private int getDimension(@NonNull ResourceReference attrRef, int defaultValue) { in getDimension()
DResourceHelper.java26 import com.android.ide.common.rendering.api.ResourceReference;
519 @NonNull ResourceReference attr, boolean defaultValue) { in getBooleanThemeValue()
538 ResourceReference attrRef = BridgeContext.createFrameworkAttrReference(name); in getBooleanThemeFrameworkAttrValue()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTests.java21 import com.android.ide.common.rendering.api.ResourceReference;
852 new ResourceReference(ResourceNamespace.RES_AUTO, ResourceType.STRING, "app_name")); in testGetResourceNameVariants()
892 new ResourceReference( in testStringEscaping()
1108 new ResourceReference( in testResourcesGetIdentifier()