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.
Dev guide for sensors

Change-Id: Ie8d64974a2b946cfa0fe7297a6ebd6cfe496bc7a
Cherry-picking Id45abeba and Ia065dec6 for MR1

-------------------------------------------------------
MCC detection fixes for CountryDetector

- Don't get and cache phone tpe at the initialization time.  At this point
TelephonyManager is probably not ready yet.

- Refresh MCC whenever we get the service state changed callback, even when
the state hasn't actually changed, in order to make sure we get refresh
country properly when MCC changes.

- Also remove the initialization of mPhoneStateListener, which prevented us from
registering phone state listener properly.

- Also fix tests which were already failing.

Bug 5670680

-------------------------------------------------------
Add logging to country detector logic

This is for debugging purposes to verify the effects of
change Id45abeba1b1e843053ac2c946861b439ca568de4.

Bug: 5670680
Change-Id: I238d953484e2c8135f7dac70fce8662c8300a286
Hide emergency call text if not support it.

Show "emergency call only" text in carrier string
only if phone supports emergency calls.

bug:5570742
Change-Id: Ie826583fd55073e57c5fe4fe6e585781127caa6a
docs: typos

Change-Id: Iee489eb39029b5d550e37f49b1bd5d4cf30e445c
am 611d03e6: docs: typos

* commit '611d03e693aa8f7032e8a268bee1bfae9777e895':
  docs: typos
Updated "Designing for Security" documentation

Change-Id: I1fe5b353d750695f75370ef31ae1b39e50159164
Signed-off-by: Adrian Ludwig <aludwig@google.com>
Merge "Updated "Designing for Security" documentation" into ics-mr1
am 8c65ab81: Merge "Updated "Designing for Security" documentation" into ics-mr1

* commit '8c65ab81e84f36c311d2ae6831819a5caa404548':
  Updated "Designing for Security" documentation
Fixed table labelling issues in 'Multiple Dimensions' multiple apk lesson

Change-Id: I05c100d583340456eed8d15d555e1f02a38504a8
Merge "Dev guide for sensors" into ics-mr0
am 97aafdf4: Merge "Dev guide for sensors" into ics-mr0

* commit '97aafdf46e5007fa7b3f6eae4e54d692877ad824':
  Dev guide for sensors
docs: Minor link fix in Android U class

Change-Id: Ifab9c8088ba686a560647883cbacdd34c1c08c80
am e2a95b59: am 97aafdf4: Merge "Dev guide for sensors" into ics-mr0

* commit 'e2a95b59f554d1d60b7e6c27d870158ec7051e31':
  Dev guide for sensors
Merge "docs: Minor link fix in Android U class" into ics-mr0
am eb946fbd: Merge "docs: Minor link fix in Android U class" into ics-mr0

* commit 'eb946fbdc800d56e1cbac515a1c73de806e74711':
  docs: Minor link fix in Android U class
am 795c271f: am eb946fbd: Merge "docs: Minor link fix in Android U class" into ics-mr0

* commit '795c271f448704561cd1312dd51826dca82f392f':
  docs: Minor link fix in Android U class