Loading core/api/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package { default_visibility: [ "//frameworks/base", "//frameworks/base/api", "//frameworks/base/tools/systemfeatures", ], // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import Loading Loading @@ -63,6 +64,7 @@ filegroup { visibility: [ "//frameworks/base", "//frameworks/base/api", "//frameworks/base/tools/systemfeatures", "//cts/tests/signature/api", ], } Loading core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -6494,6 +6494,7 @@ package android.app { method public long getTimeoutAfter(); method public boolean hasImage(); method @FlaggedApi("android.app.api_rich_ongoing") public boolean hasPromotableCharacteristics(); method @FlaggedApi("android.app.nm_summarization") public boolean hasSummarizedContent(); method public void writeToParcel(android.os.Parcel, int); field public static final android.media.AudioAttributes AUDIO_ATTRIBUTES_DEFAULT; field public static final int BADGE_ICON_LARGE = 2; // 0x2 Loading Loading @@ -6800,6 +6801,7 @@ package android.app { method @NonNull public android.app.Notification.Builder setGroup(String); method @NonNull public android.app.Notification.Builder setGroupAlertBehavior(int); method @NonNull public android.app.Notification.Builder setGroupSummary(boolean); method @FlaggedApi("android.app.nm_summarization") @NonNull public android.app.Notification.Builder setHasSummarizedContent(boolean); method @NonNull public android.app.Notification.Builder setLargeIcon(android.graphics.Bitmap); method @NonNull public android.app.Notification.Builder setLargeIcon(android.graphics.drawable.Icon); method @Deprecated public android.app.Notification.Builder setLights(@ColorInt int, int, int); core/java/android/app/ContextImpl.java +14 −5 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.content.pm.PackageManager.PERMISSION_GRANTED; import static android.os.StrictMode.vmIncorrectContextUseEnabled; import static android.permission.flags.Flags.shouldRegisterAttributionSource; import static android.view.WindowManager.LayoutParams.WindowType; import static android.window.WindowContext.registerCleaner; import android.annotation.CallbackExecutor; import android.annotation.IntDef; Loading Loading @@ -3429,12 +3430,17 @@ class ContextImpl extends Context { // WindowContainer. We should detach from WindowContainer when the Context is finalized // if this Context is not a WindowContext. WindowContext finalization is handled in // WindowContext class. if (mToken instanceof WindowTokenClient && mOwnsToken) { WindowTokenClientController.getInstance().detachIfNeeded( (WindowTokenClient) mToken); try { if (!(com.android.window.flags.Flags.cleanUpWindowContextWithCleaner() || com.android.window.flags.Flags.trackSystemUiContextBeforeWms()) && mToken instanceof WindowTokenClient && mOwnsToken) { WindowTokenClientController.getInstance() .detachIfNeeded((WindowTokenClient) mToken); } } finally { super.finalize(); } } @UnsupportedAppUsage static ContextImpl createSystemContext(ActivityThread mainThread) { Loading Loading @@ -3476,7 +3482,10 @@ class ContextImpl extends Context { WindowTokenClientController.getInstance().attachToDisplayContent(token, displayId); context.mContextType = CONTEXT_TYPE_SYSTEM_OR_SYSTEM_UI; context.mOwnsToken = true; if (!com.android.window.flags.Flags.trackSystemUiContextBeforeWms()) { // #registerCleaner only support SystemUiContext or WindowContext. registerCleaner(systemUiContext); } return systemUiContext; } Loading core/java/android/app/Notification.java +27 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.app; import static android.annotation.Dimension.DP; import static android.app.Flags.FLAG_NM_SUMMARIZATION; import static android.app.Flags.evenlyDividedCallStyleActionLayout; import static android.app.Flags.notificationsRedesignTemplates; import static android.app.admin.DevicePolicyResources.Drawables.Source.NOTIFICATION; Loading Loading @@ -1241,6 +1242,12 @@ public class Notification implements Parcelable */ static public IBinder processAllowlistToken; /** * @hide */ public static final String EXTRA_CONTAINS_SUMMARIZATION = "android.app.extra.contains_summarization"; /** * {@link #extras} key: this is the title of the notification, * as supplied to {@link Builder#setContentTitle(CharSequence)}. Loading Loading @@ -4647,6 +4654,18 @@ public class Notification implements Parcelable } } /** * Sets whether this notification contains text that was computationally summarized from * other sources. The OS may choose to display this notification with different styling or * choose not to summarize this content if this is true. */ @FlaggedApi(Flags.FLAG_NM_SUMMARIZATION) @NonNull public Builder setHasSummarizedContent(boolean hasSummarizedContent) { mN.extras.putBoolean(EXTRA_CONTAINS_SUMMARIZATION, hasSummarizedContent); return this; } private ContrastColorUtil getColorUtil() { if (mColorUtil == null) { mColorUtil = ContrastColorUtil.getInstance(mContext); Loading Loading @@ -8187,6 +8206,14 @@ public class Notification implements Parcelable return mLargeIcon != null || largeIcon != null; } /** * Returns whether this notification contains computationally summarized text. */ @FlaggedApi(FLAG_NM_SUMMARIZATION) public boolean hasSummarizedContent() { return extras != null && extras.getBoolean(EXTRA_CONTAINS_SUMMARIZATION); } /** * Returns #when, unless it's set to 0, which should be shown as/treated as a 'current' * notification. 0 is treated as a special value because it was special in an old version of Loading core/java/android/content/pm/PackageManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -5817,6 +5817,7 @@ public abstract class PackageManager { * {@link Context#getPackageManager} */ @Deprecated @android.ravenwood.annotation.RavenwoodKeep public PackageManager() {} /** Loading Loading
core/api/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package { default_visibility: [ "//frameworks/base", "//frameworks/base/api", "//frameworks/base/tools/systemfeatures", ], // See: http://go/android-license-faq // A large-scale-change added 'default_applicable_licenses' to import Loading Loading @@ -63,6 +64,7 @@ filegroup { visibility: [ "//frameworks/base", "//frameworks/base/api", "//frameworks/base/tools/systemfeatures", "//cts/tests/signature/api", ], } Loading
core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -6494,6 +6494,7 @@ package android.app { method public long getTimeoutAfter(); method public boolean hasImage(); method @FlaggedApi("android.app.api_rich_ongoing") public boolean hasPromotableCharacteristics(); method @FlaggedApi("android.app.nm_summarization") public boolean hasSummarizedContent(); method public void writeToParcel(android.os.Parcel, int); field public static final android.media.AudioAttributes AUDIO_ATTRIBUTES_DEFAULT; field public static final int BADGE_ICON_LARGE = 2; // 0x2 Loading Loading @@ -6800,6 +6801,7 @@ package android.app { method @NonNull public android.app.Notification.Builder setGroup(String); method @NonNull public android.app.Notification.Builder setGroupAlertBehavior(int); method @NonNull public android.app.Notification.Builder setGroupSummary(boolean); method @FlaggedApi("android.app.nm_summarization") @NonNull public android.app.Notification.Builder setHasSummarizedContent(boolean); method @NonNull public android.app.Notification.Builder setLargeIcon(android.graphics.Bitmap); method @NonNull public android.app.Notification.Builder setLargeIcon(android.graphics.drawable.Icon); method @Deprecated public android.app.Notification.Builder setLights(@ColorInt int, int, int);
core/java/android/app/ContextImpl.java +14 −5 Original line number Diff line number Diff line Loading @@ -21,6 +21,7 @@ import static android.content.pm.PackageManager.PERMISSION_GRANTED; import static android.os.StrictMode.vmIncorrectContextUseEnabled; import static android.permission.flags.Flags.shouldRegisterAttributionSource; import static android.view.WindowManager.LayoutParams.WindowType; import static android.window.WindowContext.registerCleaner; import android.annotation.CallbackExecutor; import android.annotation.IntDef; Loading Loading @@ -3429,12 +3430,17 @@ class ContextImpl extends Context { // WindowContainer. We should detach from WindowContainer when the Context is finalized // if this Context is not a WindowContext. WindowContext finalization is handled in // WindowContext class. if (mToken instanceof WindowTokenClient && mOwnsToken) { WindowTokenClientController.getInstance().detachIfNeeded( (WindowTokenClient) mToken); try { if (!(com.android.window.flags.Flags.cleanUpWindowContextWithCleaner() || com.android.window.flags.Flags.trackSystemUiContextBeforeWms()) && mToken instanceof WindowTokenClient && mOwnsToken) { WindowTokenClientController.getInstance() .detachIfNeeded((WindowTokenClient) mToken); } } finally { super.finalize(); } } @UnsupportedAppUsage static ContextImpl createSystemContext(ActivityThread mainThread) { Loading Loading @@ -3476,7 +3482,10 @@ class ContextImpl extends Context { WindowTokenClientController.getInstance().attachToDisplayContent(token, displayId); context.mContextType = CONTEXT_TYPE_SYSTEM_OR_SYSTEM_UI; context.mOwnsToken = true; if (!com.android.window.flags.Flags.trackSystemUiContextBeforeWms()) { // #registerCleaner only support SystemUiContext or WindowContext. registerCleaner(systemUiContext); } return systemUiContext; } Loading
core/java/android/app/Notification.java +27 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.app; import static android.annotation.Dimension.DP; import static android.app.Flags.FLAG_NM_SUMMARIZATION; import static android.app.Flags.evenlyDividedCallStyleActionLayout; import static android.app.Flags.notificationsRedesignTemplates; import static android.app.admin.DevicePolicyResources.Drawables.Source.NOTIFICATION; Loading Loading @@ -1241,6 +1242,12 @@ public class Notification implements Parcelable */ static public IBinder processAllowlistToken; /** * @hide */ public static final String EXTRA_CONTAINS_SUMMARIZATION = "android.app.extra.contains_summarization"; /** * {@link #extras} key: this is the title of the notification, * as supplied to {@link Builder#setContentTitle(CharSequence)}. Loading Loading @@ -4647,6 +4654,18 @@ public class Notification implements Parcelable } } /** * Sets whether this notification contains text that was computationally summarized from * other sources. The OS may choose to display this notification with different styling or * choose not to summarize this content if this is true. */ @FlaggedApi(Flags.FLAG_NM_SUMMARIZATION) @NonNull public Builder setHasSummarizedContent(boolean hasSummarizedContent) { mN.extras.putBoolean(EXTRA_CONTAINS_SUMMARIZATION, hasSummarizedContent); return this; } private ContrastColorUtil getColorUtil() { if (mColorUtil == null) { mColorUtil = ContrastColorUtil.getInstance(mContext); Loading Loading @@ -8187,6 +8206,14 @@ public class Notification implements Parcelable return mLargeIcon != null || largeIcon != null; } /** * Returns whether this notification contains computationally summarized text. */ @FlaggedApi(FLAG_NM_SUMMARIZATION) public boolean hasSummarizedContent() { return extras != null && extras.getBoolean(EXTRA_CONTAINS_SUMMARIZATION); } /** * Returns #when, unless it's set to 0, which should be shown as/treated as a 'current' * notification. 0 is treated as a special value because it was special in an old version of Loading
core/java/android/content/pm/PackageManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -5817,6 +5817,7 @@ public abstract class PackageManager { * {@link Context#getPackageManager} */ @Deprecated @android.ravenwood.annotation.RavenwoodKeep public PackageManager() {} /** Loading