Remove possible leak when exception occurred.

nameUtf8 is not released after exception.
In addtion, Fix code going down after ThrowException.

Change-Id: Id46e8ed55acd98e982ae532f7da2c0c48847f010
Fix SELinux.java doc errors

This fixes five errors when building the Java docs. It also
removes two obsolete lines.

Signed-off-by: Richard Haines <richard_c_haines@btinternet.com>
handle negative temperature

When the battery temperature drops to below zero, BatteryLevelInit()
fails to show negative temperature. Because the type is unsigned
and the size of bit field is 10 bits.
So to handle negative temperature, change the type of battery temperature
from "char" to "short". And extend the size of temperature bit field
from 10 to 11 bits, which first bit is used for the sign bit.

Before:
31             24                    14                 0
+---------------+---------------------+-----------------+
| Battery Level | Battery temperature | Battery Voltage |
+---------------+---------------------+-----------------+

After:
31           25                      14                 0
+-------------+-----------------------+-----------------+
|Battery Level|  Battery temperature  | Battery Voltage |
+-------------+-----------------------+-----------------+

Bits 31..25: battery level percentage (7 bits unsigned)
Bits 24..14: battery temperature (11 bits signed)
    First bit is used for the sign and others for the temperature
Bits 13..0: battery voltage in 0.001 volt units (14 bits unsigned)

Becuase of changing the format, let the BatteryStatsImpl.VERSION field
increment.

Bug: 8009514
Change-Id: Iaa12f4d3f14e6cf4d73bc1a23d81c60f9677a499
Replace SEAndroid with SELinux.

Change-Id: Ibbe544a9f025d71ad416bc01cee2145b62d7b2d4
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
GlobalAction dialog ref not set to null

When a GlobalAction dialog is dismissed when screen goes into
sleep the reference mDialog is not set to null. Next time the
long presses power button and brings up the GlobalAction dialog
the old reference still exist and we try to dismiss the dialog
again even if it does not exist.

The dialog reference in this case holds on to the dialog object
using more memory than neccesary, and in rare cases we might get
a crash when the dialog object is dissmissed the second time.

Change-Id: I44ef1c385d90777e8f6dd9fe111eb3d9b0d3cf3f
am 85ba45dd: (-s ours) Merge "Import translations. DO NOT MERGE"

* commit '85ba45dd62d1687473bc64728770a048fdea0a37':
  Import translations. DO NOT MERGE
am b83f6223: (-s ours) Merge "Import translations. DO NOT MERGE"

* commit 'b83f62236c8ca879f826941fd605a2f123262239':
  Import translations. DO NOT MERGE
am feca78f7: Merge "Start adding IPC calls to retrieve proc stat data."

* commit 'feca78f7af973cbe68ffdeb8acb871820cf6458b':
  Start adding IPC calls to retrieve proc stat data.
am d8405261: Merge "Update audio comments"

* commit 'd840526196108956c9e62e880b3f749cec11a5ec':
  Update audio comments
am e2b1b8e2: Merge "Track latency of captive portal checks"

* commit 'e2b1b8e2adcc212f8505bf77a5d7e098d7c12c2f':
  Track latency of captive portal checks
am d8e97493: Merge "Try again to cleanup all blocked apps"

* commit 'd8e974931ede2344e49416f1586279dab8107cab':
  Try again to cleanup all blocked apps
am 9a04435e: Merge "Compare tasks not activities."

* commit '9a04435e5fb7c5869d81184736c97097e24fd881':
  Compare tasks not activities.
am df89ca33: batteryservice: add battery current now and charge counter data

* commit 'df89ca3308544cfdd1ca12b22eac4a1d16e04410':
  batteryservice: add battery current now and charge counter data
am 7a2de061: Merge "Add API for scrolling AbsListView by a pixel amount"

* commit '7a2de0615f50ed40021cc1e931ea072b539719b8':
  Add API for scrolling AbsListView by a pixel amount
am 6e4cc12a: am ec997806: am 1153eb46: am 4e847bd1: Doc change: fix federated urls.

* commit '6e4cc12a6c7487583dd1e5432fe9ee81c8aa2458':
  Doc change: fix federated urls.
am 93e095b7: Merge "Add copy constructors for all widget-specific LayoutParams"

* commit '93e095b731f81e8ae410b605a5ffa955b8711edd':
  Add copy constructors for all widget-specific LayoutParams
am 9fb9a1c5: Merge "Fix a bug where window animation could be janky"

* commit '9fb9a1c5c1f7921309380476e1c99724663b214f':
  Fix a bug where window animation could be janky
am 18ec40c4: Merge "Destroy surfaces when display is removed."

* commit '18ec40c44c936fd5146133ccc7446a4cd860b527':
  Destroy surfaces when display is removed.
am eb2e139b: Merge "Unhide Context.APP_OPS_SERVICE"

* commit 'eb2e139b38eb740e06b691a6a8b690251377095e':
  Unhide Context.APP_OPS_SERVICE
am 250d3c27: Merge "prototype colour emoji font"

* commit '250d3c27a678e410b346a2602afef17170ee431a':
  prototype colour emoji font