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

Commit 0e7b2e6b authored by Chandan Nath's avatar Chandan Nath
Browse files

cleanup Trampoline

remove unused boolean and make private where possible

Bug: 118605476

Test: 1) atest RunFrameworksServicesRoboTests
2) atest TrampolineTest
3) flashed device and ran:adb shell bmgr backupnow --all
Ended with "Backup finished with result: Success". in logcat, there were
a few Scotty exceptions but those are known and ignorable as they come
from the server

Change-Id: I08fbe494f9268e80e8f16a8f66405ee8a743e9c3
parent 8c12dcd1
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -65,18 +65,17 @@ import java.io.PrintWriter;
 */
public class Trampoline extends IBackupManager.Stub {
    static final String TAG = "BackupManagerService";
    static final boolean DEBUG_TRAMPOLINE = false;

    // When this file is present, the backup service is inactive
    static final String BACKUP_SUPPRESS_FILENAME = "backup-suppress";
    private static final String BACKUP_SUPPRESS_FILENAME = "backup-suppress";

    // Product-level suppression of backup/restore
    static final String BACKUP_DISABLE_PROPERTY = "ro.backup.disable";
    private static final String BACKUP_DISABLE_PROPERTY = "ro.backup.disable";

    final Context mContext;
    final File mSuppressFile;   // existence testing & creating synchronized on 'this'
    final boolean mGlobalDisable;
    volatile BackupManagerService mService;
    private final File mSuppressFile;   // existence testing & creating synchronized on 'this'
    private final boolean mGlobalDisable;
    private volatile BackupManagerService mService;

    private HandlerThread mHandlerThread;