Merge "Change to new binder implementation for OBB" into gingerbread

This commit is contained in:
Kenny Root
2010-10-11 17:40:53 -07:00
committed by Android (Google) Code Review

View File

@ -449,12 +449,15 @@ public:
} }
} }
void unmountObb(const String16& filename, const bool force) void unmountObb(const String16& filename, const bool force,
const sp<IObbActionListener>& token, const int32_t nonce)
{ {
Parcel data, reply; Parcel data, reply;
data.writeInterfaceToken(IMountService::getInterfaceDescriptor()); data.writeInterfaceToken(IMountService::getInterfaceDescriptor());
data.writeString16(filename); data.writeString16(filename);
data.writeInt32(force ? 1 : 0); data.writeInt32(force ? 1 : 0);
data.writeStrongBinder(token->asBinder());
data.writeInt32(nonce);
if (remote()->transact(TRANSACTION_unmountObb, data, &reply) != NO_ERROR) { if (remote()->transact(TRANSACTION_unmountObb, data, &reply) != NO_ERROR) {
LOGD("unmountObb could not contact remote\n"); LOGD("unmountObb could not contact remote\n");
return; return;