Home
last modified time | relevance | path

Searched refs:RemoteResourceValue (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteRenderResourcesAdapter.java23 import com.android.layout.remote.api.RemoteResourceValue;
47 public RemoteResourceValue<StyleResourceValue> getDefaultTheme() { in getDefaultTheme()
48 return RemoteResourceValue.fromResourceValue(mDelegate.getDefaultTheme()); in getDefaultTheme()
52 public void applyStyle(RemoteResourceValue<StyleResourceValue> theme, boolean useAsPrimary) { in applyStyle()
62 public List<RemoteResourceValue<StyleResourceValue>> getAllThemes() { in getAllThemes()
64 RemoteResourceValue::fromResourceValue).collect(Collectors.toList()); in getAllThemes()
69 public RemoteResourceValue<ResourceValue> getResolvedResource( in getResolvedResource()
71 return RemoteResourceValue.fromResourceValue(mDelegate.getResolvedResource(reference)); in getResolvedResource()
75 public RemoteResourceValue<ResourceValue> findItemInTheme(ResourceReference attr) { in findItemInTheme()
76 return RemoteResourceValue.fromResourceValue(mDelegate.findItemInTheme(attr)); in findItemInTheme()
[all …]
/frameworks/layoutlib/remote/common/src/com/android/layout/remote/api/
DRemoteRenderResources.java34 RemoteResourceValue<StyleResourceValue> getDefaultTheme() throws RemoteException; in getDefaultTheme()
36 …void applyStyle(RemoteResourceValue<StyleResourceValue> theme, boolean useAsPrimary) throws Remote… in applyStyle()
40 List<RemoteResourceValue<StyleResourceValue>> getAllThemes() throws RemoteException; in getAllThemes()
43RemoteResourceValue<ResourceValue> getResolvedResource(@NotNull ResourceReference reference) throw… in getResolvedResource()
45RemoteResourceValue<ResourceValue> findItemInTheme(ResourceReference attr) throws RemoteException; in findItemInTheme()
47RemoteResourceValue<ResourceValue> findItemInStyle(RemoteResourceValue<StyleResourceValue> style, in findItemInStyle()
51RemoteResourceValue<ResourceValue> resolveValue(RemoteResourceValue<ResourceValue> value) throws R… in resolveValue()
53RemoteResourceValue<StyleResourceValue> getParent(RemoteResourceValue<StyleResourceValue> style) t… in getParent()
56RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) throws Remo… in getStyle()
58RemoteResourceValue<ResourceValue> dereference(RemoteResourceValue<ResourceValue> resourceValue) t… in dereference()
[all …]
DRemoteResourceValue.java33 public class RemoteResourceValue<T extends ResourceValue> implements Serializable { class
34 private static final RemoteResourceValue<ResourceValue> NULL_INSTANCE =
35 new RemoteResourceValue<>(null, null);
40 private RemoteResourceValue(@Nullable T resourceValue, in RemoteResourceValue() method in RemoteResourceValue
51 public static <T extends ResourceValue> RemoteResourceValue<T> fromResourceValue( in fromResourceValue()
55 return (RemoteResourceValue<T>) NULL_INSTANCE; in fromResourceValue()
58 return new RemoteResourceValue<>(resourceValue, in fromResourceValue()
71 @NotNull RemoteResourceValue<T> remoteResourceValue) { in toResourceValue()
115 return RemoteResourceValue.toResourceValue(this); in toResourceValue()
/frameworks/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteRenderResourcesAdapter.java25 import com.android.layout.remote.api.RemoteResourceValue;
56 mDelegate.applyStyle(RemoteResourceValue.fromResourceValue(theme), useAsPrimary); in applyStyle()
75 .map(RemoteResourceValue::toResourceValue) in getAllThemes()
94 return mDelegate.findItemInStyle(RemoteResourceValue.fromResourceValue(style), attr) in findItemInStyle()
104 return mDelegate.dereference(RemoteResourceValue.fromResourceValue(resourceValue)) in dereference()
124 return mDelegate.resolveValue(RemoteResourceValue.fromResourceValue(value)) in resolveResValue()
134 return mDelegate.getParent(RemoteResourceValue.fromResourceValue(style)) in getParent()