stagefright amrnb: Fix a bug on architectures where long is 64 bit

Initially, this code gave a warning "comparison is always
false due to limited range of data type" if long was 64 bit.
Additionally, the output from the AMR encoder was mostly noise.

This was committed on the master branch of the opencore
repository in commit f532d145194e474cb30d8644b8eee83873ad24cc,
based on AOSP contribution 10904.

Change-Id: I822dcc74beeae548d3032ffda759de9c8cd1fcfe
stagefright amrnb: Properly negate all values

Initially, input values -32768 weren't negated properly.

This was committed on the master branch of the opencore
repository in commit f532d145194e474cb30d8644b8eee83873ad24cc,
based on AOSP contribution 10906.

Change-Id: I903353c5539a8fe94b7fc5f26b95eaeac57df5f4
Fix for issue 9656 - custom xml attributes in Android Libraries

Added support for predefined namespace http://schemas.android.com/apk/res/auto
that aapt tool recognizes and treats as namespace with package name
taken from current application's AndroidManifest.xml, //manifest/package attribute.

Signed-off-by: inazaruk <ievgenii.nazaruk@gmail.com>

Change-Id: I4b24a7265511e416cc7e02b5bb8a08ef32b598eb
Add support for bmp and wav content types in MMS

This change adds support for bitmap images (.bmp) and wave audio
(.wav) formats for MMS. This is a must-have requirement for some
operators.
Add android.os.Process.setThreadScheduler

And add the associated SCHED_* constants
and remove redundant parameter to signalExceptionForPriorityError
and signalExceptionForGroupError.

Change-Id: I5a4e9652155aef2e5d544185e0d73a0120f89d97
am ccb722d5: (-s ours) am 64994077: (-s ours) am c682559d: (-s ours) am 4d21c773: am 4d1fa60b: (-s ours) Merge "DO NOT MERGE. may fix build on some version of gcc"

* commit 'ccb722d5aa7b5ac66db2fcf2944fda62a8243f6b':
  DO NOT MERGE. may fix build on some version of gcc
am a12036bc: Merge "Add const to matrix by vector multiply routines. Cleanup ifdef for rsForEach."

* commit 'a12036bc97cd89afa9a6746f5e61ce5e773fb996':
  Add const to matrix by vector multiply routines. Cleanup ifdef for rsForEach.
am f92fbc5d: Merge "Run hostapd on a seperate thread"

* commit 'f92fbc5daf6a4446054205ee2d829ea157afa2b7':
  Run hostapd on a seperate thread
am 43a5d6e5: Merge "Bug 4599730 Get audio channel count on MediaPlayer"

* commit '43a5d6e541fef5983e967d9b67792c0a088418ea':
  Bug 4599730 Get audio channel count on MediaPlayer
am e1b92591: Merge "Not user generated accessibility events can change the interrogation allowing window."

* commit 'e1b925919096b27a1592665ed09fb8ac874273e3':
  Not user generated accessibility events can change the interrogation allowing window.
am 24f2936d: Merge "Use WebTextView overlay to render text fields/areas much faster"

* commit '24f2936d352e8938a02ec10ace57cac8671fc68f':
  Use WebTextView overlay to render text fields/areas much faster
am 257466d4: Merge "Bug 5076788 - Optimize the building and invalidation of menus"

* commit '257466d4e24bd405204cb21a1663eb1cc99f6137':
  Bug 5076788 - Optimize the building and invalidation of menus
am ccc83629: Merge "UsbDeviceManager: Don\'t show USB notification for RNDIS"

* commit 'ccc83629f993eec7844ad7f6b214666e9410a610':
  UsbDeviceManager: Don't show USB notification for RNDIS
am d02fa35e: Merge "Revise data limit notifs, watch kernel alerts."

* commit 'd02fa35e8c80a7171c7556743b09dda2fbcc96b2':
  Revise data limit notifs, watch kernel alerts.
am d3cb204a: Merge "Drop hack for drivers that emit zero ABS_MT_TOUCH_MAJOR. Bug: 5064702"

* commit 'd3cb204a7b5140d6f59ed9f9f64ef3cbdae3acba':
  Drop hack for drivers that emit zero ABS_MT_TOUCH_MAJOR. Bug: 5064702
am 388432ac: Merge "Change ZipFile flags anonymous enum"

* commit '388432ac4326fc16e69f45784ee76aa1a6260272':
  Change ZipFile flags anonymous enum
am be922d60: Merge "Handle stylus buttons and tool types."

* commit 'be922d6006879692d100894dc924d947b50aed34':
  Handle stylus buttons and tool types.
am 3d5a703d: Merge "Report the external display size to the input reader."

* commit '3d5a703db83265f7914eed8580de986106abfad2':
  Report the external display size to the input reader.
am 4f35092a: Merge "Move extract native libraries to JNI code"

* commit '4f35092af55d569975e6931ee6e8c0343f749d1e':
  Move extract native libraries to JNI code
am c8b7ac16: Merge "Reset input dispatcher targets when focus changes apps."

* commit 'c8b7ac16c14a60d3dc416c9ea7399c0305b6d5e6':
  Reset input dispatcher targets when focus changes apps.