Home
last modified time | relevance | path

Searched refs:dbObj (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/database/
DDefaultDatabaseErrorHandler.java53 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption() argument
54 Log.e(TAG, "Corruption reported by sqlite on database: " + dbObj.getPath()); in onCorruption()
57 if (!dbObj.isOpen()) { in onCorruption()
64 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
73 attachedDbs = dbObj.getAttachedDbs(); in onCorruption()
78 dbObj.close(); in onCorruption()
91 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
DDatabaseErrorHandler.java31 void onCorruption(SQLiteDatabase dbObj); in onCorruption() argument
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java105 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption() argument
106 boolean databaseOk = dbObj.isDatabaseIntegrityOk(); in onCorruption()
109 dbObj.close(); in onCorruption()
DDatabaseGeneralTest.java1076 SQLiteDatabase dbObj = SQLiteDatabase.openOrCreateDatabase(mDatabase.getPath(), null); in testDefaultDatabaseErrorHandler() local
1078 assertNotNull(dbObj); in testDefaultDatabaseErrorHandler()
1079 assertTrue(dbObj.isOpen()); in testDefaultDatabaseErrorHandler()
1081 errorHandler.onCorruption(dbObj); in testDefaultDatabaseErrorHandler()
1093 dbObj = SQLiteDatabase.openOrCreateDatabase(mDatabase.getPath(), null); in testDefaultDatabaseErrorHandler()
1094 dbObj.execSQL("ATTACH DATABASE ':memory:' as memoryDb"); in testDefaultDatabaseErrorHandler()
1095 dbObj.execSQL("ATTACH DATABASE '" + attachedDb1File + "' as attachedDb1"); in testDefaultDatabaseErrorHandler()
1098 assertNotNull(dbObj); in testDefaultDatabaseErrorHandler()
1099 assertTrue(dbObj.isOpen()); in testDefaultDatabaseErrorHandler()
1100 List<Pair<String, String>> attachedDbs = dbObj.getAttachedDbs(); in testDefaultDatabaseErrorHandler()
[all …]