build core bufferqueue functionalities into bqhelper

Statically build the bufferqueue logic from libgui into
libstagefright_bufferqueue_helper, so that we don't need
to link to the entire libgui.

In updateable codecs, the dependencies (except llndk) are
copied onto the apex, and loaded into a separate namespace
at runtime. Trimming down unused dependencies help on both
storage and runtime memory footprint.

bug: 128894663

Change-Id: I2f696aa85143f74f753fbb0320dce5aee88846c4
17 files changed