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()
55 SQLiteDatabase.wipeDetected(dbObj.getPath(), "corruption"); in onCorruption()
58 if (!dbObj.isOpen()) { in onCorruption()
65 deleteDatabaseFile(dbObj.getPath()); in onCorruption()
74 attachedDbs = dbObj.getAttachedDbs(); in onCorruption()
79 dbObj.close(); in onCorruption()
92 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.java1152 SQLiteDatabase dbObj = SQLiteDatabase.openOrCreateDatabase(mDatabase.getPath(), null); in testDefaultDatabaseErrorHandler() local
1154 assertNotNull(dbObj); in testDefaultDatabaseErrorHandler()
1155 assertTrue(dbObj.isOpen()); in testDefaultDatabaseErrorHandler()
1157 errorHandler.onCorruption(dbObj); in testDefaultDatabaseErrorHandler()
1169 dbObj = SQLiteDatabase.openOrCreateDatabase(mDatabase.getPath(), null); in testDefaultDatabaseErrorHandler()
1170 dbObj.execSQL("ATTACH DATABASE ':memory:' as memoryDb"); in testDefaultDatabaseErrorHandler()
1171 dbObj.execSQL("ATTACH DATABASE '" + attachedDb1File + "' as attachedDb1"); in testDefaultDatabaseErrorHandler()
1174 assertNotNull(dbObj); in testDefaultDatabaseErrorHandler()
1175 assertTrue(dbObj.isOpen()); in testDefaultDatabaseErrorHandler()
1176 List<Pair<String, String>> attachedDbs = dbObj.getAttachedDbs(); in testDefaultDatabaseErrorHandler()
[all …]