Support GSM AT commands for SMS over bluetooth (1/2)

Modifications required to support the older GSM "AT+" commands for SMS over
the bluetooth transport for use with car radios, etc. This must piggy back
on the existing handsfree code as the spec uses that channel for the commands.
(2 parts: frameworks/base and packages/apps/Phone)

frameworks/base:
Additions to JNI and supporting framework code to allow sending of individual
characters and to receive the PDU stream - neither of which are CR terminated.

IccSmsInterfaceManager.java requires a reversion in sendText() to use
enforceCallingOrSelfPermission() instead of enforceCallingPermission().  This
is apparently the only way Phone.apk can actually send an SMS.  (ICS used the
OrSelf variation while JB changed to use the stricter version.)

Change-Id: Icff0d2c55170e9c47302b21ce3f15ce863c8c756
Signed-off-by: Gary Dezern <garyd9@gmail.com>
frameworks/base: IPV6 tethering support

Added two APIs addUpstreamV6Interface and removeUpstreamV6Interface, required
to pass the interfaces to use to the Router Advertisement Proxy

Change-Id: I28985de9339f79984bad0e2d91112199f64c6dc0
Navigation Bar: Ability to enable on every device 1/2

This adds a new Menu item Settings -> System -> Navigation Bar

Patch Set 5 : Just a rebase
Patch Set 6: Rebase
Patch Set 8: Rebase

Change-Id: I23a508fa3268e63fbbc9a8305d011db3ca7722a0
LockscreenShortcuts : Minor code cleanup

- Reuse pre-existing launchActivity()
  - Now uses correct start flags
- Add check for secure lockscreen and act accordingly.

Change-Id: I6c2c3e1c87239267601d78eb38778d0388f4a41c
Framework: Option to not lock automatically when a call ends (1/2)

When a call ends while the screen is off the phone is automatically locked. This commit adds an option to disable this behavior.

Navigate to Phone->Settings and uncheck the option Lock when call ends under the advanced settings section.

Commit includes option in english and translation to portuguese.

Change-Id: Ib37d1be2e2238d822c1db2cfc6d23353588a6127
SystemUI: Clock - right/center/off (Part 1 of 2)

Allow for clock to be placed to the right/centered/off

Ported from AOKP clock mod by Adam Fisch
http://gerrit.sudoservers.com/#/c/1963/

Change-Id: Ia06708f4ba7629d76d6625b87b22cca999d01e1b
Signed-off-by: Desterly <d3s7royer@gmail.com>

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
aapt: Add simple caching to XML compilation

XML compilation stage will perform many (expensive) resource ID
lookups - for the same entries. Adding this simple cache can
dramatically improve performance of this stage (often a bottleneck)

Change-Id: Ib1ab82ba9bf901bc2a3f9027b47d680861d6c315
Signed-off-by: Jorrit Jongma <jorrit@jongma.org>
ril: avoid sending null aid string in getIMSI

A change to how getIMSI works in JB causes null aid strings
to be sent.  The result for RILs older than v7 is a corrupt
ril response in SIMRecords::fetchSimRecords.  This corruption
ends up setting mImsi to null (in SIMRecords) and that causes
havoc w/ 3g/4g data connections.

This patch avoids sending null aid strings and has fixed
data connection issues on several Motorola devices.

This new patch is implemented as an opt-in old ril feature

Change-Id: I6682ea10c8b216e2adc5abffbcc50f3cb6c9d7b8