HomeSort by relevance Sort by last modified time
    Searched refs:db (Results 76 - 100 of 1110) sorted by null

1 2 34 5 6 7 8 91011>>

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
SQLiteAsyncQuery.java 31 * @param db A readable database.
34 protected abstract A performQuery(SQLiteDatabase db);
39 public void run(SQLiteDatabase db, Consumer<A> consumer) {
40 A result = performQuery(db);
  /external/chromium_org/sql/
connection_unittest.cc 21 int SqliteMasterCount(sql::Connection* db) {
23 sql::Statement s(db->GetUniqueStatement(kMasterCount));
54 void ErrorCallbackSetHelper(sql::Connection* db,
60 db->set_error_callback(base::Bind(&IgnoreErrorCallback));
64 void ErrorCallbackResetHelper(sql::Connection* db,
70 db->reset_error_callback();
102 sql::Connection& db() { return db_; } function in class:__anon12373::SQLConnectionTest
105 return temp_dir_.path().AppendASCII("SQLConnectionTest.db");
121 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)"));
122 EXPECT_EQ(SQLITE_OK, db().GetErrorCode())
    [all...]
  /external/chromium_org/third_party/sqlite/src/src/
util.c 98 ** handle "db". The error code is set to "err_code".
113 ** To clear the most recent error for sqlite handle "db", sqlite3Error
117 void sqlite3Error(sqlite3 *db, int err_code, const char *zFormat, ...){
118 if( db && (db->pErr || (db->pErr = sqlite3ValueNew(db))!=0) ){
119 db->errCode = err_code;
124 z = sqlite3VMPrintf(db, zFormat, ap);
126 sqlite3ValueSetStr(db->pErr, -1, z, SQLITE_UTF8, SQLITE_DYNAMIC)
153 sqlite3 *db = pParse->db; local
    [all...]
btmutex.c 24 ** set BtShared.db to the database handle associated with p and the
30 assert( sqlite3_mutex_held(p->db->mutex) );
33 p->pBt->db = p->db;
45 assert( sqlite3_mutex_held(p->db->mutex) );
46 assert( p->db==pBt->db );
77 assert( p->pNext==0 || p->pNext->db==p->db );
78 assert( p->pPrev==0 || p->pPrev->db==p->db )
    [all...]
attach.c 70 sqlite3 *db = sqlite3_context_db_handle(context); local
73 Db *aNew;
89 if( db->nDb>=db->aLimit[SQLITE_LIMIT_ATTACHED]+2 ){
90 zErrDyn = sqlite3MPrintf(db, "too many attached databases - max %d",
91 db->aLimit[SQLITE_LIMIT_ATTACHED]
95 if( !db->autoCommit ){
96 zErrDyn = sqlite3MPrintf(db, "cannot ATTACH database within transaction");
99 for(i=0; i<db->nDb; i++){
100 char *z = db->aDb[i].zName
242 sqlite3 *db = sqlite3_context_db_handle(context); local
300 sqlite3* db = pParse->db; local
416 sqlite3 *db; local
    [all...]
legacy.c 31 sqlite3 *db, /* The database on which the SQL executes */
44 if( !sqlite3SafetyCheckOk(db) ) return SQLITE_MISUSE_BKPT;
47 sqlite3_mutex_enter(db->mutex);
48 sqlite3Error(db, SQLITE_OK, 0);
54 rc = sqlite3_prepare(db, zSql, -1, &pStmt, &zLeftover);
75 && db->flags&SQLITE_NullCallback)) ){
77 azCols = sqlite3DbMallocZero(db, 2*nCol*sizeof(const char*) + 1);
94 db->mallocFailed = 1;
103 sqlite3Error(db, SQLITE_ABORT, 0);
120 sqlite3DbFree(db, azCols)
    [all...]
vtab.c 23 sqlite3 *db, /* Database in which module is registered */
32 sqlite3_mutex_enter(db->mutex);
34 pMod = (Module *)sqlite3DbMallocRaw(db, sizeof(Module) + nName + 1);
43 pDel = (Module *)sqlite3HashInsert(&db->aModule, zCopy, nName, (void*)pMod);
47 sqlite3DbFree(db, pDel);
49 db->mallocFailed = 1;
51 sqlite3ResetInternalSchema(db, -1);
55 rc = sqlite3ApiExit(db, SQLITE_OK);
56 sqlite3_mutex_leave(db->mutex);
65 sqlite3 *db, /* Database in which module is registered *
116 sqlite3 *db = pVTab->db; local
273 sqlite3 *db; \/* Database connection *\/ local
313 sqlite3 *db = pParse->db; local
324 sqlite3 *db = pParse->db; \/* The database connection *\/ local
537 sqlite3 *db = pParse->db; local
    [all...]
status.c 101 sqlite3 *db, /* The database connection whose status is desired */
108 sqlite3_mutex_enter(db->mutex);
111 *pCurrent = db->lookaside.nOut;
112 *pHighwater = db->lookaside.mxOut;
114 db->lookaside.mxOut = db->lookaside.nOut;
128 *pHighwater = db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT];
130 db->lookaside.anStat[op - SQLITE_DBSTATUS_LOOKASIDE_HIT] = 0;
143 sqlite3BtreeEnterAll(db);
144 for(i=0; i<db->nDb; i++)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
FilterStackDBHelper.java 26 public static final String DATABASE_NAME = "filterstacks.db";
59 public void onCreate(SQLiteDatabase db) {
60 createTable(db, FilterStack.TABLE, CREATE_FILTER_STACK);
64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
65 dropTable(db, FilterStack.TABLE);
66 onCreate(db);
69 protected static void createTable(SQLiteDatabase db, String table, String[][] columns) {
83 db.beginTransaction();
85 db.execSQL(create.toString());
86 db.setTransactionSuccessful()
    [all...]
  /external/chromium_org/third_party/tlslite/tlslite/
BaseDB.py 11 self.db = None
13 self.db = {}
22 self.db = anydbm.open(self.filename, "n") #raises anydbm.error
23 self.db["--Reserved--type"] = self.type
24 self.db.sync()
26 self.db = {}
36 self.db = anydbm.open(self.filename, "w") #raises anydbm.error
38 if self.db["--Reserved--type"] != self.type:
44 if self.db == None:
45 raise AssertionError("DB not open"
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_mimetypes.py 16 self.db = mimetypes.MimeTypes()
20 eq(self.db.guess_type("foo.html"), ("text/html", None))
21 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
22 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
23 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
24 eq(self.db.guess_type("foo.tar.bz2"), ("application/x-tar", "bzip2"))
25 eq(self.db.guess_type("foo.tar.xz"), ("application/x-tar", "xz"))
29 guess_type = self.db.guess_type
37 self.db.readfp(sio)
38 eq(self.db.guess_type("foo.pyunit")
    [all...]
test_unicodedata.py 74 self.db = unicodedata
77 del self.db
92 str(self.db.digit(char, -1)),
93 str(self.db.numeric(char, -1)),
94 str(self.db.decimal(char, -1)),
95 self.db.category(char),
96 self.db.bidirectional(char),
97 self.db.decomposition(char),
98 str(self.db.mirrored(char)),
99 str(self.db.combining(char))
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_mimetypes.py 16 self.db = mimetypes.MimeTypes()
20 eq(self.db.guess_type("foo.html"), ("text/html", None))
21 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
22 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
23 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
24 eq(self.db.guess_type("foo.tar.bz2"), ("application/x-tar", "bzip2"))
25 eq(self.db.guess_type("foo.tar.xz"), ("application/x-tar", "xz"))
29 guess_type = self.db.guess_type
37 self.db.readfp(sio)
38 eq(self.db.guess_type("foo.pyunit")
    [all...]
test_unicodedata.py 74 self.db = unicodedata
77 del self.db
92 str(self.db.digit(char, -1)),
93 str(self.db.numeric(char, -1)),
94 str(self.db.decimal(char, -1)),
95 self.db.category(char),
96 self.db.bidirectional(char),
97 self.db.decomposition(char),
98 str(self.db.mirrored(char)),
99 str(self.db.combining(char))
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/txt_db/
txt_db.c 196 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value)
201 if (idx >= db->num_fields)
203 db->error=DB_ERROR_INDEX_OUT_OF_RANGE;
206 lh=db->index[idx];
209 db->error=DB_ERROR_NO_INDEX;
213 db->error=DB_ERROR_OK;
217 int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(OPENSSL_STRING *),
224 if (field >= db->num_fields)
226 db->error=DB_ERROR_INDEX_OUT_OF_RANGE;
232 db->error=DB_ERROR_MALLOC
    [all...]
  /external/openssl/crypto/txt_db/
txt_db.c 196 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value)
201 if (idx >= db->num_fields)
203 db->error=DB_ERROR_INDEX_OUT_OF_RANGE;
206 lh=db->index[idx];
209 db->error=DB_ERROR_NO_INDEX;
213 db->error=DB_ERROR_OK;
217 int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(OPENSSL_STRING *),
224 if (field >= db->num_fields)
226 db->error=DB_ERROR_INDEX_OUT_OF_RANGE;
232 db->error=DB_ERROR_MALLOC
    [all...]
  /external/chromium_org/third_party/protobuf/python/google/protobuf/internal/
descriptor_database_test.py 46 db = descriptor_database.DescriptorDatabase()
49 db.Add(file_desc_proto)
51 self.assertEquals(file_desc_proto, db.FindFileByName(
53 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
55 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
57 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
59 self.assertEquals(file_desc_proto, db.FindFileContainingSymbol(
  /external/chromium_org/third_party/sqlite/src/test/
threadtest2.c 28 #define DB_FILE "test.db"
57 int integrity_check(sqlite *db, int id){
61 rc = sqlite3_exec(db, "pragma integrity_check", check_callback, 0, 0);
66 sqlite3_exec(db, "pragma integrity_check", check_callback, 0, 0);
75 sqlite *db; local
82 while( (sqlite3_open(DB_FILE, &db))!=SQLITE_OK ) sched_yield();
83 sqlite3_exec(db, "PRAGMA synchronous=OFF", 0, 0, 0);
84 /* integrity_check(db, id); */
85 if( all_stop ){ sqlite3_close(db); break; }
87 rc = sqlite3_exec(db, "INSERT INTO t1 VALUES('bogus data')", 0, 0, 0)
99 sqlite *db; local
    [all...]
  /external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/tests/
opt-struc.asm 24 times HOSTENT.Name-($-..@44.strucstart) db 0
26 times HOSTENT.Aliases-($-..@44.strucstart) db 0
28 times HOSTENT.AddrList-($-..@44.strucstart) db 0
30 times HOSTENT_size-($-..@44.strucstart) db 0
34 times HOSTENT.Name-($-..@45.strucstart) db 0
36 times HOSTENT.Aliases-($-..@45.strucstart) db 0
38 times HOSTENT_size-($-..@45.strucstart) db 0
  /external/chromium/chrome/browser/webdata/
token_service_table_unittest.cc 25 ".db";
41 WebDatabase db; local
42 ASSERT_EQ(sql::INIT_OK, db.Init(file_));
50 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map));
54 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service,
56 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service2, "steak"));
57 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map));
63 EXPECT_TRUE(db.GetTokenServiceTable()->RemoveAllTokens());
64 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map));
68 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service, "cheese"))
74 WebDatabase db; local
    [all...]
  /external/chromium/chrome/browser/history/
thumbnail_database_unittest.cc 60 // Get a temporary directory for the test DB files.
63 file_name_ = temp_dir_.path().AppendASCII("TestThumbnails.db");
64 new_file_name_ = temp_dir_.path().AppendASCII("TestFavicons.db");
65 history_db_name_ = temp_dir_.path().AppendASCII("TestHistory.db");
114 ThumbnailDatabase db; local
115 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL, NULL));
116 db.BeginTransaction();
122 FaviconID id = db.AddFavicon(url, FAVICON);
124 db.SetFavicon(id, favicon, time);
125 EXPECT_TRUE(db.RenameAndDropThumbnails(file_name_, new_file_name_))
140 ThumbnailDatabase db; local
162 ThumbnailDatabase db; local
194 ThumbnailDatabase db; local
225 ThumbnailDatabase db; local
252 ThumbnailDatabase db; local
290 ThumbnailDatabase db; local
315 ThumbnailDatabase db; local
367 ThumbnailDatabase db; local
416 ThumbnailDatabase db; local
    [all...]
  /external/chromium_org/webkit/browser/quota/
quota_database_unittest.cc 38 QuotaDatabase db(kDbFile);
39 EXPECT_FALSE(db.LazyOpen(false));
40 ASSERT_TRUE(db.LazyOpen(true));
41 EXPECT_TRUE(db.db_.get());
54 QuotaDatabase db(kDbFile);
55 EXPECT_TRUE(db.LazyOpen(true));
56 EXPECT_TRUE(db.db_.get());
60 EXPECT_TRUE(db.DumpQuotaTable(
68 QuotaDatabase db(kDbFile);
69 ASSERT_TRUE(db.LazyOpen(true))
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactsTransaction.java 98 * @param db The database to start a transaction on, if necessary.
99 * @param tag A constant that can be used to retrieve the DB instance in this transaction.
102 public void startTransactionForDb(SQLiteDatabase db, String tag,
105 Log.i(AbstractContactsProvider.TAG, "startTransactionForDb: db=" + db.getPath() +
111 // Insert a new db into the head of the list, so that we'll endTransaction() in
113 mDatabasesForTransaction.add(0, db);
114 mDatabaseTagMap.put(tag, db);
116 db.beginTransactionWithListener(listener);
118 db.beginTransaction()
149 SQLiteDatabase db = mDatabaseTagMap.get(tag); local
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/
test_fileid.py 8 from test_all import db, test_support, get_new_environment_path, get_new_database_path namespace
17 # create DB 1
18 self.db1 = db.DB()
19 self.db1.open(self.db_path_1, dbtype=db.DB_HASH, flags=(db.DB_CREATE|db.DB_EXCL))
25 self.db2 = db.DB()
26 self.db2.open(self.db_path_2, dbtype=db.DB_HASH
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/
test_fileid.py 8 from test_all import db, test_support, get_new_environment_path, get_new_database_path namespace
17 # create DB 1
18 self.db1 = db.DB()
19 self.db1.open(self.db_path_1, dbtype=db.DB_HASH, flags=(db.DB_CREATE|db.DB_EXCL))
25 self.db2 = db.DB()
26 self.db2.open(self.db_path_2, dbtype=db.DB_HASH
    [all...]

Completed in 903 milliseconds

1 2 34 5 6 7 8 91011>>