/aosp12/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/ |
H A D | RemoteLayoutlibCallback.java | 22 import com.android.ide.common.rendering.api.ResourceReference; 37 ResourceReference resolveResourceId(int id) throws RemoteException; in resolveResourceId() 39 int getOrGenerateResourceId(ResourceReference resource) throws RemoteException; in getOrGenerateResourceId() 43 Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue() 44 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue() 45 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue() 48 AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
|
H A D | RemoteRenderResources.java | 20 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()
|
H A D | RemoteActionBarCallback.java | 20 import com.android.ide.common.rendering.api.ResourceReference; 33 List<ResourceReference> getMenuIds() throws RemoteException; in getMenuIds()
|
H A D | RemoteSessionParams.java | 21 import com.android.ide.common.rendering.api.ResourceReference; 38 Map<ResourceReference, AdapterBinding> getAdapterBindings() throws RemoteException; in getAdapterBindings()
|
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
H A D | LayoutLibTestCallback.java | 24 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() 112 public ResourceReference resolveResourceId(int id) { in resolveResourceId() 117 public int getOrGenerateResourceId(@NonNull ResourceReference resource) { in getOrGenerateResourceId() 132 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue() 133 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue() 134 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue() [all …]
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | FakeExpandableAdapter.java | 22 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()
|
H A D | FakeAdapter.java | 22 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()
|
H A D | AdapterHelper.java | 23 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()
|
/aosp12/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/ |
H A D | RemoteLayoutlibCallbackAdapter.java | 22 import com.android.ide.common.rendering.api.ResourceReference; 59 public ResourceReference resolveResourceId(int id) { in resolveResourceId() 64 public int getOrGenerateResourceId(ResourceReference resource) { in getOrGenerateResourceId() 78 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue() 79 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue() 80 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue() 86 public AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
|
H A D | RemoteRenderResourcesAdapter.java | 19 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()
|
H A D | RemoteActionBarCallbackAdapter.java | 21 import com.android.ide.common.rendering.api.ResourceReference; 43 public List<ResourceReference> getMenuIds() { in getMenuIds()
|
H A D | RemoteSessionParamsAdapter.java | 21 import com.android.ide.common.rendering.api.ResourceReference; 62 public Map<ResourceReference, AdapterBinding> getAdapterBindings() { in getAdapterBindings()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeContext.java | 27 import com.android.ide.common.rendering.api.ResourceReference; 348 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles() 463 public ResourceReference resolveId(int id) { in resolveId() 465 ResourceReference resourceInfo = Bridge.resolveResourceId(id); in resolveId() 694 ResourceReference ref = resolveId(resId); in internalObtainStyledAttributes() 745 Map<ResourceReference, ResourceValue> defaultPropMap = null; in internalObtainStyledAttributes() 1105 private ResourceReference searchAttr(int attrId) { in searchAttr() 1106 ResourceReference attr = Bridge.resolveResourceId(attrId); in searchAttr() 1141 ResourceReference reference = Bridge.resolveResourceId(id); in getStyleByDynamicId() 2168 @NonNull private final ResourceReference reference; [all …]
|
/aosp12/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/ |
H A D | RemoteRenderResourcesAdapter.java | 21 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()
|
H A D | RemoteLayoutlibCallbackAdapter.java | 23 import com.android.ide.common.rendering.api.ResourceReference; 160 public ResourceReference resolveResourceId(int id) { in resolveResourceId() 169 public int getOrGenerateResourceId(ResourceReference resource) { in getOrGenerateResourceId() 187 public Object getAdapterItemValue(ResourceReference adapterView, Object adapterCookie, in getAdapterItemValue() 188 ResourceReference itemRef, int fullPosition, int positionPerType, in getAdapterItemValue() 189 int fullParentPosition, int parentPositionPerType, ResourceReference viewRef, in getAdapterItemValue() 195 public AdapterBinding getAdapterBinding(ResourceReference adapterViewRef, Object adapterCookie, in getAdapterBinding()
|
H A D | RemoteActionBarCallbackAdapter.java | 20 import com.android.ide.common.rendering.api.ResourceReference; 35 public List<ResourceReference> getMenuIds() { in getMenuIds()
|
/aosp12/frameworks/layoutlib/bridge/src/android/view/ |
H A D | BridgeInflater.java | 24 import com.android.ide.common.rendering.api.ResourceReference; 65 private static final ResourceReference RES_AUTO_INFLATER_CLASS_ATTR = 66 ResourceReference.attr(ResourceNamespace.RES_AUTO, INFLATER_CLASS_ATTR_NAME); 67 private static final ResourceReference LEGACY_APPCOMPAT_INFLATER_CLASS_ATTR = 69 private static final ResourceReference ANDROIDX_APPCOMPAT_INFLATER_CLASS_ATTR = 70 ResourceReference.attr(ResourceNamespace.APPCOMPAT, INFLATER_CLASS_ATTR_NAME); 78 private ResourceReference mResourceReference; 200 ResourceReference attrRef; in findCustomInflater() 363 ResourceReference layoutInfo = Bridge.resolveResourceId(resource); in inflate() 524 public void setResourceReference(ResourceReference reference) { in setResourceReference() [all …]
|
/aosp12/frameworks/layoutlib/bridge/tests/src/com/android/ide/common/resources/deprecated/ |
H A D | SingleResourceFile.java | 20 import com.android.ide.common.rendering.api.ResourceReference; 62 new ResourceReference( in SingleResourceFile() 70 new ResourceReference( in SingleResourceFile()
|
H A D | IdGeneratingResourceFile.java | 21 import com.android.ide.common.rendering.api.ResourceReference; 175 new ResourceReference( in getFileValue() 183 new ResourceReference( in getFileValue()
|
H A D | IdResourceParser.java | 21 import com.android.ide.common.rendering.api.ResourceReference; 107 new ResourceReference( in parse()
|
H A D | ValueResourceParser.java | 22 import com.android.ide.common.rendering.api.ResourceReference; 52 private static final ResourceReference TMP_REF = 53 new ResourceReference(ResourceNamespace.RES_AUTO, ResourceType.STRING, "_tmp");
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | AppCompatActionBar.java | 21 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()
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
H A D | BridgeRenderSession.java | 20 import com.android.ide.common.rendering.api.ResourceReference; 71 public Map<Object, Map<ResourceReference, ResourceValue>> getDefaultNamespacedProperties() { in getDefaultNamespacedProperties() 77 public Map<Object, ResourceReference> getDefaultNamespacedStyles() { in getDefaultNamespacedStyles()
|
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/ |
H A D | Resources_Delegate.java | 29 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 …]
|
H A D | Resources_Theme_Delegate.java | 19 import com.android.ide.common.rendering.api.ResourceReference; 144 ResourceReference theme = context.resolveId(nativeResid); in resolveStyle()
|