Methods Summary |
---|
public static java.lang.String | getDefaultJournalMode()Gets the default journal mode when WAL is not in use.
return SystemProperties.get("debug.sqlite.journalmode",
Resources.getSystem().getString(
com.android.internal.R.string.db_default_journal_mode));
|
public static int | getDefaultPageSize()Gets the default page size to use when creating a database.
synchronized (sLock) {
if (sDefaultPageSize == 0) {
sDefaultPageSize = new StatFs("/data").getBlockSize();
}
return SystemProperties.getInt("debug.sqlite.pagesize", sDefaultPageSize);
}
|
public static java.lang.String | getDefaultSyncMode()Gets the default database synchronization mode when WAL is not in use.
return SystemProperties.get("debug.sqlite.syncmode",
Resources.getSystem().getString(
com.android.internal.R.string.db_default_sync_mode));
|
public static int | getJournalSizeLimit()Gets the journal size limit in bytes.
return SystemProperties.getInt("debug.sqlite.journalsizelimit",
Resources.getSystem().getInteger(
com.android.internal.R.integer.db_journal_size_limit));
|
public static int | getWALAutoCheckpoint()Gets the WAL auto-checkpoint integer in database pages.
int value = SystemProperties.getInt("debug.sqlite.wal.autocheckpoint",
Resources.getSystem().getInteger(
com.android.internal.R.integer.db_wal_autocheckpoint));
return Math.max(1, value);
|
public static int | getWALConnectionPoolSize()Gets the connection pool size when in WAL mode.
int value = SystemProperties.getInt("debug.sqlite.wal.poolsize",
Resources.getSystem().getInteger(
com.android.internal.R.integer.db_connection_pool_size));
return Math.max(2, value);
|
public static java.lang.String | getWALSyncMode()Gets the database synchronization mode when in WAL mode.
return SystemProperties.get("debug.sqlite.wal.syncmode",
Resources.getSystem().getString(
com.android.internal.R.string.db_wal_sync_mode));
|
private static native int | nativeReleaseMemory()
|
public static int | releaseMemory()Attempts to release memory by pruning the SQLite page cache and other
internal data structures.
return nativeReleaseMemory();
|