diff options
author | Sudheer Shanka <sudheersai@google.com> | 2016-11-07 15:41:02 -0800 |
---|---|---|
committer | Sudheer Shanka <sudheersai@google.com> | 2016-11-15 12:43:37 -0800 |
commit | 2250d56a0b47b93016018340c8f4040325aa5611 (patch) | |
tree | b9264557e60e3486858b88d578b888f014e0074b /packages/BackupRestoreConfirmation/src | |
parent | 3bfef0186464eea5877f6e5cb10621f9bc5bb4dc (diff) |
Rename MountService to StorageManagerService.
Bug: 30977067
Test: Existing tests pass
Change-Id: Ieac0f11c2b249dcd60441b14c1f391e6f8131d42
Diffstat (limited to 'packages/BackupRestoreConfirmation/src')
-rw-r--r-- | packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java b/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java index bfc9ff30b5a3..7fa57367301e 100644 --- a/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java +++ b/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/BackupRestoreConfirmation.java @@ -27,7 +27,7 @@ import android.os.Handler; import android.os.Message; import android.os.RemoteException; import android.os.ServiceManager; -import android.os.storage.IMountService; +import android.os.storage.IStorageManager; import android.os.storage.StorageManager; import android.text.Editable; import android.text.TextWatcher; @@ -64,7 +64,7 @@ public class BackupRestoreConfirmation extends Activity { Handler mHandler; IBackupManager mBackupManager; - IMountService mMountService; + IStorageManager mStorageManager; FullObserver mObserver; int mToken; boolean mIsEncrypted; @@ -158,7 +158,7 @@ public class BackupRestoreConfirmation extends Activity { } mBackupManager = IBackupManager.Stub.asInterface(ServiceManager.getService(Context.BACKUP_SERVICE)); - mMountService = IMountService.Stub.asInterface(ServiceManager.getService("mount")); + mStorageManager = IStorageManager.Stub.asInterface(ServiceManager.getService("mount")); mHandler = new ObserverHandler(getApplicationContext()); final Object oldObserver = getLastNonConfigurationInstance(); @@ -271,14 +271,14 @@ public class BackupRestoreConfirmation extends Activity { boolean deviceIsEncrypted() { try { - return mMountService.getEncryptionState() + return mStorageManager.getEncryptionState() != StorageManager.ENCRYPTION_STATE_NONE - && mMountService.getPasswordType() + && mStorageManager.getPasswordType() != StorageManager.CRYPT_TYPE_DEFAULT; } catch (Exception e) { - // If we can't talk to the mount service we have a serious problem; fail + // If we can't talk to the storagemanager service we have a serious problem; fail // "secure" i.e. assuming that the device is encrypted. - Slog.e(TAG, "Unable to communicate with mount service: " + e.getMessage()); + Slog.e(TAG, "Unable to communicate with storagemanager service: " + e.getMessage()); return true; } } |