trace: add the trace tag for sensor

Add the trace tag TRACE_TAG_SENSOR to support tracing sensor by
Systrace.
AppOps: Always remember user choice in ASK mode.

Remove 'always ask' option from AppOps. Remember user choice for
all operations.

Change-Id: If16a96eb95437ce54ee8d27b84ac6c284a110147
AppOps: Add BOOT_COMPLETED operation.

Add BOOT_COMPLETED operation in AppOps.

This operation is used to allow user to control auto start of
applications and services at bootup.

Change-Id: Ie8488ec1b4683c8617ca569cfc858709f0d35ba2
SystemUI: Fix time without 'AM' or 'PM' in 12hour format.

The initial value of AM/PM style is 'AM_PM_STYLE_GONE' which
means the time on statusbar will not show 'AM' or 'PM'.
Change the initial value of AM/PM style to 'AM_PM_STYLE_NORMAL'.

CRs-Fixed: 522239

Change-Id: Ia8ef13f3e4083becfbb869a52a281d58bd4c3782
Bluetooth: Cleaning up sap service object to avoid serviceRecord leaks

A case where script is running to do BT ON/OFF 2000 times. Sap service
class object is leaked while turning OFF BT, when it is referenced
(Directly OR Indirectly due to its member variables). So Garbage
Collector doesn't collect class object which is referenced. Setting
NULL for service class object & service connection, while cleaning up
those variable to mark as weak reference. Any objects memory is
immediately claimed by GC, which are marked as weak reference.

Change-Id: I905d1e542c159c8f9addcb8491aee900697c9006
CRs-Fixed: 591180
Bluetooth: Fix to avoid object leaks during BT OFF

A case where script is running to do BT ON/OFF 2000 times,
Each time while turning off BT FULL_CONNECTED_ASYNC_CHANNEL
is disconnected by Pan Service. HALF_CONNECTED_ASYNC_CHANNEL
is not disconnected, which leads memory leak in Pan Service
object as messenger passed by PanService & ASYNC Channel object.
which are still referred from BT tethering framework code. So GC
does not claim for these objects. HALF_CONNECTED_ASYNC_CHANNEL
should be disconnected, once FULL_CONNECTED_ASYNC_CHANNEL
is disconnected to solve this issue.

Change-Id: I5a7a2beb0169a755cf4f3f37fd0a0ab7d08fd9e5
CRs-Fixed: 591180
Use highp precision for scaled coordination

If scaled coordination is closer to zero than what
the medium precision can store, distance becomes
zero and it causes divided by zero.

Change-Id: I8ee921dd1f57564a442e685266b12d95fc08e165
Add config to send SMS on 1x

When UE is attached to eHRPD network, IMS is registered and
there is an active 1xRTT voice call, the config determines
whether to send SMS over 1x. Default value is true

Change-Id: Ie4e00eb57ef439e9383c616cd1b60108bcfd505f
CRs-Fixed: 565247
Revert "Fix for Concurrency issue reported in  525529"

This reverts commit 7eb1fcb76989f11aaa9ca0a78e0361239ff5317d.

Change-Id: I37815b93bf2b25caff171888dc13788479a9c8c4
CRs-Fixed: 585504
Telephony[MSIM]: Change the package name of NumPadKey.

NumPadKey is moved to package "com.android.keyguard".

Change the package name from
"com.android.internal.policy.impl.keyguard.NumPadKey" to
"com.android.keyguard" in layout file.

Change-Id: Id8ec2a5b58b5c0e8bf153e5160091d2a30dedce6
CRs-Fixed: 588162
Remove the incorrect message after 3 wrong PIN attempts

After 3 Fail attempts of SIM PIN entry "Incorrect PUK code"
will not be displayed. Remove logic as it is already present
in AOSP.

Change-Id: Ie83788a420c42e6b9b16fea6d2da155d161defc0
CRs-Fixed: 578936
Merge "Add config to send SMS on 1x"
AssetManager: Add runtime overlay support for '/system/priv-app'.

Add runtime overlay support in '/system/priv-app', which is newly added
on the new version for some system apps.

Change-Id: I7c8c360cf9b45fd68c206c0f179112d7a7aede9e
Merge "AppOps: Always remember user choice in ASK mode."
Merge "AppOps: Add BOOT_COMPLETED operation."
Merge "Revert "Fix for Concurrency issue reported in  525529""
Merge "Bluetooth: Cleaning up sap service object to avoid serviceRecord leaks"
Merge "Bluetooth: Fix to avoid object leaks during BT OFF"
Merge "Telephony[MSIM]: Change the package name of NumPadKey."
Merge "Remove the incorrect message after 3 wrong PIN attempts"