diff options
author | Glenn Kasten <gkasten@google.com> | 2012-03-12 16:29:55 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-03-13 11:09:47 -0700 |
commit | e53b9ead781c36e96d6b6f012ddffc93a3d80f0d (patch) | |
tree | 4bcde0bc9a797851ec1bee4f630c8c4f0735f623 /media/libmedia/IAudioRecord.cpp | |
parent | b87396f9ebabbb7b47683bceca96cbe635a1ca00 (diff) | |
download | frameworks_av-e53b9ead781c36e96d6b6f012ddffc93a3d80f0d.zip frameworks_av-e53b9ead781c36e96d6b6f012ddffc93a3d80f0d.tar.gz frameworks_av-e53b9ead781c36e96d6b6f012ddffc93a3d80f0d.tar.bz2 |
Whitespace and indentation
Fix indentation to be multiple of 4.
Make it easier to search:
sp< not sp < to
"switch (...)" instead of "switch(...)" (also "if" and "while")
Remove redundant blank line at start or EOF.
Remove whitespace at end of line.
Remove extra blank lines where they don't add value.
Use git diff -b or -w to verify.
Change-Id: I966b7ba852faa5474be6907fb212f5e267c2874e
Diffstat (limited to 'media/libmedia/IAudioRecord.cpp')
-rw-r--r-- | media/libmedia/IAudioRecord.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/media/libmedia/IAudioRecord.cpp b/media/libmedia/IAudioRecord.cpp index 6b473c9..377b9a8 100644 --- a/media/libmedia/IAudioRecord.cpp +++ b/media/libmedia/IAudioRecord.cpp @@ -2,16 +2,16 @@ ** ** Copyright 2007, The Android Open Source Project ** -** Licensed under the Apache License, Version 2.0 (the "License"); -** you may not use this file except in compliance with the License. -** You may obtain a copy of the License at +** Licensed under the Apache License, Version 2.0 (the "License"); +** you may not use this file except in compliance with the License. +** You may obtain a copy of the License at ** -** http://www.apache.org/licenses/LICENSE-2.0 +** http://www.apache.org/licenses/LICENSE-2.0 ** -** Unless required by applicable law or agreed to in writing, software -** distributed under the License is distributed on an "AS IS" BASIS, -** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -** See the License for the specific language governing permissions and +** Unless required by applicable law or agreed to in writing, software +** distributed under the License is distributed on an "AS IS" BASIS, +** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +** See the License for the specific language governing permissions and ** limitations under the License. */ @@ -41,7 +41,7 @@ public: : BpInterface<IAudioRecord>(impl) { } - + virtual status_t start(pid_t tid) { Parcel data, reply; @@ -55,14 +55,14 @@ public: } return status; } - + virtual void stop() { Parcel data, reply; data.writeInterfaceToken(IAudioRecord::getInterfaceDescriptor()); remote()->transact(STOP, data, &reply); } - + virtual sp<IMemory> getCblk() const { Parcel data, reply; @@ -73,7 +73,7 @@ public: cblk = interface_cast<IMemory>(reply.readStrongBinder()); } return cblk; - } + } }; IMPLEMENT_META_INTERFACE(AudioRecord, "android.media.IAudioRecord"); @@ -83,8 +83,8 @@ IMPLEMENT_META_INTERFACE(AudioRecord, "android.media.IAudioRecord"); status_t BnAudioRecord::onTransact( uint32_t code, const Parcel& data, Parcel* reply, uint32_t flags) { - switch(code) { - case GET_CBLK: { + switch (code) { + case GET_CBLK: { CHECK_INTERFACE(IAudioRecord, data, reply); reply->writeStrongBinder(getCblk()->asBinder()); return NO_ERROR; @@ -105,4 +105,3 @@ status_t BnAudioRecord::onTransact( } }; // namespace android - |