Remove unused code (3/n)
Bug: 161765186 Test: m Change-Id: I66eda02e797857a133bc023014b9f2aea1fc8da6
This commit is contained in:
@@ -60,7 +60,6 @@ import android.util.ArraySet;
|
||||
import android.util.IntArray;
|
||||
import android.util.Slog;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseBooleanArray;
|
||||
import android.util.SparseIntArray;
|
||||
import android.util.apk.ApkSignatureVerifier;
|
||||
|
||||
@@ -1260,8 +1259,6 @@ public class StagingManager {
|
||||
// Hold session ids before handler gets ready to do the verification.
|
||||
private IntArray mPendingSessionIds;
|
||||
private boolean mIsReady;
|
||||
@GuardedBy("mVerificationRunning")
|
||||
private final SparseBooleanArray mVerificationRunning = new SparseBooleanArray();
|
||||
|
||||
PreRebootVerificationHandler(Looper looper) {
|
||||
super(looper);
|
||||
@@ -1339,10 +1336,7 @@ public class StagingManager {
|
||||
|
||||
PackageInstallerSession session = getStagedSession(sessionId);
|
||||
if (session != null && session.notifyStagedStartPreRebootVerification()) {
|
||||
synchronized (mVerificationRunning) {
|
||||
Slog.d(TAG, "Starting preRebootVerification for session " + sessionId);
|
||||
mVerificationRunning.put(sessionId, true);
|
||||
}
|
||||
Slog.d(TAG, "Starting preRebootVerification for session " + sessionId);
|
||||
obtainMessage(MSG_PRE_REBOOT_VERIFICATION_START, sessionId, 0).sendToTarget();
|
||||
}
|
||||
}
|
||||
@@ -1361,20 +1355,10 @@ public class StagingManager {
|
||||
// Things to do when pre-reboot verification completes for a particular sessionId
|
||||
private void onPreRebootVerificationComplete(PackageInstallerSession session) {
|
||||
int sessionId = session.sessionId;
|
||||
// Remove it from mVerificationRunning so that verification is considered complete
|
||||
synchronized (mVerificationRunning) {
|
||||
Slog.d(TAG, "Stopping preRebootVerification for session " + sessionId);
|
||||
mVerificationRunning.delete(sessionId);
|
||||
}
|
||||
Slog.d(TAG, "Stopping preRebootVerification for session " + sessionId);
|
||||
session.notifyStagedEndPreRebootVerification();
|
||||
}
|
||||
|
||||
private boolean isVerificationRunning(int sessionId) {
|
||||
synchronized (mVerificationRunning) {
|
||||
return mVerificationRunning.get(sessionId);
|
||||
}
|
||||
}
|
||||
|
||||
private void notifyPreRebootVerification_Start_Complete(int sessionId) {
|
||||
obtainMessage(MSG_PRE_REBOOT_VERIFICATION_APEX, sessionId, 0).sendToTarget();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user