Home
last modified time | relevance | path

Searched refs:openFlags (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabaseConfiguration.java62 public int openFlags; field in SQLiteDatabaseConfiguration
120 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument
127 this.openFlags = openFlags; in SQLiteDatabaseConfiguration()
164 openFlags = other.openFlags; in updateParametersFrom()
DSQLiteDatabase.java263 private SQLiteDatabase(final String path, final int openFlags, in SQLiteDatabase() argument
268 mConfigurationLocked = new SQLiteDatabaseConfiguration(path, openFlags); in SQLiteDatabase()
834 final int oldOpenFlags = mConfigurationLocked.openFlags; in reopenReadWrite()
835 mConfigurationLocked.openFlags = (mConfigurationLocked.openFlags & ~OPEN_READ_MASK) in reopenReadWrite()
840 mConfigurationLocked.openFlags = oldOpenFlags; in reopenReadWrite()
1791 return (mConfigurationLocked.openFlags & OPEN_READ_MASK) == OPEN_READONLY; in isReadOnlyLocked()
2025 if ((mConfigurationLocked.openFlags & ENABLE_WRITE_AHEAD_LOGGING) != 0) { in enableWriteAheadLogging()
2050 mConfigurationLocked.openFlags |= ENABLE_WRITE_AHEAD_LOGGING; in enableWriteAheadLogging()
2054 mConfigurationLocked.openFlags &= ~ENABLE_WRITE_AHEAD_LOGGING; in enableWriteAheadLogging()
2074 if ((mConfigurationLocked.openFlags & ENABLE_WRITE_AHEAD_LOGGING) == 0) { in disableWriteAheadLogging()
[all …]
DSQLiteConnectionPool.java283 boolean walModeChanged = ((configuration.openFlags ^ mConfiguration.openFlags) in reconfigure()
315 if (mConfiguration.openFlags != configuration.openFlags) { in reconfigure()
1004 && (mConfiguration.openFlags & SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING) != 0) { in setMaxConnectionPoolSizeLocked()
DSQLiteConnection.java120 private static native long nativeOpen(String path, int openFlags, String label, in nativeOpen() argument
168 mIsReadOnlyConnection = (configuration.openFlags & SQLiteDatabase.OPEN_READONLY) != 0; in SQLiteConnection()
210 mConnectionPtr = nativeOpen(mConfiguration.path, mConfiguration.openFlags, in open()
291 if ((mConfiguration.openFlags & SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING) != 0) { in setWalModeFromConfiguration()
356 if ((mConfiguration.openFlags & SQLiteDatabase.NO_LOCALIZED_COLLATORS) != 0) { in setLocaleFromConfiguration()
415 boolean walModeChanged = ((configuration.openFlags ^ mConfiguration.openFlags) in reconfigure()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp83 const int openFlags; member
89 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : in SQLiteConnection()
90 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { } in SQLiteConnection()
114 static jlong nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument
118 if (openFlags & SQLiteConnection::CREATE_IF_NECESSARY) { in nativeOpen()
120 } else if (openFlags & SQLiteConnection::OPEN_READONLY) { in nativeOpen()
175 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen()