Do integrity_check only once
(Remove multiple integrity_check call for all attached databases)

"PRAGMA integrity_check" checks not only main database
but also all of attached databases.

Change-Id: I9a5940a4b1e27d24432f61961bff117662295e8d
Release SQLite page cache as much as it can

Call sqlite3_release_memory() until it returns 0

Change-Id: Id7a0942805c2c3ad5a7efe8bc3ecd8b7fffbf75b
fix surfaceview bug when surface format changed should not call surfaceDestroyed

formatchange should not destroy surface

Change-Id: I20fa219a4a8ecb7b504518f5eba7e342dd55c569
Author: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: b529 <b529@borqs.com>
Signed-off-by: Hongyu Zhang <hongyu.zhang@intel.com>
Signed-off-by: Bing Deng <bingx.deng@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 37272
fix bug about view cache in RemoteViews

clear the data in cache before reloading new items,
& the method 'getCount()' returns tmpMetaData.count.

Change-Id: I0d37d7a99408f60b1d63fa5ca0c0a0f265dd0a8a
Handle IllegalArgumentException caused by invalid pointer index

There is no check routine for invalid PointerId.
If we getX or getY from invalid PointerId,
it will make IllegalArgumentException - pointerIndex out of range.
The exception will make system reboot, of cource it random.

Change-Id: I4a5707409ceeaeb31250d88cf69d1f4e27c8a009
Fix leak in videoEditor_renderMediaItemPreviewFrame

This change makes sure that the pString is released
even if any of the error paths are taken later.

Change-Id: I533f8254cb853767a21571cddb1c130f8efde2b4
specified the number type float instead of double.

Change-Id: I5336e8c738fe896c52865ac5f385a8b606889b1c