Base: improve color fetch calculation

this also fix calculation for device without navigation bar

Change-Id: I5ea3fb5dd18dadf1ced0255b3bf6554a7b50079c
base: Fix issue with hardware key disabler

- On devices such as the HTC EVO 4G LTE, when disabling hardware keys under Settings/Buttons it would
disable all H/W buttons but the recents key. This fixes that issue....

PS2 - added search key just in case

Change-Id: I44a3e4ab23322da935c6a63e75f77d43740cc1ea
Merge remote-tracking branch 'omni/android-4.4' into omni-4.4