Quiet Hours (1/3) - CM

Signed-off-by: sethyx <sethyx@gmail.com>
Change-Id: Ib8fc8875d69249023876c7f05af30d96831691b5
QuietHours: Change Logic (2/2)

Makes sense to me that turning QuietHours
    on should TURN QUIET HOURS ON with
    default time constraints applied.
I.E. QuietHours between 12:00am && 12:00am
    means QuietHours all day.  Having to
    adjust end time to 11:59 is redundant
    and not exactly the clearest implementation.
    Especially when we have a QuickToggle that
    directly toggles the setting on/off.

PS2: Vibrations as well.

Change-Id: Ib4893f9b47cf60fc0c55bf01b5453579385039b5
fix for screenshot animation glitch in portrait

edits by Stefano Semeraro aka Suxsem.

Change-Id: I7a03a24c5b1bfdfe616f940b2bd7be42091f45a6
move hardware custom key binding to revolt settings table

Signed-off-by: Jonathan Steadman <xxwhitehawk@gmail.com>

Conflicts:

	packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
SystemUI: re-implement statusbar brightness slider

Change-Id: I96db3d8f40adf3726f4140c3ad3a7122e0ad6add
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Revert "Status bar brightness control from CM10 (Frameworks portion)"

This reverts commit 22a29d694a98d96fbfd9094fe8b5c38775cb9dc7.
Squashed commit of the theme engine support.

Updated 4.2 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.

I'm finally dropping the 400+ commit history on this, since everybody
else keeps picking it up from CM as a single patch anyway... But
for the record, nothing of this would be possible without Josh, Ed,
and the rest of the TMo guys who wrote and maintained it until 2.2:

amit chabra <amit.chabra@t-mobile.com>
Amit Kohli <amit.kohli@t-mobile.com>
Chris Cogar <chriscogar@t-mobile.com>
Dirk Sigurdson <dirk.sigurdson@t-mobile.com>
Ed Carrigan <edward.carrigan@t-mobile.com>
Gaurav Sharma <gaurav.sharma3@t-mobile.com>
Hui Feng <hui.feng@t-mobile.com>
John Ritz <john.ritz1@t-mobile.com>
Josh Guilfoyle <josh.guilfoyle@t-mobile.com>
Mark Roberts <mark.roberts48@t-mobile.com>
Pankaj Kumar <Pankaj.kumar6@t-mobile.com>
Samuel Cheung <samuel.cheung@t-mobile.com>
Sergey Ten <sergey.ten6@t-mobile.com>

Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
@hide API change from themes

Change-Id: Ia0798346d2e8e5a84e8456bb89b7d503a71a7afa

Conflicts:
	core/java/android/content/res/Resources.java
Framework: Remove orphaned Theme related code

Change-Id: I930d4cc75e655c5bc37532e6a1425d27bd1ee661
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>
SystemUI: Reinflate on theme change

Reflect the updated assets immediately once the config_changed
notification happens

Change-Id: I480a719fbdd45875277871af39ce65849918ec0a
Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Fix theme provider crashing for non-primary user.

PackageManagerService's context is for user 0, so if the theme provider
for other users was invoking the getInstalledThemePackages() method, the
themes provider crashed as it doesn't have the INTERACT_ACROSS_USERS
permission.
Fix that (and simplify code) by making getInstalledThemePackages()
return the installed themes for the current user, which was probably the
intent anyway.

Change-Id: I02002cee005b74128f3b2f7cc7a93b9b8514f1f3
ThemeUtils: Retain the original package name in themed UI context

In order for themes to reflect on system elements, we're changing
their context, including the package name.

This breaks anything that tries to identify system elements,
most notably any users of the uiautomator. Trying to do
'UiSelector().packageName("android")' to find, for example,
a force-close dialog will fail.

Fixes com.android.cts.uiautomatortest.CtsUiAutomatorTest#testUiWatcher

Change-Id: Ic05c3024b20ac3772ed5597846fbfa4a184ebb0d
PackageManager: Let com.tmobile.thememanager access privileged permissions

Needed for CHANGE_CONFIGURATION

Change-Id: If50b0926d77e15e18ef5e88d7efac1b7f209d6e4
ResourcesManager: Fix theme insertion at boot

This was lost during the 4.4 ActivityThread reshuffle, put it back

Change-Id: I96eadf691973e9a2daa099b55816fc103d129be7
platform: Fix the gid for the theme manager service

It was mismatched with fs_config, resulting in attribution of the
"-1" gid

Change-Id: Ia6d55af0b39f659da2965f9bc0bda0df5c775ba4
PackageManager: Prevent themes from going into ASEC containers

Themes on ASEC cause all kinds of random timing/racey issues at boot
time, and more kinds of racey concurrency issues at uninstall/upgrade
time. Stop them from getting into containers at all.

Change-Id: If08e90c51137b22239831a4eca17ea00d5d87d93
Framework: fix theme engine merge

Change-Id: If4b0934722a113b63f0e18598799366510169a88
Signed-off-by: Roman Birg <romanbirg@gmail.com>
AssetAtlas: Fix NPE when there are no preloaded resources

Change-Id: I8ef4b113cc6ade14764dc1651b2358df9c48ef35
Signed-off-by: Roman Birg <romanbirg@gmail.com>
PowerManager: Don't wake up device when charger is plugged/unplugged (1/2)

This will add the option to disable waking up the device when a charger
is plugged or unplugged.

Change-Id: I3367041a05931510f367dafe412b173c80b89df1
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
DocumentsUI: Add a standalone File Manager

This commit adds a standalone mode to the DocumentsUI, to let
it act as a file manager/explorer.
You can browse your storage contents, open files, and delete them,
as well as do everything that the DocumentsUI can do (ie. sort
by name/size/type, list and grid view, recents, search, ...).

This gives us a consistent file browsing UX accross all apps
that uses the new documents API.

Change-Id: If73a3c100f010bdb766c843976d4fd3573ea805c