/external/chromium/chrome/browser/webdata/ |
keyword_table.h | 53 KeywordTable(sql::Connection* db, sql::MetaTable* meta_table) 54 : WebDatabaseTable(db, meta_table) {}
|
web_apps_table.h | 33 WebAppsTable(sql::Connection* db, sql::MetaTable* meta_table) 34 : WebDatabaseTable(db, meta_table) {}
|
/external/chromium_org/chrome/browser/predictors/ |
predictor_table_base.cc | 21 void PredictorTableBase::Initialize(sql::Connection* db) { 22 CHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 23 db_ = db; 31 sql::Connection* PredictorTableBase::DB() { 32 CHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 37 CHECK(BrowserThread::CurrentlyOn(BrowserThread::DB)); 42 CHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
|
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
metadata_db_migration_util.h | 12 #include "third_party/leveldatabase/src/include/leveldb/db.h" 55 // Migrate |db| schema from version 0 to version 1. 56 SyncStatusCode MigrateDatabaseFromV0ToV1(leveldb::DB* db); 58 // Migrate |db| schema from version 1 to version 2. 59 SyncStatusCode MigrateDatabaseFromV1ToV2(leveldb::DB* db);
|
/external/chromium_org/chrome/browser/webdata/ |
logins_table.h | 29 static LoginsTable* FromWebDatabase(WebDatabase* db); 32 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
|
token_service_table.h | 22 static TokenServiceTable* FromWebDatabase(WebDatabase* db); 25 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
|
token_web_data.cc | 25 WebDatabase::State RemoveAllTokens(WebDatabase* db) { 26 if (TokenServiceTable::FromWebDatabase(db)->RemoveAllTokens()) { 33 const std::string& service, WebDatabase* db) { 34 if (TokenServiceTable::FromWebDatabase(db) 42 const std::string& service, const std::string& token, WebDatabase* db) { 43 if (TokenServiceTable::FromWebDatabase(db)->SetTokenForService(service, 50 scoped_ptr<WDTypedResult> GetAllTokens(WebDatabase* db) { 52 TokenServiceTable::FromWebDatabase(db)->GetAllTokens(&map); 62 friend struct BrowserThread::DeleteOnThread<BrowserThread::DB>;
|
/external/chromium_org/content/test/data/indexeddb/ |
bug_90635.js | 25 db = openreq.result; 29 db.createObjectStore('store1'); 30 db.createObjectStore('store2', {keyPath: ''}); 31 db.createObjectStore('store3', {keyPath: 'some_path'}); 34 test_store(db, 'first run'); 44 var db = openreq.result; 45 test_store(db, 'second run'); 49 function test_store(db, msg) { 50 var transaction = db.transaction(['store1', 'store2', 'store3'], 'readonly');
|
/external/chromium_org/sync/test/ |
test_directory_backing_store.cc | 14 const std::string& dir_name, sql::Connection* db) 15 : DirectoryBackingStore(dir_name, db) {
|
/external/chromium_org/third_party/sqlite/src/ext/rtree/ |
rtree_perf.tcl | 30 db eval $sql1 31 db eval $sql2 33 db eval "pragma cache_size=100" 37 set btree_time [time {db transaction { 40 db eval {INSERT INTO btree VALUES($ii, $x1, $x2, $y1, $y2)} 48 set rtree_time [time {db transaction { 52 db eval {INSERT INTO rtree VALUES($ii, $x1, $x2, $y1, $y2)} 62 db eval {SELECT * FROM btree WHERE x1<$x1 AND x2>$x2 AND y1<$y1 AND y2>$y2} 71 db eval {SELECT * FROM rtree WHERE x1<$x1 AND x2>$x2 AND y1<$y1 AND y2>$y2}
|
/external/chromium_org/third_party/sqlite/src/src/ |
vdbemem.c | 48 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); 87 if( sqlite3DbMallocSize(pMem->db, pMem->zMalloc)<n ){ 89 pMem->z = pMem->zMalloc = sqlite3DbReallocOrFree(pMem->db, pMem->z, n); 92 sqlite3DbFree(pMem->db, pMem->zMalloc); 93 pMem->zMalloc = sqlite3DbMallocRaw(pMem->db, n); 124 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ); 153 assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) ) 556 sqlite3 *db = pMem->db; local [all...] |
tokenize.c | 394 u8 enableLookaside; /* Saved value of db->lookaside.bEnabled */ 395 sqlite3 *db = pParse->db; /* The database connection */ local 399 mxSqlLen = db->aLimit[SQLITE_LIMIT_SQL_LENGTH]; 400 if( db->activeVdbeCnt==0 ){ 401 db->u1.isInterrupted = 0; 409 db->mallocFailed = 1; 418 enableLookaside = db->lookaside.bEnabled; 419 if( db->lookaside.pStart ) db->lookaside.bEnabled = 1 [all...] |
delete.c | 36 sqlite3DeleteTable(pParse->db, pItem->pTab); 64 && sqlite3GetVTable(pParse->db, pTab)->pMod->pModule->xUpdate==0 ) 66 && (pParse->db->flags & SQLITE_WriteSchema)==0 97 sqlite3 *db = pParse->db; local 99 pDup = sqlite3SelectDup(db, pView->pSelect, 0); 103 pWhere = sqlite3ExprDup(db, pWhere, 0); 104 pFrom = sqlite3SrcListAppend(db, 0, 0, 0); 107 pFrom->a[0].zAlias = sqlite3DbStrDup(db, pView->zName); 112 sqlite3SelectDelete(db, pDup) 236 sqlite3 *db; \/* Main database structure *\/ local [all...] |
/external/chromium_org/third_party/sqlite/src/test/ |
malloc_common.tcl | 161 sqlite3_extended_result_codes db 1 162 sqlite3_db_config_lookaside db 0 0 0 166 sqlite3_extended_result_codes db 1 167 sqlite3_db_config_lookaside db 0 0 0 170 proc faultsim_integrity_check {{db db}} { 171 set ic [$db eval { PRAGMA integrity_check }] 211 catch {db close} 229 catch {db close} 247 catch {db close [all...] |
threadtest1.c | 102 char **db_query(sqlite *db, const char *zFile, const char *zFormat, ...){ 114 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); 117 rc = sqlite3_exec(db, zSql, db_query_callback, &sResult, &zErrMsg); 137 void db_execute(sqlite *db, const char *zFile, const char *zFormat, ...){ 147 rc = sqlite3_exec(db, zSql, 0, 0, &zErrMsg); 200 sqlite *db; local 208 sqlite3_open(&zFilename[2], &db); 209 if( db==0 ){ 213 sqlite3_busy_handler(db, db_is_locked, zFilename); 214 db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
dbutils.py | 33 exec("from . import db") namespace 35 import db namespace 58 d = DB(...) 69 except db.DBLockDeadlockError:
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/ |
dbutils.py | 33 exec("from . import db") namespace 35 import db namespace 58 d = DB(...) 69 except db.DBLockDeadlockError:
|
/external/chromium_org/chrome/browser/extensions/activity_log/ |
counting_policy.cc | 168 bool CountingPolicy::InitDatabase(sql::Connection* db) { 169 if (!Util::DropObsoleteTables(db)) 172 if (!string_table_.Initialize(db)) 174 if (!url_table_.Initialize(db)) 178 if (!ActivityDatabase::InitializeTable(db, 187 return db->Execute(kPolicyMiscSetup); 204 bool CountingPolicy::FlushDatabase(sql::Connection* db) { 223 sql::Transaction transaction(db); 258 if (!string_table_.StringToInt(db, action.extension_id(), &id)) 264 if (!string_table_.StringToInt(db, action.api_name(), &id) 386 sql::Connection* db = GetDatabaseConnection(); local [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherProvider.java | 67 private static final String DATABASE_NAME = "launcher.db"; 118 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 119 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); 126 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) { 130 return db.insert(table, nullColumnHack, values); 133 private static void deleteId(SQLiteDatabase db, long id) { 136 db.delete(args.table, args.where, args.args); 143 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 144 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues); 157 SQLiteDatabase db = mOpenHelper.getWritableDatabase() local 179 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 190 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local [all...] |
/cts/tests/src/android/content/cts/ |
DummyProvider.java | 40 private static final String DATABASE_NAME = "dummy.db"; 83 public void onCreate(SQLiteDatabase db) { 85 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY," 90 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 105 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local 106 db.insert(tbName, VALUE, values); 124 SQLiteDatabase db = mDbHelper.getReadableDatabase(); local 125 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); 143 * Simulate a long-running DB operation by sleeping. 152 // ignore and continue sleeping, since a true long-running DB operation would no 170 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local 187 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local [all...] |
/external/chromium_org/chrome/browser/ui/webui/predictors/ |
predictors_handler.cc | 63 base::ListValue* db = new base::ListValue(); local 75 db->Append(entry); 77 dict.Set("db", db); 91 base::ListValue* db = new base::ListValue(); local 93 *resource_prefetch_predictor_->url_table_cache_, db); 94 dict.Set("url_db", db); 96 db = new base::ListValue(); 98 *resource_prefetch_predictor_->host_table_cache_, db); 99 dict.Set("host_db", db); [all...] |
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/ |
c.h | 13 . custom iter, db, env, cache implementations using just the C bindings 71 /* DB operations */ 78 extern void leveldb_close(leveldb_t* db); 81 leveldb_t* db, 88 leveldb_t* db, 94 leveldb_t* db, 102 leveldb_t* db, 109 leveldb_t* db, 113 leveldb_t* db); 116 leveldb_t* db, [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForOrganization.java | 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 47 long dataId = super.insert(db, txContext, rawContactId, values); 49 fixRawContactDisplayName(db, txContext, rawContactId); 54 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, 56 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) { 72 company = DatabaseUtils.stringForQuery(db, 83 title = DatabaseUtils.stringForQuery(db, 90 fixRawContactDisplayName(db, txContext, rawContactId); 96 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { 100 int count = super.delete(db, txContext, c) [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapter/src/main/java/com/example/android/network/sync/basicsyncadapter/provider/ |
FeedProvider.java | 28 import com.example.android.common.db.SelectionBuilder; 94 SQLiteDatabase db = mDatabaseHelper.getReadableDatabase(); local 106 Cursor c = builder.query(db, projection, sortOrder); 123 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); local 124 assert db != null; 129 long id = db.insertOrThrow(FeedContract.Entry.TABLE_NAME, null, values); 150 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase(); local 157 .delete(db); 164 .delete(db); 182 final SQLiteDatabase db = mDatabaseHelper.getWritableDatabase() local [all...] |
/external/chromium_org/components/nacl/loader/ |
nacl_validation_query_unittest.cc | 88 db.reset(new MockValidationDB()); 89 context.reset(new NaClValidationQueryContext(db.get(), key, version)); 93 scoped_ptr<MockValidationDB> db; member in class:__anon9891::TestQuery 109 ASSERT_TRUE(query1->db->did_query_); 110 ASSERT_TRUE(query2->db->did_query_); 111 ASSERT_EQ(0, memcmp(query1->db->query_signature_, 112 query2->db->query_signature_, 117 ASSERT_TRUE(query1->db->did_query_); 118 ASSERT_TRUE(query2->db->did_query_); 119 ASSERT_NE(0, memcmp(query1->db->query_signature_ [all...] |