Restore pre-KitKat permissions to external sd for all apps

Change-Id: Ib3ff52bcc47fd36e8f3fc5aefeaae4e56180e7c6
Core/SystemUI/Keyguard: zh-rCN translations

Change-Id: I099551649620f4ea0deeb42565f157c356fccd66
add VoiceWakeup Settings value

Change-Id: I798d1ed9b2bda0fe8a36b8fa2bd17d74d2a09cab
Keyguard: allow keyguard to be dismissed via intent

Requires system permission "android.permission.CONTROL_KEYGUARD"

Change-Id: I9f8f5ca90a65b949d43fac33ce3e9e39ffdf9254
Signed-off-by: Roman Birg <roman@cyngn.com>
Use checkOperation in BroadcastQueue.

ActivityManagerService uses NoteOperation before delivering a broadcast to
a package. NoteOperation can be blocking due to permisison dialog box.

Use non-blocking checkOperation in BroadcastQueue.

Change-Id: Iccded96217d99589aed771f2f3c15d0a39d9a340
frameworks: add SmartCover stubs

Change-Id: Ibde77eb23b604afb20b54642113fcdae9c87fd1b
Signed-off-by: Roman Birg <roman@cyngn.com>
Duplicate sounds file names are displayed in notification list

There are few duplicate notification sound files present in
/data/sounds/notifications & data/sounds/notifications/ogg.
- arcturus.ogg
- vega.ogg

Maintain sound files only under /data/sounds/notifications/ogg.

Change-Id: Ibe347ed03d19a1ce4cb13c1bce1e4bbc26cb61be
CRs-fixed: 630101
ActivityManager: Update timeline debug statements

Update the timeline debug messages so that
'ActivityManager' is not used as the tag in log
messages as it interferes with some CTS tests.
CRs-fixed: 628703

Change-Id: I18c04eb47263246b6cf293210ba603127be99bd9
Separate Change Encryption Password Entry (2 of 2)

This permits the use of a different (hopefully longer and more complex!) encryption password,
while using a simpler (and easier to type) lockscreen password.

Requires Settings change to give UI for this

(port to cm11 - cyanogen)

Conflicts:
	core/java/com/android/internal/widget/LockPatternUtils.java

Change-Id: Ib54532f92f4f3beb8713fd73e466ae46b7e15f7d
Merge "Restore pre-KitKat permissions to external sd for all apps" into pac-4.4
Merge "Separate Change Encryption Password Entry (2 of 2)" into pac-4.4
Fixed two duplicate functions

Change-Id: Ia2920ca932bf6262bf825bfe4e79d39dc602fd63
Revert some battery changes and bluetooth changes for the battery saver mode.
Will re-implement the bluetooth changes after.

Revert "battery saver mode: updates (1/2)"

This reverts commit 2b604f5059be7c222dbbcb556df9cec4b5879be2.

Revert "battery saver mode: a bit of a revamp"

This reverts commit 475296b424f6acfdf48f34a14879bf7d66262c64.

Revert "battery saver mode: updates and LTE/4G fixes"

This reverts commit 07a3f439898510ad8dfa74e815860f45d8913ed4.

Revert "battery saver mode updates"

This reverts commit 85457e8e6d5168c5388a1fcd7759daef2fc836d9.

Revert "[1/3] Base: Battery Saver mode"

This reverts commit 11765549e98071bd9cec210c919e56fcebceff98.

Revert "show connected devices or name of single device on Bluetooth Tile"

This reverts commit cc344417ef4090bf2a4d969a4146c975d80d4329.

Change-Id: I3fd56ca761f0d81ff6993345f0c64dcf2ff3968f
[1/2] Base: Battery Saver mode

Concept:
http://jira.omnirom.org/browse/CONCEPT-24

introduce battery saver mode
this based from what user want or what user do to saving the battery life
this include:
1. Automatically switch mobile network into what user choice and also disable mobile data IF wifi connected to an AP
2. Automatically switch mobile network and disable mobile data IF battery low (battery level can configure)
3. Reduce screen brightness based low battery (this feature will disabled if Auto brightness mode enabled)
4. Not changing network IF on Call or Usb tether enabled or WifiAP enabled
5. Not changing network IF there is Download/upload progress
6. Support For Both GSM and CDMA devices (need someone to test for CDMA devices)
7. every condition has an option :D
8. Restore all network configuration if battery saver mode disabled
9. Add Time Range to start battery saver mode
10. allow device without mobile data support, to using this feature
11. fix inconsistent battery low level
12. rewrite to better performance
13. modified the controller to support battery saver mode
14. add bluetooth, gps, wifi, and mobile data (if support) to be disabled while power saving activated
15. fix build QuickSettings because of LocationController change
16. rewrite to better performance
17. fix brightness value
18. rewrite (again) to allow add more saving mode
19. do delay changing only for POWER SAVING not NORMAL mode
20. add Cpu power saving mode
21. fix Cpu freq value
22. fix call saving state for non user configuration mode
23. fix NPE
24. add kill all task
25. add disable sync
26. add disable vibrate
27. add disable led
28. add notification :)
29. finally fix sync interval :D

preview:
http://jira.omnirom.org/secure/attachment/10394/Screenshot_2014-03-07-19-54-57.png
http://jira.omnirom.org/secure/attachment/10395/Screenshot_2014-03-07-19-55-56.png
http://jira.omnirom.org/secure/attachment/10396/Screenshot_2014-03-07-19-56-06.png
http://jira.omnirom.org/secure/attachment/10397/Screenshot_2014-03-07-19-56-14.png
http://jira.omnirom.org/secure/attachment/10398/Screenshot_2014-03-07-19-56-27.png
http://jira.omnirom.org/secure/attachment/10399/Screenshot_2014-03-07-19-56-34.png

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java

Change-Id: I9d86ef1425228e11cadd85d37c5b6e8b20e50fb0
Merge "Core/SystemUI/Keyguard: zh-rCN translations" into pac-4.4
FW: SlimRecents: do not kill favorite recent apps

Original commit message :

Due of a lot user requests and I basically like the idea (not a fan of clear all apps at all
due that it does not make sense android wise) we ehance the favorite recent apps feature.

This commit basically does not remove the apps from the task list which were marked from the user
as favorite.

3 possibilities:

- No favorites are in the task list - clear all behaves like it was before - all tasks cleared and panel closes

- favorites and non favorites are in the task list - clear all removes all non favorite tasks and favorite tasks stay.
  Yes without fancy animations....we want to be fast ;) - panel stays open

- only favorites are in the list - pinch to zoom out is blocked due that nothing is there to clear all.

single clear of a task with swipe behaves in all cases normal like it was before this change
---------------------------------------------------------------------------------------------------------

PS2: update author

Change-Id: Ifbbfd9bdd9800f4c207f244427e69f16899e8707
FW: SlimRecents: Adress the 50ms touch unsresponsive issue

Original message:

User reported that if the screen is fully animated in that the touch
detection is not working for about the first 50ms. For user who are working
fast this is indeed an issue. Especially due that the recent screen speeds
up the workflow much already.

Problem is our third loading stage due that after the recent screen animates in
it calls getView on all elements which rebuilds the touch listeners and cause to
the slight timeframe where it is unresponsive.

Well the third loading stage was a left over from the first optimizations when
we started to develop this feature. Other optimizations are into place now so we
do not really need the third loading stage at all. So instead of handling now
the fix in the getView implementation of the arrayadapter we simply just remove the
third loading stage completely.

PS:
- small other optimization
-------------------------------------------------------------------

PS2: update author

Change-Id: Ie310269f8b8013bfdb39c5a8c45ceef42fb5f87c
base: Fix screen on stats after a boot

Prior to this change, the following sequence:

  * Turn the display off
  * Issue a reboot via adb
  * Unlock the device (after rebooting) before the screen turns off

results in the screen being on but the battery stats not reflecting
this fact.

In general, the mismatch occurs when either there is no serialized
battery stats state or when it is serialized in a state where the
screen is off.

Change-Id: I17374553fae6a08a1be8fdf445967509474177a9
Add control flag for SIM app auto provisioning

Add one bool value config_auto_provision_enable in config.xml to control
the SIM app auto provisioning, false by default.

PS1: fix falcon build see error log
http://gw.gd/quIj
PS2: remove symbols changes

Change-Id: Ifc19a219769caeca77cfe498fc4ce6a920613dbd
Revert "[1/2] Base: Battery Saver mode"

This reverts commit 25362760be2f1da128d05f5dbe9090c6fcef51a3.