Tighten enforcement of file modes.

Bug: 8275867
Change-Id: I4da14f2dd0049aca69636999696c1f3c02b3b792
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
Add Camera sound toggle [2/3]

Adds a toggle to disable camera sounds.

Credits: AOKP

Change-Id: I14bdfc1b9558cd41e96149d111da66d93c95150b
Two REMOVE_PROVIDER messages caused by race condition.

Fix a bug in unstable ContentProvider.
IllegalStateException: ref counts can't go to zero here: stable=0 unstable=0
IllegalStateException: unstable count < 0: -1

There is a race between main thread and background database thread. Main thread
is responsible for handling the REMOVE_PROVIDER message. Database thread starts
insert or query request again and again. acquireProvider in db thread will often
snatch provider from the jaws of death, sometime it fails to remove REMOVE_PROVIDER
which is already fired out from MessageQueue. But completeRemoveProvider in main
thread gets suspended when trying to execute the critical section. If db thread
released the provider before main thread resumes the execution, then two
REMOVE_PROVIDER messages will be executed.

Change-Id: I8588aa1d1a8bc444dcd2adf6f8bc3f055cebbdc4
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
Frameworks: make CM's adjust auto brightness configurable (1/2)

added  config_automatic_adjust_brightness_available to
config.xml to give the abillity to turn this feature off.
Reason is that some devices which are using own light sensor
systems (like some sony and htc) cannot be controlled
over that because some sensors are reporting back
wrong values.

Default value: true

but is depending on the config_automatic_brightness_available
value.

cheers

Change-Id: I1ce22fc491b26ae06963219c3a284ebaf8b98023
HyperDroidAOXP: adjust default theme

Change-Id: I7b204956699cebc91ac54cba43ad12cb1191ee4a
HyperDroidAOXP: make switch text transparent

Change-Id: I43ba0096de74752512082dfb5cbc30a73069adf0
HyperDroidAOXP: small update to default theme

Change-Id: I66c82ec1784e186375da5455a2911bc7081575fb
HyperDroidAOXP: change progress color of Non-Holo Apps to white

Change-Id: I46e4170bea8b77891bf286ee360f3605c10e6573
HyperDroidAOXP: tweak Notification Drawer Power Widget sizing

Change-Id: I9c50783f48e24a3118df6ba56b3b7e135fb3256a
HyperDroidAOXP: minor theming update

Change-Id: I8d8a495c65f9921f03e60d67a86a20ca442d42f0
HyperDroidAOXP: change color of background_holo_dark

Change-Id: I93555a76de548d5b5344f8a5ac74ca8f015fb561
HyperDroidAOXP: minor updates to colors

Change-Id: I4baf22ec93b23c46ff1ba48088513194facd2d1d
HyperDroidAOXP: tweak dimens.xml for power widget

Change-Id: Ia43956299a84625b0791f1b1f0cfa7ecafbec9c9
HyperDroidAOXP: Use mixed theme based on AlloyWhite and BlackExodus as default

Change-Id: Ifcf77f8afa057065aaf18476d39fab0927fb1c11
Signed-off-by: sarcastillo <sar.castillo@gmail.com>
Merge branch 'aoxp' of https://github.com/HyperDroid/frameworks_base into aoxp