camera: add power mode support

Based on commit 7036d66bec7697160ba1b2e255f1e7fae0c8c435 from CAF,
branch ics_chocolate.

Change-Id: I8a60668b18980fd5e6f9dd341db5a8a63deb99d0
IntentService: Fix to run with a lower priority flag.

Added extra contructor to start IntentService with a diferent priority.

Change-Id: I4224ca56ae7eee2c099140bf0242be33b8690ad8
Signed-off-by: Gonçalo Ferreira <monxalo@gmail.com>
Fix the resource IDs used by CTS tests

* Google didn't make networkAttributes a public resource, so everyone
  is failing CTS after adding new resources to the framework. This
  fixes it.
* Same thing with config_useFixedVolume

Change-Id: I720b36d0922b636fe30f691f016add6b8cc7ade3
Fix FindBugs issues

IntProperty: Infinite recursive loop
SQLiteSession: Null pointer dereference
UsbStoreActivity: Null pointer derefence
LocationManagerService: No relationship between generic parameter and method argument
ActivityManagerService: Call to equals() comparing different types
ChooseAccountTypeActivity: Possible null pointer dereference
RuimRecords: Possible null pointer derefence

Change-Id: I9d631c50c30eb98e32cca5a5085513b6904db676
Fix to NullPointerException when activity is relaunched

When ChooseTypeAndAccountActivity is relaunched and resumed
by ActivityManager a call is made to onActivityResult without
first triggering onResume. This leads to mAccounts object
still being null.

Fixed by properly setting mAccounts object if it is null prior
to use after function onCreate has been called.

Change-Id: Ife7e1e052c473970d923fa43ee6189eb62a1113b
Correctly set the animation flag of the ActionBar

Showing/hiding the ActionBar is intentionally done without any animation
when done while the Activity is not visible (between onPostResume and
onStop). The issue is the animation flag was not set at all when the
ActionBar was initialized (i.e. getActionBar() called) between these two
lifecycle methods (because mActionBar was null).

A temporary solution is to call getActionBar() to initialize the
ActionBar in onCreate().

This patch simply keeps a flag of the current animation state and
update it whenever the ActionBar and/or the flag has been modified.

Change-Id: Ia28c62410691e95b823d907de0279edaf0592f21
ActivityManager: memorize for performance

isHighEndGfx and isLargeRam are frequently called upon.. isLargeRam very
frequently within the ActivityStack. these aren't going to change after
they're calculated the first time so subject them to a basic memoization.
FTW.

Change-Id: I176089f99ac6c6e4074cb2fde502c729986ea701

Conflicts:
	core/java/android/app/ActivityManager.java

Conflicts:
	core/java/android/app/ActivityManager.java
BroadcastReceiver : Get sender of broadcasts

Add internal api for receiving the sender of a broadcast

Change-Id: I28ae614ef92101ab6b9beadc3c965d16b1f393f6
GC triggering performance optimizations

Copy the correct starting heap size at process init.
Interfaces to set GC/managed heap parameters.

Change-Id: I0154d1523c3cfdb1214ed0315193cbb24704351f
Frameworks: cleanup activity thread whitespace

Conflicts:
	core/java/android/app/ActivityThread.java
PackageManager: allow build-time disabling of components

Allow components to be specified as disabled at build time
(applied on boot).

This allows stock OTA components to be marked as disabled in
CM builds.

Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f
[2/2] Add support for custom LED colors notification

Originally from dvtonder (CyanogenMod)

Change-Id: Iab519a757220c444f166b8a05246c7ca71b897d8
Privacy Guard Slim version (1/2)

Re-implements slims ehanced privacy guard from 4.3
and addapt it to 4.4 changes

Change-Id: If57de2b541fa6b0a590fd65e8664bf173e259035
Frameworks: Advanced Power Menu

Change-Id: I1c9af874a340e4fccbef09a5879f0b718d6998dd

Conflicts:
	core/res/res/values/liquid_strings.xml
	services/java/com/android/server/wm/WindowManagerService.java
wifi: Allow Settings to retrieve country code

This makes getCountryCode behave like getFrequencyBand

This allows Settings to get/set country code like
it can for frequency band.

add aditional fixes to original implementation
and changes for 4.4

Change-Id: Id9f00d3a678642c6c142fd1511af820d729507a7
systemUI: add swipe QS to Notifications and back

Change-Id: I95aaa4fa1b0e8f74537e48936fe2c0f9f15671dd
Frameworks: Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
fb: volume rocker control (wake up and volume)

thanks to CM and omni for the proxy sensor idea

Change-Id: I60f5f88e32a129afda80f5b0f4f41cb0a322b691
fb: fix google observer derp

the way it was it does not detect any observer change on the
immsersive value. Fixed it by settings it to Secure completly

Change-Id: If8cf887650668e2399367e09614e91cc30b7f70b
fb: fix volume rocker music track seek

based on an idea of DaneSH we use now audioservice
instead of Broadcast as well some minor
fixes in the key handling

Change-Id: If4afda046b9fbebda611615371a718122ffb57b6