CHG: [droid] wraps native activity in a java class
Fix code generate problem with binary string.
Add deps to typemap files for code generate makefile.
[cec] removed dupe methods. if we really need that Sleep(), do it in CPeripherals instead
[cec] removed no longer used TranslateComPort()
[cec] cosmetics. made some methods private that don't need to be public
[cec] extra guards around m_queryThread
[cec] and let's init m_queryThread to NULL so we won't crash on exit when CEC has been disabled
Merge pull request #2425 from ulion/fix_code_generate_python_binary_string

Fix code generate python binary string
Merge pull request #2407 from koying/chgmainjava

CHG: [droid] wraps native activity in a java class
[cec] fixed compilation without libcec-dev on the system after 95d87f545665674f76f691197bbad3360b807981.
updated the method names of the dummy CPeripheralCecAdapter implementation so they match the ones in the real implementation
FIX: eol
Merge pull request #2427 from koying/fixeol

FIX: eol
[rbp] new scheme for handling stalling and buffering

There's two types of under run that can occur on Pi in xbmc:
1. Unable to stream fast enough (e.g. wifi + hdmi audio passthrough)
2. Lack of CPU (e.g. wired ethernet + software DTS)

The first behaves well, and xbmc buffers for a number of seconds giving the buffers a chance to fill up.
The second case behaves less well. It doesn't go into buffering mode and just continuously stutters.

This patch makes both cases buffer. It also means we start paying with a full buffer of decoded audio which should maximise the time until we under run (which could avoid buffering at all on a marginal file).
It also fixes a bug where m_endtime was used without being initialised which meant we left the stall state early.
[rbp/omxplayer] sync up with dvdplayer master changes
[wip] hacking around
[rbp] Check free memory, and if plenty use full size buffers for reading files

omxplayer has used a quarter sized video buffer and a half sized audio buffer for the file reading message queue, compared to dvdplayer.
This is required on 256M boards, but is unneccessary on 512M board. So we query the free memory and use full size buffers if there is plenty.
Revert "[rbp] Always use the aspect ratio from file."

This reverts commit 7f5d3ede514f30552e42464c29227d570b38ed8a.