diff options
author | Glenn Kasten <gkasten@google.com> | 2014-05-07 08:42:25 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2014-05-09 16:15:49 -0700 |
commit | fe9570c7b937b49d3603ccb394aed732b79bc6be (patch) | |
tree | 9bc651997eec71010c91543e390472a6f155f775 /media | |
parent | 16821ec9e1619f4edcc87f21ea1537580109b14d (diff) | |
download | frameworks_av-fe9570c7b937b49d3603ccb394aed732b79bc6be.zip frameworks_av-fe9570c7b937b49d3603ccb394aed732b79bc6be.tar.gz frameworks_av-fe9570c7b937b49d3603ccb394aed732b79bc6be.tar.bz2 |
Remove obsolete IAudioRecord::getCblk()
Change-Id: Id20b5efd765b9796b0e391610e06dc928a829ebf
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/IAudioRecord.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/media/libmedia/IAudioRecord.cpp b/media/libmedia/IAudioRecord.cpp index 9866d70..8a4a383 100644 --- a/media/libmedia/IAudioRecord.cpp +++ b/media/libmedia/IAudioRecord.cpp @@ -29,7 +29,7 @@ namespace android { enum { - GET_CBLK = IBinder::FIRST_CALL_TRANSACTION, + UNUSED_WAS_GET_CBLK = IBinder::FIRST_CALL_TRANSACTION, START, STOP }; @@ -42,21 +42,6 @@ public: { } - virtual sp<IMemory> getCblk() const - { - Parcel data, reply; - sp<IMemory> cblk; - data.writeInterfaceToken(IAudioRecord::getInterfaceDescriptor()); - status_t status = remote()->transact(GET_CBLK, data, &reply); - if (status == NO_ERROR) { - cblk = interface_cast<IMemory>(reply.readStrongBinder()); - if (cblk != 0 && cblk->pointer() == NULL) { - cblk.clear(); - } - } - return cblk; - } - virtual status_t start(int /*AudioSystem::sync_event_t*/ event, int triggerSession) { Parcel data, reply; @@ -89,11 +74,6 @@ status_t BnAudioRecord::onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { switch (code) { - case GET_CBLK: { - CHECK_INTERFACE(IAudioRecord, data, reply); - reply->writeStrongBinder(getCblk()->asBinder()); - return NO_ERROR; - } break; case START: { CHECK_INTERFACE(IAudioRecord, data, reply); int /*AudioSystem::sync_event_t*/ event = data.readInt32(); |