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

Commit 6bb66bfb authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7533212 from d3770297 to sc-d1-release

Change-Id: I6007207abc29c5361b576efc3c498ef3fb4a271c
parents e534af98 d3770297
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -333,8 +333,10 @@ package android.app {
    method public void clickNotification(@Nullable String, int, int, boolean);
    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void collapsePanels();
    method public void expandNotificationsPanel();
    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void handleSystemKey(int);
    method public void sendNotificationFeedback(@Nullable String, @Nullable android.os.Bundle);
    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void setExpansionDisabledForSimNetworkLock(boolean);
    method @RequiresPermission(android.Manifest.permission.STATUS_BAR) public void togglePanel();
  }

  public final class SyncNotedAppOp implements android.os.Parcelable {
@@ -1048,8 +1050,16 @@ package android.graphics.fonts {
package android.hardware {

  public final class SensorPrivacyManager {
    method @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacy(int, boolean);
    method @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacyForProfileGroup(int, boolean);
    method @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacy(int, int, boolean);
    method @RequiresPermission(android.Manifest.permission.MANAGE_SENSOR_PRIVACY) public void setSensorPrivacyForProfileGroup(int, int, boolean);
  }

  public static class SensorPrivacyManager.Sources {
    field public static final int DIALOG = 3; // 0x3
    field public static final int OTHER = 5; // 0x5
    field public static final int QS_TILE = 1; // 0x1
    field public static final int SETTINGS = 2; // 0x2
    field public static final int SHELL = 4; // 0x4
  }

}
@@ -2386,6 +2396,7 @@ package android.service.watchdog {
package android.speech {

  public class SpeechRecognizer {
    method @MainThread @NonNull public static android.speech.SpeechRecognizer createOnDeviceTestingSpeechRecognizer(@NonNull android.content.Context);
    method @RequiresPermission(android.Manifest.permission.MANAGE_SPEECH_RECOGNITION) public void setTemporaryOnDeviceRecognizer(@Nullable android.content.ComponentName);
  }

+0 −13
Original line number Diff line number Diff line
@@ -431,19 +431,6 @@ public class ActivityClient {
        }
    }

    /**
     * Restart the process and activity to adopt the latest configuration for size compat mode.
     * This only takes effect for visible activity because invisible background activity can be
     * restarted naturally when it becomes visible.
     */
    public void restartActivityProcessIfVisible(IBinder token) {
        try {
            getActivityClientController().restartActivityProcessIfVisible(token);
        } catch (RemoteException e) {
            e.rethrowFromSystemServer();
        }
    }

    /** Removes the snapshot of home task. */
    public void invalidateHomeTaskSnapshot(IBinder homeToken) {
        try {
+0 −10
Original line number Diff line number Diff line
@@ -116,16 +116,6 @@ interface IActivityClientController {
    /** See {@link android.app.Activity#setDisablePreviewScreenshots}. */
    oneway void setDisablePreviewScreenshots(in IBinder token, boolean disable);

    /**
     * Restarts the activity by killing its process if it is visible. If the activity is not
     * visible, the activity will not be restarted immediately and just keep the activity record in
     * the stack. It also resets the current override configuration so the activity will use the
     * configuration according to the latest state.
     *
     * @param activityToken The token of the target activity to restart.
     */
    void restartActivityProcessIfVisible(in IBinder activityToken);

    /**
     * It should only be called from home activity to remove its outdated snapshot. The home
     * snapshot is used to speed up entering home from screen off. If the content of home activity
+36 −0
Original line number Diff line number Diff line
@@ -351,6 +351,42 @@ public class StatusBarManager {
        }
    }

    /**
     * Toggles the notification panel.
     *
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.STATUS_BAR)
    @TestApi
    public void togglePanel() {
        try {
            final IStatusBarService svc = getService();
            if (svc != null) {
                svc.togglePanel();
            }
        } catch (RemoteException ex) {
            throw ex.rethrowFromSystemServer();
        }
    }

    /**
     * Sends system keys to the status bar.
     *
     * @hide
     */
    @RequiresPermission(android.Manifest.permission.STATUS_BAR)
    @TestApi
    public void handleSystemKey(int key) {
        try {
            final IStatusBarService svc = getService();
            if (svc != null) {
                svc.handleSystemKey(key);
            }
        } catch (RemoteException ex) {
            throw ex.rethrowFromSystemServer();
        }
    }

    /**
     * Expand the settings panel.
     *
+1 −12
Original line number Diff line number Diff line
@@ -186,13 +186,6 @@ public class TaskInfo {
    @Nullable
    public ActivityInfo topActivityInfo;

    /**
     * The top activity in this task.
     * @hide
     */
    @Nullable
    public IBinder topActivityToken;

    /**
     * Whether the direct top activity is in size compat mode on foreground.
     * @hide
@@ -356,8 +349,7 @@ public class TaskInfo {
        return displayId == that.displayId
                && taskId == that.taskId
                && topActivityInSizeCompat == that.topActivityInSizeCompat
                // TopActivityToken and bounds are important if top activity is in size compat
                && (!topActivityInSizeCompat || topActivityToken.equals(that.topActivityToken))
                // Bounds are important if top activity is in size compat
                && (!topActivityInSizeCompat || configuration.windowConfiguration.getBounds()
                    .equals(that.configuration.windowConfiguration.getBounds()))
                && (!topActivityInSizeCompat || configuration.getLayoutDirection()
@@ -396,7 +388,6 @@ public class TaskInfo {
        parentTaskId = source.readInt();
        isFocused = source.readBoolean();
        isVisible = source.readBoolean();
        topActivityToken = source.readStrongBinder();
        topActivityInSizeCompat = source.readBoolean();
        mTopActivityLocusId = source.readTypedObject(LocusId.CREATOR);
    }
@@ -434,7 +425,6 @@ public class TaskInfo {
        dest.writeInt(parentTaskId);
        dest.writeBoolean(isFocused);
        dest.writeBoolean(isVisible);
        dest.writeStrongBinder(topActivityToken);
        dest.writeBoolean(topActivityInSizeCompat);
        dest.writeTypedObject(mTopActivityLocusId, flags);
    }
@@ -462,7 +452,6 @@ public class TaskInfo {
                + " parentTaskId=" + parentTaskId
                + " isFocused=" + isFocused
                + " isVisible=" + isVisible
                + " topActivityToken=" + topActivityToken
                + " topActivityInSizeCompat=" + topActivityInSizeCompat
                + " locusId= " + mTopActivityLocusId
                + "}";
Loading