diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-06-29 14:05:01 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-06-29 14:05:01 -0700 |
commit | 2c22882181e867c9ba4e74ee973b87a71db3389f (patch) | |
tree | 6593873639d24d7fba98e9b7d9cad8f709bf8de9 /core/java/android/os/storage/IMountService.java | |
parent | 9e1fb41b4fbfbd190560cf48f24939703a13eca5 (diff) | |
parent | 292f8bc9d1b790ab975a87a842c7fabc908b97e0 (diff) | |
download | frameworks_base-2c22882181e867c9ba4e74ee973b87a71db3389f.zip frameworks_base-2c22882181e867c9ba4e74ee973b87a71db3389f.tar.gz frameworks_base-2c22882181e867c9ba4e74ee973b87a71db3389f.tar.bz2 |
Merge "Plumb information from the framework about asec container size."
Diffstat (limited to 'core/java/android/os/storage/IMountService.java')
-rw-r--r-- | core/java/android/os/storage/IMountService.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/core/java/android/os/storage/IMountService.java b/core/java/android/os/storage/IMountService.java index c2dc8ae..9302060 100644 --- a/core/java/android/os/storage/IMountService.java +++ b/core/java/android/os/storage/IMountService.java @@ -655,6 +655,26 @@ public interface IMountService extends IInterface { } return _result; } + + /* + * Returns the filesystem path of a mounted secure container. + */ + public String getSecureContainerFilesystemPath(String id) throws RemoteException { + Parcel _data = Parcel.obtain(); + Parcel _reply = Parcel.obtain(); + String _result; + try { + _data.writeInterfaceToken(DESCRIPTOR); + _data.writeString(id); + mRemote.transact(Stub.TRANSACTION_getSecureContainerFilesystemPath, _data, _reply, 0); + _reply.readException(); + _result = _reply.readString(); + } finally { + _reply.recycle(); + _data.recycle(); + } + return _result; + } } private static final String DESCRIPTOR = "IMountService"; @@ -719,6 +739,8 @@ public interface IMountService extends IInterface { static final int TRANSACTION_getVolumeList = IBinder.FIRST_CALL_TRANSACTION + 29; + static final int TRANSACTION_getSecureContainerFilesystemPath = IBinder.FIRST_CALL_TRANSACTION + 30; + /** * Cast an IBinder object into an IMountService interface, generating a * proxy if needed. @@ -1031,6 +1053,15 @@ public interface IMountService extends IInterface { reply.writeParcelableArray(result, 0); return true; } + case TRANSACTION_getSecureContainerFilesystemPath: { + data.enforceInterface(DESCRIPTOR); + String id; + id = data.readString(); + String path = getSecureContainerFilesystemPath(id); + reply.writeNoException(); + reply.writeString(path); + return true; + } } return super.onTransact(code, data, reply, flags); } @@ -1210,4 +1241,6 @@ public interface IMountService extends IInterface { * Returns list of all mountable volumes. */ public Parcelable[] getVolumeList() throws RemoteException; + + public String getSecureContainerFilesystemPath(String id) throws RemoteException; } |