Frameworks: Quiet Hours Automatic Switch (1/2)

Change-Id: I3e09891a60ffc5a11f5b5fabef8e06fb02dc9f5d
systemui: networkcontroller update default networks resources

Default network resources are locale dependent and should be update to reflect the
current user locale, if the locale changed.

Change-Id: I4688cc7132e0c0707ee30dd67ce025099655cded
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Fix NPE on tablets.

Commit d547e9d0944b31b2d05378c30f47261571a93262 updated the default
navigation_bar layout, but missed the overlaid one. Fixit.

Change-Id: Ia912075d6dfdb32cd569d6040231dafa894b0c7d
Support NoGapps style package signature faking

Unfortunately due to GMSCore libraries for clients carrying out signature checks on the GMS app,
users are not able to use open source equivalents, and are being strong-armed (by apps) into using
non-free libraries for these functions. NoGapps is an open source implementation of these libraries.

Unfortunately, a patch like this is necessary in order to permit apps to be convinced they are talking
to the closed-source GMSCore. As this "DRM" is implemented at app-level, it's possible to do this,
without the Android OS itself being "fooled" by the faked signatures.

This commit is from the NoGapps project, I am just submitting it on their behalf.
Originates from https://github.com/microg/android_packages_apps_GmsCore

Change-Id: Ic8aaa0728a43936cd4c62382734342ba8f0fbf5b
Fix recent panel defaulting to white on clean flash

Previously, recent panel would default to a solid
    white background on clean flash, until the user
    changed/reset the colors.  This fixes that issue,
    and the recent panel background now defaults to
    the proper semi-transparent white drawable (or
    semi-transparent black drawable if the TRDS
    state is switched).

Change-Id: Iea9d292596e8f4f51b55940e97e6597215ca58c2
Replace tether icons

Change-Id: Iad39323ef134f804f8c0b303dc2bf685cac76699
Merge "Support NoGapps style package signature faking" into du44
Merge "Fix recent panel defaulting to white on clean flash" into du44
Merge "Replace tether icons" into du44
Fix Halo FC

Amazingly enough, nobody reported this haha but is fixed :-)

Change-Id: I5ef53563ac421eefd600fd49c93d31b3c1e97d39
Merge "systemui: networkcontroller update default networks resources" into du44
Merge "Fix NPE on tablets." into du44
Merge "Frameworks: Quiet Hours Automatic Switch (1/2)" into du44
core: use 'normal' value for notification led off

Users can set this value to 250, 500, 1000, 2500 or 5000ms only,
but it's 2000ms by default.

With this patch, 'Normal' string is shown instead of 'By default'
and pulse speed goes to 1 sec.

Change-Id: Idb18ac345bd9eb1a5b795776faa60e2fb5bc258b
Merge "Fix Halo FC" into du44
Merge "core: use 'normal' value for notification led off" into du44
Framework: Rewrite Quiet Hours (2/3)

Added:
	New Toggle States.
		Toggle is now aware
		of if quiet hours
		is truly enabled or not.
		Enable "force" mode
		on click: turns quiet hours
		on / off
		Double-click to return
		to "timed" mode.

	New Features:
		Wifi Connected Requirement
		Battery Charging Requirement
		Individual day times

        Completely rewrote quiet hours
                to reduce system calls.
                No more calendar objects
                or checking three preferences
                and comparing their values
                on each quiet hours check.
                Reduce that to ONE preference
                check per preference

PS2: Ensure booted before firing intent

Change-Id: I61ef5afa32c5ff883129b9362423af7f724c5ac1
watermark: Place watermark in the bottom-right when both deltax and deltaty are 0

The default behavior is to replicate the watermark all over the screen but this can
be too intrusive. The repetition is controlled by deltax and deltay and if they are
both 0 the watermark will actually be drawn off-screen and thus not shown.

We take advantage of this to add a special behavior when they are both 0 that simply
places them in the bottom right. This patch doesn't take UI elements into account and
may actually overlay soft-buttons and other chrome.

Change-Id: I4cff1326b8aaecdbc471eaf48e95bc2865181366
Add MVNO info for Croatian Tele2

Change-Id: I80f8bfbcf0f40abac397ddf63beaf2c0b2e46dfd
Optimize drawBitmapMesh using TRIANGLE_STRIP

Draw BitmapMesh using STRIP instead of TRIANGLES.
Depending on where the bottleneck is located in the pipeline,
there is a potential for saving two-thirds of the time spent rendering.
The speedup is due to avoiding redundant operations,
i.e., mapping each vertex four times to texture and color attribute,
sending each vertex twice to the GPU, vertex processing of GPU ...

In this patch:
1. Refactoring mesh using Strip.
2. Batch triangles by adding degenerate triangles.
3. Optimize computing positions of texture and color attribute.

Benchmark: Drawing Bitmap(1152x768 px) with 200x200 meshes
Performance is doubled (from 26.4 fps to 53 fps, Nexus10).
Memory footprint: only 17% of original method.
(from 240000 to 40401 vertices with xy, uv, rgba data.)

Change-Id: I08c5c20d981d88528ce7b02012feefae468d6ec4
Signed-off-by: kui.zheng <kui.zheng@arm.com>