Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 081a0e57 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 12596819 from 48ba57a6 to 25Q1-release

Change-Id: Ie29a4c95502c1ccedf60b54217eacb27b6978f4c
parents ec47e231 48ba57a6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1006,6 +1006,7 @@ package android {
    field public static final int insetRight = 16843192; // 0x10101b8
    field public static final int insetTop = 16843193; // 0x10101b9
    field public static final int installLocation = 16843447; // 0x10102b7
    field @FlaggedApi("android.security.enable_intent_matching_flags") public static final int intentMatchingFlags;
    field public static final int interactiveUiTimeout = 16844181; // 0x1010595
    field public static final int interpolator = 16843073; // 0x1010141
    field public static final int intro = 16844395; // 0x101066b
@@ -4617,6 +4618,7 @@ package android.app {
    method public void setInheritShowWhenLocked(boolean);
    method public void setIntent(android.content.Intent);
    method @FlaggedApi("android.security.content_uri_permission_apis") public void setIntent(@Nullable android.content.Intent, @Nullable android.app.ComponentCaller);
    method @FlaggedApi("com.android.window.flags.enable_desktop_windowing_app_to_web_education") public final void setLimitSystemEducationDialogs(boolean);
    method public void setLocusContext(@Nullable android.content.LocusId, @Nullable android.os.Bundle);
    method public final void setMediaController(android.media.session.MediaController);
    method public void setPictureInPictureParams(@NonNull android.app.PictureInPictureParams);
@@ -9842,6 +9844,7 @@ package android.appwidget {
    field public static final int RESIZE_VERTICAL = 2; // 0x2
    field public static final int WIDGET_CATEGORY_HOME_SCREEN = 1; // 0x1
    field public static final int WIDGET_CATEGORY_KEYGUARD = 2; // 0x2
    field @FlaggedApi("android.appwidget.flags.not_keyguard_category") public static final int WIDGET_CATEGORY_NOT_KEYGUARD = 8; // 0x8
    field public static final int WIDGET_CATEGORY_SEARCHBOX = 4; // 0x4
    field public static final int WIDGET_FEATURE_CONFIGURATION_OPTIONAL = 4; // 0x4
    field public static final int WIDGET_FEATURE_HIDE_FROM_PICKER = 2; // 0x2
@@ -55419,6 +55422,7 @@ package android.view.accessibility {
    method public boolean isDismissable();
    method public boolean isEditable();
    method public boolean isEnabled();
    method @FlaggedApi("android.view.accessibility.a11y_is_required_api") public boolean isFieldRequired();
    method public boolean isFocusable();
    method public boolean isFocused();
    method @FlaggedApi("android.view.accessibility.granular_scrolling") public boolean isGranularScrollingSupported();
@@ -55473,6 +55477,7 @@ package android.view.accessibility {
    method public void setEnabled(boolean);
    method public void setError(CharSequence);
    method @FlaggedApi("android.view.accessibility.a11y_expansion_state_api") public void setExpandedState(int);
    method @FlaggedApi("android.view.accessibility.a11y_is_required_api") public void setFieldRequired(boolean);
    method public void setFocusable(boolean);
    method public void setFocused(boolean);
    method @FlaggedApi("android.view.accessibility.granular_scrolling") public void setGranularScrollingSupported(boolean);
+3 −3
Original line number Diff line number Diff line
@@ -15607,9 +15607,9 @@ package android.telephony {
  }
  @FlaggedApi("com.android.internal.telephony.flags.emergency_callback_mode_notification") public static interface TelephonyCallback.EmergencyCallbackModeListener {
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void onCallbackModeRestarted(int, @NonNull java.time.Duration, int);
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void onCallbackModeStarted(int, @NonNull java.time.Duration, int);
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public void onCallbackModeStopped(int, int, int);
    method public void onCallbackModeRestarted(int, @NonNull java.time.Duration, int);
    method public void onCallbackModeStarted(int, @NonNull java.time.Duration, int);
    method public void onCallbackModeStopped(int, int, int);
  }
  public static interface TelephonyCallback.LinkCapacityEstimateChangedListener {
+27 −0
Original line number Diff line number Diff line
@@ -1262,6 +1262,33 @@ public class Activity extends ContextThemeWrapper
        }
    }

    /**
     * To make users aware of system features such as the app header menu and its various
     * functionalities, educational dialogs are shown to demonstrate how to find and utilize these
     * features. Using this method, an activity can specify if it wants these educational dialogs to
     * be shown. When set to {@code true}, these dialogs are not completely blocked; however, the
     * system will be notified that they should not be shown unless necessary. If this API is not
     * called, the system's educational dialogs are not limited by default.
     *
     * <p>This method can be utilized when activities have states where showing an
     * educational dialog would be disruptive to the user. For example, if a game application is
     * expecting prompt user input, this method can be used to limit educational dialogs such as the
     * dialogs that showcase the app header's features which, in this instance, would disrupt the
     * user's experience if shown.</p>
     *
     * <p>Note that educational dialogs may be shown soon after this activity is launched, so
     * this method must be called early if the intent is to limit the dialogs from the start.</p>
     */
    @FlaggedApi(com.android.window.flags.Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_TO_WEB_EDUCATION)
    public final void setLimitSystemEducationDialogs(boolean limitSystemEducationDialogs) {
        try {
            ActivityTaskManager
                  .getService().setLimitSystemEducationDialogs(mToken, limitSystemEducationDialogs);
        } catch (RemoteException e) {
            // Empty
        }
    }

    /** Return the application that owns this activity. */
    public final Application getApplication() {
        return mApplication;
+3 −0
Original line number Diff line number Diff line
@@ -242,6 +242,9 @@ interface IActivityTaskManager {

    boolean supportsLocalVoiceInteraction();

    // Sets whether system educational dialogs should be limited
    void setLimitSystemEducationDialogs(IBinder appToken, boolean limitSystemEducationDialogs);

    // Get device configuration
    ConfigurationInfo getDeviceConfigurationInfo();

+12 −0
Original line number Diff line number Diff line
@@ -339,6 +339,12 @@ public class TaskInfo {
    @WindowInsets.Type.InsetsType
    public int requestedVisibleTypes;

    /**
     * Whether the top activity has requested to limit educational dialogs shown by the system.
     * @hide
     */
    public boolean isTopActivityLimitSystemEducationDialogs;

    /**
     * Encapsulate specific App Compat information.
     * @hide
@@ -486,6 +492,8 @@ public class TaskInfo {
                && Objects.equals(capturedLink, that.capturedLink)
                && capturedLinkTimestamp == that.capturedLinkTimestamp
                && requestedVisibleTypes == that.requestedVisibleTypes
                && isTopActivityLimitSystemEducationDialogs
                    == that.isTopActivityLimitSystemEducationDialogs
                && appCompatTaskInfo.equalsForTaskOrganizer(that.appCompatTaskInfo)
                && Objects.equals(topActivityMainWindowFrame, that.topActivityMainWindowFrame);
    }
@@ -562,6 +570,7 @@ public class TaskInfo {
        capturedLink = source.readTypedObject(Uri.CREATOR);
        capturedLinkTimestamp = source.readLong();
        requestedVisibleTypes = source.readInt();
        isTopActivityLimitSystemEducationDialogs = source.readBoolean();
        appCompatTaskInfo = source.readTypedObject(AppCompatTaskInfo.CREATOR);
        topActivityMainWindowFrame = source.readTypedObject(Rect.CREATOR);
    }
@@ -616,6 +625,7 @@ public class TaskInfo {
        dest.writeTypedObject(capturedLink, flags);
        dest.writeLong(capturedLinkTimestamp);
        dest.writeInt(requestedVisibleTypes);
        dest.writeBoolean(isTopActivityLimitSystemEducationDialogs);
        dest.writeTypedObject(appCompatTaskInfo, flags);
        dest.writeTypedObject(topActivityMainWindowFrame, flags);
    }
@@ -660,6 +670,8 @@ public class TaskInfo {
                + " capturedLink=" + capturedLink
                + " capturedLinkTimestamp=" + capturedLinkTimestamp
                + " requestedVisibleTypes=" + requestedVisibleTypes
                + " isTopActivityLimitSystemEducationDialogs="
                + isTopActivityLimitSystemEducationDialogs
                + " appCompatTaskInfo=" + appCompatTaskInfo
                + " topActivityMainWindowFrame=" + topActivityMainWindowFrame
                + "}";
Loading