diff options
author | Kenny Root <kroot@google.com> | 2010-10-08 09:21:39 -0700 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2010-10-11 17:22:03 -0700 |
commit | af9d667ccf3e24058214cf4cc0a8aa8bc5100e3c (patch) | |
tree | c59adbe6d27cf236d6920f689dd237a115fef3f9 /libs/storage/IMountService.cpp | |
parent | ce2f1909c74a1b90995f06a865d21260b062300b (diff) |
OBB: rearrange to be entirely asynchronous
Rearrange structure of MountService handling of OBBs to be entirely
asynchronous so we don't rely on locking as much. We still need the
locking to support dumpsys which has been improved to output all the
data structures for OBBs.
Added more tests to cover more of the error return codes.
Oh and fix a logic inversion bug.
Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
Diffstat (limited to 'libs/storage/IMountService.cpp')
-rw-r--r-- | libs/storage/IMountService.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/storage/IMountService.cpp b/libs/storage/IMountService.cpp index 3ad9319a8f35..f36e2a3225f7 100644 --- a/libs/storage/IMountService.cpp +++ b/libs/storage/IMountService.cpp @@ -430,13 +430,14 @@ public: } void mountObb(const String16& filename, const String16& key, - const sp<IObbActionListener>& token) + const sp<IObbActionListener>& token, int32_t nonce) { Parcel data, reply; data.writeInterfaceToken(IMountService::getInterfaceDescriptor()); data.writeString16(filename); data.writeString16(key); data.writeStrongBinder(token->asBinder()); + data.writeInt32(nonce); if (remote()->transact(TRANSACTION_mountObb, data, &reply) != NO_ERROR) { LOGD("mountObb could not contact remote\n"); return; @@ -448,7 +449,7 @@ public: } } - void unmountObb(const String16& filename, const bool force, const sp<IObbActionListener>& token) + void unmountObb(const String16& filename, const bool force) { Parcel data, reply; data.writeInterfaceToken(IMountService::getInterfaceDescriptor()); |