diff --git a/api/current.txt b/api/current.txt index d62d8ae126f0d..80b181ebe0459 100644 --- a/api/current.txt +++ b/api/current.txt @@ -5048,7 +5048,7 @@ package android.app { public static class Notification.BigPictureStyle extends android.app.Notification.Style { ctor public Notification.BigPictureStyle(); - ctor public Notification.BigPictureStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigPictureStyle(android.app.Notification.Builder); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.Bitmap); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.drawable.Icon); method public android.app.Notification.BigPictureStyle bigPicture(android.graphics.Bitmap); @@ -5058,7 +5058,7 @@ package android.app { public static class Notification.BigTextStyle extends android.app.Notification.Style { ctor public Notification.BigTextStyle(); - ctor public Notification.BigTextStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigTextStyle(android.app.Notification.Builder); method public android.app.Notification.BigTextStyle bigText(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setSummaryText(java.lang.CharSequence); @@ -5159,12 +5159,10 @@ package android.app { public static class Notification.DecoratedCustomViewStyle extends android.app.Notification.Style { ctor public Notification.DecoratedCustomViewStyle(); - ctor public Notification.DecoratedCustomViewStyle(android.app.Notification.Builder); } public static class Notification.DecoratedMediaCustomViewStyle extends android.app.Notification.MediaStyle { ctor public Notification.DecoratedMediaCustomViewStyle(); - ctor public Notification.DecoratedMediaCustomViewStyle(android.app.Notification.Builder); } public static abstract interface Notification.Extender { @@ -5173,7 +5171,7 @@ package android.app { public static class Notification.InboxStyle extends android.app.Notification.Style { ctor public Notification.InboxStyle(); - ctor public Notification.InboxStyle(android.app.Notification.Builder); + ctor public deprecated Notification.InboxStyle(android.app.Notification.Builder); method public android.app.Notification.InboxStyle addLine(java.lang.CharSequence); method public android.app.Notification.InboxStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.InboxStyle setSummaryText(java.lang.CharSequence); @@ -5181,7 +5179,7 @@ package android.app { public static class Notification.MediaStyle extends android.app.Notification.Style { ctor public Notification.MediaStyle(); - ctor public Notification.MediaStyle(android.app.Notification.Builder); + ctor public deprecated Notification.MediaStyle(android.app.Notification.Builder); method public android.app.Notification.MediaStyle setMediaSession(android.media.session.MediaSession.Token); method public android.app.Notification.MediaStyle setShowActionsInCompactView(int...); } diff --git a/api/system-current.txt b/api/system-current.txt index bd46d3e73a336..e7ce011ec987f 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -5195,7 +5195,7 @@ package android.app { public static class Notification.BigPictureStyle extends android.app.Notification.Style { ctor public Notification.BigPictureStyle(); - ctor public Notification.BigPictureStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigPictureStyle(android.app.Notification.Builder); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.Bitmap); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.drawable.Icon); method public android.app.Notification.BigPictureStyle bigPicture(android.graphics.Bitmap); @@ -5205,7 +5205,7 @@ package android.app { public static class Notification.BigTextStyle extends android.app.Notification.Style { ctor public Notification.BigTextStyle(); - ctor public Notification.BigTextStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigTextStyle(android.app.Notification.Builder); method public android.app.Notification.BigTextStyle bigText(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setSummaryText(java.lang.CharSequence); @@ -5306,12 +5306,10 @@ package android.app { public static class Notification.DecoratedCustomViewStyle extends android.app.Notification.Style { ctor public Notification.DecoratedCustomViewStyle(); - ctor public Notification.DecoratedCustomViewStyle(android.app.Notification.Builder); } public static class Notification.DecoratedMediaCustomViewStyle extends android.app.Notification.MediaStyle { ctor public Notification.DecoratedMediaCustomViewStyle(); - ctor public Notification.DecoratedMediaCustomViewStyle(android.app.Notification.Builder); } public static abstract interface Notification.Extender { @@ -5320,7 +5318,7 @@ package android.app { public static class Notification.InboxStyle extends android.app.Notification.Style { ctor public Notification.InboxStyle(); - ctor public Notification.InboxStyle(android.app.Notification.Builder); + ctor public deprecated Notification.InboxStyle(android.app.Notification.Builder); method public android.app.Notification.InboxStyle addLine(java.lang.CharSequence); method public android.app.Notification.InboxStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.InboxStyle setSummaryText(java.lang.CharSequence); @@ -5328,7 +5326,7 @@ package android.app { public static class Notification.MediaStyle extends android.app.Notification.Style { ctor public Notification.MediaStyle(); - ctor public Notification.MediaStyle(android.app.Notification.Builder); + ctor public deprecated Notification.MediaStyle(android.app.Notification.Builder); method public android.app.Notification.MediaStyle setMediaSession(android.media.session.MediaSession.Token); method public android.app.Notification.MediaStyle setShowActionsInCompactView(int...); } diff --git a/api/test-current.txt b/api/test-current.txt index 7b24511e6d774..ea0c3b5daf68c 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -5049,7 +5049,7 @@ package android.app { public static class Notification.BigPictureStyle extends android.app.Notification.Style { ctor public Notification.BigPictureStyle(); - ctor public Notification.BigPictureStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigPictureStyle(android.app.Notification.Builder); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.Bitmap); method public android.app.Notification.BigPictureStyle bigLargeIcon(android.graphics.drawable.Icon); method public android.app.Notification.BigPictureStyle bigPicture(android.graphics.Bitmap); @@ -5059,7 +5059,7 @@ package android.app { public static class Notification.BigTextStyle extends android.app.Notification.Style { ctor public Notification.BigTextStyle(); - ctor public Notification.BigTextStyle(android.app.Notification.Builder); + ctor public deprecated Notification.BigTextStyle(android.app.Notification.Builder); method public android.app.Notification.BigTextStyle bigText(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.BigTextStyle setSummaryText(java.lang.CharSequence); @@ -5160,12 +5160,10 @@ package android.app { public static class Notification.DecoratedCustomViewStyle extends android.app.Notification.Style { ctor public Notification.DecoratedCustomViewStyle(); - ctor public Notification.DecoratedCustomViewStyle(android.app.Notification.Builder); } public static class Notification.DecoratedMediaCustomViewStyle extends android.app.Notification.MediaStyle { ctor public Notification.DecoratedMediaCustomViewStyle(); - ctor public Notification.DecoratedMediaCustomViewStyle(android.app.Notification.Builder); } public static abstract interface Notification.Extender { @@ -5174,7 +5172,7 @@ package android.app { public static class Notification.InboxStyle extends android.app.Notification.Style { ctor public Notification.InboxStyle(); - ctor public Notification.InboxStyle(android.app.Notification.Builder); + ctor public deprecated Notification.InboxStyle(android.app.Notification.Builder); method public android.app.Notification.InboxStyle addLine(java.lang.CharSequence); method public android.app.Notification.InboxStyle setBigContentTitle(java.lang.CharSequence); method public android.app.Notification.InboxStyle setSummaryText(java.lang.CharSequence); @@ -5182,7 +5180,7 @@ package android.app { public static class Notification.MediaStyle extends android.app.Notification.Style { ctor public Notification.MediaStyle(); - ctor public Notification.MediaStyle(android.app.Notification.Builder); + ctor public deprecated Notification.MediaStyle(android.app.Notification.Builder); method public android.app.Notification.MediaStyle setMediaSession(android.media.session.MediaSession.Token); method public android.app.Notification.MediaStyle setShowActionsInCompactView(int...); } diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 50780584ed370..4a8203bf11932 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -4087,6 +4087,10 @@ public class Notification implements Parcelable public BigPictureStyle() { } + /** + * @deprecated use {@code BigPictureStyle()}. + */ + @Deprecated public BigPictureStyle(Builder builder) { setBuilder(builder); } @@ -4243,6 +4247,10 @@ public class Notification implements Parcelable public BigTextStyle() { } + /** + * @deprecated use {@code BigTextStyle()}. + */ + @Deprecated public BigTextStyle(Builder builder) { setBuilder(builder); } @@ -4785,6 +4793,10 @@ public class Notification implements Parcelable public InboxStyle() { } + /** + * @deprecated use {@code InboxStyle()}. + */ + @Deprecated public InboxStyle(Builder builder) { setBuilder(builder); } @@ -4957,6 +4969,10 @@ public class Notification implements Parcelable public MediaStyle() { } + /** + * @deprecated use {@code MediaStyle()}. + */ + @Deprecated public MediaStyle(Builder builder) { setBuilder(builder); } @@ -5164,10 +5180,6 @@ public class Notification implements Parcelable public DecoratedCustomViewStyle() { } - public DecoratedCustomViewStyle(Builder builder) { - setBuilder(builder); - } - /** * @hide */ @@ -5284,10 +5296,6 @@ public class Notification implements Parcelable public DecoratedMediaCustomViewStyle() { } - public DecoratedMediaCustomViewStyle(Builder builder) { - setBuilder(builder); - } - /** * @hide */