Updated Croatian translation of fields in contact entries: phone, address, email, IM types.

The Croatian translation of adjectives used to describe address, phone, email, IM, and other fields in a contact entry was corrected: the translation of "Home" (as in "home number" or "home address") has been corrected from "Početna" ("starting" feminine) to "Privatni", "Privatna", "Privatno"  as is common and found eg. at the Gmail website in Croatian.

Change-Id: I7d49516d7fe5b110ec51c96c22857fadb6f0423f
Signed-off-by: Tomislav Ivek <tomislav.ivek@gmail.com>
Keyguard: Set WIDGET_CATEGORY_KEYGUARD when AppWidgetHostView is created

Allows the default lockscreen widget to inherit the keyguard widget
host category.  Without this, only widgets added through
KeyguardActivityLauncher are assigned the correct
OPTION_APPWIDGET_HOST_CATEGORY.

Change-Id: Ic97818d85ca5f00da0ce43bb36006d66a6935363
Telephony: Skip restoring network selection mode.

Skip restoring saved network selection mode since modem can
handle this.

Change-Id: I84c3e276c19a21f0c2a858667bd727b04d8143d2
MTP:Other users can't acccess the MTP content from PC except the owner

In multiple storages use case, new user's primary storage is not in the
first of VolumeList. Adjust the order of storage volumes in "filtered" list,
keep the primary strorage volume in the head positon.

Change-Id: I32900c49db36ab81f62e9b2a3281155996732a21
Signed-off-by: Huang Chenyi <b44402@freescale.com>
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
StorageManager: fix android.process.media process stop while plug a discontinuous partitioned SD Card

While get volume state, throw an IllegalArgumentException, catch
this exception in StorageManager and return null to MtpService to
avoid process stoping.

Change-Id: I7d32e3007296eca5903e6753f6a3395be4bf48c9
Author: Gang Li <gang.g.li@intel.com>
Signed-off-by: Gang Li <gang.g.li@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 47459
SIP-API: Miscellaneous bugfixes and enhancements.

1) Add missing try-catch clauses.
2) Secure pointer checks to avoid NullPointerExceptions.
3) Add/modify some methods in SipHelper class for future extensions.
4) Reorganize INVITE response handling for readability.

Change-Id: I4a8337f0690532d8405da3ee150c599063379627
Signed-off-by: Masahiko Endo <masahiko.endo@gmail.com>

Conflicts:
	voip/java/com/android/server/sip/SipHelper.java
	voip/java/com/android/server/sip/SipSessionGroup.java
revert ADDR_COMPAT_LAYOUT workaround.

Stop working around bad applications by setting ADDR_COMPAT_LAYOUT.
ADDR_COMPAT_LAYOUT is undesirable because it reduces the amount of
address space available to an application.

The Android emulator, in both 4.3 and 4.4, does not set
ADDR_COMPAT_LAYOUT. Anyone needing to test their application on a
version of Android without ADDR_COMPAT_LAYOUT can use the emulator
and reproduce the failures.

Change-Id: I8f753acc205798bd7f031026c7ece12d26de562c
Fix NullException in QwertyKeyListener.KeyDown

Extending null protection for view to "c == i" case in addition to
"c == Character.toUpperCase(i)" case that helped to fix some force closures.
Seems as typo in original implementation.

Change-Id: Ibaa5aea95c5c8cdc8ac981fe0d1dad313e3e692f
Signed-off-by: Dmitry Tsyganyuk <fdt017@motorola.com>
Avoid IndexOutOfBounds Exception in ActivityManagerService

1. finishActivityLocked() doesn't give guaranty to remove only
   one ActivityRecord from the history stack.
2. Unfortunaly if our topRunningActivity is top of the stack,
   then there is potential IndexOutOfBounds Exception in
   ActivityManagerService.
To avoid it, we can just traverse to the top of the history stack.

Change-Id: Idf06356e643789ccfd493d7097278cea44bdf395
Wrong notification tone played for secondary user sometimes

Media should have support for multiple user when get the
default ring tone uri from settings provider database.

Change-Id: I2d120c155dba1094cab49b0bab58525f17321797
Replace SEAndroid with SELinux.

Change-Id: Ibbe544a9f025d71ad416bc01cee2145b62d7b2d4
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>