Swipe: make swipe thresholds uniform across devices

Devices with high screen densities require very small swipes to activate
a key. Make the swipe distance uniform across devices by using the screen
density from ro.sf.lcd_density and activating a key based on the following
thresholds:
  Left/Right swipe: 0.5in
  Up/Down swipe: 0.3in

Change-Id: I39fe4b1007a4e4784d3d7d26a392d78b1adf9462
Merge "Swipe: make swipe thresholds uniform across devices" into cm-10.2
Bump to 6.0.4.5

Make the swipe-enabled refreshes come up in cwm.com

Change-Id: Icdaabe73d6eb87267b9597bb5ef556a9c62cbf94
Add Andy's ear wiggle to recovery

This brings Andy's ear wiggle from aosp recovery
and adds more transparency to let the background
show through.

Patchset 1) Initial commit
Patchset 2) fix rounding issue that lead to
            one pixel offset issue

Change-Id: I6211c5577d54f20abe5ebadb286e101c713f31e5
Merge "Add Andy's ear wiggle to recovery" into cm-10.2
- proper choose_file_menu() to free up used memory

Change-Id: Ie6c482c5ffddd7ebebdc99bbe8ae856e53e1405f
Fix format_device() for new vold paths
This completes the previous patch committed: https://github.com/CyanogenMod/android_bootable_recovery/commit/f4c69bf953881288088be92751712fe92ed94dbd
This how we should always check for valid volumes in recovery start of vold changes to data/media devices

Change-Id: I6912b1b2a473ea8737ea3e415e9a0172bb35eff1
Nandroid menu fixes:
- fix memory overflow bug if vold managed volumes reach MAX_NUM_MANAGED_VOLUMES.
- easier editing: this completes previous two commits to clean up Install Zip menu and Advanced menu

Change-Id: I349cc7b04878b92d902e1ee826d9b4c5bc77cf83
move all recovery settings to one file
fix mount error when changing backup format on non data media devices

Change-Id: I50442a226af1d102786c833c0b53c25bf63c67a6
remove useless code

Change-Id: I021697b42791bc6323c5fa0d9704d27ecfe2c8c1
Loki:
* update to v2.1
* fix broken LG devices + add new ones
* proper code for recovery
* do not lokify after a failed adb install
* use original loki format sources for easier future updates
* fix all compiler warnings
Change-Id: I19826bc9672658ff0af05e33b03e8ac5c5a06e1e
Merge "remove useless code" into cm-10.2
Merge "- proper choose_file_menu() to free up used memory" into cm-10.2
Merge "move all recovery settings to one file fix mount error when changing backup format on non data media devices" into cm-10.2
Merge "Nandroid menu fixes: - fix memory overflow bug if vold managed volumes reach MAX_NUM_MANAGED_VOLUMES. - easier editing: this completes previous two commits to clean up Install Zip menu and Advanced menu" into cm-10.2
Merge "Fix format_device() for new vold paths This completes the previous patch committed: https://github.com/CyanogenMod/android_bootable_recovery/commit/f4c69bf953881288088be92751712fe92ed94dbd This how we should always check for valid volumes in recovery start of vold changes to data/media devices" into cm-10.2
Bump recovery to 6.0.4.6

Change-Id: I692b104b28533532cc2f192db8b337c6c46c32b6
recovery: Fix the configuration of default_backup_format

I believe that this was missed (and therefore broken) in this commit:

commit a46e1bd7b32dc3ab660518a1aeab2f99d1ec518b
Author: philz-cwm6 <phytowardt@gmail.com>
Date:   Sun Dec 1 22:26:45 2013 +0100

    Define paths for recovery settings files in a separate header

    Also, use get_primary_storage_path() to define the locations of .no_conf
    .many_confirm, and .hidenandroidprogress instead of hard-coding /sdcard/

    Change-Id: I50442a226af1d102786c833c0b53c25bf63c67a6
    (cherry picked from commit bd0fe453f6ca242f0ed868b4c0934af29d499bba)

Conflicts:
	nandroid.c

Change-Id: I7e6541071b35f0725accabd9cb6cc27b3f7d0a57
recovery: Add support for performance control

 * Recovery will now set "recovery.perf.mode" to 1 before a
   backup/restore operation begins, and will set it back to 0
   when the operation is complete. It will also do this during
   package installations.
 * This allows devices to boot into recovery in a low-power mode,
   and bring up more cores and adjust other settings. Pigz is
   multithreaded, and enabling all cores vastly improves performance of
   compressed backups.
 * Device maintainers who wish to use this should configure their
   init.recovery script to trigger off of this property.

Change-Id: I174e45215ad1cd34a34b1af4486a64fb6e54134b
Fix potential chmod failures

1) ensure_directory: only chmod if directory exists or is created
2) nandroid_backup: if the backup is stored on a different volume than
/sdcard, then these chmod commands will fail. Correct the backup paths.

Change-Id: Ia54c27fdf861c90a4de86346893f334420060090