| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We can remove mExiting and use Thread::exitPending() instead.
The local sp<> on "this" in exit() is not needed, since the caller must
also hold an sp<> in order to be calling us. (Unless it was using a raw
pointer, but that would be dangerous for other reasons.)
Add comment explaining the mLock in exit().
Change-Id: I319e5107533a1a7cdbd13c292685f3e2be60f6c4
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
This saves about 6500 bytes.
Change-Id: I87102fe561c95c19c9e615dea3de914f96639257
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
Put IAudioFlinger methods in binder opcode order.
Move hardware call state closer to where it is used.
getMode() and btNrecIsOff() are private.
Change-Id: Ie50340b396c39c763f2b155cbc08da8a0d0f2424
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: If66516ed2703e048c5e6ccc6cd431446a024f4a1
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Code was aliasing mBuffer as buffer, but continuing to use both buffer
and mBuffer after that point. This was at best misleading, and at worst
could confuse the compiler into generating bad code. There was no
performance advantage to the alias, in fact removing it saves 16 bytes.
Change-Id: I55023ddba465d9be82f66745b088d18af658ac60
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
I verified that the disassembled output is identical.
Change-Id: I34a76f0842ebc4aef2c923e079e38d0bc1f98b5c
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: Iacd06bb9efaf708cf965033be1f2297b58f7f75c
|
| |
| |
| |
| |
| |
| |
| |
| | |
Unconditional delete for raw pointers.
Use "if (sp != 0)" not "if (sp.get() != 0)" or "if (sp != NULL)".
Use "if (raw != NULL)" not "if (raw)".
Change-Id: I531a8da7c37149261ed2f34b862ec4896a4b785b
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I0bef580cbc818cb7c87aea23919d26f1446cec32
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
stream_type_t is used by AudioFlinger class, so it should be declared there.
This way we don't have to peek into PlaybackThread to get the declaration.
Change-Id: Ie08bab1604699214d1e8df2d48d3fbfbbc436e96
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I6dc70f137d0ff8a86427ab8882a81886e1de0782
|
|/
|
|
|
|
|
| |
This avoids possible confusion with thread's type().
Also remove redundant cast "(audio_stream_type_t)".
Change-Id: I320b9177b6c267a102d215f002228bcf988c437a
|
|
|
|
| |
Change-Id: Iea8cfe8e57563337fb2484a1246ef79d6ad3db18
|
|
|
|
|
|
|
|
| |
Other:
- add a comment to nextUniqueId
- made ThreadBase::mId const, since it is only assigned in constructor.
Change-Id: I4e8b7bec4e45badcde6274d574b8a9aabd046837
|
|
|
|
|
|
| |
Remove explicit clear() when the order doesn't matter.
Change-Id: I5931bc7ef5f681c7ce329aa9ec0a6e46d34a56c5
|
|
|
|
| |
Change-Id: I1f5c338bcb7368e3dd8cd5f804b2e6d9fbe087f8
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Iad1c2fd4152e94080ad8c65c13ddf4519fc2ed27
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
Fortunately audio_track_cblk_t doesn't have a destructor, but for clarity
remove the double destruction.
Also add warning not to add any virtuals to audio_track_cblk_t.
Change-Id: I70ebe1a70460c7002145b2cdf10f9f137396e6f3
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
This saves 1063 bytes and probably improves performance.
Change-Id: I11cf0dfd925fbaec75e3d1b806852a538eae5518
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It turns out to be just a comment, as all except AudioMixer are RefBase.
There are only a few performance-sensitive cases where it's worth thinking
about whether you need a virtual destructor, and the headache usually
outweighs the benefit.
Change-Id: I716292f9556ec17c29ce8c76ac8ae602cb496533
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Combine default constructor for sp<> immediately followed by assignment,
as the reference-counting is relatively slow. Also return sp<> directly
rather than via local variable, for the same reason.
Change-Id: If55931f1e407994f6591ddde41b53db72fb4fc40
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | | |
Change-Id: Id1f0c89acefaceed6cb9ca7c165fce895e46d85b
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
The .h is not modified to avoid increasing data size.
Change-Id: Ide4a821a5b16424ffa03471dfff98dc3e9b5f751
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
This is just documentation, as C++ method const-ness doesn't mean anything
for a binder API. Instead, here const means "no side effects".
Change-Id: Iaa9cd2fe477db10ae9a40cac4f79f0faa9b4e5e6
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
mFormat is unused in resampler
mClientTid is unused
local variable pid is unused in dump
Change-Id: Ib156e38029366620bfeff2a13e73471867155a5b
|
|\ \ |
|
| | |
| | |
| | |
| | | |
Change-Id: I0a9dd668fb2e57b1c3ece3190588194974b99062
|
|\ \ \ |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Also remove defaults in startToneCommand(), they're not needed and the
default for tone type was nonsense.
Change-Id: I70fa8cee4f3dbb8c66ceb3719c8d3d2f447f05b9
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use if (p != NULL) instead of if (ptr)
Change-Id: Iaec3413a59ccbf233c98fcd918cc7d70ac5da9fa
|
|\ \ \ |
|
| | |/
| |/|
| | |
| | | |
Change-Id: Ibf737018ef1d3c7d717584615dcb2d4ecdb50c99
|