photophase: use etc1 compression when available

When avaliable this help to decrease the memory footprint. ETC1 compression
requieres to:
- be supported by opengl
- picture couldn't have an alpha channel
- compression times shouldn't be too higher (< 1000 ms)
- initial pictures doesn't be compressed (to speed up boot)

Change-Id: I87e41db3ca7f2ccb82d4af2763609f11d7e67121
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
photophase: increase max acceptable compression time

Change-Id: I43406a07d422f98fc2ab41006b922ff2ed9f8a21
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
photophase: revert etc1 compression feature

Etc1 compression is causing native crashes in maguro and other collateral errors

Change-Id: I84b0c1e0cec8f12c59eb126ceafb12fa8d589d09
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
photophase: prevent npe on low memory

Change-Id: I8d14f08219fd95db0bc068b79ba97f5461c9ac95
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge "photophase: prevent npe on low memory" into cm-11.0
photophase: prevent user to operation while album adapter is still in load progress

Change-Id: I783de9a8ec072e4d8d2d27fa9dc9c5c482eb2196
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Merge "photophase: prevent user to operation while album adapter is still in load progress" into cm-11.0
Automatic translation import

Change-Id: Idd012f4a39c44e107a9633847b77d4ee05a4b727
Automatic translation import

Change-Id: I8b8f3cf69b48aefe6967d4fae774c6097d883748
Automatic translation import

Change-Id: I643b293dce435d8ff4d76ce286af342c34b1056a
Automatic translation import

Change-Id: I420ded04dbb17b03c9fa42e343edd9e486c6e293
Automatic translation import

Change-Id: Ic5f2747344f1a34868478084c23d1b689f0688ce
photophase: restart lwp service on bad egl context

This patch contains some fixes for bad egl context detection and other NPE and lint fixes

Change-Id: I47c4348770dc72f768df4bea27c7817d1ec10c42
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
photophase: bump version (1.0.11)

Change-Id: Id63b9b10878c4bdb0739289aa23e60d043b4041f
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
photophase: make lwp to survive a reboot

The latest egl watchdog kill the app before they started. Increase the timeout
to make the wallpaper to survive a device reboot

Change-Id: I59a746fb9d599e0d016e4fc87c79d2a7d03a53d8
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Automatic translation import

Change-Id: I657b1763891267e42d6b563e990539d701ed4071
Automatic translation import

Change-Id: I657b1763891267e42d6b563e990539d701ed4071
(cherry picked from commit 0ca39c11901f7d1dc8ad4377cdc65a329baea00d)
Merge branch 'cm-11.0' into stable/cm-11.0