GestureInput : Allow doubletap/longpress configuration

Allows devices to specify pending intents for double tap and
long press events.

Change-Id: I7e7cc2f9f96a01d8f6232e5cf0e19832fdfd5359
camera: Better fix for face detection score issue

 * Do this at the lower layer so that third-party apps don't have
   issus with the nonstandard score.

Change-Id: Ic012b092d2f47dbaab8cbfe2bd215b955800cc11
Shell user needs UPDATE_APP_OPS_STATS

 * CTS fail with "bmgr run"

Change-Id: Ic950cda4363f8f2a4edfcb330a4d5b506a6c3685
Avoid IndexOutOfBounds Exception in ActivityManager

Bypass the iteration to avoid the exception during
the execution of ensureActivityVisibleLocked() because
startSpecificActivityLocked() within for loop may delete
the elements from History stack.

Change-Id: Iad9bdc6521b25b12d4c67e6b89f375a99b17748b
CRs-Fixed: 535900
Merge "GestureInput : Allow doubletap/longpress configuration" into cm-10.2
Merge branch 'cm-10.2' of https://github.com/CyanogenMod/android_frameworks_base into jb-mr2_mkt