Control cursor in text fields using volume keys (1/2)

This will also work with 3rd party keyboards.

Change-Id: I1e116f5eb3b757efdb6b80898d80cb073ff7c40a
base: move AOKP symbols into symbols_custom

Therre were some symbols not in symbols_custom. Fixed.
Also, some Copyright headers updated.

Change-Id: Id02efc1b00bfbadd43481bc0c42966f9dd2b7682
Import translations from crowdin.net

Change-Id: I4c081ae978c19b5e9d7e2cb6bd2b113756ace3bc
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Always call super.onCreate().  Always.

Bug 12991134

(cherrypick of commit 9d6376a1d88ab5b3a41ee4400e3aaa4c4ee69e2a)

Change-Id: Ife16ef93408253e3318a06dc0206ab4b88c7f367
[ActivityManager] Reduce report ANR on wrong activity.

Symptom: ANR report on wrong activity.

Root Cause:
  KK changed resume behavior that will not update focus when only resume,
if the activity blocked, it may report ANR on previous focus.
  By original concept, it will try to correct the ANR target,
but the stack of waiting(waitingVisible=true) activity may
different with current top stack.
  If it gets key dispatch timeout, mResumedActivity and mPausingActivity
of its stack will be null becuase it is not top stack.
Then it is unable to change ANR target to the real no response activity.

Solution:
 Use focused stack to get the real culprit.

Reproduce steps:
1.Launch an Activity X from launcher, press home key.
2.Launch X from launcher again, X blocks(sleeps 15sec) in onResume, press back key in the beginning of blocking duration.
3.ANR dialog shows launcher is no response.

Change-Id: I99416ad91e349096f995990f2240a97616fbaf28
Camera : Powerkey shutter (1/2)

Allows user to take use power key to take pictures/videos

Change-Id: I85a1e1761199f4604672be42a3a5005227f5451a
Underp public API... again

Change-Id: Ibb8d74cec9de3c2227451d33f3fe4ce82a731514
Underp the Underp public API... again

Change-Id: I7841c3c4d58dc224dc0e83f46b06cb1de93987a2
Fix Power Shutter Exception 2 of 2

Set protection level to 'dangerous'

Change-Id: I9792f4c543c9ce8a647989ca60cdc9389602551c
Don't show notification count for a notification with just one item

For example, the Play Store sets the number attribute to 1 for a single
app update. No point in showing a counter for that.

Change-Id: I818622419f4f043fa8f04339ab24744aca7c1584
Service: Keep services needing restart.

Services needing restart after crash include:
1) service with 'persistent == true'
2) service explicitly reuqired restart by returning START_STICKY
   or START_REDELIVER_INTENT from onStartCommand

Change-Id: Icda43d349faf344a8d022fc4ec5e928ec3399036
Merge "[ActivityManager] Reduce report ANR on wrong activity." into kitkat
Merge "Don't show notification count for a notification with just one item" into kitkat
Merge "Service: Keep services needing restart." into kitkat
Merge "Camera : Powerkey shutter (1/2)" into kitkat
Merge "Underp public API... again" into kitkat
Merge "Underp the Underp public API... again" into kitkat
Merge "Fix Power Shutter Exception 2 of 2" into kitkat
Merge "Control cursor in text fields using volume keys (1/2)" into kitkat
Merge "base: move AOKP symbols into symbols_custom" into kitkat