Home
last modified time | relevance | path

Searched refs:SerializeOptions (Results 1 – 7 of 7) sorted by relevance

/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceXmlTest.java64 .SerializeOptions()); in testThrowForAction()
74 .SerializeOptions()); in testThrowForRemoteInput()
84 .SerializeOptions()); in testThrowForImage()
94 .SerializeOptions().setActionMode(SliceUtils.SerializeOptions.MODE_REMOVE)); in testNoThrowForAction()
104 .SerializeOptions().setActionMode(SliceUtils.SerializeOptions.MODE_REMOVE)); in testNoThrowForRemoteInput()
114 .SerializeOptions().setImageMode(SliceUtils.SerializeOptions.MODE_REMOVE)); in testNoThrowForImage()
140 new SliceUtils.SerializeOptions() in testSerialization()
141 .setImageMode(SliceUtils.SerializeOptions.MODE_CONVERT) in testSerialization()
142 .setActionMode(SliceUtils.SerializeOptions.MODE_CONVERT)); in testSerialization()
/frameworks/support/slices/view/src/main/java/androidx/slice/
DSliceUtils.java76 @NonNull SerializeOptions options) throws IOException, IllegalArgumentException { in serializeSlice()
101 public static class SerializeOptions { class in SliceUtils
188 public SerializeOptions setActionMode(@FormatMode int mode) { in setActionMode()
199 public SerializeOptions setImageMode(@FormatMode int mode) { in setImageMode()
211 public SerializeOptions setMaxImageWidth(int width) { in setMaxImageWidth()
223 public SerializeOptions setMaxImageHeight(int height) { in setMaxImageHeight()
DSliceXml.java217 String encoding, SliceUtils.SerializeOptions options) throws IOException { in serializeSlice()
232 private static void serialize(Slice s, Context context, SliceUtils.SerializeOptions options, in serialize()
251 SliceUtils.SerializeOptions options, XmlSerializer serializer) throws IOException { in serialize()
266 if (options.getActionMode() == SliceUtils.SerializeOptions.MODE_CONVERT) { in serialize()
269 } else if (options.getActionMode() == SliceUtils.SerializeOptions.MODE_THROW) { in serialize()
277 if (options.getImageMode() == SliceUtils.SerializeOptions.MODE_CONVERT) { in serialize()
296 } else if (options.getImageMode() == SliceUtils.SerializeOptions.MODE_THROW) { in serialize()
355 Context context, SliceUtils.SerializeOptions options) throws IOException { in serializeIcon()
/frameworks/support/slices/view/api_legacy/
Dcurrent.txt23 …, java.io.OutputStream, java.lang.String, androidx.slice.SliceUtils.SerializeOptions) throws java.…
29 public static class SliceUtils.SerializeOptions {
30 ctor public SliceUtils.SerializeOptions();
31 method public androidx.slice.SliceUtils.SerializeOptions setActionMode(int);
32 method public androidx.slice.SliceUtils.SerializeOptions setImageMode(int);
D28.0.0-alpha1.txt23 …va.io.OutputStream, java.lang.String, androidx.app.slice.SliceUtils.SerializeOptions) throws java.…
29 public static class SliceUtils.SerializeOptions {
30 ctor public SliceUtils.SerializeOptions();
31 method public androidx.app.slice.SliceUtils.SerializeOptions setActionMode(int);
32 method public androidx.app.slice.SliceUtils.SerializeOptions setImageMode(int);
/frameworks/support/slices/view/api/
Dcurrent.txt50 …, java.io.OutputStream, java.lang.String, androidx.slice.SliceUtils.SerializeOptions) throws java.…
56 public static class SliceUtils.SerializeOptions {
57 ctor public SliceUtils.SerializeOptions();
58 method public androidx.slice.SliceUtils.SerializeOptions setActionMode(int);
59 method public androidx.slice.SliceUtils.SerializeOptions setImageMode(int);
60 method public androidx.slice.SliceUtils.SerializeOptions setMaxImageHeight(int);
61 method public androidx.slice.SliceUtils.SerializeOptions setMaxImageWidth(int);
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
DSliceRenderer.java186 new SliceUtils.SerializeOptions() in serAndUnSer()
187 .setImageMode(SliceUtils.SerializeOptions.MODE_CONVERT) in serAndUnSer()
188 .setActionMode(SliceUtils.SerializeOptions.MODE_CONVERT)); in serAndUnSer()