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
99 public SQLiteDatabaseConfiguration(String path, int openFlags) { in SQLiteDatabaseConfiguration() argument
106 this.openFlags = openFlags; in SQLiteDatabaseConfiguration()
143 openFlags = other.openFlags; in updateParametersFrom()
DSQLiteDatabase.java254 private SQLiteDatabase(String path, int openFlags, CursorFactory cursorFactory, in SQLiteDatabase() argument
258 mConfigurationLocked = new SQLiteDatabaseConfiguration(path, openFlags); in SQLiteDatabase()
774 final int oldOpenFlags = mConfigurationLocked.openFlags; in reopenReadWrite()
775 mConfigurationLocked.openFlags = (mConfigurationLocked.openFlags & ~OPEN_READ_MASK) in reopenReadWrite()
780 mConfigurationLocked.openFlags = oldOpenFlags; in reopenReadWrite()
1695 return (mConfigurationLocked.openFlags & OPEN_READ_MASK) == OPEN_READONLY; in isReadOnlyLocked()
1929 if ((mConfigurationLocked.openFlags & ENABLE_WRITE_AHEAD_LOGGING) != 0) { in enableWriteAheadLogging()
1954 mConfigurationLocked.openFlags |= ENABLE_WRITE_AHEAD_LOGGING; in enableWriteAheadLogging()
1958 mConfigurationLocked.openFlags &= ~ENABLE_WRITE_AHEAD_LOGGING; in enableWriteAheadLogging()
1978 if ((mConfigurationLocked.openFlags & ENABLE_WRITE_AHEAD_LOGGING) == 0) { in disableWriteAheadLogging()
[all …]
DSQLiteConnectionPool.java262 boolean walModeChanged = ((configuration.openFlags ^ mConfiguration.openFlags) in reconfigure()
294 if (mConfiguration.openFlags != configuration.openFlags) { in reconfigure()
949 if ((mConfiguration.openFlags & SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING) != 0) { in setMaxConnectionPoolSizeLocked()
DSQLiteConnection.java120 private static native int nativeOpen(String path, int openFlags, String label, in nativeOpen() argument
167 mIsReadOnlyConnection = (configuration.openFlags & SQLiteDatabase.OPEN_READONLY) != 0; in SQLiteConnection()
209 mConnectionPtr = nativeOpen(mConfiguration.path, mConfiguration.openFlags, in open()
290 if ((mConfiguration.openFlags & SQLiteDatabase.ENABLE_WRITE_AHEAD_LOGGING) != 0) { in setWalModeFromConfiguration()
355 if ((mConfiguration.openFlags & SQLiteDatabase.NO_LOCALIZED_COLLATORS) != 0) { in setLocaleFromConfiguration()
414 boolean walModeChanged = ((configuration.openFlags ^ mConfiguration.openFlags) in reconfigure()
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp81 const int openFlags; member
87 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : in SQLiteConnection()
88 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { } in SQLiteConnection()
112 static jint nativeOpen(JNIEnv* env, jclass clazz, jstring pathStr, jint openFlags, in nativeOpen() argument
115 if (openFlags & SQLiteConnection::CREATE_IF_NECESSARY) { in nativeOpen()
117 } else if (openFlags & SQLiteConnection::OPEN_READONLY) { in nativeOpen()
162 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen()