Searched refs:RemoteResourceValue (Results 1 – 4 of 4) sorted by relevance
23 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 …]
34 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()43 …RemoteResourceValue<ResourceValue> getResolvedResource(@NotNull ResourceReference reference) throw… in getResolvedResource()45 … RemoteResourceValue<ResourceValue> findItemInTheme(ResourceReference attr) throws RemoteException; in findItemInTheme()47 … RemoteResourceValue<ResourceValue> findItemInStyle(RemoteResourceValue<StyleResourceValue> style, in findItemInStyle()51 …RemoteResourceValue<ResourceValue> resolveValue(RemoteResourceValue<ResourceValue> value) throws R… in resolveValue()53 …RemoteResourceValue<StyleResourceValue> getParent(RemoteResourceValue<StyleResourceValue> style) t… in getParent()56 …RemoteResourceValue<StyleResourceValue> getStyle(@NotNull ResourceReference reference) throws Remo… in getStyle()58 …RemoteResourceValue<ResourceValue> dereference(RemoteResourceValue<ResourceValue> resourceValue) t… in dereference()[all …]
33 public class RemoteResourceValue<T extends ResourceValue> implements Serializable { class34 private static final RemoteResourceValue<ResourceValue> NULL_INSTANCE =35 new RemoteResourceValue<>(null, null);40 private RemoteResourceValue(@Nullable T resourceValue, in RemoteResourceValue() method in RemoteResourceValue51 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()
25 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()