/frameworks/base/test-runner/src/android/test/ |
DatabaseTestUtils.java | 34 * @param expectedDb the db that is known to have the correct schema 35 * @param db the db whose schema should be checked 37 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { 39 Set<String> schema = getSchemaSet(db); 43 private static Set<String> getSchemaSet(SQLiteDatabase db) { 46 Cursor entityCursor = db.rawQuery("SELECT sql FROM sqlite_master", null);
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
PhotoDatabase.java | 87 public void onCreate(SQLiteDatabase db) { 88 createTable(db, Accounts.TABLE, getAccountTableDefinition()); 89 createTable(db, Albums.TABLE, getAlbumTableDefinition()); 90 createTable(db, Photos.TABLE, getPhotoTableDefinition()); 91 createTable(db, Metadata.TABLE, getMetadataTableDefinition()); 103 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 104 recreate(db); 108 public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) { 109 recreate(db); 112 private void recreate(SQLiteDatabase db) { [all...] |
/external/chromium_org/third_party/leveldatabase/src/db/ |
c_test.c | 65 leveldb_t* db, 72 val = leveldb_get(db, options, key, strlen(key), &val_len, &err); 158 leveldb_t* db; local 206 db = leveldb_open(options, dbname, &err); 211 db = leveldb_open(options, dbname, &err); 218 db = leveldb_open(options, dbname, &err); 220 CheckGet(db, roptions, "foo", NULL); 223 leveldb_put(db, woptions, "foo", 3, "hello", 5, &err); 225 CheckGet(db, roptions, "foo", "hello"); 228 leveldb_compact_range(db, NULL, 0, NULL, 0) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_dbenv.py | 4 from test_all import db, test_support, get_new_environment_path, \ 12 self.env = db.DBEnv() 21 flags = db.DB_CREATE | db.DB_INIT_MPOOL 26 flags = db.DB_CREATE | db.DB_INIT_MPOOL | \ 27 db.DB_INIT_LOCK | db.DB_THREAD 31 if db.version() >= (4, 7) : 42 self.assertRaises(db.DBInvalidArgError 5 get_new_database_path namespace [all...] |
test_basics.py | 3 various DB flags, etc. 14 from test_all import db, test_support, verbose, get_new_environment_path, \ 24 info = db.version() 27 print 'bsddb.db.version(): %s' % (info, ) 28 print db.DB_VERSION_STRING 30 self.assertEqual(info, (db.DB_VERSION_MAJOR, db.DB_VERSION_MINOR, 31 db.DB_VERSION_PATCH)) 36 dbtype = db.DB_UNKNOWN # must be set in derived class 52 self.env = db.DBEnv( 15 get_new_database_path namespace [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_dbenv.py | 4 from test_all import db, test_support, get_new_environment_path, \ 12 self.env = db.DBEnv() 21 flags = db.DB_CREATE | db.DB_INIT_MPOOL 26 flags = db.DB_CREATE | db.DB_INIT_MPOOL | \ 27 db.DB_INIT_LOCK | db.DB_THREAD 31 if db.version() >= (4, 7) : 42 self.assertRaises(db.DBInvalidArgError 5 get_new_database_path namespace [all...] |
test_basics.py | 3 various DB flags, etc. 14 from test_all import db, test_support, verbose, get_new_environment_path, \ 24 info = db.version() 27 print 'bsddb.db.version(): %s' % (info, ) 28 print db.DB_VERSION_STRING 30 self.assertEqual(info, (db.DB_VERSION_MAJOR, db.DB_VERSION_MINOR, 31 db.DB_VERSION_PATCH)) 36 dbtype = db.DB_UNKNOWN # must be set in derived class 52 self.env = db.DBEnv( 15 get_new_database_path namespace [all...] |
/external/chromium_org/third_party/sqlite/src/src/ |
vdbeaux.c | 35 Vdbe *sqlite3VdbeCreate(sqlite3 *db){ 37 p = sqlite3DbMallocZero(db, sizeof(Vdbe) ); 39 p->db = db; 40 if( db->pVdbe ){ 41 db->pVdbe->pPrev = p; 43 p->pNext = db->pVdbe; 45 db->pVdbe = p; 60 p->zSql = sqlite3DbStrNDup(p->db, z, n); 114 pNew = sqlite3DbRealloc(p->db, p->aOp, nNew*sizeof(Op)) 668 sqlite3 *db = p->db; local 705 sqlite3 *db; local 992 sqlite3 *db; local 1014 sqlite3 *db; local 1057 sqlite3 *db = p->db; local 1131 sqlite3 *db = p->db; \/* The database connection *\/ local 1420 sqlite3 *db = p->db; local 1620 sqlite3 *db = p->db; local 1644 sqlite3 *db = p->db; local 1982 sqlite3 *const db = p->db; local 2038 sqlite3 *db = p->db; local 2064 sqlite3 *db = p->db; local 2286 sqlite3 *db; local 2418 sqlite3 *db; local [all...] |
/external/chromium/chrome/browser/webdata/ |
token_service_table.h | 13 TokenServiceTable(sql::Connection* db, sql::MetaTable* meta_table) 14 : WebDatabaseTable(db, meta_table) {}
|
/external/chromium_org/content/browser/dom_storage/ |
session_storage_database_adapter.cc | 12 SessionStorageDatabase* db, 15 : db_(db),
|
/external/chromium_org/third_party/leveldatabase/src/issues/ |
issue178_test.cc | 10 #include "leveldb/db.h" 38 leveldb::DB* db; local 42 ASSERT_OK(leveldb::DB::Open(db_options, dbpath, &db)); 49 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch)); 56 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch)); 63 ASSERT_OK(db->Write(leveldb::WriteOptions(), &batch)); 72 db->CompactRange(&least, &greatest); 75 leveldb::Iterator* iter = db->NewIterator(leveldb::ReadOptions()) [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests/ |
integer-warn.asm | 2 db 0x51a label
|
integer.asm | 3 db 0x51 label
|
/frameworks/base/core/java/com/android/internal/content/ |
SelectionBuilder.java | 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { 100 return query(db, table, columns, null, null, orderBy, null); 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having, 115 public int update(SQLiteDatabase db, String table, ContentValues values) { 116 return db.update(table, values, getSelection(), getSelectionArgs()); 122 public int delete(SQLiteDatabase db, String table) { 123 return db.delete(table, getSelection(), getSelectionArgs());
|
/libcore/luni/src/test/java/libcore/sqlite/ |
OldBlobTest.java | 31 private static Database db = null; field in class:OldBlobTest 39 db = new Database(); 40 db.open(dbFile.getPath(), 0); 42 db.exec("create table B(id integer primary key, val blob)",null); 43 db.exec("insert into B values(1, zeroblob(128))", null); 44 db.exec("insert into B values(2, zeroblob(128))", null); 45 db.exec("insert into B values(3, zeroblob(128))", null); 78 * db.open_blob is not supported. 86 Blob blob = db.open_blob(dbFile.getPath(), "B", "val", 1, true);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
OpenWnnSQLiteOpenHelper.java | 38 public void onCreate(SQLiteDatabase db) { 42 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
__init__.py | 36 """Support for Berkeley DB 4.3 through 5.3 with a simple interface. 38 For the full featured object oriented interface use the bsddb.db module 39 instead. It mirrors the Oracle Berkeley DB C API. 75 # bsddb3 calls it db, but provide _db for backwards compatibility 76 db = _db = _bsddb 77 __version__ = db.__version__ 79 error = db.DBError # So bsddb.error will mean something... 96 cur = _DeadlockWrap(self.db.cursor) 149 if not self.db: 194 A simple wrapper around DB that makes it look like the bsddbobject i [all...] |
dbtables.py | 16 # the Python Berkeley DB 3 interface. 57 from bsddb3 import db namespace 60 from bsddb import db namespace 114 _table_names_key = '__TABLE_NAMES__' # list of the tables in this db 163 Open database name in the dbhome Berkeley DB directory. 166 self.db = None 167 myflags = db.DB_THREAD 169 myflags |= db.DB_CREATE 170 flagsforenv = (db.DB_INIT_MPOOL | db.DB_INIT_LOCK | db.DB_INIT_LOG [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/ |
__init__.py | 36 """Support for Berkeley DB 4.3 through 5.3 with a simple interface. 38 For the full featured object oriented interface use the bsddb.db module 39 instead. It mirrors the Oracle Berkeley DB C API. 75 # bsddb3 calls it db, but provide _db for backwards compatibility 76 db = _db = _bsddb 77 __version__ = db.__version__ 79 error = db.DBError # So bsddb.error will mean something... 96 cur = _DeadlockWrap(self.db.cursor) 149 if not self.db: 194 A simple wrapper around DB that makes it look like the bsddbobject i [all...] |
/external/chromium_org/chrome/browser/webdata/ |
web_data_service_win.cc | 32 const IE7PasswordInfo& info, WebDatabase* db) { 33 if (LoginsTable::FromWebDatabase(db)->AddIE7Login(info)) 39 const IE7PasswordInfo& info, WebDatabase* db) { 40 if (LoginsTable::FromWebDatabase(db)->RemoveIE7Login(info)) 46 const IE7PasswordInfo& info, WebDatabase* db) { 48 LoginsTable::FromWebDatabase(db)->GetIE7Login(info, &result);
|
/external/chromium_org/third_party/openssl/openssl/crypto/txt_db/ |
txt_db.h | 97 long TXT_DB_write(BIO *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db); 102 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(OPENSSL_STRING *), 104 void TXT_DB_free(TXT_DB *db); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
|
/external/chromium_org/third_party/openssl/openssl/include/openssl/ |
txt_db.h | 97 long TXT_DB_write(BIO *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db); 102 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(OPENSSL_STRING *), 104 void TXT_DB_free(TXT_DB *db); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
|
/external/openssl/crypto/txt_db/ |
txt_db.h | 97 long TXT_DB_write(BIO *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db); 102 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(OPENSSL_STRING *), 104 void TXT_DB_free(TXT_DB *db); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
|
/external/openssl/include/openssl/ |
txt_db.h | 97 long TXT_DB_write(BIO *out, TXT_DB *db); 100 long TXT_DB_write(char *out, TXT_DB *db); 102 int TXT_DB_create_index(TXT_DB *db,int field,int (*qual)(OPENSSL_STRING *), 104 void TXT_DB_free(TXT_DB *db); 105 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value); 106 int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
DataRowHandlerForIdentity.java | 36 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId, 38 final long dataId = super.insert(db, txContext, rawContactId, values); 49 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values, 52 super.update(db, txContext, values, c, callerIsSyncAdapter); 64 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) { 65 final int count = super.delete(db, txContext, c);
|