Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 64) sorted by relevance

123

/frameworks/compile/mclinker/include/mcld/Support/
DCXADemangle.tcc34 const char* parse_type(const char* first, const char* last, C& db);
36 const char* parse_encoding(const char* first, const char* last, C& db);
38 const char* parse_name(const char* first, const char* last, C& db,
41 const char* parse_expression(const char* first, const char* last, C& db);
43 const char* parse_template_args(const char* first, const char* last, C& db);
45 const char* parse_operator_name(const char* first, const char* last, C& db);
47 const char* parse_unqualified_name(const char* first, const char* last, C& db);
49 const char* parse_decltype(const char* first, const char* last, C& db);
53 print_stack(const C& db) in print_stack() argument
57 for (auto& s : db.names) in print_stack()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java175 private void createSecureTable(SQLiteDatabase db) { in createSecureTable() argument
176 db.execSQL("CREATE TABLE secure (" + in createSecureTable()
181 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); in createSecureTable()
184 private void createGlobalTable(SQLiteDatabase db) { in createGlobalTable() argument
185 db.execSQL("CREATE TABLE global (" + in createGlobalTable()
190 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); in createGlobalTable()
194 public void onCreate(SQLiteDatabase db) { in onCreate() argument
195 db.execSQL("CREATE TABLE system (" + in onCreate()
200 db.execSQL("CREATE INDEX systemIndex1 ON system (name);"); in onCreate()
202 createSecureTable(db); in onCreate()
[all …]
/frameworks/compile/mclinker/lib/Support/
DDemangle.cpp45 Db db(a); in isCtorOrDtor() local
46 db.cv = 0; in isCtorOrDtor()
47 db.ref = 0; in isCtorOrDtor()
48 db.encoding_depth = 0; in isCtorOrDtor()
49 db.parsed_ctor_dtor_cv = false; in isCtorOrDtor()
50 db.tag_templates = true; in isCtorOrDtor()
51 db.template_param.emplace_back(a); in isCtorOrDtor()
52 db.fix_forward_references = false; in isCtorOrDtor()
53 db.try_to_parse_template_args = true; in isCtorOrDtor()
55 demangle(pName, pName + pLength, db, internal_status); in isCtorOrDtor()
[all …]
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java208 public void onCreate(SQLiteDatabase db) { in onCreate() argument
210 db.execSQL("CREATE TABLE " + TABLE_ACCOUNTS + " ( " in onCreate()
217 db.execSQL("CREATE TABLE " + TABLE_AUTHTOKENS + " ( " in onCreate()
224 db.execSQL("CREATE TABLE " + TABLE_EXTRAS + " ( " in onCreate()
231 createAccountsDeletionTrigger(db); in onCreate()
234 private void createAccountsDeletionTrigger(SQLiteDatabase db) { in createAccountsDeletionTrigger() argument
235 db.execSQL("" in createAccountsDeletionTrigger()
246 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
253 db.execSQL("DROP TABLE IF EXISTS " + TABLE_META); in onUpgrade()
254 db.execSQL("DROP TABLE IF EXISTS " + TABLE_SHARED_ACCOUNTS); in onUpgrade()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbHelper.java108 public void onCreate(SQLiteDatabase db) { in onCreate() argument
109 db.execSQL(SQL_CREATE_KEYS_ENTRY); in onCreate()
110 db.execSQL(SQL_CREATE_USER_METADATA_ENTRY); in onCreate()
111 db.execSQL(SQL_CREATE_RECOVERY_SERVICE_METADATA_ENTRY); in onCreate()
112 db.execSQL(SQL_CREATE_ROOT_OF_TRUST_ENTRY); in onCreate()
116 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
118 dropAllKnownTables(db); // Wipe database. in onDowngrade()
119 onCreate(db); in onDowngrade()
123 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
125 dropAllKnownTables(db); // Wipe database. in onUpgrade()
[all …]
DRecoverableKeyStoreDb.java98 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in insertKey() local
114 return db.replace(KeysEntry.TABLE_NAME, /*nullColumnHack=*/ null, values); in insertKey()
123 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getKey() local
137 Cursor cursor = db.query( in getKey()
186 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in removeKey() local
190 return db.delete(KeysEntry.TABLE_NAME, selection, selectionArgs) > 0; in removeKey()
203 SQLiteDatabase db = mKeyStoreDbHelper.getReadableDatabase(); in getStatusForAllKeys() local
213 Cursor cursor = db.query( in getStatusForAllKeys()
243 SQLiteDatabase db = mKeyStoreDbHelper.getWritableDatabase(); in setRecoveryStatus() local
249 return db.update(KeysEntry.TABLE_NAME, values, selection, in setRecoveryStatus()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java359 SQLiteDatabase db = mDatabase; in getDatabaseLocked() local
363 if (db != null) { in getDatabaseLocked()
364 if (writable && db.isReadOnly()) { in getDatabaseLocked()
365 db.reopenReadWrite(); in getDatabaseLocked()
368 db = SQLiteDatabase.createInMemory(mOpenParamsBuilder.build()); in getDatabaseLocked()
373 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked()
383 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked()
387 onConfigure(db); in getDatabaseLocked()
389 final int version = db.getVersion(); in getDatabaseLocked()
391 if (db.isReadOnly()) { in getDatabaseLocked()
[all …]
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java54 public void createDatabase(SQLiteDatabase db) { in createDatabase() argument
55 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE); in createDatabase()
56 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " (" in createDatabase()
64 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE); in createDatabase()
65 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " (" in createDatabase()
69 db.insert(SYNC_STATE_META_TABLE, SYNC_STATE_META_VERSION_COLUMN, values); in createDatabase()
72 public void onDatabaseOpened(SQLiteDatabase db) { in onDatabaseOpened() argument
73 long version = DatabaseUtils.longForQuery(db, in onDatabaseOpened()
77 createDatabase(db); in onDatabaseOpened()
81 public Cursor query(SQLiteDatabase db, String[] projection, in query() argument
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DPreNTestDatabaseHelper.java39 public void onCreate(SQLiteDatabase db) { in onCreate() argument
40 db.execSQL("CREATE TABLE accounts ( " in onCreate()
46 db.execSQL("INSERT INTO accounts (name, type, password) VALUES " in onCreate()
49 db.execSQL("CREATE TABLE authtokens ( " in onCreate()
55 db.execSQL("INSERT INTO authtokens (accounts_id, type, authtoken) VALUES " in onCreate()
58 db.execSQL("CREATE TABLE grants ( " in onCreate()
64 db.execSQL("CREATE TABLE extras ( " in onCreate()
71 db.execSQL("CREATE TABLE meta ( " in onCreate()
75 db.execSQL("" in onCreate()
88 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/storage/
DBackupEncryptionDbHelper.java57 SQLiteDatabase db = getWritableDatabaseSafe(); in resetDatabase() local
58 db.execSQL(SQL_DROP_TERTIARY_KEYS_ENTRY); in resetDatabase()
59 onCreate(db); in resetDatabase()
63 public void onCreate(SQLiteDatabase db) { in onCreate() argument
64 db.execSQL(SQL_CREATE_TERTIARY_KEYS_ENTRY); in onCreate()
68 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
69 db.execSQL(SQL_DROP_TERTIARY_KEYS_ENTRY); in onUpgrade()
70 onCreate(db); in onUpgrade()
74 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
75 db.execSQL(SQL_DROP_TERTIARY_KEYS_ENTRY); in onDowngrade()
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java65 public void onCreate(SQLiteDatabase db) { in onCreate() argument
67 db.execSQL(CREATE_TABLE_ST_SOUND_MODEL); in onCreate()
71 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
75 db.execSQL("ALTER TABLE " + GenericSoundModelContract.TABLE + " ADD COLUMN " in onUpgrade()
87 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel() local
96 return db.insertWithOnConflict(GenericSoundModelContract.TABLE, null, values, in updateGenericSoundModel()
99 db.close(); in updateGenericSoundModel()
112 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel() local
113 Cursor c = db.rawQuery(selectQuery, null); in getGenericSoundModel()
129 db.close(); in getGenericSoundModel()
[all …]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java56 public void onCreate(SQLiteDatabase db) { in onCreate() argument
62 db.execSQL(queryBuilder.toString()); in onCreate()
63 db.setVersion(DB_VERSION); in onCreate()
67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade()
73 onCreate(db); in onUpgrade()
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
88 int result = db.delete(TABLE_NAME, selection, selectionArgs); in delete()
100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
101 long rowId = db.insert(TABLE_NAME, null, values); in insert()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java86 public void onCreate(SQLiteDatabase db) { in onCreate() argument
101 db.execSQL(sql); in onCreate()
105 public void onUpgrade(SQLiteDatabase db, in onUpgrade() argument
131 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() argument
136 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp()
199 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() local
200 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, app_id, content_type); in processMessage()
201 db.close(); in processMessage()
280 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() local
288 boolean ret = insertPackage(dbh, db, x_app_id, content_type, package_name, class_name, in addPackage()
[all …]
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp80 sqlite3* const db; 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()
132 sqlite3* db; in nativeOpen() local
133 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL); in nativeOpen()
140 int err = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, NULL, lookasideSz, lookasideCnt); in nativeOpen()
143 throw_sqlite3_exception(env, db, "Cannot set lookaside"); in nativeOpen()
144 sqlite3_close(db); in nativeOpen()
150 if ((sqliteFlags & SQLITE_OPEN_READWRITE) && sqlite3_db_readonly(db, NULL)) { in nativeOpen()
151 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode."); in nativeOpen()
[all …]
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/util/
DSQLiteCacheHelper.java90 protected abstract void onCreateTable(SQLiteDatabase db); in onCreateTable() argument
102 public void onCreate(SQLiteDatabase db) { in onCreate() argument
103 onCreateTable(db); in onCreate()
107 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
109 clearDB(db); in onUpgrade()
114 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onDowngrade() argument
116 clearDB(db); in onDowngrade()
120 private void clearDB(SQLiteDatabase db) { in clearDB() argument
121 db.execSQL("DROP TABLE IF EXISTS " + mTableName); in clearDB()
122 onCreate(db); in clearDB()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DFakeSmsContentProvider.java52 public void onCreate(SQLiteDatabase db) { in onCreate() argument
53 db.execSQL("CREATE TABLE raw (" + in onCreate()
70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
78 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local
79 return db.query(RAW_TABLE_NAME, projection, selection, selectionArgs, null, null, in query()
85 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local
86 long rowId = db.insert(RAW_TABLE_NAME, null, values); in insert()
93 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local
100 count = db.update(RAW_TABLE_NAME, cv, selection, selectionArgs); in delete()
104 count = db.delete(RAW_TABLE_NAME, selection, selectionArgs); in delete()
/frameworks/base/core/java/com/android/internal/content/
DSelectionBuilder.java99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { in query() argument
100 return query(db, table, columns, null, null, orderBy, null); in query()
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, in query() argument
108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, in query()
115 public int update(SQLiteDatabase db, String table, ContentValues values) { in update() argument
116 return db.update(table, values, getSelection(), getSelectionArgs()); in update()
122 public int delete(SQLiteDatabase db, String table) { in delete() argument
123 return db.delete(table, getSelection(), getSelectionArgs()); in delete()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java66 public void onCreate(SQLiteDatabase db) { in onCreate() argument
67 db.execSQL("CREATE TABLE " + TABLE_DATA_NAME + " (" + in onCreate()
73 db.execSQL(getInsertCommand(TEXT1, INTEGER1)); in onCreate()
74 db.execSQL(getInsertCommand(TEXT2, INTEGER2)); in onCreate()
84 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
88 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade()
89 onCreate(db); in onUpgrade()
127 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
128 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, in query()
158 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
[all …]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java89 public void onCreate(SQLiteDatabase db) { in onCreate() argument
91 db.execSQL(CREATE_TABLE_SOUND_MODEL); in onCreate()
95 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
98 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
99 onCreate(db); in onUpgrade()
104 db.execSQL("ALTER TABLE " + SoundModelContract.TABLE + " ADD COLUMN " in onUpgrade()
115 Cursor c = db.rawQuery(selectQuery, null); in onUpgrade()
130 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
131 onCreate(db); in onUpgrade()
135 long return_value = record.writeToDatabase(6, db); in onUpgrade()
[all …]
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DWatchlistReportDbHelper.java115 public void onCreate(SQLiteDatabase db) { in onCreate() argument
116 db.execSQL(CREATE_TABLE_MODEL); in onCreate()
120 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
122 db.execSQL("DROP TABLE IF EXISTS " + WhiteListReportContract.TABLE); in onUpgrade()
123 onCreate(db); in onUpgrade()
135 final SQLiteDatabase db = getWritableDatabase(); in insertNewRecord() local
140 return db.insert(WhiteListReportContract.TABLE, null, values) != -1; in insertNewRecord()
151 final SQLiteDatabase db = getReadableDatabase(); in getAggregatedRecords() local
154 c = db.query(true /* distinct */, in getAggregatedRecords()
189 final SQLiteDatabase db = getWritableDatabase(); in cleanup() local
[all …]
/frameworks/base/services/core/java/com/android/server/
DBootReceiver.java361 final DropBoxManager db = ctx.getSystemService(DropBoxManager.class); in processDmesg() local
365 addTextToDropBox(db, reportTag, reportText, "/dev/kmsg", LOG_SIZE); in processDmesg()
416 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in logBootEvents() local
421 if (recovery != null && db != null) { in logBootEvents()
422 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents()
445 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents()
448 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
450 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
452 addLastkToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
454 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabProvider.java394 public void onCreate(SQLiteDatabase db) { in onCreate() argument
395 db.execSQL(SQL_CREATE_CONTACT_TABLE); in onCreate()
396 db.execSQL(SQL_CREATE_COMMON_TABLE); in onCreate()
397 db.execSQL(SQL_CREATE_PRESENCE_TUPLE_TABLE); in onCreate()
398 db.execSQL(SQL_CREATE_OPTIONS_TABLE); in onCreate()
484 SQLiteDatabase db = getReadableDatabase(); in query() local
540 return qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
545 SQLiteDatabase db = getWritableDatabase(); in insert() local
564 result = db.insertWithOnConflict(tableName, null, contentValues, in insert()
579 SQLiteDatabase db = getWritableDatabase(); in bulkInsert() local
[all …]
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java139 public void onCreate(SQLiteDatabase db) { in onCreate() argument
150 db.execSQL(builder.toString()); in onCreate()
154 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
157 db.execSQL("DROP TABLE IF EXISTS suggestions"); in onUpgrade()
158 onCreate(db); in onUpgrade()
228 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
238 count = db.delete(sSuggestions, selection, selectionArgs); in delete()
275 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
287 rowID = db.insert(sSuggestions, NULL_COLUMN, values); in insert()
323 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java71 public void onCreate(SQLiteDatabase db) { in onCreate() argument
72 db.execSQL("CREATE TABLE data (" + in onCreate()
82 db.insert("data", null, values); in onCreate()
86 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
90 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade()
91 onCreate(db); in onUpgrade()
158 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in getBlobColumnAsFile() local
159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null); in getBlobColumnAsFile()
/frameworks/opt/net/ims/tests/src/com/android/ims/rcs/uce/eab/
DEabProviderTestable.java90 public void onCreate(SQLiteDatabase db) { in onCreate() argument
93 db.execSQL(SQL_CREATE_CONTACT_TABLE); in onCreate()
94 db.execSQL(SQL_CREATE_COMMON_TABLE); in onCreate()
95 db.execSQL(SQL_CREATE_PRESENCE_TUPLE_TABLE); in onCreate()
96 db.execSQL(SQL_CREATE_OPTIONS_TABLE); in onCreate()
100 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument

123