Fix visibility of camera widget on insecure lock screens with DPM

The camera widget should be visible on an insecure lockscreen even
with the KEYGUARD_DISABLE_SECURE_CAMERA policy flag set.

Change-Id: I37ff905c6325be9120b16984d3401f334ad00e4c
base: added national roaming for ONO in spain

http://forum.xda-developers.com/showpost.php?p=48816196&postcount=21

Users of ONO in Spain (MCC 214 MNC 18) will roam on Movistar (MNC 07)

Change-Id: Ia8b7873dc647fb1a857523b9c621bccc7a66e516
base: added national roaming for Orange in Austria

http://jira.omnirom.org/browse/OMNI-376

Users of Orange in Autria (MCC 232 MNC 05) which is now a subcompany
of 3AT can roam on 3AT (MNC10) and also on t-mobile (MNC03) for 2G

Change-Id: I593c1bdeea3ef712541b4962369a02b2d7c86c5b
Port Lockscreen See through feature (1/2)

Credits to aospa

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Adding missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I9057a6e302a5a824799844f27e8f64ff677a520a

PS3:

* Replace and remove undefined mContext.
* Define the boolean enableScreenRotation inside new method.
* Whitespaces clean up.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Restore mContext in setKeyguardParams().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Fixes for setKeyguardParams() and maybeCreateKeyguardLocked() methods, kitkat changed some things.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS6:

* Missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS7: Fix all the things.

* Effects doesn't vanish after first unlock.
* Created condition in updateShowWallpaper() method that just return if see through is activated, he was restoring the wallpaper at second lock.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS8: Cosmetic changes.

* Correct java style name to seeThrough() and place it above updateShowWallpaper().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS9: Other cosmetic changes.

* Better name to the see through boolean.
* Removed a space nitpick.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS10:

* We had two booleans for the same thing, ditch the one defined in one class only and take the global.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I06d952f85baf284961a24c8c9f90b29f4aef719a

Conflicts:

	core/java/android/provider/Settings.java
	services/java/com/android/server/wm/WindowAnimator.java

Lockscreen Blur

- If user selects "See through" under screen security,
  the locksceen background will now appear transparent
  with the content behind it blurred.

PS2-6 : remove whitespaces
PS10  : Link blur to see through lockscreen option
PA12  : Lets actually push some changes this time :)

Change-Id: Iac581536057ef6b8eb4637b1172291f47463a065

Conflicts:

	services/java/com/android/server/power/DisplayPowerController.java

Fix code style

Change-Id: I0aedc35e0ecaeb13d33a81030a52fe25b4a23f33

Revert "Lockscreen Blur"

This reverts commit 19d74a97359235f0087e4cf4d9d03932b6cec485.

Signed-off-by: Evan Anderson <evan1124@gmail.com>

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java

Change-Id: I4ae3b7f47fe75b37ffb6f68ee46a42252b640c8e

Conflicts:

	services/java/com/android/server/power/DisplayPowerController.java

Fix: Ensure lockscreen see through setting persists after reboot

If see through was enabled and the device was rebooted,
the user had to toggle the setting off and on again to activate.

Change-Id: I726220a39ac61cf135e5c63a9dbb8def7ed6fa2e

Fix: Correct possible null pointer when enabling see through lockscreen

PS2: Remove unused variable

Change-Id: I28884cb18964b273539261b8c0f72cedf2e60666

Frameworks: Lockscreen Blur

  If user selects "See through" under screen security,
  the locksceen background will now appear transparent
  with the content behind it blurred.

Modificaitons made to the orginal commit to support Hammerhead and Flo.
It seems full HD images causes rendering artifacts. To prevent this,
we scale the image size to something more manageable.

PS2: Reduce calls to System.Settngs
     Move bitmap scaling to DisplayPowerController
PS3: Fix styling
PS4: Fixes: 1. Black wallpaper after turning off see through
            2. Wallpaper flicker on unlock when blur is enabled
PS5: Ignore status bar and nav bar when capturing screenshots
PS6: 1. Remove content observer and unnecessary calls from viewManager
     2. Restructure the flow of setting the custom image
         * now closely follows setting album art as lockscreen image

Change-Id: Ie72bab697726af5e145bd0192980885ea7222ecd

Conflicts:

	services/java/com/android/server/power/DisplayPowerController.java

Fix: Lockscreen Blur Rotation

Credits to David L.-W (David96)
https://github.com/AOSPAL/android_frameworks_base/commit/f80b748

Modifications made to address the issues noted in original commit

Change-Id: I721e7f8554433b903209da5587ac1dfcd83420cd

Removed unneeded string
Base: The Netherlands national Roaming

:: 06-01-2014
- Added for networks
	KPN
	Hi
	Telfort
	Vodafone

:: 07-01-2014
- Changed the config.xml
	Thanks to Andrew Dodd

- Added mcc204-mnc02.
	Network Tele2
	Thanks Silas Arentsen

:: 10-01-2014
- Added mcc204-mnc03, mcc204-mnc10, mcc204-mnc20
	Networks Voiceworks (PrivateGSM), KPN (2?), T-Mobile
	These networks have a GHM band others in this list don't..
	(http://en.wikipedia.org/wiki/Mobile_country_code)
	Thanks Max Weninger!

Change-Id: I4f6d3c7b1feb04cc7f342bdca1f29afc8cbe8e53
base: added national roaming info for Tuenti Movil in Spain

Users of Tuenti Movil in Spain (MCC 214 MNC 05) can roam on Movistar (MCC
214 MNC 07).

Change-Id: Idbb13525d01198f425dc1bff16f5ace5037e7bf5
Keyguard: Fix PIN layout on sw320dp-mdpi devices

Fix a long standing lockscreen layout problem that was introduced in 4.2

Before: http://i.imgur.com/9sVKHRR.png
After: http://i.imgur.com/DLY4DRu.png

Change-Id: Ia3cdc0d10217a0a2504a7287f480d9f036e66eee
core: added national roaming info for Bob in Austria.

Users of Bob in Austria(MCC 232 MNC 11)
  can roam on A1 Austria (MNC 01)

Change-Id: I12dfa3d63643af1026dcfea28a4c9d7acec5f9e9
Revert "SystemUI: apply alpha value to all layouts."

This reverts commit c9ac84dccf60a2c8a39b4877cb6bb8b063c90986.
frameworks/base: added national roaming for BSNL in India

http://jira.omnirom.org/browse/OMNI-391

Change-Id: I81e54f301a70300ff7d2e873480b197c58bbdb8a
frameworks/base: added national roaming for Noverca in Italia

http://jira.omnirom.org/browse/OMNI-377

Change-Id: I1b792244e97114a648efb40c6d01ea0c595cafdd
frameworks/base: added national roaming for Saunalahti in Finland

http://jira.omnirom.org/browse/OMNI-413

Change-Id: I24ec8993dd83fb18efd3f19ae39e845b4701f9dd
Missed import in BatteryService
Keyguard: don't refresh ui when screen off

KeyguardStatusView is doing refresh all the time,
which cause high power when screen off.

PatchSet:
- We turn of the refresh when screen is off which is a good
  idea. But we should force latest next refresh when screen turns
  on. Du that a timechanged refresh maybe comes a bit later.

Change-Id: Ifabdde4419a23e919cd52fe77e78ec3160575af1

Keyguard: fix codestyle

Change-Id: I3f1fbab0ae5434b09766cd69c39a133f4a7039d0
base: added national roaming info for Simyo in Spain

Users of Simyo in Spain (MCC214 MNC09 and MCC214 MNC19) can roam on Orange (MCC214 MNC03).
Change-Id: Ic821078314ebd36323a804f00036ccb89dffbf66
Fix visibility of multiple non-fullscreen activities.

Issue detail:
Assume X, Y are non-fullscreen activities.
 a.Home starts an activity X in task A in application stack.
 b.X starts an activity Y in <task A> or <new task B>
 c.Activity X will be invisible.

How to fix:
Because the function "isActivityOverHome" means an activity is able to see home.
But there may have many non-fullscreen activities between the top non-fullscreen activity and home.
If flag "behindFullscreen" is set, those middle activities will be invisible.
So it should only take care from who is adjacent to home.
Then check two flags frontOfTask(task root) and mOnTopOfHome for constraining the condition.

Change-Id: I60bcea304976414e44835a0a38675aae365e9e19
Before requerying a cursor, check if it is closed.

Before updating a cursor,
it needs to be checked if it is valid.
Currently a defence code only checks
if it is not null.
But in case of "Cursor", it is not valid,
if it is closed.
So just like in CursorAdapter.onContentChanged(),
add the additional defence code to check validation.

Change-Id: I1302f1b6d009897815d4bdb2f20f625688cf9901
Add NULL check in updateProxyConfig

If the exclusionList was null in updateProxyConfig the VM would
crash when converting it to a UTF8 string. Avoid this by adding a
null check.

Change-Id: I0d8106fd54385bd9ae9c652a6c67d459a119cf2b
MountService listeners can not be unregistered

When unregistering MountService listeners, their Binder proxy
objects were compared to registered listeners instead of their
backing objects.

Change-Id: Ie98a686b1d17544f1eda59fb3eb0dc02d836c1b2
Fix preference puts with "null" values.

Null values were being written out as <null /> elements in the
XML prefs file (as expected). This allowed the getFoo() functions
to work correctly because they treated null values as missing mappings
but containsKey would fail.

bug: https://code.google.com/p/android/issues/detail?id=64563
Change-Id: I1f466d01db96bf26e208d4fed3a6f257228bea5d