HomeSort by relevance Sort by last modified time
    Searched refs:SQLiteDatabase (Results 1 - 25 of 250) sorted by null

1 2 3 4 5 6 7 8 910

  /frameworks/base/core/java/android/database/
DatabaseErrorHandler.java 19 import android.database.sqlite.SQLiteDatabase;
28 * @param dbObj the {@link SQLiteDatabase} object representing the database on which corruption
31 void onCorruption(SQLiteDatabase dbObj);
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
SQLiteAsyncQuery.java 19 import android.database.sqlite.SQLiteDatabase;
34 protected abstract A performQuery(SQLiteDatabase db);
39 public void run(SQLiteDatabase db, Consumer<A> consumer) {
SQLiteTransaction.java 19 import android.database.sqlite.SQLiteDatabase;
32 protected abstract boolean performTransaction(SQLiteDatabase db);
36 * {@link #performTransaction(SQLiteDatabase)} completes normally and returns {@code true}.
38 public void run(SQLiteDatabase db) {
  /packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
OpenWnnSQLiteOpenHelper.java 20 import android.database.sqlite.SQLiteDatabase;
38 public void onCreate(SQLiteDatabase db) {
42 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
SQLiteOpenHelperTest.java 5 import android.database.sqlite.SQLiteDatabase;
6 import android.database.sqlite.SQLiteDatabase.CursorFactory;
30 SQLiteDatabase database = helper.getReadableDatabase();
36 SQLiteDatabase database = helper.getReadableDatabase();
45 SQLiteDatabase db1 = helper.getReadableDatabase();
46 SQLiteDatabase db2 = helper.getReadableDatabase();
53 SQLiteDatabase database = helper.getWritableDatabase();
67 SQLiteDatabase db1 = helper.getWritableDatabase();
68 SQLiteDatabase db2 = helper.getWritableDatabase();
75 SQLiteDatabase database = helper.getWritableDatabase()
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowSQLiteOpenHelper.java 4 import android.database.sqlite.SQLiteDatabase;
5 import android.database.sqlite.SQLiteDatabase.CursorFactory;
20 private static SQLiteDatabase database;
38 public synchronized SQLiteDatabase getReadableDatabase() {
40 database = SQLiteDatabase.openDatabase("path", null, 0);
49 public synchronized SQLiteDatabase getWritableDatabase() {
51 database = SQLiteDatabase.openDatabase("path", null, 0);
  /cts/tests/tests/database/src/android/database/sqlite/cts/
SQLiteOpenHelperTest.java 23 import android.database.sqlite.SQLiteDatabase;
26 import android.database.sqlite.SQLiteDatabase.CursorFactory;
37 private SQLiteDatabase.CursorFactory mFactory = new SQLiteDatabase.CursorFactory() {
38 public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery,
65 SQLiteDatabase database = null;
77 SQLiteDatabase database2 = mOpenHelper.getWritableDatabase();
88 SQLiteDatabase database3 = mOpenHelper.getWritableDatabase();
109 public void onCreate(SQLiteDatabase db) {
113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion)
    [all...]
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
DatabaseUpgradeHelper.java 18 import android.database.sqlite.SQLiteDatabase;
26 public void doOnUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) {
37 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) {
  /frameworks/base/core/java/android/database/sqlite/
SQLiteOpenHelper.java 21 import android.database.sqlite.SQLiteDatabase.CursorFactory;
58 private SQLiteDatabase mDatabase;
125 * @see SQLiteDatabase#enableWriteAheadLogging()
161 public SQLiteDatabase getWritableDatabase() {
185 public SQLiteDatabase getReadableDatabase() {
191 private SQLiteDatabase getDatabaseLocked(boolean writable) {
206 SQLiteDatabase db = mDatabase;
215 db = SQLiteDatabase.create(null);
220 db = SQLiteDatabase.openDatabase(path, mFactory,
221 SQLiteDatabase.OPEN_READONLY, mErrorHandler)
    [all...]
SQLiteCustomFunction.java 27 public final SQLiteDatabase.CustomFunction callback;
38 SQLiteDatabase.CustomFunction callback) {
SQLiteCursorDriver.java 20 import android.database.sqlite.SQLiteDatabase.CursorFactory;
  /frameworks/base/test-runner/src/android/test/
DatabaseTestUtils.java 21 import android.database.sqlite.SQLiteDatabase;
37 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) {
43 private static Set<String> getSchemaSet(SQLiteDatabase db) {
  /frameworks/ml/bordeaux/service/src/android/bordeaux/services/
AggregatorStorage.java 21 import android.database.sqlite.SQLiteDatabase;
32 protected SQLiteDatabase mDatabase;
44 public void onCreate(SQLiteDatabase db) {
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactsTransaction.java 19 import android.database.sqlite.SQLiteDatabase;
48 private final List<SQLiteDatabase> mDatabasesForTransaction;
53 private final Map<String, SQLiteDatabase> mDatabaseTagMap;
102 public void startTransactionForDb(SQLiteDatabase db, String tag,
136 public SQLiteDatabase getDbForTag(String tag) {
148 public SQLiteDatabase removeDbForTag(String tag) {
149 SQLiteDatabase db = mDatabaseTagMap.get(tag);
162 for (SQLiteDatabase db : mDatabasesForTransaction) {
171 private String getTagForDb(SQLiteDatabase db) {
191 for (SQLiteDatabase db : mDatabasesForTransaction)
    [all...]
DataRowHandlerForIdentity.java 21 import android.database.sqlite.SQLiteDatabase;
35 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
48 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
63 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
DeletedContactsTableUtil.java 20 import android.database.sqlite.SQLiteDatabase;
36 public static void create(SQLiteDatabase db) {
52 * @param db The SQLiteDatabase instance.
56 public static long insertDeletedContact(SQLiteDatabase db, long contactId) {
63 SQLiteDatabase.CONFLICT_REPLACE);
71 public static int deleteOldLogs(SQLiteDatabase db) {
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseErrorHandlerTest.java 20 import android.database.sqlite.SQLiteDatabase;
33 private SQLiteDatabase mDatabase;
46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null,
94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null,
105 public void onCorruption(SQLiteDatabase dbObj) {
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
SearchRecentSuggestionsProvider.java 25 import android.database.sqlite.SQLiteDatabase;
102 public void onCreate(SQLiteDatabase db) {
113 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
135 private @Nullable SQLiteDatabase getDatabase(boolean readOnly) {
146 final SQLiteDatabase db = getDatabase(true /* readOnly */);
171 final SQLiteDatabase db = getDatabase(false /* readOnly */);
186 final SQLiteDatabase db = getDatabase(false /* readOnly */);
  /frameworks/base/core/java/com/android/internal/content/
SelectionBuilder.java 21 import android.database.sqlite.SQLiteDatabase;
27 * Helper for building selection clauses for {@link SQLiteDatabase}. Each
99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) {
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy,
115 public int update(SQLiteDatabase db, String table, ContentValues values) {
122 public int delete(SQLiteDatabase db, String table) {
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
FilterStackDBHelper.java 20 import android.database.sqlite.SQLiteDatabase;
59 public void onCreate(SQLiteDatabase db) {
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) {
92 protected static void dropTable(SQLiteDatabase db, String table) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
PrivateLog.java 21 import android.database.sqlite.SQLiteDatabase;
72 public void onCreate(SQLiteDatabase db) {
79 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
87 static void insert(SQLiteDatabase db, String event) {
99 final SQLiteDatabase l = sDebugHelper.getWritableDatabase();
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
ProfileAggregator.java 18 import android.database.sqlite.SQLiteDatabase;
48 protected String computeLookupKeyForContact(SQLiteDatabase db, long contactId) {
62 public long onRawContactInsert(TransactionContext txContext, SQLiteDatabase db,
69 public void aggregateInTransaction(TransactionContext txContext, SQLiteDatabase db) {
74 public void aggregateContact(TransactionContext txContext, SQLiteDatabase db,
  /frameworks/ex/common/java/com/android/common/content/
SyncStateContentProviderHelper.java 23 import android.database.sqlite.SQLiteDatabase;
54 public void createDatabase(SQLiteDatabase db) {
72 public void onDatabaseOpened(SQLiteDatabase db) {
81 public Cursor query(SQLiteDatabase db, String[] projection,
87 public long insert(SQLiteDatabase db, ContentValues values) {
91 public int delete(SQLiteDatabase db, String userWhere, String[] whereArgs) {
95 public int update(SQLiteDatabase db, ContentValues values,
100 public int update(SQLiteDatabase db, long rowId, Object data) {
113 public void onAccountsChanged(SQLiteDatabase db, Account[] accounts) {
  /packages/apps/Settings/src/com/android/settings/search/
IndexDatabaseHelper.java 21 import android.database.sqlite.SQLiteDatabase;
148 public void onCreate(SQLiteDatabase db) {
152 private void bootstrapDB(SQLiteDatabase db) {
161 public void onOpen(SQLiteDatabase db) {
176 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
186 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
193 private void reconstruct(SQLiteDatabase db) {
198 private String getBuildVersion(SQLiteDatabase db) {
218 private void dropTables(SQLiteDatabase db) {
  /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
TrackerProvider.java 24 import android.database.sqlite.SQLiteDatabase;
56 public void onCreate(SQLiteDatabase db) {
67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
113 SQLiteDatabase db = mOpenHelper.getReadableDatabase();

Completed in 1199 milliseconds

1 2 3 4 5 6 7 8 910