Searched refs:db (Results 1 - 25 of 48) sorted by relevance

12

/frameworks/compile/mclinker/lib/Support/
H A DDemangle.cpp45 Db db(a);
46 db.cv = 0;
47 db.ref = 0;
48 db.encoding_depth = 0;
49 db.parsed_ctor_dtor_cv = false;
50 db.tag_templates = true;
51 db.template_param.emplace_back(a);
52 db.fix_forward_references = false;
53 db.try_to_parse_template_args = true;
55 demangle(pName, pName + pLength, db, internal_statu
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteOpenHelper.java206 SQLiteDatabase db = mDatabase;
210 if (db != null) {
211 if (writable && db.isReadOnly()) {
212 db.reopenReadWrite();
215 db = SQLiteDatabase.create(null);
220 db = SQLiteDatabase.openDatabase(path, mFactory,
223 db = mContext.openOrCreateDatabase(mName, mEnableWriteAheadLogging ?
234 db = SQLiteDatabase.openDatabase(path, mFactory,
239 onConfigure(db);
241 final int version = db
311 onConfigure(SQLiteDatabase db) argument
319 onCreate(SQLiteDatabase db) argument
341 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
359 onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
377 onOpen(SQLiteDatabase db) argument
[all...]
H A DSQLiteQuery.java36 SQLiteQuery(SQLiteDatabase db, String query, CancellationSignal cancellationSignal) { argument
37 super(db, query, null, cancellationSignal);
H A DSQLiteProgram.java40 SQLiteProgram(SQLiteDatabase db, String sql, Object[] bindArgs, argument
42 mDatabase = db;
58 db.getThreadSession().prepare(mSql,
59 db.getThreadDefaultConnectionFlags(assumeReadOnly),
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java77 private static final String DATABASE_NAME = "settings.db";
111 // The owner gets the unadorned db name;
145 // No need to remove files if db is in memory
162 // No need to backup files if db is in memory
178 private void createSecureTable(SQLiteDatabase db) { argument
179 db.execSQL("CREATE TABLE secure (" +
184 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);");
187 private void createGlobalTable(SQLiteDatabase db) { argument
188 db.execSQL("CREATE TABLE global (" +
193 db
197 onCreate(SQLiteDatabase db) argument
251 onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) argument
1960 recreateDatabase(SQLiteDatabase db, int oldVersion, int upgradeVersion, int currentVersion) argument
1989 moveSettingsToNewTable(SQLiteDatabase db, String sourceTable, String destTable, String[] settingsToMove, boolean doIgnore) argument
2027 movePrefixedSettingsToNewTable( SQLiteDatabase db, String sourceTable, String destTable, String[] prefixesToMove) argument
2061 upgradeLockPatternLocation(SQLiteDatabase db) argument
2085 upgradeScreenTimeoutFromNever(SQLiteDatabase db) argument
2109 upgradeVibrateSettingFromNone(SQLiteDatabase db) argument
2131 upgradeScreenTimeout(SQLiteDatabase db) argument
2148 upgradeAutoBrightness(SQLiteDatabase db) argument
2167 loadBookmarks(SQLiteDatabase db) argument
2254 loadVolumeLevels(SQLiteDatabase db) argument
2306 loadVibrateSetting(SQLiteDatabase db, boolean deleteOld) argument
2329 loadVibrateWhenRingingSetting(SQLiteDatabase db) argument
2347 loadSettings(SQLiteDatabase db) argument
2356 loadSystemSettings(SQLiteDatabase db) argument
2433 loadSecureSettings(SQLiteDatabase db) argument
2556 loadGlobalSettings(SQLiteDatabase db) argument
2754 getIntValueFromSystem(SQLiteDatabase db, String name, int defaultValue) argument
2758 getIntValueFromTable(SQLiteDatabase db, String table, String name, int defaultValue) argument
2764 getStringValueFromTable(SQLiteDatabase db, String table, String name, String defaultValue) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DPreNTestDatabaseHelper.java39 public void onCreate(SQLiteDatabase db) { argument
40 db.execSQL("CREATE TABLE accounts ( "
46 db.execSQL("INSERT INTO accounts (name, type, password) VALUES "
49 db.execSQL("CREATE TABLE authtokens ( "
55 db.execSQL("INSERT INTO authtokens (accounts_id, type, authtoken) VALUES "
58 db.execSQL("CREATE TABLE grants ( "
64 db.execSQL("CREATE TABLE extras ( "
71 db.execSQL("CREATE TABLE meta ( "
75 db.execSQL(""
88 public void onUpgrade(SQLiteDatabase db, in argument
[all...]
/frameworks/ex/common/java/com/android/common/content/
H A DSyncStateContentProviderHelper.java54 public void createDatabase(SQLiteDatabase db) { argument
55 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE);
56 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " ("
64 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE);
65 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " ("
69 db.insert(SYNC_STATE_META_TABLE, SYNC_STATE_META_VERSION_COLUMN, values);
72 public void onDatabaseOpened(SQLiteDatabase db) { argument
73 long version = DatabaseUtils.longForQuery(db,
77 createDatabase(db);
81 public Cursor query(SQLiteDatabase db, Strin argument
87 insert(SQLiteDatabase db, ContentValues values) argument
91 delete(SQLiteDatabase db, String userWhere, String[] whereArgs) argument
95 update(SQLiteDatabase db, ContentValues values, String selection, String[] selectionArgs) argument
100 update(SQLiteDatabase db, long rowId, Object data) argument
113 onAccountsChanged(SQLiteDatabase db, Account[] accounts) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_location_ContextHubService.cpp160 * if (!db.txnManager.add(CONTEXT_HUB_LOAD_APP, txnInfo)) {
184 static contextHubServiceDb_s db; member in namespace:android
187 txnManager_s *mgr = &db.txnManager;
195 txnManager_s *mgr = &db.txnManager;
208 // Only call this if you hold the db.txnManager.m lock.
210 txnManager_s *mgr = &db.txnManager;
217 std::lock_guard<std::mutex>lock(db.txnManager.m);
226 txnManager_s *mgr = &db.txnManager;
238 txnManager_s *mgr = &db.txnManager;
261 if (hubHandle >= 0 && hubHandle < db
[all...]
H A Dandroid_database_SQLiteConnection.cpp82 sqlite3* const db; member in struct:android::SQLiteConnection
89 SQLiteConnection(sqlite3* db, int openFlags, const String8& path, const String8& label) : argument
90 db(db), openFlags(openFlags), path(path), label(label), canceled(false) { }
133 sqlite3* db; local
134 int err = sqlite3_open_v2(path.string(), &db, sqliteFlags, NULL);
141 if ((sqliteFlags & SQLITE_OPEN_READWRITE) && sqlite3_db_readonly(db, NULL)) {
142 throw_sqlite3_exception(env, db, "Could not open the database in read/write mode.");
143 sqlite3_close(db);
148 err = sqlite3_busy_timeout(db, BUSY_TIMEOUT_M
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerDbHelper.java41 private static final String NAME = "st_sound_model.db";
66 public void onCreate(SQLiteDatabase db) { argument
68 db.execSQL(CREATE_TABLE_ST_SOUND_MODEL);
72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
74 db.execSQL("DROP TABLE IF EXISTS " + GenericSoundModelContract.TABLE);
75 onCreate(db);
84 SQLiteDatabase db = getWritableDatabase();
91 return db.insertWithOnConflict(GenericSoundModelContract.TABLE, null, values,
94 db.close();
107 SQLiteDatabase db
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DAggregatorStorage.java44 public void onCreate(SQLiteDatabase db) { argument
45 db.execSQL(mTableCmd);
49 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
53 db.execSQL("DROP TABLE IF EXISTS " + mTableName);
54 onCreate(db);
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java40 private static final String DB_NAME = "tracking.db";
56 public void onCreate(SQLiteDatabase db) { argument
62 db.execSQL(queryBuilder.toString());
63 db.setVersion(DB_VERSION);
67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME);
73 onCreate(db);
87 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
88 int result = db.delete(TABLE_NAME, selection, selectionArgs);
100 SQLiteDatabase db
[all...]
/frameworks/base/test-runner/src/android/test/
H A DDatabaseTestUtils.java35 * @param expectedDb the db that is known to have the correct schema
36 * @param db the db whose schema should be checked
38 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { argument
40 Set<String> schema = getSchemaSet(db);
44 private static Set<String> getSchemaSet(SQLiteDatabase db) { argument
47 Cursor entityCursor = db.rawQuery("SELECT sql FROM sqlite_master", null);
/frameworks/base/core/java/com/android/internal/content/
H A DSelectionBuilder.java99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { argument
100 return query(db, table, columns, null, null, orderBy, null);
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, argument
108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having,
115 public int update(SQLiteDatabase db, String table, ContentValues values) { argument
116 return db.update(table, values, getSelection(), getSelectionArgs());
122 public int delete(SQLiteDatabase db, String table) { argument
123 return db.delete(table, getSelection(), getSelectionArgs());
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DFakeSmsContentProvider.java46 null, //db file name - null for in-memory db
48 1); //db version - no-op for tests
52 public void onCreate(SQLiteDatabase db) { argument
53 db.execSQL("CREATE TABLE raw (" +
70 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
78 SQLiteDatabase db = mDbHelper.getReadableDatabase();
79 return db.query(RAW_TABLE_NAME, projection, selection, selectionArgs, null, null,
85 SQLiteDatabase db = mDbHelper.getWritableDatabase();
86 long rowId = db
[all...]
/frameworks/base/core/java/com/android/server/
H A DBootReceiver.java162 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE);
167 if (recovery != null && db != null) {
168 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery);
191 if (db != null) db.addText("SYSTEM_BOOT", headers);
194 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter,
196 addFileWithFootersToDropBox(db, timestamps, headers, lastKmsgFooter,
198 addFileToDropBox(db, timestamps, headers, "/cache/recovery/log", -LOG_SIZE,
200 addFileToDropBox(db, timestamps, headers, "/cache/recovery/last_kmsg",
202 addAuditErrorsToDropBox(db, timestamp
241 addFileToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String filename, int maxSize, String tag) argument
247 addFileWithFootersToDropBox( DropBoxManager db, HashMap<String, Long> timestamps, String headers, String footers, String filename, int maxSize, String tag) argument
268 addAuditErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
300 addFsckErrorsToDropBox(DropBoxManager db, HashMap<String, Long> timestamps, String headers, int maxSize, String tag) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLocalProvider.java45 private static final String DATABASE_NAME = "local.db";
53 public void onCreate(SQLiteDatabase db) { argument
54 db.execSQL("CREATE TABLE data (" +
60 db.execSQL("INSERT INTO data (text, integer) VALUES ('first data', 100);");
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
68 db.execSQL("DROP TABLE IF EXISTS data");
69 onCreate(db);
103 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
104 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs,
134 SQLiteDatabase db
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRecentsProvider.java122 private static final String DB_NAME = "recents.db";
134 public void onCreate(SQLiteDatabase db) { argument
136 db.execSQL("CREATE TABLE " + TABLE_RECENT + " (" +
142 db.execSQL("CREATE TABLE " + TABLE_STATE + " (" +
152 db.execSQL("CREATE TABLE " + TABLE_RESUME + " (" +
161 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
163 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RECENT);
164 db.execSQL("DROP TABLE IF EXISTS " + TABLE_STATE);
165 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RESUME);
166 onCreate(db);
[all...]
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/
H A DWapPushManager.java53 private static final String DATABASE_NAME = "wappush.db";
73 public void onCreate(SQLiteDatabase db) { argument
74 if (LOCAL_LOGV) Log.v(LOG_TAG, "db onCreate.");
88 db.execSQL(sql);
92 public void onUpgrade(SQLiteDatabase db, argument
96 db.execSQL(
98 onCreate(db);
118 protected queryData queryLastApp(SQLiteDatabase db, argument
123 Cursor cur = db.query(APPID_TABLE_NAME,
186 SQLiteDatabase db
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProvider.java63 private static final String DATABASE_NAME = "local.db";
71 public void onCreate(SQLiteDatabase db) { argument
72 db.execSQL("CREATE TABLE data (" +
82 db.insert("data", null, values);
86 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
90 db.execSQL("DROP TABLE IF EXISTS data");
91 onCreate(db);
158 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null);
/frameworks/base/core/java/android/content/
H A DSearchRecentSuggestionsProvider.java84 private static final String sDatabaseName = "suggestions.db";
137 public void onCreate(SQLiteDatabase db) { argument
148 db.execSQL(builder.toString());
152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
155 db.execSQL("DROP TABLE IF EXISTS suggestions");
156 onCreate(db);
226 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
236 count = db.delete(sSuggestions, selection, selectionArgs);
273 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
285 rowID = db
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DDatabaseHelper.java45 private static final String NAME = "sound_model.db";
83 public void onCreate(SQLiteDatabase db) { argument
85 db.execSQL(CREATE_TABLE_SOUND_MODEL);
89 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
92 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE);
93 onCreate(db);
98 db.execSQL("ALTER TABLE " + SoundModelContract.TABLE + " ADD COLUMN "
109 Cursor c = db.rawQuery(selectQuery, null);
124 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE);
125 onCreate(db);
390 writeToDatabase(int version, SQLiteDatabase db) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java112 public void writeKeyValue(SQLiteDatabase db, String key, String value, int userId) { argument
118 db.beginTransaction();
120 db.delete(TABLE, COLUMN_KEY + "=? AND " + COLUMN_USERID + "=?",
122 db.insert(TABLE, null, cv);
123 db.setTransactionSuccessful();
126 db.endTransaction();
142 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
143 if ((cursor = db.query(TABLE, COLUMNS_FOR_QUERY,
167 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
168 if ((cursor = db
469 initialize(SQLiteDatabase db) argument
486 createTable(SQLiteDatabase db) argument
496 onCreate(SQLiteDatabase db) argument
502 onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) argument
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderThrottleSupport.java121 private static final String DATABASE_NAME = "loader_throttle.db";
136 public void onCreate(SQLiteDatabase db) { argument
137 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " ("
151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
158 db.execSQL("DROP TABLE IF EXISTS notes");
161 onCreate(db);
242 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
244 Cursor c = qb.query(db, projection, selection, selectionArgs,
288 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
290 long rowId = db
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DLoaderThrottleSupport.java121 private static final String DATABASE_NAME = "loader_throttle.db";
136 public void onCreate(SQLiteDatabase db) { argument
137 db.execSQL("CREATE TABLE " + MainTable.TABLE_NAME + " ("
151 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
158 db.execSQL("DROP TABLE IF EXISTS notes");
161 onCreate(db);
242 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
244 Cursor c = qb.query(db, projection, selection, selectionArgs,
288 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
290 long rowId = db
[all...]

Completed in 852 milliseconds

12