media: memset sizeof argument issues

Change-Id: I37ef154eea0f77fb7f22faf6891f3025f6ff346e
media: unused argument warning messages

Do NOT MERGE, fails downstream due to conflicts

Change-Id: I031c4fed61fbe795c25817615781081783b04158
media: unused argument warning messages

SideEffects: NONE

Change-Id: I0f7b7643810393040483f25fe4514a10cd07cbe8

Conflicts:
	media/libeffects/preprocessing/PreProcessing.cpp
	media/libstagefright/FLACExtractor.cpp
media: -Werror re-enabled

Change-Id: I62fdb78e8acefafd468ce2e5aa9e78eba0dd0f48

Conflicts:
	media/libstagefright/timedtext/Android.mk
Fix memory leak when filtering commands in insertCommand_l()

When AudioPolicyService::AudioCommandThread::insertCommand_l filters
a command from the queue, the AudioCommand* is removed from the
vector mAudioCommands by calling mAudioCommands.removeAt(). This will
destroy the pointer and compact the vector, but not delete the
AudioCommand object.

This patch adds code to delete a filtered out AudioCommand and its
data object mParam. However, mParam was void* and deleting a void
pointer is undefined behavior according to the C++
standard. Therefore, the data classes are modified to inherit
from an abstract base class with a virtual destructor.

The deletion of non-filtered commands in
AudioPolicyService::AudioCommandThread::threadLoop() was already
correct, as each case casts mParam to the proper type before
deleting.

This also fixes AOSP issue 36370.

Change-Id: I2b63838aff3608132aa496f964a929f78c4b6267