Home
last modified time | relevance | path

Searched refs:SQLiteDatabase (Results 1 – 25 of 71) sorted by relevance

123

/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java21 import android.database.sqlite.SQLiteDatabase.CursorFactory;
60 private SQLiteDatabase mDatabase;
192 public SQLiteDatabase getWritableDatabase() { in getWritableDatabase()
216 public SQLiteDatabase getReadableDatabase() { in getReadableDatabase()
222 private SQLiteDatabase getDatabaseLocked(boolean writable) { in getDatabaseLocked()
237 SQLiteDatabase db = mDatabase; in getDatabaseLocked()
246 db = SQLiteDatabase.create(null); in getDatabaseLocked()
251 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
252 SQLiteDatabase.OPEN_READONLY, mErrorHandler); in getDatabaseLocked()
265 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
[all …]
DSQLiteDirectCursorDriver.java20 import android.database.sqlite.SQLiteDatabase.CursorFactory;
29 private final SQLiteDatabase mDatabase;
35 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver()
DSQLiteDatabase.java69 public final class SQLiteDatabase extends SQLiteClosable { class
77 private static WeakHashMap<SQLiteDatabase, Object> sActiveDatabases =
78 new WeakHashMap<SQLiteDatabase, Object>();
256 private SQLiteDatabase(String path, int openFlags, CursorFactory cursorFactory, in SQLiteDatabase() method in SQLiteDatabase
670 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags) { in openDatabase()
693 public static SQLiteDatabase openDatabase(String path, CursorFactory factory, int flags, in openDatabase()
695 SQLiteDatabase db = new SQLiteDatabase(path, flags, factory, errorHandler); in openDatabase()
703 public static SQLiteDatabase openOrCreateDatabase(File file, CursorFactory factory) { in openOrCreateDatabase()
710 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory) { in openOrCreateDatabase()
717 public static SQLiteDatabase openOrCreateDatabase(String path, CursorFactory factory, in openOrCreateDatabase()
[all …]
DSQLiteCustomFunction.java27 public final SQLiteDatabase.CustomFunction callback;
38 SQLiteDatabase.CustomFunction callback) { in SQLiteCustomFunction()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java24 import android.database.sqlite.SQLiteDatabase;
203 public void onCreate(SQLiteDatabase db) { in onCreate()
229 private void createAccountsDeletionTrigger(SQLiteDatabase db) { in createAccountsDeletionTrigger()
241 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
264 public void onOpen(SQLiteDatabase db) { in onOpen()
293 if (!SQLiteDatabase.deleteDatabase(preNDatabaseFile)) { in create()
321 SQLiteDatabase db = mDeDatabase.getReadableDatabaseUserIsUnlocked(); in findAuthtokenForAllAccounts()
336 SQLiteDatabase db = mDeDatabase.getReadableDatabaseUserIsUnlocked(); in findAuthTokensByAccount()
356 SQLiteDatabase db = mDeDatabase.getWritableDatabaseUserIsUnlocked(); in deleteAuthtokensByAccountIdAndType()
363 SQLiteDatabase db = mDeDatabase.getWritableDatabaseUserIsUnlocked(); in deleteAuthToken()
[all …]
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java23 import android.database.sqlite.SQLiteDatabase;
54 public void createDatabase(SQLiteDatabase db) { in createDatabase()
72 public void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened()
81 public Cursor query(SQLiteDatabase db, String[] projection, in query()
87 public long insert(SQLiteDatabase db, ContentValues values) { in insert()
91 public int delete(SQLiteDatabase db, String userWhere, String[] whereArgs) { in delete()
95 public int update(SQLiteDatabase db, ContentValues values, in update()
100 public int update(SQLiteDatabase db, long rowId, Object data) { in update()
113 public void onAccountsChanged(SQLiteDatabase db, Account[] accounts) { in onAccountsChanged()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java22 import android.database.sqlite.SQLiteDatabase;
66 public void onCreate(SQLiteDatabase db) { in onCreate()
72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
84 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel()
92 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateGenericSoundModel()
107 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel()
135 SQLiteDatabase db = getWritableDatabase(); in deleteGenericSoundModel()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java20 import android.database.sqlite.SQLiteDatabase;
33 private SQLiteDatabase mDatabase;
46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp()
94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt()
105 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption()
DDatabaseLockTest.java19 import android.database.sqlite.SQLiteDatabase;
38 private SQLiteDatabase mDatabase;
51 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java24 import android.database.sqlite.SQLiteDatabase;
52 public void onCreate(SQLiteDatabase db) { in onCreate()
70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
78 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query()
85 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert()
93 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete()
/frameworks/base/test-runner/src/android/test/
DDatabaseTestUtils.java21 import android.database.sqlite.SQLiteDatabase;
38 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { in assertSchemaEquals()
44 private static Set<String> getSchemaSet(SQLiteDatabase db) { in getSchemaSet()
DRenamingDelegatingContext.java25 import android.database.sqlite.SQLiteDatabase;
145 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase()
146 int mode, SQLiteDatabase.CursorFactory factory) { in openOrCreateDatabase()
156 public SQLiteDatabase openOrCreateDatabase(String name, in openOrCreateDatabase()
157 int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) { in openOrCreateDatabase()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorStorage.java21 import android.database.sqlite.SQLiteDatabase;
32 protected SQLiteDatabase mDatabase;
44 public void onCreate(SQLiteDatabase db) { in onCreate()
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
DBordeauxSessionStorage.java23 import android.database.sqlite.SQLiteDatabase;
53 private SQLiteDatabase mDbSessions;
70 public void onCreate(SQLiteDatabase db) { in onCreate()
75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
97 SQLiteDatabase.CONFLICT_REPLACE); in saveSession()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java24 import android.database.sqlite.SQLiteDatabase;
56 public void onCreate(SQLiteDatabase db) { in onCreate()
67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java21 import android.database.sqlite.SQLiteDatabase;
99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query()
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query()
115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update()
122 public int delete(SQLiteDatabase db, String table) { in delete()
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java28 import android.database.sqlite.SQLiteDatabase;
73 public void onCreate(SQLiteDatabase db) { in onCreate()
92 public void onUpgrade(SQLiteDatabase db, in onUpgrade()
118 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp()
186 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage()
247 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage()
307 SQLiteDatabase db = dbh.getWritableDatabase(); in updatePackage()
342 SQLiteDatabase db = dbh.getWritableDatabase(); in deletePackage()
396 SQLiteDatabase db = dbh.getReadableDatabase(); in verifyData()
430 SQLiteDatabase db = dbh.getReadableDatabase(); in isDataExist()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMapper.java23 import android.database.sqlite.SQLiteDatabase;
62 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDeviceDocument()
95 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putStorageDocuments()
163 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in clearMapping()
200 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in startAddingDocuments()
245 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in putDocuments()
329 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in stopAddingDocuments()
380 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in cancelAddingDocuments()
434 final SQLiteDatabase database = mDatabase.getSQLiteDatabase(); in queryCandidate()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DPreNTestDatabaseHelper.java20 import android.database.sqlite.SQLiteDatabase;
39 public void onCreate(SQLiteDatabase db) { in onCreate()
88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java22 import android.database.sqlite.SQLiteDatabase;
66 public void onCreate(SQLiteDatabase db) { in onCreate()
84 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
127 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
158 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update()
/frameworks/base/core/java/android/database/
DDefaultDatabaseErrorHandler.java21 import android.database.sqlite.SQLiteDatabase;
53 public void onCorruption(SQLiteDatabase dbObj) { in onCorruption()
102 SQLiteDatabase.deleteDatabase(new File(fileName)); in deleteDatabaseFile()
DDatabaseErrorHandler.java19 import android.database.sqlite.SQLiteDatabase;
31 void onCorruption(SQLiteDatabase dbObj); in onCorruption()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java22 import android.database.sqlite.SQLiteDatabase;
83 public void onCreate(SQLiteDatabase db) { in onCreate()
89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
150 SQLiteDatabase db = getWritableDatabase(); in updateKeyphraseSoundModel()
169 SQLiteDatabase.CONFLICT_REPLACE) != -1; in updateKeyphraseSoundModel()
192 SQLiteDatabase db = getWritableDatabase(); in deleteKeyphraseSoundModel()
218 SQLiteDatabase db = getReadableDatabase(); in getKeyphraseSoundModel()
390 public long writeToDatabase(int version, SQLiteDatabase db) { in writeToDatabase()
405 SoundModelContract.TABLE, null, values, SQLiteDatabase.CONFLICT_REPLACE); in writeToDatabase()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java21 import android.database.sqlite.SQLiteDatabase;
137 public void onCreate(SQLiteDatabase db) { in onCreate()
152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete()
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert()
321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java21 import android.database.sqlite.SQLiteDatabase;
71 public void onCreate(SQLiteDatabase db) { in onCreate()
86 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
158 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getBlobColumnAsFile()

123