Frameworks: Add per app controls for LP keyguard notifications (1/2)

Nice done by google but the UX is a problem especially for ppl who are using a lot apps and just want
to see from important apps the notifications on the lockscreen.

This commit adds the ability to

- enable/disable per app the keyguard notification at all
- enable/disable per app ongoing notifications on the keyguard

We handle this over the app policy conf file like the other per app notification options.

Change-Id: I3e4641c3413ca0a8920b1680ca5f01f6eb4d0225
Completely reset all telephony changes

* Revert "frameworks: fix Blacklist support for L (3/3)"
* Revert "ServiceState: add support for DCHSPAP"
* Revert "Proper supplementary service notification handling (1/5)."
* Revert "frameworks: add blacklist call logging (1/3)"
* Revert "IMS: Add support for video quality"
* Revert "Notify listeners of video quality changed event"
* Revert "Fix for data and roaming icons"
* Revert "telephony: Add overlay key for ESN tracker"
* Revert "SEEK: Following changes have been made for SEEK"
* Revert "Telephony: Implementation for IWLAN."
* Revert "Property constants declaration for OMH"
* Revert "Telephony: Get SIM card capacity count of SMS."
* Revert "SystemUI: Add RAT and translation for carrier SPN/PLMN strings"
* Revert "AppOps: Add data connect control into AppOps"
* Revert "SystemUI: Customize StatusBar for Chinese carrier"
* Revert "Telephony(MSIM): Add support for MultiSim."
* Revert "Telephony: Add TD-SCDMA network modes"
* Revert "Store Network Mode selected in subId Table."
* Revert "IMS: Deflect call feature"
* Revert "MSIM(Telephony):Add changes to SMS APIs as per new SmsManager design"
* Revert "IMS MWI Feature - AIDL Changes"
* Revert "IMS: Allow placeCall with complete uri."
* Revert "IMS: Add participant support"
* Revert "Telephony: Add ME Depersonalization support"
* Revert "Add support for icc operator numeric"
* Revert "IMS: CallForward Unconditional Timer"
* Revert "IMS: Conference URI support."
* Revert "Telephony: Define a new property for RUIM based APN operator numeric"
* Revert "IMS: Addition of Extras to ImsCallProfile"
* Revert "Mms: Add interface to support sending sms with origination port"
* Revert "Telephony: Implementation of DATA+MMS"
* Revert "Add Manual Provisioning Support"
* Revert "MSIM: voice/sms subscription related API changes."
* Revert "Telephony: STK CC feature implementation"
* Revert "MSim: Add support to enable/disable mobile data"
* Revert "IMS: Unsol TTY notification support"
* Revert "Ims: Send user selected TTY mode to lower layers."
* Revert "Get proper network type when records loaded"
* Revert "Modify hasIccCard method definition."
* Revert "TelephonyTests: Fix runtime errors for clean run"
* Revert "Add support for send Message with messaging options"
* Revert "Telephony: Initialize GsmCellLocation class members properly"
* Revert "Telephony: Add Managed Roaming Intent."
* Revert "Telephony: Add new apn.sim.operator_numeric property"
* Revert "Telephony: Check the length of phone numbers before use"
* Revert "Telephony: Set the value of min match according to one property"
Framework: Fix GSM signal strength

Certain OEM gsm ril libs send back a bogus value for LTE signal
that causes SignalStrength.java to default to LTE and report
incorrect signal values.
Use prop value ro.telephony.ril.v3=signalstrength to get proper
GSM signal reading on certain devices.

Signed-off-by: dhacker29 <davidhackerdvm@gmail.com>

Change-Id: I86279dcbc350fe718d89070acc12178de3c600c2
ServiceState: add support for DCHSPAP

Change-Id: Ib0a328652c14580718400b00146b770481be5458
Telephony: Set the value of min match according to one property

CTA requires to match 11 phone numbers, so use the value of the property
"persist.env.c.phone.matchnum" to set it 11 in case of CTA tests, but by
default it is 7 without change.

Change-Id: I8cd4105c06c71af1ad242858d8de474459d96ee1
Telephony: Check the length of phone numbers before use

If the phone number string is null or empty, just return
to avoid null exception.

CRs-Fixed: 399293

Change-Id: I78db37d70e38cd2782c13621f98dc25d8624bfb7
Telephony: Add new apn.sim.operator_numeric property

Use new property to filter apns. We need this new property
because icc.operator_numeric property is also used in cdma
and ApnSetting UI might display wrong set of apns if the
peroperty value used was set by RuimRecords
CRs-Fixed: 362846

Change-Id: I3831a703a2fdc69df8552af57e0bb981d0c7e46f
TelephonyTests: Fix runtime errors for clean run

methods not accessible from test classes

Change-Id: Ic0c379be15b951e92a80fe575f4b5d4fa7874cca
Get proper network type when records loaded

Get preferred netwotk type based on phone ID when records loaded.

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

Check user permission before enabling/disabling mobile data.

Change-Id: I6e1895b130788dfccbc0a8523dadf1559b698988