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

Commit cf5fe8cd authored by JW Wang's avatar JW Wang Committed by Android (Google) Code Review
Browse files

Merge "Change visibility of some classes/methods (6/n)"

parents 7327a096 c888bf09
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ public class AppDataRollbackHelper {
    private final Installer mInstaller;
    private final ApexManager mApexManager;

    public AppDataRollbackHelper(Installer installer) {
    AppDataRollbackHelper(Installer installer) {
        mInstaller = installer;
        mApexManager = ApexManager.getInstance();
    }
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class LocalIntentReceiver {
        }
    };

    public IntentSender getIntentSender() {
    IntentSender getIntentSender() {
        return new IntentSender((IIntentSender) mLocalSender);
    }
}
+2 −2
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ class Rollback {
    /**
     * The user that performed the install with rollback enabled.
     */
    public final int mUserId;
    private final int mUserId;

    /**
     * The installer package name from the install session that enabled the rollback. May be null if
@@ -160,7 +160,7 @@ class Rollback {
     * If this is an empty string then the installer package name will be resolved by
     * PackageManager.
     */
    @Nullable public final String mInstallerPackageName;
    @Nullable private final String mInstallerPackageName;

    /**
     * Session ids for all packages in the install. For multi-package sessions, this is the list
+3 −3
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ import java.util.Set;
 *
 * @hide
 */
public final class RollbackPackageHealthObserver implements PackageHealthObserver {
final class RollbackPackageHealthObserver implements PackageHealthObserver {
    private static final String TAG = "RollbackPackageHealthObserver";
    private static final String NAME = "rollback-observer";

@@ -136,14 +136,14 @@ public final class RollbackPackageHealthObserver implements PackageHealthObserve
     * Start observing health of {@code packages} for {@code durationMs}.
     * This may cause {@code packages} to be rolled back if they crash too freqeuntly.
     */
    public void startObservingHealth(List<String> packages, long durationMs) {
    void startObservingHealth(List<String> packages, long durationMs) {
        PackageWatchdog.getInstance(mContext).startObservingHealth(this, packages, durationMs);
    }

    /** Verifies the rollback state after a reboot and schedules polling for sometime after reboot
     * to check for native crashes and mitigate them if needed.
     */
    public void onBootCompletedAsync() {
    void onBootCompletedAsync() {
        mHandler.post(()->onBootCompleted());
    }