auto import from //depot/cupcake/@132589
This commit is contained in:
@@ -778,9 +778,9 @@ public class SQLiteDatabase extends SQLiteClosable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current database page size, in bytes.
|
||||
* Returns the maximum size the database may grow to.
|
||||
*
|
||||
* @return the database page size, in bytes
|
||||
* @return the new maximum database size
|
||||
*/
|
||||
public long getPageSize() {
|
||||
SQLiteStatement prog = null;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
package android.database.sqlite;
|
||||
|
||||
import android.os.SystemClock;
|
||||
import android.util.Log;
|
||||
|
||||
/**
|
||||
* A pre-compiled statement against a {@link SQLiteDatabase} that can be reused.
|
||||
@@ -27,10 +26,6 @@ import android.util.Log;
|
||||
*/
|
||||
public class SQLiteStatement extends SQLiteProgram
|
||||
{
|
||||
private static final String TAG = "SQLiteStatement";
|
||||
|
||||
private final String mSql;
|
||||
|
||||
/**
|
||||
* Don't use SQLiteStatement constructor directly, please use
|
||||
* {@link SQLiteDatabase#compileStatement(String)}
|
||||
@@ -39,11 +34,6 @@ public class SQLiteStatement extends SQLiteProgram
|
||||
*/
|
||||
/* package */ SQLiteStatement(SQLiteDatabase db, String sql) {
|
||||
super(db, sql);
|
||||
if (SQLiteDebug.DEBUG_SQL_STATEMENTS) {
|
||||
mSql = sql;
|
||||
} else {
|
||||
mSql = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,9 +50,6 @@ public class SQLiteStatement extends SQLiteProgram
|
||||
|
||||
acquireReference();
|
||||
try {
|
||||
if (SQLiteDebug.DEBUG_SQL_STATEMENTS) {
|
||||
Log.v(TAG, "execute() for [" + mSql + "]");
|
||||
}
|
||||
native_execute();
|
||||
if (logStats) {
|
||||
mDatabase.logTimeStat(false /* write */, startTime, SystemClock.elapsedRealtime());
|
||||
@@ -90,9 +77,6 @@ public class SQLiteStatement extends SQLiteProgram
|
||||
|
||||
acquireReference();
|
||||
try {
|
||||
if (SQLiteDebug.DEBUG_SQL_STATEMENTS) {
|
||||
Log.v(TAG, "executeInsert() for [" + mSql + "]");
|
||||
}
|
||||
native_execute();
|
||||
if (logStats) {
|
||||
mDatabase.logTimeStat(false /* write */, startTime, SystemClock.elapsedRealtime());
|
||||
@@ -119,9 +103,6 @@ public class SQLiteStatement extends SQLiteProgram
|
||||
|
||||
acquireReference();
|
||||
try {
|
||||
if (SQLiteDebug.DEBUG_SQL_STATEMENTS) {
|
||||
Log.v(TAG, "simpleQueryForLong() for [" + mSql + "]");
|
||||
}
|
||||
long retValue = native_1x1_long();
|
||||
if (logStats) {
|
||||
mDatabase.logTimeStat(false /* write */, startTime, SystemClock.elapsedRealtime());
|
||||
@@ -148,9 +129,6 @@ public class SQLiteStatement extends SQLiteProgram
|
||||
|
||||
acquireReference();
|
||||
try {
|
||||
if (SQLiteDebug.DEBUG_SQL_STATEMENTS) {
|
||||
Log.v(TAG, "simpleQueryForString() for [" + mSql + "]");
|
||||
}
|
||||
String retValue = native_1x1_string();
|
||||
if (logStats) {
|
||||
mDatabase.logTimeStat(false /* write */, startTime, SystemClock.elapsedRealtime());
|
||||
|
||||
Reference in New Issue
Block a user