Home
last modified time | relevance | path

Searched defs:db (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java54 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/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java122 private void createSecureTable(SQLiteDatabase db) { in createSecureTable()
131 private void createGlobalTable(SQLiteDatabase db) { in createGlobalTable()
141 public void onCreate(SQLiteDatabase db) { in onCreate()
195 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
1594 private void moveSettingsToNewTable(SQLiteDatabase db, in moveSettingsToNewTable()
1633 SQLiteDatabase db, String sourceTable, String destTable, String[] prefixesToMove) { in movePrefixedSettingsToNewTable()
1666 private void upgradeLockPatternLocation(SQLiteDatabase db) { in upgradeLockPatternLocation()
1690 private void upgradeScreenTimeoutFromNever(SQLiteDatabase db) { in upgradeScreenTimeoutFromNever()
1714 private void upgradeVibrateSettingFromNone(SQLiteDatabase db) { in upgradeVibrateSettingFromNone()
1736 private void upgradeScreenTimeout(SQLiteDatabase db) { in upgradeScreenTimeout()
[all …]
DSettingsProvider.java395 SQLiteDatabase db = dbhelper.getWritableDatabase(); in establishDbTracking() local
444 SQLiteDatabase db = dbHelper.getReadableDatabase(); in fullyPopulateCache() local
685 SQLiteDatabase db = dbHelper.getReadableDatabase(); in lookupValue() local
716 SQLiteDatabase db = dbH.getReadableDatabase(); in queryForUser() local
781 SQLiteDatabase db = dbH.getWritableDatabase(); in bulkInsert() local
930 SQLiteDatabase db = dbH.getWritableDatabase(); in insertForUser() local
962 SQLiteDatabase db = dbH.getWritableDatabase(); in delete() local
994 SQLiteDatabase db = dbH.getWritableDatabase(); in update() local
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java207 SQLiteDatabase db = mDatabase; in getDatabaseLocked() local
312 public void onConfigure(SQLiteDatabase db) {} in onConfigure()
320 public abstract void onCreate(SQLiteDatabase db); in onCreate()
342 public abstract void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion); in onUpgrade()
360 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade()
378 public void onOpen(SQLiteDatabase db) {} in onOpen()
DSQLiteStatement.java30 SQLiteStatement(SQLiteDatabase db, String sql, Object[] bindArgs) { in SQLiteStatement()
DSQLiteQuery.java36 SQLiteQuery(SQLiteDatabase db, String query, CancellationSignal cancellationSignal) { in SQLiteQuery()
DSQLiteQueryBuilder.java291 public Cursor query(SQLiteDatabase db, String[] projectionIn, in query()
330 public Cursor query(SQLiteDatabase db, String[] projectionIn, in query()
372 public Cursor query(SQLiteDatabase db, String[] projectionIn, in query()
410 private void validateQuerySql(SQLiteDatabase db, String sql, in validateQuerySql()
DSQLiteDirectCursorDriver.java35 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable, in SQLiteDirectCursorDriver()
DSQLiteProgram.java40 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, in SQLiteProgram()
DSQLiteCursor.java78 public SQLiteCursor(SQLiteDatabase db, SQLiteCursorDriver driver, in SQLiteCursor()
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java99 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/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java56 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() local
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java73 public void onCreate(SQLiteDatabase db) { in onCreate()
92 public void onUpgrade(SQLiteDatabase db, in onUpgrade()
118 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp()
182 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() local
243 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() local
303 SQLiteDatabase db = dbh.getWritableDatabase(); in updatePackage() local
338 SQLiteDatabase db = dbh.getWritableDatabase(); in deletePackage() local
392 SQLiteDatabase db = dbh.getReadableDatabase(); in verifyData() local
416 SQLiteDatabase db = dbh.getReadableDatabase(); in isDataExist() local
/frameworks/base/test-runner/src/android/test/
DDatabaseTestUtils.java37 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { in assertSchemaEquals()
43 private static Set<String> getSchemaSet(SQLiteDatabase db) { in getSchemaSet()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java53 public void onCreate(SQLiteDatabase db) { in onCreate()
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
103 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
134 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
/frameworks/base/services/java/com/android/server/
DBootReceiver.java97 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in logBootEvents() local
160 DropBoxManager db, SharedPreferences prefs, in addFileToDropBox()
180 private static void addAuditErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, in addAuditErrorsToDropBox()
208 private static void addFsckErrorsToDropBox(DropBoxManager db, SharedPreferences prefs, in addFsckErrorsToDropBox()
DLockSettingsService.java356 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in removeUser() local
395 private void writeToDb(SQLiteDatabase db, String key, String value, int userId) { in writeToDb()
415 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readFromDb() local
439 private void createTable(SQLiteDatabase db) { in createTable()
449 public void onCreate(SQLiteDatabase db) { in onCreate()
454 private void initializeDefaults(SQLiteDatabase db) { in initializeDefaults()
464 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade()
478 private void maybeEnableWidgetSettingForUsers(SQLiteDatabase db) { in maybeEnableWidgetSettingForUsers()
491 private void loadSetting(SQLiteDatabase db, String key, int userId, boolean value) { in loadSetting()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java137 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() local
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorStorage.java44 public void onCreate(SQLiteDatabase db) { in onCreate()
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
DBordeauxSessionStorage.java70 public void onCreate(SQLiteDatabase db) { in onCreate()
75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java71 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() local
/frameworks/base/services/java/com/android/server/accounts/
DAccountManagerService.java318 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in purgeOldGrants() local
369 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in validateAccountsInternal() local
503 final SQLiteDatabase db = accounts.openHelper.getReadableDatabase(); in readPasswordInternal() local
693 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in addAccountInternal() local
761 private long insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) { in insertExtraLocked()
942 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in removeAccountInternal() local
979 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in invalidateAuthToken() local
993 private void invalidateAuthTokenLocked(UserAccounts accounts, SQLiteDatabase db, in invalidateAuthTokenLocked()
1031 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in saveAuthTokenToDatabase() local
1120 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in setPasswordInternal() local
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java129 public void onCreate(SQLiteDatabase db) { in onCreate()
156 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade()
174 final SQLiteDatabase db = mHelper.getReadableDatabase(); in query() local
203 final SQLiteDatabase db = mHelper.getWritableDatabase(); in insert() local
307 final SQLiteDatabase db = mHelper.getWritableDatabase(); in purgeByAuthority() local
/frameworks/base/core/java/android/database/
DDatabaseUtils.java757 public static long queryNumEntries(SQLiteDatabase db, String table) { in queryNumEntries()
770 public static long queryNumEntries(SQLiteDatabase db, String table, String selection) { in queryNumEntries()
787 public static long queryNumEntries(SQLiteDatabase db, String table, String selection, in queryNumEntries()
801 public static boolean queryIsEmpty(SQLiteDatabase db, String table) { in queryIsEmpty()
810 public static long longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { in longForQuery()
832 public static String stringForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { in stringForQuery()
856 public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteDatabase db, in blobFileDescriptorForQuery()
1013 public InsertHelper(SQLiteDatabase db, String tableName) { in InsertHelper()
1347 SQLiteDatabase db = context.openOrCreateDatabase(dbName, 0, null); in createDbFromSqlStatements() local
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in testDatabaseIsCorrupt() local

12