Refactor enterprise config

Change-Id: I7104250e80317fce6164385701a7caffbcd14813
Fix build

Change-Id: Ib9fd57c641e3bd2001c7c802f35d97e0cb849b8a
Fix connectivitymanagertest

Change-Id: If5687eacec0f502c39b102eb5cf7d9383f0ec056
eix enterprise config storage bugs

Reading empty and not updating was resulting in retaining old values
in a config. Also, fix matching phase2 entries.

Additionally, allow configuring subset of enterprise fields. Necessary
since password cannot be read back from supplicant.

Change-Id: I83a01690a0cf7cad1457a674f50f1e3a1a0441b5
Track keys per config and allow cert push from apps

Allow configuring keys for a configuration and update/delete
from wificonfigstore.

Change-Id: I79b43bf7ca58f7efc95f7dcc125fc84d7aa8c795
Fix broken test.

Change-Id: I8c5649c9b3d917cf13b94d49da44eaf510643df6
Applying ChannelScrolling to remove calculateDragAngle

To avoid angle calculation changed the logic to use virtual areas.
When try to drag or pan, check where the current touch point locates
and determine how to drag a page.

Change-Id: Id9bd08a69c4ac93ff385c8088e6c16bed5dc5f88
Signed-off-by: kiwon <kiwon98.lee@samsung.com>
update APN version for MVNO

As adding MVNO feature, update APN version from 7 to 8.
To recognize MVNO, use new elements, spn, imsi, gid, mvno_type.

Bug: 8143480

Change-Id: Ib8e7370ebc99c1518e6d9337621e64966c128a0b
KeyStore: stop using state()

Change-Id: I721974fd95f8d1ab06a3fd1bbb4c9b4d9d1d7752

Conflicts:
	keystore/java/android/security/KeyStore.java
Add Rlog.java

Rlog is like Log except that the destination buffer is
the radio buffer instead of the main buffer.

Change-Id: Ib4ce47abfda31dfc0b9193b10f8f42b225275f61
Use Rlog

Change-Id: I44919126606cd55f7dce7c942027ed0d914f04bd
frameworks/base: Support for LTE network modes

Change-Id: I93c102f92ff2d10856d91108bb50fe5c0f06ad66
Telephony: Use IccUtils from uicc package

Change-Id: I80204a2f3dc57cac875abeab390bb9db7a636ff7
fix build

Change-Id: I071f148a95bdec2329811b22d3b33afdcc372543
Wifi: Enable Ad-Hoc (IBSS) network configuration

This adds two public variables to WifiConfiguration: isIBSS and frequency.
These are used for configuring IBSS mode. Frequency is only used in IBSS mode.

WifiConfigStore is exended to get and set these variables to wpa_supplicant
(via WifiNative).

Change-Id: I42c7b84236ddc7c96e3815a6009d7136c07bada7
Wifi: Add IBSS supported method

Add method isIbssSupported() to WifiManager and related classes to query wether
the driver supports IBSS mode. The query is answered by wpa_supplicants new
command "get_capability modes".

This adds a new public API: boolean WifiManager.isIbssSupported()

It will only return a correct result after WIFI_STATE_ENABLED has been
reached.

Change-Id: I463ebc58ab16494680c04b354c5c8f4d520aaceb
Wifi: Get the list of supported channels

Get the list of supported channels/frequencies from wpa_supplicant and provide
them thru WifiManager.getSupportedChannels();

One channel is represented thru the class WifiChannel which includes channel
number, frequency in MHz and a flag if IBSS mode is allowed on this channel.

Like isIbssSupported() we can only expect a result after WIFI_STATE_ENABLED has
been reached.

Change-Id: Ib32c8a1c78cb28933985f70aee7ce4ee2966d074
Lockscreen : Fix widgets disabled

Currently, when keyguard widgets are disabled via the DevicePolicyManager,
a default widget if specified via widget_default_package_name/widget_default_class_name
is added on the main screen, and if not successful the default status widget is added.

However in its current state, each cycle of the lockscreen alternates between the two widgets.
Reason is, the default app widget is constantly recycled on screen power cycles, and in such events,
when checkAppWidgetConsistency() fails to add the widget (since the id is no longer valid), it toggles
back to the default status widget, and resets the stored id. Next cycle a new id is allocated and it works
and so on ...

This patchset addresses this issue by not removing the default status widget if not necessary, hence
preserving its id and fixing the toggling issue.

Change-Id: I6b21d18346fed5accc72141097939c92ee9aaa3c
DevicePolicyManagerService : Address system app replacements properly

This commit addresses two issues :

1) Removes entry from mAdminMap as well to ensure consistency between the two
data structures. Avoids situations where an entry left in mAdminMap causes it to return
true from isAdminActive()

2) Only consider PACKAGE_FULLY_REMOVED, since that is the only time we want to cleanup any
active admin's entries.

Change-Id: I3b5e3b5d2ae32e098736eada019d8aa7679e5d16
MediaStore.Audio.Media.getContentUriForPath() returns unexpected content

MediaStore.Audio.getContentUriForPath() returns an uri to
internal storage if anything but /mnt/sdcard/ is sent in.
This fix checks if there is an additional sdcard
(normally called ext_card) or usb mass storage attached to
the device and then returns an uri to the external db.
The extra sdcard name and the usb mass storage name info is read from
the system environment variable SECONDARY_STORAGE so if a customer
chooses to change the name this will work as expected.

Change-Id: Ib78bca929fe382d4770df895149a0132f0e56994