/libcore/luni/src/test/java/libcore/sqlite/ |
OldDatabaseTest.java | 55 private Database db = null; field in class:OldDatabaseTest 63 assertNotNull("Could not establish DB connection",conn); 82 db = new Database(); 83 db.open(dbFile.getPath(), 0); 84 db.busy_handler(null); 89 db.close(); 92 System.err.println("Error closing DB " + dbFile.getPath()); 100 // db closed 102 db.close(); 106 db.open(dbFile.getPath(), 0) [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
DatabaseHelper.java | 69 private static final String DATABASE_NAME = "settings.db"; 100 // The owner gets the unadorned db name; 122 private void createSecureTable(SQLiteDatabase db) { 123 db.execSQL("CREATE TABLE secure (" + 128 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 131 private void createGlobalTable(SQLiteDatabase db) { 132 db.execSQL("CREATE TABLE global (" + 137 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); 141 public void onCreate(SQLiteDatabase db) { 142 db.execSQL("CREATE TABLE system (" [all...] |
/external/chromium_org/chrome/browser/webdata/ |
logins_table.cc | 24 LoginsTable* LoginsTable::FromWebDatabase(WebDatabase* db) { 25 return static_cast<LoginsTable*>(db->GetTable(GetKey())); 32 bool LoginsTable::Init(sql::Connection* db, sql::MetaTable* meta_table) { 33 WebDatabaseTable::Init(db, meta_table);
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
datastore_models.py | 5 from appengine_wrappers import db namespace 11 class PersistentObjectStoreItem(db.Model): 12 pickled_value = db.BlobProperty() 16 return db.Key.from_path(cls.__name__, '%s/%s' % (namespace, key))
|
/external/chromium_org/components/autofill/core/browser/webdata/ |
autofill_webdata_backend_impl.h | 31 // DB thread, as it handles reads and writes to the WebDatabase, and functions 58 // owned by the DB thread on this object. Should be called only from 59 // the DB thread, and will be destroyed on the DB thread soon after 67 WebDatabase* db); 75 WebDatabase* db); 78 scoped_ptr<WDTypedResult> HasFormElements(WebDatabase* db); 84 WebDatabase* db); 91 WebDatabase* db); 95 WebDatabase* db); [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/ |
SQLTransactionSync.cpp | 41 PassRefPtr<SQLTransactionSync> SQLTransactionSync::create(DatabaseSync* db, PassRefPtr<SQLTransactionSyncCallback> callback, bool readOnly) 43 return adoptRef(new SQLTransactionSync(db, callback, readOnly)); 46 SQLTransactionSync::SQLTransactionSync(DatabaseSync* db, PassRefPtr<SQLTransactionSyncCallback> callback, bool readOnly) 47 : SQLTransactionBackendSync(db, callback, readOnly)
|
/external/chromium_org/third_party/sqlite/src/test/ |
crashtest1.c | 30 sqlite *db; local 36 if( access("./test.db-journal",0)==0 ){ 37 /*printf("pid %d: journal exists. rollback will be required\n",getpid());*/ unlink("test.db-saved"); 38 system("cp test.db test.db-saved"); 39 unlink("test.db-journal-saved"); 40 system("cp test.db-journal test.db-journal-saved"); 42 db = sqlite_open("./test.db", 0, &zErr) 69 sqlite *db; local [all...] |
tt3_checkpoint.c | 55 sqlite3 *db, 64 sqlite3_wal_checkpoint_v2(db, zDb, p->eMode, 0, 0); 71 Sqlite db = {0}; local 73 opendb(&err, &db, "test.db", 0); 76 sql_script(&err, &db, "BEGIN"); 77 iCount1 = execsql_i64(&err, &db, "SELECT count(x) FROM t1"); 79 iCount2 = execsql_i64(&err, &db, "SELECT count(x) FROM t1"); 80 sql_script(&err, &db, "COMMIT"); 86 closedb(&err, &db); 94 Sqlite db = {0}; local [all...] |
collate7.test | 28 sqlite3_create_collation_v2 db CASELESS caseless_cmp $cmd 32 sqlite_delete_collation db CASELESS 41 sqlite3_create_collation_v2 db CASELESS caseless_cmp {incr ::caseless_del} 42 db close 47 file delete -force test.db test.db-journal 48 sqlite3 db test.db 49 sqlite3_create_collation_v2 db CASELESS caseless_cmp {incr ::caseless_del} 53 } db [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests/ |
elfglobext.asm | 13 db 5 15 db 1,2,3
|
/external/chromium_org/third_party/sqlite/src/src/ |
auth.c | 71 sqlite3 *db, 75 sqlite3_mutex_enter(db->mutex); 76 db->xAuth = xAuth; 77 db->pAuthArg = pArg; 78 sqlite3ExpirePreparedStatements(db); 79 sqlite3_mutex_leave(db->mutex); 107 sqlite3 *db = pParse->db; /* Database handle */ local 108 char *zDb = db->aDb[iDb].zName; /* Name of attached database */ 111 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext) 140 sqlite3 *db = pParse->db; local 198 sqlite3 *db = pParse->db; local [all...] |
vdbeblob.c | 32 sqlite3 *db; /* The associated database */ member in struct:Incrblob 69 zErr = sqlite3MPrintf(p->db, "cannot open value of type %s", 91 zErr = sqlite3MPrintf(p->db, "no such rowid: %lld", iRow); 94 zErr = sqlite3MPrintf(p->db, "%s", sqlite3_errmsg(p->db)); 109 sqlite3* db, /* The database connection */ 121 ** db/table/row entry. The reason for using a vdbe program instead 162 sqlite3_mutex_enter(db->mutex); 164 pBlob = (Incrblob *)sqlite3DbMallocZero(db, sizeof(Incrblob)); 166 pParse = sqlite3StackAllocRaw(db, sizeof(*pParse)) 337 sqlite3 *db; local 364 sqlite3 *db; local 439 sqlite3 *db; local [all...] |
callback.c | 23 static void callCollNeeded(sqlite3 *db, int enc, const char *zName){ 24 assert( !db->xCollNeeded || !db->xCollNeeded16 ); 25 if( db->xCollNeeded ){ 26 char *zExternal = sqlite3DbStrDup(db, zName); 28 db->xCollNeeded(db->pCollNeededArg, db, enc, zExternal); 29 sqlite3DbFree(db, zExternal); 32 if( db->xCollNeeded16 ) 122 sqlite3 *db = pParse->db; local [all...] |
trigger.c | 19 void sqlite3DeleteTriggerStep(sqlite3 *db, TriggerStep *pTriggerStep){ 24 sqlite3ExprDelete(db, pTmp->pWhere); 25 sqlite3ExprListDelete(db, pTmp->pExprList); 26 sqlite3SelectDelete(db, pTmp->pSelect); 27 sqlite3IdListDelete(db, pTmp->pIdList); 29 sqlite3DbFree(db, pTmp); 48 Schema * const pTmpSchema = pParse->db->aDb[1].pSchema; 57 assert( sqlite3SchemaMutexHeld(pParse->db, 0, pTmpSchema) ); 95 sqlite3 *db = pParse->db; /* The database connection * local 265 sqlite3 *db = pParse->db; \/* The database *\/ local 483 sqlite3 *db = pParse->db; local 533 sqlite3 *db = pParse->db; local 680 sqlite3 *db = pParse->db; local 699 sqlite3 *db = pParse->db; local 809 sqlite3 *db = pParse->db; \/* Database handle *\/ local [all...] |
/frameworks/ex/common/java/com/android/common/content/ |
SyncStateContentProviderHelper.java | 54 public void createDatabase(SQLiteDatabase db) { 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) { 73 long version = DatabaseUtils.longForQuery(db, 77 createDatabase(db); 81 public Cursor query(SQLiteDatabase db, String[] projection [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
indexedDBViews.css | 31 .indexed-db-database-view { 36 .indexed-db-database-view .outline-disclosure { 40 .indexed-db-database-view .outline-disclosure li { 44 .indexed-db-database-view .outline-disclosure .attribute-name { 52 .indexed-db-database-view .outline-disclosure .attribute-value { 57 .indexed-db-data-view .data-view-toolbar { 63 .indexed-db-data-view .data-view-toolbar .back-button img { 67 .indexed-db-data-view .data-view-toolbar .forward-button img { 71 .indexed-db-data-view .data-view-toolbar .key-input { 78 .indexed-db-data-view .data-grid-container [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_lock.py | 8 from test_all import db, test_support, verbose, have_threads, \ 24 self.env = db.DBEnv() 25 self.env.open(self.homeDir, db.DB_THREAD | db.DB_INIT_MPOOL | 26 db.DB_INIT_LOCK | db.DB_CREATE) 42 lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE) 58 args=(db.DB_LOCK_WRITE,))) 60 args=(db.DB_LOCK_READ,))) 62 args=(db.DB_LOCK_READ,)) 9 get_new_environment_path, get_new_database_path namespace [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_lock.py | 8 from test_all import db, test_support, verbose, have_threads, \ 24 self.env = db.DBEnv() 25 self.env.open(self.homeDir, db.DB_THREAD | db.DB_INIT_MPOOL | 26 db.DB_INIT_LOCK | db.DB_CREATE) 42 lock = self.env.lock_get(anID, "some locked thing", db.DB_LOCK_WRITE) 58 args=(db.DB_LOCK_WRITE,))) 60 args=(db.DB_LOCK_READ,))) 62 args=(db.DB_LOCK_READ,)) 9 get_new_environment_path, get_new_database_path namespace [all...] |
/external/chromium_org/chrome/browser/history/ |
thumbnail_database_unittest.cc | 62 // Get a temporary directory for the test DB files. 65 file_name_ = temp_dir_.path().AppendASCII("TestThumbnails.db"); 66 new_file_name_ = temp_dir_.path().AppendASCII("TestFavicons.db"); 67 history_db_name_ = temp_dir_.path().AppendASCII("TestHistory.db"); 116 ThumbnailDatabase db; local 117 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL, NULL)); 118 db.BeginTransaction(); 124 chrome::FaviconID icon_id = db.AddFavicon(url, chrome::FAVICON); 126 FaviconBitmapID bitmap1_id = db.AddFaviconBitmap(icon_id, favicon, time, 128 FaviconBitmapID bitmap2_id = db.AddFaviconBitmap(icon_id, favicon, time 176 ThumbnailDatabase db; local 201 ThumbnailDatabase db; local 230 ThumbnailDatabase db; local 262 ThumbnailDatabase db; local 291 ThumbnailDatabase db; local 332 ThumbnailDatabase db; local 361 ThumbnailDatabase db; local 428 ThumbnailDatabase db; local 476 ThumbnailDatabase db; local 525 ThumbnailDatabase db; local 549 ThumbnailDatabase db; local 617 ThumbnailDatabase db; local 681 ThumbnailDatabase db; local 732 ThumbnailDatabase db; local 804 ThumbnailDatabase db; local 845 ThumbnailDatabase db; local [all...] |
/external/chromium_org/sql/ |
statement_unittest.cc | 23 ASSERT_TRUE(db_.Open(temp_dir_.path().AppendASCII("SQLStatementTest.db"))); 30 sql::Connection& db() { return db_; } function in class:__anon12376::SQLStatementTest 43 s.Assign(db().GetUniqueStatement("CREATE TABLE foo (a, b)")); 48 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); 49 ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)")); 51 sql::Statement s(db().GetUniqueStatement("SELECT b FROM foo WHERE a=?")); 62 EXPECT_EQ(SQLITE_ROW, db().GetErrorCode()); 80 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)")); 84 &db(), base::Bind(&sql::CaptureErrorCallback, &error)); 89 sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)")) [all...] |
/external/chromium/chrome/browser/sync/util/ |
user_settings_unittest.cc | 49 sql::Connection db; local 50 ASSERT_TRUE(db.Open(v10_user_setting_db_path_)); 61 ASSERT_TRUE(db.Execute( 66 ASSERT_TRUE(db.Execute( 70 ASSERT_TRUE(db.Execute("CREATE TABLE db_version (version)")); 73 sql::Statement s(db.GetUniqueStatement(query)); 75 LOG(FATAL) << query << "\n" << db.GetErrorMessage(); 79 LOG(FATAL) << query << "\n" << db.GetErrorMessage(); 83 ASSERT_TRUE(db.Execute( 89 sql::Statement s(db.GetUniqueStatement(query)) 111 sql::Connection db; local 180 sql::Connection db; local 214 sql::Connection db; local [all...] |
/external/chromium/chrome/browser/password_manager/ |
login_database_unittest.cc | 25 base::Int64ToString(base::Time::Now().ToInternalValue()) + ".db"; 38 scoped_ptr<LoginDatabase> db(new LoginDatabase()); 40 ASSERT_TRUE(db->Init(file_)); 45 EXPECT_TRUE(db->GetAutofillableLogins(&result)); 63 EXPECT_TRUE(db->AddLogin(form)); 64 EXPECT_TRUE(db->GetAutofillableLogins(&result)); 70 EXPECT_TRUE(db->GetLogins(form, &result)); 81 EXPECT_TRUE(db->GetLogins(form2, &result)); 91 EXPECT_TRUE(db->GetLogins(form3, &result)); 102 EXPECT_TRUE(db->GetLogins(form4, &result)) [all...] |
/packages/apps/Email/src/com/android/email/provider/ |
DBHelper.java | 183 static void createMessageCountTriggers(final SQLiteDatabase db) { 185 db.execSQL("create trigger message_count_message_insert after insert on " + 193 db.execSQL("create trigger message_count_message_delete after delete on " + 201 db.execSQL("create trigger message_count_message_move after update of " + 212 static void dropDeleteDuplicateMessagesTrigger(final SQLiteDatabase db) { 213 db.execSQL("drop trigger message_delete_duplicates_on_insert"); 226 static void createDeleteDuplicateMessagesTrigger(final SQLiteDatabase db) { 227 db.execSQL("create trigger message_delete_duplicates_on_insert before insert on " 241 static void createMessageTable(SQLiteDatabase db) { 283 db.execSQL("create table " + Message.TABLE_NAME + createString) [all...] |
/external/chromium/chrome/browser/webdata/ |
logins_table_unittest.cc | 29 ".db"; 45 WebDatabase db; local 47 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); 52 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true)); 70 EXPECT_TRUE(db.GetLoginsTable()->AddLogin(form)); 71 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true)); 77 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result)); 88 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form2, &result)); 98 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form3, &result)); 109 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form4, &result)) 200 WebDatabase db; local 242 WebDatabase db; local [all...] |
/external/chromium/chrome/browser/ |
browsing_data_database_helper_unittest.cc | 20 const char db[] = "db1"; local 26 helper->AddDatabase(origin, db, "");
|