FW: add spacers to Traditional Toggles.

Scrollable toggles merge also included adding backgrounds to
traditional toggles.  on rows that didn't have 6 Toggles,
those backgrounds would be stretched.  This adds
spacers on the ends of the last row to force the toggles/
backgrounds to keep the proper size/shape.
samples:

http://twitpic.com/cecf8t
http://t.co/32t0A6Qc6T

PS2:  Include background drawables on spacers. Looks a little more
uniform.  Samples:

http://t.co/ryaHhizEgF
http://t.co/fw5QZAsocQ

Change-Id: Id086383ec72e682b8f005e9a17b6ecb6bd0e018b
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
Fix resource leak: When call MediaMetadataRetriever.setDataSource or getFrameAtTime should ensure call release in finally to avoid resource leak
                   Patch set 2: Remove unnecessary white spaces

Change-Id: I49a7f2fb99dc8b9560e7c17421125356e45a87ac
MDPI devices compatibility

Patch-set 1: Now Lockscreen configuration in ROMControl doesn't crash

Signed-off-by: utak3r <piotr.borys@gmail.com>

Change-Id: I405331498128ee59b0603dc191db5adfa8d0db89
SysUI : Fix opacity of LastApp Icon

Thanks to Nitroz for making alpha corrected versions of the
last app icon.

Change-Id: I2e8a9ae36e32f03aa36d3218c74d76b88123e64e
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
SysUI:  Prevent Kill-Task from killing SystemUI.

If recents screen was active when Kill-Task button pressed, SysUI
was getting killed (causing wallpaper reset).  This
prevents SystemUI from being killed.

Change-Id: I3b669b29e5c244246ac02ad1ce6b4e39f7270aaa
Signed-off-by: Zaphod <mwilson@acesappraisal.com>
FW: New unlock logic for lockscreen

This lets you move the unlock button and still keep
the magnetic targets...

Change-Id: I4f70036836f44362bfc19ad7a3ab3fb7863ea664
SystemUI: Screenshot Toggle

onClick: Screenshot now(collpase status bar)
onLongClick: Starts 'timer' and screenshot after timer expires

PS2: Remove rebootmenu calls from PWM and add 500ms delay to allow statusbar to
         fully collapse

PS3,4: Redependcize commits
PS5: Secure Screenshot
PS6: Resolved conflicts
PS8: Respect RC delay setting & fix drawable padding
PS9: Removed to-do
PS10: collapseStatusBar() for longclick and added toast
PS11: reduce toast length to avoid capturing it. also make it translatable

Signed-off-by: bmc08gt <bmc08gt.teamb00sted@gmail.com>
Change-Id: I2cebb23e530a92901319b7171c3934125568c3ab

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/strings.xml
	packages/SystemUI/res/values/strings_toggles.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
disable camera sounds (2/3)

Change-Id: Iaa37bc6790fe32664f8b52178c14fe926ca7d4ce
Signed-off-by: sethyx <sethyx@gmail.com>
Remove opaque check in GLRenderer when preparing dirty region.

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new process. This prevents
garbage to be present from the previous process in the color buffer.

CRs-Fixed: 391492, 403067, 405916

Change-Id: I1f72a3dee2f5d58a984f4cd367c9f7bf08ab9d6a

Conflicts:

	libs/hwui/OpenGLRenderer.cpp

[PATCH] Remove opaque check in preparing dirty region

Since preserved swap is enabled, we need to clear the color buffer
when the scissor rect is prepared for a new rocess. This prevents
garbage to be present from the previous process in the color buffer.

(cherry picked from commit 2b5e584e2615852b68a69bb529c6926190246b64)

Change-Id: I92a4fa35e0746f12fcd736e21fd30d9c4b644a8a
CRs-Fixed: 391492, 403067, 405916

Conflicts:

	libs/hwui/OpenGLRenderer.cpp

Enable scissor when preparing dirty rect that is opaque

Now enabling scissor before setting it in the opaque case, previously was not doing so.

Change-Id: I1ea904cf01603096e423556090564291ab712d36
CRs-Fixed: 465346
Depends-on: 278453
Tighten enforcement of file modes.

Bug: 8275867
Change-Id: I4da14f2dd0049aca69636999696c1f3c02b3b792
policy: add missing spacer view

Statusbar and toggle views were squished together,
looks like this got left out.

Change-Id: I0a580662fa75d3b430536b6820df9d040eb51384
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Framework: CustomToggle [WIP]

Early Early Early stages.
Probably going to need A LOT of help here.

Also, Yes.  You're ALL being kanged <3

So far...SteveSpear426.
More WILL Follow.

PS4: Thanks to SteveSpear for Finding My Derp.
PS6: Fix States && LongClick Logic
PS7: Whoops.  Let's pretend PS6 never happened.
PS8: Added Some Options / Fixed State at Boot (maybe)
PS9: Actually set at boot (per option)
PS10: Option to Change Action Logic
PS11: More Options
PS12: Set On Boot Fix For "Basic" Toggle
PS13: Bothering me.  I'll get digging this weekend...
        Just a quick avoidance of runnable if not
        needed.
PS14: Refactored to follow the new NavBar UI in ROMControl.
PS15: commit message derp.
PS16: Rebase against dependcies
PS17: CustomState presists across death
PS18: Derp
PS19: Spacing errors
PS20: Rebased
PS21: Revise Option Default Per RC Update

Change-Id: I80f157d1a8d68ad0b21028aa7d730025e2ceea04

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/strings_toggles.xml
	packages/SystemUI/src/com/android/systemui/statusbar/toggles/ToggleManager.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
[HTML5] Implementation of WebSockets (framework).

Added binding to android port for Html5 WebSockets.
Added external API for enabling\disabling from browser.
SSL Web Sockets are not implemented in the current version.

Change-Id: I8b7a42780410cb9f043e1f16570ea50db68e00ea
Fix race condition in backlight adjustment.

When configuring the automatic backlight levels, there's a race
condition in setting the lux and brightness settings as the settings
provider doesn't allow storing multiple settings atomically. When
deleting rows, there's quite a high chance of DisplayPowerController
picking up a state where the lux values already have the lower number of
rows, but the brightness values do not, effectively leading to an
ArrayIndexOutOfBoundsException.

Fix that by
- waiting a second of cool-down time until applying the settings and
- adding a sanity check for the very unlikely case that the delay
  between writing both values is > 1 second

Change-Id: I44e41530fc5334aaefc4ab7d3a90542f78fabe0c
JIRA:CYAN-755
NavRing: fix icon size

This will add some icon resizing if the app icon is
bigger than the standard icon for the divice density.

Formatting.

Change-Id: I1a816eccd3c77158a0c9c7631c3a7334b4fb3c24
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Adjust margin of ActivityPreference

This will use all the space available in Settings and RC

Change-Id: I9c92770a5f4315eb50fb350d6a60d3789e424f59
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
It helps to catch the right exception.

Bug: 7238149
Change-Id: I7b60ec44d1d1d5ece8a871cb089f811b611f4a4a
Fix potential deadlock between LockScreen and WindowManagerService

If LockScreen is enhanced using SurfaceView/GLSurfaceView,
deadlock problem between LockScreen and WindowManagerService
can occur because of IWindow.resized() callback.
And it must lead to watchdog and reset.

IWindow.resized() callback is one-way function so calling resized()
callback of a remote IWindow object is never blocked.
However, calling resized() callback of a local IWindow object
(LockScreen is running on the same system_server process)
is always blocked until resized() callback returns.
Because resized() callback of SurfaceView/GLSurfaceView can lead to
WindowManagerService.relayoutWindow() call, deadlock can occur
between relayoutWindow() and performLayoutAndPlaceSurfacesLockedInner().
(Both functions need locking mWindowMap)

So this patch simulate one-way call when calling resized() callback
of a local IWindow object.

Change-Id: I2a6a5c74ed22d8e6b7a3bea3424ff2879d227105
Signed-off-by: Sangkyu Lee <sk82.lee@lge.com>

Conflicts:
	services/java/com/android/server/wm/WindowManagerService.java

Signed-off-by: iceandfire <arhamjamal@gmail.com>
hwui: This code should only be enabled with QCOM_BSP

 * Crashy crashy!

Change-Id: I1a06ac54a8ce2dccbf4a67424b0cbb6e7dd21e8b
Pie updates

This seems to have fixed issues where Pie controls show underneath the Quicksettings pulldown
and when its invisible but still functions, at least in my testing

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

Signed-off-by: iceandfire <arhamjamal@gmail.com>