Fixes for device specific dock support

Change-Id: Icdca0b374af92b511114e5bbc7127672102f1274
input: Fix workaround for broken hardware keyboard support

Using a wrong reference to mHardKeyboardAvailable caused device config
to never report physical keyboards.

Change-Id: I9b64e2d89512436c17fa8929464e2b727fba1cf3
test

Change-Id: I40b7cac9e5a07d325c3c6c75bd2e9e328800348d
Make Camera shutter follow device sound setting

Change-Id: Ia8eca52f9be94abef6c386545991f9ebe0855bb7
just a lil tweakaroonie to make recents draw with hardware acceleration

Change-Id: I179733ba231af1b45f5608d47cc00a4096643538
Remove possible leak when exception occurred.

nameUtf8 is not released after exception.
In addtion, Fix code going down after ThrowException.

Change-Id: Id46e8ed55acd98e982ae532f7da2c0c48847f010
Merge branch 'jellybean-legacy' of https://github.com/adgad/android_frameworks_base into jellybean-legacy