MiniThumbFile: Fix image/bitmap retrieval

Change I66005dd69b0a5c8f4353bd7a8225d163a654fd2d changed the insertion
and creation indexing mechanism, but the retrieval method was still
using the old sparse one. Fixit

Fixes android.provider.cts.MediaStore_Images_MediaTest#testInsertImageWithBitmap,
android.provider.cts.MediaStore_Images_MediaTest#testInsertImageWithImagePath,
android.provider.cts.MediaStore_Images_ThumbnailsTest#testQueryExternalMiniThumbnails,
and android.provider.cts.MediaStore_Video_ThumbnailsTest#testGetThumbnail

Change-Id: I41feea79fa304635f3908055fb95a8c85718a97f
SystemUI: fix wrong statusbar background.

If we turned off screen while some panel was visible than
background of PhoneStatusBarView will not be updated because we receiving single
panelExpansionChanged call and after super.panelExpansionChanged mFadingPanel
will be null (onAllPanelsCollapsed cause this).

Allow updating background when mFadingPanel is null.

Change-Id: Ib123f27500790c1b7ec787b7e433372629daa08d
Revert "Fix Quick Settings tiles jerking down while animating to notifications view"

This reverts commit 088c27b268d2e2ccce9af1f30b1290e5367cc622.
Revert "Frameworks: QS performance profiles tile"

This reverts commit 992378fc960681e8446d0a12565eabf6da7a2c6d.

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/cm_strings.xml
	core/res/res/values/symbols.xml

Change-Id: I50a19e388c92d8120eb251d86993c1248460783c
Revert "QuickSettings: Harmonize the behavior of the Location tile"

This reverts commit a3d57f5112048ccab72806636daeea6c425821cd.
Revert "SystemUI: Update adb over network icons to kitkat colors"

This reverts commit 5cbe06694585c381e07f2fb7899de17d0e2bbefe.
Revert "QuickSettings: Port from cm-10.2 (Squashed commit)"

This reverts commit 7adaac706ce987c9fd1c9fc1d4b44078c031f8f4.

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Change-Id: I46b663b6e0010d8f2603645d8613cdf27e99da40
Quicksettings customizations Slim style

First thank to CM for the general base idea.....but we changed, fixed a lot
as well the UX is not the best on original implementation. It is way to much
to list all down what we changed and ehanced and fixed...so just a small overview

Whatever this patch adds following tiles:

Airplane mode
Battery
Bluetooth
Brightness
Go to sleep
Location
Torch
Lock screen
LTE
Mobile data
Orientation
Settings
Sound
Sync
Wi-Fi AP
Wi-Fi
User switcher
Network mode
NFC
Screen timeout
Quiet hours
Volume
Expanded desktop
Music - new nifty one ;)
Reboot

and the usual dynamic tiles which are always dynamic now. As well we put all setup
options into one screen.

as reference see

http://s1.directupload.net/file/d/3461/phhimlo7_png.htm
http://s7.directupload.net/file/d/3461/fvaxgins_png.htm

and video
http://www.file-upload.net/download-8362155/drawer.mp4.html

PS2: QuietHours broadcast
PS3: Context derp.
PS4
- revert QS battery tile implementation and move it into new
  Battery tile
- move click action to longpress on alarmtile for more consistent
- collapse qs for location tile to show the confirmation dialog
  when turning on
PS5: change sleep screen icon back to our power icon and add longpress
     action to open power menu
PS6: rename GpsTile into LocationTile and do not remove it on devices
     without GPS due that location is always available over wifi as well
     minor icon corrections
PS8:
- added expanded desktop
- added Music tile
- minor fixe
PS9:
- tweek the music tile...check the video
http://slim.mimic.ca/images/music_tile.mp4

PS10:
- better controll of the picture stream on the music tile
- send a broadcast if no bindable music callerId is present
  to force music player to start
PS11:
- fix location tile
PS12:
- add lincenses and changed on some tiles the click and lonpress behaviours
  to be consistent
PS13:
- tweek screen time out tile and added never as option to it
PS14:
- added reboot/recovery tile
- added text color
- tile quanitity per row including text resize
- added tile bg color
- added tile bg pressed color
- added tile bg alpha
- added langscape duplicate or not option
- some tweeks and minor fixes
PS15:
- remove depreciated code
- reboot tile add a small delay before calling final reboot
- remove added padding....not needed any more with the new style
PS16:
- better settings support
PS17:
- add more dynamic tile layout to handle better 3,4,5 tiles in a row
PS18
- wifi tile as well sorry

custom tile not sure if we do in initial version...lets see. Settings is a lot
work due that I want to change a lot on our old version

Other then that it seems to be done now :)

so lets go doing the settings lol

Change-Id: I41c4e06198b0849dba3eefa6f05536d606b49d3b
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/values/colors.xml
	packages/SystemUI/res/values/slim_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	telephony/java/com/android/internal/telephony/ITelephony.aidl
systemUI: add swipe QS to Notifications and back

Change-Id: I95aaa4fa1b0e8f74537e48936fe2c0f9f15671dd
Fixes and turn into beanstalk

Change-Id: I69aff02d6c4cd590913ad04b63db762a4a2af122
Signed-off-by: scott <scott@ubuntu>
Framework: Quick Settings Pulldown thanks CM

Change-Id: I322ec2726ec3e6741ea68dee77b56b73c247d11c
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
fb: fix qs battery tile on normal icon due of left over

I forgot to commit a change so on icon and icon percentage there
was still a margin set. Remove the magin to fix it

Change-Id: If8848835d2371b44d3dc414a9f30af03f222a895
Revert "ExternalStorageProvider: Add support for root and external storage"

This reverts commit 6bacb5f0c6a79fc67956ccadc053522ec5049d32.
Revert "frameworks/base: Use ExtendedRemoteDisplay to launch Wifi Display"

This reverts commit 669710430dd30654aae77e9c669f29542e45ea84.
Revert "android_os_FileUtils_getVolumeUUID: Fix the incorrect logical for call blkid_get_tag_value."

This reverts commit dd3cf3b47a88e88922715c02e2c744f086936ecf.
Revert "FileUtils: add method to get UUID of a volume"

This reverts commit 095bd57772f3ee906664b794aae9fe2f510f0bee.
Merge remote-tracking branch 'aosp/kitkat-mr1-release' into HEAD

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java
	packages/SystemUI/AndroidManifest.xml
	packages/SystemUI/res/layout/status_bar.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarTransitions.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
	policy/src/com/android/internal/policy/impl/PhoneWindow.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java
	services/java/com/android/server/am/ActivityStack.java
	services/java/com/android/server/power/DisplayPowerController.java
	tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/RenderAction.java
	tools/layoutlib/create/src/com/android/tools/layoutlib/create/Main.java

Change-Id: Iaa150fb08789d703d138b745f2f54bb02842bbd2

Conflicts:
	core/java/android/app/Activity.java
	packages/SystemUI/res/layout-land/status_bar_recent_panel.xml
	packages/SystemUI/res/layout/status_bar_recent_panel.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	services/java/com/android/server/SystemServer.java
	services/java/com/android/server/am/ActivityManagerService.java
	services/java/com/android/server/am/ActivityStack.java
Thanks for the doing the heavy lifting on the merge slim, but i dont
want your wallpaper.  :)

Change-Id: If8b2997c1c8a62e441d1f489911642cb340aa4c5
Signed-off-by: scott <scott@ubuntu>
    fb: qs tweeks

    - fix fc problem on tablets
    - fix filtering of unsupported tiles
    - add music tile options (disable artwork, disable track title optional)
    - add instance handling as well to the tile chooser dialog
    - add cancel button to chooser dialog
    - battery tile short press now battery stats - longpress batteryicon settings
    - rotation tile lonpress - rotation settings
    - collapse drawer on go to sleep tile

Change-Id: I98e5c0c3fd7914de6a6b470f0d816af6028a3c5c
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
Frameworks: Lockscreen Colors and Lock Image [1/2]

PS2: Separate all color elements
	into separate prefs.
	Also colorize bouncer frame
	for secure lockscreens.
PS3: Whitespace

PS?: Add Lock Icon Picker =]
PS?: Add "Colorize Custom Icon" option.

Change-Id: I542dfa01bb1d3d0e401bbf8a5f58b32f08cbfc62
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java