add lockscreen wallpapers to pattern unlock

Change-Id: Id39fd36518881e1e01601bf2280a75a35d8f9a67
Signed-off-by: Roman Birg <romanbirg@gmail.com>
add lockscreen wallpaper to pin locksceen

Change-Id: I31528d5e5811385dbf480468eb266b4efd22a8f9
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Send a weather refresh intent when SystemUI starts

Weather information disappears after SystemUI restarts,
   use SystemUI instead of BOOT_COMPLETED intent

Depends on http://gerrit.sudoservers.com:8080/#/c/189/
   so that weather doesn't get polled if the user
   doesn't have it enabled

Change-Id: I83ade08592baa7c90d83f35eb7633fc6235e81d2
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Really add NavBar Hide feature this time.
It got squashed somehow in last set of commits.

Change-Id: Ifd5280f99a209078fbe967c031712ec7bddcce89
Signed-off-by: Mike Wilson <mwilson@acesappraisal.com>
Revert "Only turn off torch if it's on"

This reverts commit 6cce039354171ea978027281c0247b518c509905.
Sense 4.0 recent app style - by evilisto
http://forum.xda-developers.com/showthread.php?p=24623171
Add Hot Reboot Options to Power Menu
Add Suspend Mode to PowerMenu
Fixing a bug that when an app is dismissed or loaded that changes

the current active audio stream, if the volume overlay is visible during the swap,
if you adjust the volume (with hard keys) after the steam has changed while
the panel is still visible, the wrong panel (view) is still visible on-top of the
one that is being adjusted.

A good way to replicate this is to
   Open the Phone APP
   Go to the Keypad Screen
   Adjust the volume (not the icon on the overlay)
   While the volume is visible Hit the HOME hard key
   Before the volume dissapears, adjust the volume with hard keys

You will hear and feel the volume adjusting, but the overlay will not update.

Change-Id: I1c7a23d6e569d8582d3dab20523eef3aa9bdde0c
Change Default Wallpaper
InputReader : Merge with CM updates
ADB Over Network, integration of the adb-host mode (already present)

The feature can be used/tested without the Settings part :

  setprop service.adb.tcp.port 5555

Note: This ADB setting is not persistent (for security purpose) and
require init.rc implementation event like this : http://bit.ly/AdbTcpIP

Change-Id: Idc1bbbc0301e575870d10f47cb27dedcb4f16dba
Hiding media from folder with .nomedia file.

This patch allows media files present in a folder with
a .nomedia file to be hidden after these files have been
previously indexed.

Bug: http://code.google.com/p/android/issues/detail?id=24162

Change-Id: Ia42133d0a7b119c76b5eaaffabd054aa1a739817
Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
Allow mounting of multiple volumes via mass storage (framework part)

The volumes to mount is taken from storage_list.xml (allowMassStorage)
rather than ro.additionalmounts in CM7.

Hand ported from the following patches:

commit 0233209827d95221399b1fe0185f79863fc6bf26
Author: Tony Layher <layhertony@gmail.com>
Date:   Sun Jan 2 12:46:38 2011 -0500

    forward port of 93bb95929a0c017498625a87654b4d114fe17b96 to allow mounting and sharing of mulitple volumes to MountService.

    Change-Id: I9fa3994e6e7b85360b451f57c1cdd4df921bc035

(the second part of the above patch was not ported)

commit 678fadf517126c8468ef2d8dcaea9c9fce96035b
Author: Josh Stone <cuviper@gmail.com>
Date:   Sun Nov 7 13:38:58 2010 -0800

    MountService: Remount all volumes after USB disconnect

    If USB was removed while UMS was enabled, the MountService was only
    remounting the primary share.  Any other shares, like the HTC Inc's
    emmc, were left in limbo.  This patch now iterates over *all* shared
    volumes to remount after disconnect.

    Change-Id: Ie6fd49ad80ba6fa0e4e194a386549cac786b4bbe
    Signed-off-by: Josh Stone <cuviper@gmail.com>

commit b1da9ed003edcd10ccda56fdf087e8f1b0f77b2a
Author: Josh Stone <cuviper@gmail.com>
Date:   Sat Jan 22 12:03:53 2011 -0800

    MountService: Only notify PackageManager for true ASEC changes

    MountService can be dealing with multiple mounts (emmc, sdcard), but
    only the EXTERNAL_STORAGE has any ASEC mounts on it.  Since the PMS
    updateExternalMediaStatus doesn't specify the path, we need to make sure
    it's only called for the real ASEC mount.  Otherwise we get into nasty
    race conditions when multiple mounts are coming and going, like during
    UMS transitions, and sdcard-installed apps tend to break.

    Change-Id: I85c6a601e84afd30b44270b0892686c2d864ce8d

commit c8c58f3d14fbb8c77ab1e90541e59fb74bef54cf
Author: Josh Stone <cuviper@gmail.com>
Date:   Sun Mar 6 12:34:50 2011 -0800

    MountService: Unmount secondary volumes more carefully

    Use the same message handler for unmounting both the ASEC external-
    storage path and any secondary paths like emmc.  This seems to help with
    additional race conditions encountered on Inc.

    Change-Id: Icca71756fa6721bd85da1f35b8b8c7fc7caa1eb1

commit 47495ab860ed97499e0c4268bf40b1f9c429bf99
Author: atinm <atinm.dev@gmail.com>
Date:   Sun Apr 10 14:50:41 2011 -0400

    Allow multiple shareable SD Cards by using getShareableVolumes()
    to get all the volumes that are shareable and allowing
    sharing/unsharing for all of them rather than just the hardcoded
    getExternalStorage calls.

    Unmount immediately if PM is not updating and not an ASEC
    mount. Change from Josh Stone.
    Change-Id: Iaf1a7a4484deac373e1c1d7bf16d5f22ca49fd64

    Only allow package manager for sdcard (packages aren't on
    external card).

    Change-Id: I0d148ea52dc1285905a9dd061d1ceedcfb761b52

    Take out extra logging.

    Change-Id: I6beb007700ef4be04c3eb273bbf2069c87b30011

Change-Id: Ibc11b9affdf22a438a4d25cf14435fb16b3ad6d6
Make "SD Card removed" notification dismissible if the removed SD Card is not the primary storage

The Galaxy S uses the "external SD Card" as the extended storage
and it the notification should be dismissible as it's okay not
to have it.

Additionally, this patch also not hide the USB storage mount dialog
if the removed storage is not the primary storage

Change-Id: I524b294c57ba80f19cf1af808af65ce1308f5a0b
PackageManager: Restrict system packages to protected storage

Don't allow packages signed with the platform key to be
installed into user (or app) controlled storage

(cherry-picked from 64fa8092090d067d78163b8ebce45baa1123ce9d
 with changed file path)

Patch set 2: Fix compile error due to changed function name

Change-Id: I7390b3bdf5289411f7a335c69635bed9f74bbfb3
Add framework definition to include Torch

Change-Id: I21de929089b06e5022f90c1fab6228a543102a19
policy: Fix slide lid open state

by commit 4aed78b5056560f499e5953f659fa90a06ecc38a lidOpen was reverted.
fix to make lidOpen true when sw == 0.
and fix getStateLocked()/getState() to get UP/DOWN state correctly.

Change-Id: I22a185478be860f1c88cf56d7ef3d0b3a8617459
ADB Over Network, integration of the adb-host mode (already present)

The feature can be used/tested without the Settings part :

  setprop service.adb.tcp.port 5555

Note: This ADB setting is not persistent (for security purpose) and
require init.rc implementation event like this : http://bit.ly/AdbTcpIP

Change-Id: Idc1bbbc0301e575870d10f47cb27dedcb4f16dba
Clean up ADB over network

- Don't read or set "persist.service.adb.enable", it is deprecated
  and is read and cleared by UsbDeviceManager every boot. Trying
  to read it will always yield "" because it was already cleared
  by UsbDeviceManager (thus disabling adb debug every boot). Trying
  to set it doesn't have any effect because adb is now started by
  "sys.usb.config".

- In UsbDeviceManager, don't call AdbSettingsObserver when enabling
  or disabling adb over network because that function is only for
  enabling/disabling adb.

Change-Id: Ib6c1a655277c7f6d7395595ccfe3bac29c0582fe