Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteLayoutlibCallback.java22 import com.android.ide.common.rendering.api.ResourceReference;
43 ResourceReference resolveResourceId(int id) throws RemoteException; in resolveResourceId()
45 int getOrGenerateResourceId(ResourceReference resource) throws RemoteException; in getOrGenerateResourceId()
49 Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue()
50 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue()
51 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue()
54 AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
DRemoteRenderResources.java20 import com.android.ide.common.rendering.api.ResourceReference;
43 …RemoteResourceValue<ResourceValue> getResolvedResource(@NotNull ResourceReference reference) throw… in getResolvedResource()
45 … RemoteResourceValue<ResourceValue> findItemInTheme(ResourceReference attr) throws RemoteException; in findItemInTheme()
48 ResourceReference attr) in findItemInStyle()
56 …RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) throws Remo… in getStyle()
60 …RemoteResourceValue<ResourceValue> getUnresolvedResource(ResourceReference reference) throws Remot… in getUnresolvedResource()
DRemoteActionBarCallback.java20 import com.android.ide.common.rendering.api.ResourceReference;
33 List<ResourceReference> getMenuIds() throws RemoteException; in getMenuIds()
DRemoteSessionParams.java21 import com.android.ide.common.rendering.api.ResourceReference;
38 Map<ResourceReference, AdapterBinding> getAdapterBindings() throws RemoteException; in getAdapterBindings()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java24 import com.android.ide.common.rendering.api.ResourceReference;
57 private final Map<Integer, ResourceReference> mProjectResources = new HashMap<>();
58 private final Map<ResourceReference, Integer> mResources = new HashMap<>();
85 ResourceReference reference = in initResources()
86 new ResourceReference(RES_AUTO, resType, field.getName()); in initResources()
119 public ResourceReference resolveResourceId(int id) { in resolveResourceId()
124 public int getOrGenerateResourceId(@NonNull ResourceReference resource) { in getOrGenerateResourceId()
139 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue()
140 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue()
141 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
DFakeExpandableAdapter.java22 import com.android.ide.common.rendering.api.ResourceReference;
38 private final ResourceReference mAdapterRef;
44 private final List<ResourceReference> mGroupTypes = new ArrayList<ResourceReference>();
45 private final List<ResourceReference> mChildrenTypes = new ArrayList<ResourceReference>();
47 public FakeExpandableAdapter(ResourceReference adapterRef, AdapterBinding binding, in FakeExpandableAdapter()
56 final int repeatCount, List<ResourceReference> types, int depth) { in createItems()
65 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;
43 LayoutlibCallback callback, ResourceReference adapterRef, boolean skipCallbackParser) { in getView()
68 AdapterItem parentItem, LayoutlibCallback callback, ResourceReference adapterRef) { in fillView()
78 ResourceReference resolvedRef = context.resolveId(id); in fillView()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteLayoutlibCallbackAdapter.java22 import com.android.ide.common.rendering.api.ResourceReference;
69 public ResourceReference resolveResourceId(int id) { in resolveResourceId()
74 public int getOrGenerateResourceId(ResourceReference resource) { in getOrGenerateResourceId()
88 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue()
89 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue()
90 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue()
96 public AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
DRemoteRenderResourcesAdapter.java19 import com.android.ide.common.rendering.api.ResourceReference;
70 @NotNull ResourceReference reference) { in getResolvedResource()
75 public RemoteResourceValue<ResourceValue> findItemInTheme(ResourceReference attr) { in findItemInTheme()
81 RemoteResourceValue<StyleResourceValue> style, ResourceReference attr) { in findItemInStyle()
101 public RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) { in getStyle()
113 public RemoteResourceValue<ResourceValue> getUnresolvedResource(ResourceReference reference) { in getUnresolvedResource()
DRemoteActionBarCallbackAdapter.java21 import com.android.ide.common.rendering.api.ResourceReference;
43 public List<ResourceReference> getMenuIds() { in getMenuIds()
DRemoteSessionParamsAdapter.java21 import com.android.ide.common.rendering.api.ResourceReference;
62 public Map<ResourceReference, AdapterBinding> getAdapterBindings() { in getAdapterBindings()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java27 import com.android.ide.common.rendering.api.ResourceReference;
166 private final Map<Object, Map<ResourceReference, ResourceValue>> mDefaultPropMaps =
168 private final Map<Object, ResourceReference> mDefaultStyleMap = new IdentityHashMap<>();
322 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultProperties() { in getDefaultProperties()
326 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
375 ResourceReference resourceInfo = Bridge.resolveResourceId(resId); in resolveThemeAttribute()
425 public ResourceReference resolveId(int id) { in resolveId()
427 ResourceReference resourceInfo = Bridge.resolveResourceId(id); in resolveId()
445 public Pair<View, Boolean> inflateView(ResourceReference layout, ViewGroup parent, in inflateView()
642 ResourceReference ref = resolveId(resId); in internalObtainStyledAttributes()
[all …]
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteRenderResourcesAdapter.java21 import com.android.ide.common.rendering.api.ResourceReference;
83 public ResourceValue findItemInTheme(ResourceReference attr) { in findItemInTheme()
92 public ResourceValue findItemInStyle(StyleResourceValue style, ResourceReference attr) { in findItemInStyle()
113 public ResourceValue getUnresolvedResource(ResourceReference reference) { in getUnresolvedResource()
142 public StyleResourceValue getStyle(ResourceReference reference) { in getStyle()
DRemoteLayoutlibCallbackAdapter.java23 import com.android.ide.common.rendering.api.ResourceReference;
169 public ResourceReference resolveResourceId(int id) { in resolveResourceId()
178 public int getOrGenerateResourceId(ResourceReference resource) { in getOrGenerateResourceId()
196 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue()
197 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue()
198 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue()
204 public AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
DRemoteActionBarCallbackAdapter.java20 import com.android.ide.common.rendering.api.ResourceReference;
35 public List<ResourceReference> getMenuIds() { in getMenuIds()
/frameworks/layoutlib/bridge/src/android/view/
DBridgeInflater.java24 import com.android.ide.common.rendering.api.ResourceReference;
67 private static final ResourceReference RES_AUTO_INFLATER_CLASS_ATTR =
68 ResourceReference.attr(ResourceNamespace.RES_AUTO, INFLATER_CLASS_ATTR_NAME);
69 private static final ResourceReference LEGACY_APPCOMPAT_INFLATER_CLASS_ATTR =
70 ResourceReference.attr(ResourceNamespace.APPCOMPAT_LEGACY, INFLATER_CLASS_ATTR_NAME);
71 private static final ResourceReference ANDROIDX_APPCOMPAT_INFLATER_CLASS_ATTR =
72 ResourceReference.attr(ResourceNamespace.APPCOMPAT, INFLATER_CLASS_ATTR_NAME);
80 private ResourceReference mResourceReference;
202 ResourceReference attrRef; in findCustomInflater()
364 ResourceReference layoutInfo = Bridge.resolveResourceId(resource); in inflate()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/
DBridgeRenderSession.java20 import com.android.ide.common.rendering.api.ResourceReference;
76 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultNamespacedProperties() { in getDefaultNamespacedProperties()
87 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java29 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()
540 ResourceReference reference = context.resolveId(id); in obtainTypedArray()
557 ResourceReference elementRef = in obtainTypedArray()
734 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourceEntryName()
744 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourceName()
756 ResourceReference resourceInfo = getResourceInfo(resources, resid); in getResourcePackageName()
766 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;
615 ResourceReference referencedId = in getResourceId()
633 ResourceReference referencedId = in getResourceId()
922 ResourceReference.attr(mNamespaces[index], mNames[index])); in resolveEnumAttribute()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DAppCompatActionBar.java21 import com.android.ide.common.rendering.api.ResourceReference;
65 ResourceReference resource = context.createAppCompatResourceReference( in AppCompatActionBar()
180 List<ResourceReference> menuIds = getCallBack().getMenuIds(); in inflateMenus()
193 ResourceReference menuId = menuIds.get(0); in inflateMenus()
/frameworks/layoutlib/bridge/src/android/util/
DBridgeXmlPullAttributes.java20 import com.android.ide.common.rendering.api.ResourceReference;
80 ResourceReference.attr(ns, attrName)); in BridgeXmlPullAttributes()
114 ResourceReference.attr(namespace, name)); in getAttributeNameResource()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DSessionParamsBuilder.java25 import com.android.ide.common.rendering.api.ResourceReference;
176 new ResourceReference( in build()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java25 import com.android.ide.common.rendering.api.ResourceReference;
644 ResourceReference listRef = context.resolveId(id); in postInflateProcess()
868 ResourceReference resource = layoutlibCallback.resolveResourceId(id); in setupTabHost()
1117 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultNamespacedProperties() { in getDefaultNamespacedProperties()
1123 Map<Object, ResourceReference> namespacedStyles = getDefaultNamespacedStyles(); in getDefaultStyles()
1125 ResourceReference style = namespacedStyles.get(key); in getDefaultStyles()
1131 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()

12