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

Commit c89fa236 authored by Marcelo Arteiro's avatar Marcelo Arteiro Committed by Android (Google) Code Review
Browse files

Merge "Expose RRO completion signal" into main

parents b640ff83 2637324f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -5953,6 +5953,20 @@ public class ActivityManager {
        }
    }

    /**
     * Used by {@link com.android.systemui.theme.ThemeOverlayController} to notify of color
     * palette readiness.
     * @hide
     */
    @RequiresPermission(Manifest.permission.SET_THEME_OVERLAY_CONTROLLER_READY)
    public void setThemeOverlayReady(boolean readiness) {
        try {
            getService().setThemeOverlayReady(readiness);
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }
    }

    /**
     * Resets the state of the {@link com.android.server.am.AppErrors} instance.
     * This is intended for use with CTS only.
+7 −0
Original line number Diff line number Diff line
@@ -1258,4 +1258,11 @@ public abstract class ActivityManagerInternal {
     */
    public abstract boolean clearApplicationUserData(String packageName, boolean keepState,
            boolean isRestore, IPackageDataObserver observer, int userId);

    /**
     * Returns current state of {@link com.android.systemui.theme.ThemeOverlayController} color
     * palette readiness.
     * @hide
     */
    public abstract boolean getThemeOverlayReadiness();
}
+8 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package android.app;

import android.app.ActivityManager;
import android.app.ActivityManager.PendingIntentInfo;
import android.app.ActivityTaskManager;
import android.app.ApplicationStartInfo;
import android.app.ApplicationErrorReport;
@@ -553,6 +552,14 @@ interface IActivityManager {
    @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
    boolean isTopOfTask(in IBinder token);
    void bootAnimationComplete();

    /**
     * Used by {@link com.android.systemui.theme.ThemeOverlayController} to notify of color
     * palette readiness.
     * @throws RemoteException
     */
    void setThemeOverlayReady(boolean readiness);

    @UnsupportedAppUsage
    void registerTaskStackListener(in ITaskStackListener listener);
    void unregisterTaskStackListener(in ITaskStackListener listener);
+5 −0
Original line number Diff line number Diff line
@@ -7562,6 +7562,11 @@
    <permission android:name="android.permission.RESET_APP_ERRORS"
        android:protectionLevel="signature" />

    <!-- @hide Allows ThemeOverlayController to delay launch of Home / SetupWizard on boot, ensuring
         Theme Palettes and Colors are ready  -->
    <permission android:name="android.permission.SET_THEME_OVERLAY_CONTROLLER_READY"
        android:protectionLevel="signature|setup" />

    <!-- @hide Allows an application to create/destroy input consumer. -->
    <permission android:name="android.permission.INPUT_CONSUMER"
                android:protectionLevel="signature" />
+2 −2
Original line number Diff line number Diff line
@@ -14,10 +14,10 @@
  See the License for the specific language governing permissions and
  limitations under the License.
  -->
<resources>
<resources xmlns:androidprv="http://schemas.android.com/apk/prv/res/android">
    <style name="TextAppearance.PreferenceTitle.SettingsLib"
           parent="@android:style/TextAppearance.Material.Subhead">
        <item name="android:textColor">@color/settingslib_text_color_primary</item>
        <item name="android:textColor">?androidprv:attr/materialColorOnSurface</item>
        <item name="android:fontFamily">@string/settingslib_config_headlineFontFamily</item>
        <item name="android:textSize">20sp</item>
    </style>
Loading