Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 56) 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.java174 private void createSecureTable(SQLiteDatabase db) { in createSecureTable() argument
175 db.execSQL("CREATE TABLE secure (" + in createSecureTable()
180 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); in createSecureTable()
183 private void createGlobalTable(SQLiteDatabase db) { in createGlobalTable() argument
184 db.execSQL("CREATE TABLE global (" + in createGlobalTable()
189 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); in createGlobalTable()
193 public void onCreate(SQLiteDatabase db) { in onCreate() argument
194 db.execSQL("CREATE TABLE system (" + in onCreate()
199 db.execSQL("CREATE INDEX systemIndex1 ON system (name);"); in onCreate()
201 createSecureTable(db); in onCreate()
[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/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/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.java360 SQLiteDatabase db = mDatabase; in getDatabaseLocked() local
364 if (db != null) { in getDatabaseLocked()
365 if (writable && db.isReadOnly()) { in getDatabaseLocked()
366 db.reopenReadWrite(); in getDatabaseLocked()
369 db = SQLiteDatabase.createInMemory(mOpenParamsBuilder.build()); in getDatabaseLocked()
374 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked()
384 db = SQLiteDatabase.openDatabase(filePath, params); in getDatabaseLocked()
388 onConfigure(db); in getDatabaseLocked()
390 final int version = db.getVersion(); in getDatabaseLocked()
392 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/backup/java/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 …]
DTertiaryKeysTable.java44 SQLiteDatabase db = mHelper.getWritableDatabaseSafe(); in addKey() local
52 return db.replace(TertiaryKeysEntry.TABLE_NAME, /*nullColumnHack=*/ null, values); in addKey()
58 SQLiteDatabase db = mHelper.getReadableDatabaseSafe(); in getKey() local
73 db.query( in getKey()
98 SQLiteDatabase db = mHelper.getReadableDatabaseSafe(); in getAllKeys() local
110 db.query( in getAllKeys()
/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/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerDbHelper.java66 public void onCreate(SQLiteDatabase db) { in onCreate() argument
68 db.execSQL(CREATE_TABLE_ST_SOUND_MODEL); in onCreate()
72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
74 db.execSQL("DROP TABLE IF EXISTS " + GenericSoundModelContract.TABLE); in onUpgrade()
75 onCreate(db); in onUpgrade()
84 SQLiteDatabase db = getWritableDatabase(); in updateGenericSoundModel() local
91 return db.insertWithOnConflict(GenericSoundModelContract.TABLE, null, values, in updateGenericSoundModel()
94 db.close(); in updateGenericSoundModel()
107 SQLiteDatabase db = getReadableDatabase(); in getGenericSoundModel() local
108 Cursor c = db.rawQuery(selectQuery, null); 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/core/jni/
Dandroid_database_SQLiteConnection.cpp82 sqlite3* const db; member
89 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : in SQLiteConnection()
90 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { } in SQLiteConnection()
134 sqlite3* db; in nativeOpen() local
135 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL); in nativeOpen()
142 int err = sqlite3_db_config(db, SQLITE_DBCONFIG_LOOKASIDE, NULL, lookasideSz, lookasideCnt); in nativeOpen()
145 throw_sqlite3_exception(env, db, "Cannot set lookaside"); in nativeOpen()
146 sqlite3_close(db); in nativeOpen()
152 if ((sqliteFlags & SQLITE_OPEN_READWRITE) && sqlite3_db_readonly(db, NULL)) { in nativeOpen()
153 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode."); in nativeOpen()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java77 public void onCreate(SQLiteDatabase db) { in onCreate() argument
92 db.execSQL(sql); in onCreate()
96 public void onUpgrade(SQLiteDatabase db, in onUpgrade() argument
122 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() argument
127 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp()
190 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() local
191 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, app_id, content_type); in processMessage()
192 db.close(); in processMessage()
271 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() local
272 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, x_app_id, content_type); in addPackage()
[all …]
/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/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/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/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/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java83 public void onCreate(SQLiteDatabase db) { in onCreate() argument
85 db.execSQL(CREATE_TABLE_SOUND_MODEL); in onCreate()
89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
92 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
93 onCreate(db); in onUpgrade()
98 db.execSQL("ALTER TABLE " + SoundModelContract.TABLE + " ADD COLUMN " in onUpgrade()
109 Cursor c = db.rawQuery(selectQuery, null); in onUpgrade()
124 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
125 onCreate(db); in onUpgrade()
129 long return_value = record.writeToDatabase(6, db); in onUpgrade()
[all …]
/frameworks/base/core/java/com/android/server/
DBootReceiver.java195 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in logBootEvents() local
200 if (recovery != null && db != null) { in logBootEvents()
201 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents()
224 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents()
227 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
229 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
231 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
233 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents()
235 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg", in logBootEvents()
237 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents()
[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/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DGlobalResultsStore.java80 SQLiteDatabase db = getWritableDatabase(); in storeRunResults() local
81 db.beginTransaction(); in storeRunResults()
119 db.insert(UI_RESULTS_TABLE, null, cv); in storeRunResults()
121 db.setTransactionSuccessful(); in storeRunResults()
126 db.endTransaction(); in storeRunResults()
132 SQLiteDatabase db = getReadableDatabase(); in loadTestResults() local
150 Cursor cursor = db.query( in loadTestResults()
190 db.close(); in loadTestResults()
202 SQLiteDatabase db = getReadableDatabase(); in loadDetailedResults() local
220 Cursor cursor = db.query( in loadDetailedResults()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java197 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { in writeKeyValue() argument
203 db.beginTransaction(); in writeKeyValue()
205 db.delete(TABLE, COLUMN_KEY + "=? AND " + COLUMN_USERID + "=?", in writeKeyValue()
207 db.insert(TABLE, null, cv); in writeKeyValue()
208 db.setTransactionSuccessful(); in writeKeyValue()
211 db.endTransaction(); in writeKeyValue()
227 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readKeyValue() local
228 if ((cursor = db.query(TABLE, COLUMNS_FOR_QUERY, in readKeyValue()
252 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in prefetchUser() local
253 if ((cursor = db.query(TABLE, COLUMNS_FOR_PREFETCH, in prefetchUser()
[all …]

123