Loading core/java/android/database/sqlite/SQLiteDatabase.java +19 −15 Original line number Diff line number Diff line Loading @@ -2116,10 +2116,13 @@ public class SQLiteDatabase extends SQLiteClosable { int maxCacheSz = (mConnectionNum == 0) ? mMaxSqlCacheSize : mParentConnObj.mMaxSqlCacheSize; if (SQLiteDebug.DEBUG_SQL_CACHE && (mConnectionNum == 0) if (SQLiteDebug.DEBUG_SQL_CACHE) { boolean printWarning = (mConnectionNum == 0) ? (!mCacheFullWarning && mCompiledQueries.size() == maxCacheSz) : (!mParentConnObj.mCacheFullWarning && mParentConnObj.mCompiledQueries.size() == maxCacheSz)) { mParentConnObj.mCompiledQueries.size() == maxCacheSz); if (printWarning) { /* * cache size of {@link #mMaxSqlCacheSize} is not enough for this app. * log a warning. Loading @@ -2133,6 +2136,7 @@ public class SQLiteDatabase extends SQLiteClosable { Log.d(TAG, "Sql stament in Cache: " + s); } } } /* add the given SQLiteCompiledSql compiledStatement to cache. * no need to worry about the cache size - because {@link #mCompiledQueries} * self-limits its size to {@link #mMaxSqlCacheSize}. Loading Loading
core/java/android/database/sqlite/SQLiteDatabase.java +19 −15 Original line number Diff line number Diff line Loading @@ -2116,10 +2116,13 @@ public class SQLiteDatabase extends SQLiteClosable { int maxCacheSz = (mConnectionNum == 0) ? mMaxSqlCacheSize : mParentConnObj.mMaxSqlCacheSize; if (SQLiteDebug.DEBUG_SQL_CACHE && (mConnectionNum == 0) if (SQLiteDebug.DEBUG_SQL_CACHE) { boolean printWarning = (mConnectionNum == 0) ? (!mCacheFullWarning && mCompiledQueries.size() == maxCacheSz) : (!mParentConnObj.mCacheFullWarning && mParentConnObj.mCompiledQueries.size() == maxCacheSz)) { mParentConnObj.mCompiledQueries.size() == maxCacheSz); if (printWarning) { /* * cache size of {@link #mMaxSqlCacheSize} is not enough for this app. * log a warning. Loading @@ -2133,6 +2136,7 @@ public class SQLiteDatabase extends SQLiteClosable { Log.d(TAG, "Sql stament in Cache: " + s); } } } /* add the given SQLiteCompiledSql compiledStatement to cache. * no need to worry about the cache size - because {@link #mCompiledQueries} * self-limits its size to {@link #mMaxSqlCacheSize}. Loading