Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 66) 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.java178 private void createSecureTable(SQLiteDatabase db) { in createSecureTable() argument
179 db.execSQL("CREATE TABLE secure (" + in createSecureTable()
184 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); in createSecureTable()
187 private void createGlobalTable(SQLiteDatabase db) { in createGlobalTable() argument
188 db.execSQL("CREATE TABLE global (" + in createGlobalTable()
193 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); in createGlobalTable()
197 public void onCreate(SQLiteDatabase db) { in onCreate() argument
198 db.execSQL("CREATE TABLE system (" + in onCreate()
203 db.execSQL("CREATE INDEX systemIndex1 ON system (name);"); in onCreate()
205 createSecureTable(db); in onCreate()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_location_ContextHubService.cpp112 static contextHubServiceDb_s db; variable
118 if (hubHandle >= 0 && hubHandle < db.hubInfo.numHubs) { in get_hub_info()
119 return &db.hubInfo.hubs[hubHandle]; in get_hub_info()
128 return db.hubInfo.contextHubModule->send_message(info->hub_id, msg); in send_msg_to_hub()
148 if (hubHandle < 0 || hubHandle >= db.hubInfo.numHubs) { in get_hub_id_for_hub_handle()
151 return db.hubInfo.hubs[hubHandle].hub_id; in get_hub_id_for_hub_handle()
156 if (!db.appInstances.count(id)) { in get_hub_id_for_app_instance()
161 int hubHandle = db.appInstances[id].hubHandle; in get_hub_id_for_app_instance()
163 return db.hubInfo.hubs[hubHandle].hub_id; in get_hub_id_for_app_instance()
167 auto end = db.appInstances.end(); in get_app_instance_for_app_id()
[all …]
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()
133 sqlite3* db; in nativeOpen() local
134 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL); in nativeOpen()
141 if ((sqliteFlags & SQLITE_OPEN_READWRITE) && sqlite3_db_readonly(db, NULL)) { in nativeOpen()
142 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode."); in nativeOpen()
143 sqlite3_close(db); in nativeOpen()
148 err = sqlite3_busy_timeout(db, BUSY_TIMEOUT_MS); in nativeOpen()
150 throw_sqlite3_exception(env, db, "Could not set busy timeout"); in nativeOpen()
[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/core/java/android/database/sqlite/
DSQLiteOpenHelper.java206 SQLiteDatabase db = mDatabase; in getDatabaseLocked() local
210 if (db != null) { in getDatabaseLocked()
211 if (writable && db.isReadOnly()) { in getDatabaseLocked()
212 db.reopenReadWrite(); in getDatabaseLocked()
215 db = SQLiteDatabase.create(null); in getDatabaseLocked()
220 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
223 db = mContext.openOrCreateDatabase(mName, mEnableWriteAheadLogging ? in getDatabaseLocked()
234 db = SQLiteDatabase.openDatabase(path, mFactory, in getDatabaseLocked()
239 onConfigure(db); in getDatabaseLocked()
241 final int version = db.getVersion(); 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/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/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/core/java/com/android/server/
DBootReceiver.java117 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in logBootEvents() local
131 if (recovery != null && db != null) { in logBootEvents()
132 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); in logBootEvents()
155 if (db != null) db.addText("SYSTEM_BOOT", headers); in logBootEvents()
158 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
160 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter, in logBootEvents()
162 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE, in logBootEvents()
164 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg", in logBootEvents()
166 addAuditErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents()
167 addFsckErrorsToDropBox(db, timestamps, headers, -LOG_SIZE, "SYSTEM_FSCK"); in logBootEvents()
[all …]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
DWapPushManager.java73 public void onCreate(SQLiteDatabase db) { in onCreate() argument
88 db.execSQL(sql); in onCreate()
92 public void onUpgrade(SQLiteDatabase db, in onUpgrade() argument
118 protected queryData queryLastApp(SQLiteDatabase db, in queryLastApp() argument
123 Cursor cur = db.query(APPID_TABLE_NAME, in queryLastApp()
186 SQLiteDatabase db = dbh.getReadableDatabase(); in processMessage() local
187 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, app_id, content_type); in processMessage()
188 db.close(); in processMessage()
247 SQLiteDatabase db = dbh.getWritableDatabase(); in addPackage() local
248 WapPushManDBHelper.queryData lastapp = dbh.queryLastApp(db, x_app_id, content_type); in addPackage()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java134 public void onCreate(SQLiteDatabase db) { in onCreate() argument
136 db.execSQL("CREATE TABLE " + TABLE_RECENT + " (" + in onCreate()
142 db.execSQL("CREATE TABLE " + TABLE_STATE + " (" + in onCreate()
152 db.execSQL("CREATE TABLE " + TABLE_RESUME + " (" + in onCreate()
161 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
163 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RECENT); in onUpgrade()
164 db.execSQL("DROP TABLE IF EXISTS " + TABLE_STATE); in onUpgrade()
165 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RESUME); in onUpgrade()
166 onCreate(db); in onUpgrade()
179 final SQLiteDatabase db = mHelper.getReadableDatabase(); in query() local
[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/services/core/java/com/android/server/accounts/
DAccountManagerService.java438 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); in validateAccountsInternal() local
442 Cursor metaCursor = db.query( in validateAccountsInternal()
493 db.delete( in validateAccountsInternal()
517 db.insertWithOnConflict(TABLE_META, null, values, SQLiteDatabase.CONFLICT_REPLACE); in validateAccountsInternal()
520 Cursor cursor = db.query(TABLE_ACCOUNTS, in validateAccountsInternal()
534 db.beginTransaction(); in validateAccountsInternal()
536 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); in validateAccountsInternal()
540 db.delete(CE_TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); in validateAccountsInternal()
542 db.setTransactionSuccessful(); in validateAccountsInternal()
544 db.endTransaction(); in validateAccountsInternal()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java53 public void onCreate(SQLiteDatabase db) { in onCreate() argument
54 db.execSQL("CREATE TABLE data (" + in onCreate()
60 db.execSQL("INSERT INTO data (text, integer) VALUES ('first data', 100);"); in onCreate()
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { in onUpgrade() argument
68 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade()
69 onCreate(db); in onUpgrade()
103 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
104 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, in query()
134 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local
139 count = db.update("data", values, "_id=" + rowId, null); in update()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java74 public void onCreate(SQLiteDatabase db) { in onCreate() argument
76 db.execSQL(CREATE_TABLE_SOUND_MODEL); in onCreate()
80 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
82 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
83 onCreate(db); in onUpgrade()
93 SQLiteDatabase db = getWritableDatabase(); in updateKeyphraseSoundModel() local
108 return db.insertWithOnConflict(SoundModelContract.TABLE, null, values, in updateKeyphraseSoundModel()
111 db.close(); in updateKeyphraseSoundModel()
132 SQLiteDatabase db = getWritableDatabase(); in deleteKeyphraseSoundModel() local
136 return db.delete(SoundModelContract.TABLE, soundModelClause, null) != 0; in deleteKeyphraseSoundModel()
[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/core/java/android/content/
DSearchRecentSuggestionsProvider.java137 public void onCreate(SQLiteDatabase db) { in onCreate() argument
148 db.execSQL(builder.toString()); in onCreate()
152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
155 db.execSQL("DROP TABLE IF EXISTS suggestions"); in onUpgrade()
156 onCreate(db); in onUpgrade()
226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local
236 count = db.delete(sSuggestions, selection, selectionArgs); in delete()
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local
285 rowID = db.insert(sSuggestions, NULL_COLUMN, values); in insert()
321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local
[all …]
/frameworks/base/services/core/java/com/android/server/
DLockSettingsStorage.java112 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { in writeKeyValue() argument
118 db.beginTransaction(); in writeKeyValue()
120 db.delete(TABLE, COLUMN_KEY + "=? AND " + COLUMN_USERID + "=?", in writeKeyValue()
122 db.insert(TABLE, null, cv); in writeKeyValue()
123 db.setTransactionSuccessful(); in writeKeyValue()
126 db.endTransaction(); in writeKeyValue()
142 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in readKeyValue() local
143 if ((cursor = db.query(TABLE, COLUMNS_FOR_QUERY, in readKeyValue()
167 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in prefetchUser() local
168 if ((cursor = db.query(TABLE, COLUMNS_FOR_PREFETCH, in prefetchUser()
[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/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorStorage.java44 public void onCreate(SQLiteDatabase db) { in onCreate() argument
45 db.execSQL(mTableCmd); in onCreate()
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument
53 db.execSQL("DROP TABLE IF EXISTS " + mTableName); in onUpgrade()
54 onCreate(db); in onUpgrade()
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Ddatabases.jd25 <li><a href="{@docRoot}guide/topics/data/data-storage.html#db">Использование баз данных</a></li>
150 public static final String DATABASE_NAME = &quot;FeedReader.db&quot;;
155 public void onCreate(SQLiteDatabase db) {
156 db.execSQL(SQL_CREATE_ENTRIES);
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
161 db.execSQL(SQL_DELETE_ENTRIES);
162 onCreate(db);
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
165 onUpgrade(db, oldVersion, newVersion);
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
[all …]
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Ddatabases.jd25 <li><a href="{@docRoot}guide/topics/data/data-storage.html#db">使用数据库</a></li>
150 public static final String DATABASE_NAME = &quot;FeedReader.db&quot;;
155 public void onCreate(SQLiteDatabase db) {
156 db.execSQL(SQL_CREATE_ENTRIES);
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
161 db.execSQL(SQL_DELETE_ENTRIES);
162 onCreate(db);
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
165 onUpgrade(db, oldVersion, newVersion);
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
[all …]
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Ddatabases.jd25 <li><a href="{@docRoot}guide/topics/data/data-storage.html#db">使用資料庫</a></li>
150 public static final String DATABASE_NAME = &quot;FeedReader.db&quot;;
155 public void onCreate(SQLiteDatabase db) {
156 db.execSQL(SQL_CREATE_ENTRIES);
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
161 db.execSQL(SQL_DELETE_ENTRIES);
162 onCreate(db);
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
165 onUpgrade(db, oldVersion, newVersion);
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
[all …]
/frameworks/base/docs/html-intl/intl/ja/training/basics/data-storage/
Ddatabases.jd25 <li><a href="{@docRoot}guide/topics/data/data-storage.html#db">データベースを使用する</a></li>
150 public static final String DATABASE_NAME = &quot;FeedReader.db&quot;;
155 public void onCreate(SQLiteDatabase db) {
156 db.execSQL(SQL_CREATE_ENTRIES);
158 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
161 db.execSQL(SQL_DELETE_ENTRIES);
162 onCreate(db);
164 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
165 onUpgrade(db, oldVersion, newVersion);
187 SQLiteDatabase db = mDbHelper.getWritableDatabase();
[all …]

123