d3b0c7e7e23c4f1d8db5a084befe4653dcb5e1d5 |
|
20-Jun-2017 |
Fyodor Kupolov <fkupolov@google.com> |
Support for lookaside configuration params Modified SQLiteDatabase to allow passing lookaside configuration to its static initializer. Encapsulated config in OpenParams and added an overloaded version of openDatabase with the new parameter. Configuration is changed in SQLiteConnection::nativeOpen, immediately after opening the database since lookaside memory configuration can only be changed when no connection is using it. Added SQLiteOpenHelper.setLookasideConfig method that is called from the constructor of the subclass. Test: bit FrameworksCoreTests:android.database.DatabaseGeneralTest Test: bit FrameworksCoreTests:android.database.SQLiteOpenHelperTest Bug: 38499845 Change-Id: Ifb761229b43c89c090939030fc25b8c480b9b9e2
/frameworks/base/core/tests/coretests/src/android/database/SQLiteOpenHelperTest.java
|