Themes: Track NotFoundException on app launch failure

We should probably keep an eye on NotFoundExceptions too since they
are a common exception thrown when a bad theme is applied.

Change-Id: I2ccaed0349a90ab99b99fb83cef0c9183d598088
Change longpress action to mobile settings instead of data summary

This never made any sense to me....so is changed now :-)

Change-Id: I459bb4aac6e910c60b489a9b6254736ccd70c119
[1/3] Base: QuietHours (slimRoms)

add support quietHours

Squash Commit from:

 fb: Quit hours 1/2 thanks cm

and added multiuser support

Change-Id: I38e8560297099629aed94ee001da7f1ebaa04dac

by Kufikugel

 Frameworks: Quiet Hours Change Logic (1/2)

12:00am - 12:00am = 24 hours
	(Or any "==" time)

This makes more sense for the user
	if they have the direct ability
	to toggle quiet hours.
	The feature should work as-is
	and in a 24-hour on/off manner
	through using the toggle.

Change-Id: Ib10ab5c1ac9278ab1f195d48f88de7357722979c

by Jubakuba

 fb: refactor QuietHours code

thanks to ivisiblk for the idea

Change-Id: I56e2b4a1945a4b93251b9937b701c86168b732b4

by Kufikugel

 Quiet Hours Ringer (2/3)

Change-Id: Id58ffb24f0d0d57d8446265c899ec4124fe00c70

by Jubakuba

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: Icce9e3a804ab8be753b8a23a28668ef1358540b1
Merge "Themes: Track NotFoundException on app launch failure" into du44
Added Power Menu / Quick Settings button in pulldown [1/2]

Change-Id: I4128637dc349bbcc04f7709e725e72d4d363c065
Revert "SystemUI: Rework SearchPanelView calculations"

Needed to fix weird navring behaviour on tablets

This reverts commit 9f80108d0dd94a7ac6f88991180f3119d5ffa55b.

Change-Id: I863585d8efa6fc86223a441c5dc2d15ec6907f62
Add moving clock and calendar drawable

Change-Id: Ie7e319dfe80c703dbcf620322d1f1e5b56ea19a6
Fix battery percentage cut off when it was fully charged on the statusbar/quick settings

Change-Id: I7622a1a3bda2a6fc4a887116b703a59c781078b8
Themes: Load missing style attributes from original style

If a theme overrides a style in an app and does not include all
the attributes found in the original, it is possible for the app
to crash because it cannot locate an attribute it is expecting.

To overcome this we need to check the attributes in the original
style's bag and add any missing attributes to the current bag being
populated.  Currently we have only seen one theme that causes this
behavior, but there could be others out there or we may eventually
see this happen in the wild as apps update and the themes have not
had a chance to incorporate the new additions from the app.

Change-Id: Id44aa83a6c58a0b042d2b32171bed5e794352690
Themes: Fix native crash in libandroidfw

If a missing attribute needs to be added in somewhere in the middle
of the bag, a segfault would occur because we change curEntry to a
value that is beyond the set's allocated space.  This patch stores
curEntry in prevEntry before changing it's value and memmove uses
prevEntry to index the set.

Change-Id: Ie70f2ad465097c3acf76caa729999c424fb01ee2
Fix layout of MultiWaveView and GlowPadView.

If the calculated size of the rings is much smaller than the measured
size (which is happening e.g. on mdpi 600x1024 tablets), the glow pad
appeared shifted to the right.
This happened due to the insets being calculated as difference of
available and needed size, and later on being added to the available
size. Example numbers (Nexus 4 with density forced to 160):
- computed size in onMeasure: 768x505
- scaled size in onMeasure: 505x505
- thus, insets are calculated as 131/0
- in onLayout, placementWidth (364) and max target width (108) are much
  smaller than width (768)
- thus, center is calculated as 131 + (768 / 2) = 515, thus shifted to
  the right

Fix that by not using width in the calculation, as the inset size
already takes it into consideration.

JIRA:CYAN-829
Change-Id: Ifc2a93214f812f554a8fed3243eed66aec9f00c9
Dirty Tweaks Tile [1/2]

Change-Id: I6d46d733d70a7478efd5f3e7ac798ce84090992f
DU animated ADB icon

Change-Id: I826178d81b2305c94fe2371ff2a86e4e3bff2f24
Merge "Revert "SystemUI: Rework SearchPanelView calculations"" into du44
Merge "Add moving clock and calendar drawable" into du44
Merge "Fix battery percentage cut off when it was fully charged on the statusbar/quick settings" into du44
Merge "Themes: Load missing style attributes from original style" into du44
Merge "Fix layout of MultiWaveView and GlowPadView." into du44
Merge "DU animated ADB icon" into du44
Merge "[1/3] Base: QuietHours (slimRoms)" into du44