AppOpsService: Add MODE_ASK support to AppOps.

Add support for new mode(MODE_ASK) in AppOpsService to show a permission
dialog box to user to confirm user permission before allowing or ignoring
that operation.
All strict operations (defined in AppOpsManager) are going to be in
MODE_ASK by default.
Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to
user's choice.

Change-Id: I1314125a2b8be558e422e4a9eea0ff066c21bf94
AppOps: Add support for AppOps policy file

Add support to read AppOps policy file.
AppOps policy file can be used to configure Ops default policy.

Change-Id: Idb4e3501ff9f58e491b06e74152342aa9574afbf
wifi: Confirm user permission before toggling wifi

Check user permissions before enabling/disabling wifi.

Change-Id: I1ddae6e47f42b6d3fc831c2c135ece75cf9e935d
AppOps: Add Bluetooth enable control into AppOps

Check user permission before enabling bluetooth.

Change-Id: I9af341157df05104d3c5a52874538eefdbe14c4b
AppOps: Fix mms control in AppOps.

Add support to check user permission before sending MMS.
Also seperate out SMS operations from MMS operations.

Change-Id: Ia5b73e6b6a2c48b608a0ef1d199429c6c0e21f75
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
AppOps: Add nfc enable control into AppOps.

Check user permission before enabling nfc.

Change-Id: Ia84e33c299e4fdecfd66ee933d9e7d37ed29c340
AppOps: change MODE_ASK to ALLOWED for receiving sms

SMS is received via broadcast. The operation checking doesn't
popup dialog to users because of broadcast ANR issue. So if the
mode is MODE_ASK and there is no popup dialog, then sms will be
ignored forever.

Meanwhile, receiving sms operation check is not the requirement
of appops. So one solution is to modify default mode for this
operation from MODE_ASK to ALLOWED and doesn't give user the
chance to modify it.

Change-Id: I2b6f90f13d3b2576bcbc6587ab2c6efa47c8dd52
AppOPs: add delete ops for some operations

Delete operation is required to be seprated from modify
operation. Add delete ops for sms, mms, contacts, and
call log.

Change-Id: I19ca4757884ba31a05b403a092796cc03042d31c
AppOps: Add data connect control into AppOps

Check user permission before enabling/disabling mobile data.

Change-Id: I6e1895b130788dfccbc0a8523dadf1559b698988
AppOps: change "modify" to "write" in popup dialog

change "modify" to "write" in popup dialog as request.

Change-Id: I7d451c85fcf80a7b2142fe3acf3c464717e355b1
SystemUI: Add RAT and translation for carrier SPN/PLMN strings

  - Update SPN/PLMN strings to locale strings on status bar and
    lock screen when system languages change
  - Add 2G/3G/4G RAT after SPN/PLMN string on status bar and
    lock screen
  - Add config to control these features

Conflicts:
core/res/res/values/config.xml
Change-Id: Icbc79bf259ea40792ff59e4fcc04d883e7797f8c
Telephony: Get SIM card capacity count of SMS.

Add one API:
- getSmsCapacityOnIcc: get the capacity of stored SMS on ICC card.

CRs-Fixed: 645022
Change-Id: I8064d694d35c4200074a24ee4159d09ecb2a779c
SystemUI: Fix signal icon overlapped by type icon issue

Mobile type icon layout gravity is center and bottom, it covers
signal icon.

Remove mobile type icon layout gravity to place it to the left
of its container.

CRs-Fixed: 729963

Change-Id: Ieccaa6cc2a8f0b615f13af7164f4e9a1c5edf8c7
SOFTAP: implement SOFTAP new requirement in framework

If framework recevied the STA (dis)connect message from netd,
it will try to read device info from dnsmasq and broadcast
an state change event via intent.
Meanwhile, framework will maintain the conneted Sta list which
can be access from upper layer.

CRs-Fixed: 685913
Change-Id: I61bfb48a9ac51371995b1992b966be6e18633828
Add subscription handling to notify dataconnection

In TelephonyRegistry, to notifyDataConnection method
add subscription based handling to connectedapns list
which keep track of apn type connected.
Without this, when default apn on non-dds sub is notified
as disconnected, data icon on dds sub will be erased.

Change-Id: I7023ac1fcde13bdb5afec684be26fb286a25eb4b
CRs-Fixed: 712007
Added validity check for Pointer Index

Checking if the pointer index is valid before querying for X & Y
coordinates. This is done to avoid IllegalArgumentException.

Change-Id: Ic7f3022d33c313a0bfe8b55c9bc89019b33d23b7
Settings: Add Chinese translation for UICC storage

Add Chinese translation for UICC storage when system language is
Chinese.

CRs-Fixed: 645516

Change-Id: Iffd3520754ca2217d6893853173f74a86d024d8e
Property constants declaration for OMH

Added RIL request declaration to query OMH profile
Added event to be broadcasted on OMH profile read complete

Conflicts:
	telephony/java/com/android/internal/telephony/RILConstants.java

Change-Id: Idfeb2f3f1a3aa0403a7ff0ab7c69fc945d9e7083
Conflicts:
telephony/java/com/android/internal/telephony/DctConstants.java
Telephony: Implementation for IWLAN.

- Introduce new RAT as IWLAN.
CRs-Fixed: 600118

Handle IWLAN radio technology in ServiceState.
rilRadioTechnologyToNetworkType() in ServiceState returns UNKNOWN,
if radio technology is chosen as IWLAN.
Add the code to handle IWLAN radio technology in ServiceState.
CRs-Fixed: 641631

Telephony: Implementation of iwlan and wwan coexistence.
- A new callback event for unsol oem hook response.
CRs-Fixed: 628227

Change-Id: I96e4cb614843795ee9c13e02823cf7457fb1bda7
Conflicts:
core/res/res/values/config.xml
core/res/res/values/symbols.xml