/prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_join.py | 1 """TestCases for using the DB.join and DBCursor.join_item methods. 8 from test_all import db, dbshelve, test_support, verbose, \ 36 self.filename = self.__class__.__name__ + '.db' 38 self.env = db.DBEnv() 39 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL | db.DB_INIT_LOCK ) 52 priDB = db.DB(self.env) 53 priDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE 9 get_new_environment_path, get_new_database_path namespace [all...] |
test_sequence.py | 4 from test_all import db, test_support, get_new_environment_path, get_new_database_path namespace 13 self.dbenv = db.DBEnv() 14 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666) 15 self.d = db.DB(self.dbenv) 16 self.d.open(self.filename, db.DB_BTREE, db.DB_CREATE, 0666) 32 self.seq = db.DBSequence(self.d, flags=0) 36 self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE) [all...] |
test_distributed_transactions.py | 7 from test_all import db, test_support, get_new_environment_path, \ 19 self.dbenv = db.DBEnv() 25 self.dbenv.set_flags(db.DB_TXN_NOSYNC,True) 26 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_THREAD | 27 db.DB_RECOVER | 28 db.DB_INIT_TXN | db.DB_INIT_LOG | db.DB_INIT_MPOOL | 29 db.DB_INIT_LOCK, 0666 8 get_new_database_path namespace [all...] |
/external/chromium_org/third_party/sqlite/src/src/ |
alter.c | 51 sqlite3 *db = sqlite3_context_db_handle(context); local 80 zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", ((u8*)tname.z) - zSql, zSql, 107 sqlite3 *db = sqlite3_context_db_handle(context); local 128 zParent = sqlite3DbStrNDup(db, (const char *)z, n); 132 char *zOut = sqlite3MPrintf(db, "%s%.*s\"%w\"", 135 sqlite3DbFree(db, zOutput); 139 sqlite3DbFree(db, zParent); 143 zResult = sqlite3MPrintf(db, "%s%s", (zOutput?zOutput:""), zInput), 145 sqlite3DbFree(db, zOutput); 171 sqlite3 *db = sqlite3_context_db_handle(context) local 309 sqlite3 *db = pParse->db; local 402 sqlite3 *db = pParse->db; \/* Database connection *\/ local 632 sqlite3 *db; \/* The database connection; *\/ local 754 sqlite3 *db = pParse->db; local [all...] |
vdbeapi.c | 40 if( p->db==0 ){ 73 sqlite3 *db = v->db; local 79 mutex = v->db->mutex; 83 rc = sqlite3ApiExit(db, rc); 103 sqlite3_mutex_enter(v->db->mutex); 106 assert( (rc & (v->db->errMask))==rc ); 107 rc = sqlite3ApiExit(v->db, rc); 108 sqlite3_mutex_leave(v->db->mutex); 121 sqlite3_mutex *mutex = ((Vdbe*)pStmt)->db->mutex 342 sqlite3 *db; local 472 sqlite3 *db; \/* The database connection *\/ local 852 sqlite3 *db = p->db; local [all...] |
loadext.c | 387 ** by calling sqlite3DbFree(db, ). 390 sqlite3 *db, /* Load the extension into this database connection */ 395 sqlite3_vfs *pVfs = db->pVfs; 410 if( (db->flags & SQLITE_LoadExtension)==0 ){ 446 }else if( xInit(db, &zErrmsg, &sqlite3Apis) ){ 455 /* Append the new shared library handle to the db->aExtension array. */ 456 aHandle = sqlite3DbMallocZero(db, sizeof(handle)*(db->nExtension+1)); 460 if( db->nExtension>0 ){ 461 memcpy(aHandle, db->aExtension, sizeof(handle)*db->nExtension) [all...] |
build.c | 84 sqlite3DbReallocOrFree(pToplevel->db, pToplevel->aTableLock, nBytes); 93 pToplevel->db->mallocFailed = 1; 130 sqlite3 *db; local 133 db = pParse->db; 134 if( db->mallocFailed ) return; 157 for(iDb=0, mask=1; iDb<db->nDb; mask<<=1, iDb++){ 161 if( db->init.busy==0 ){ 162 assert( sqlite3SchemaMutexHeld(db, iDb, 0) ); 165 db->aDb[iDb].pSchema->iGeneration) 238 sqlite3 *db = pParse->db; local 670 sqlite3 *db = pParse->db; local 737 sqlite3 *db = pParse->db; local 954 sqlite3 *db = pParse->db; local 1100 sqlite3 *db = pParse->db; local 1208 sqlite3 *db = pParse->db; local 1228 sqlite3 *db; local 1276 sqlite3 *db = pParse->db; local 1311 sqlite3 *db = pParse->db; local 1467 sqlite3 *db = pParse->db; local 1684 sqlite3 *db = pParse->db; local 1751 sqlite3 *db = pParse->db; \/* Database connection for malloc errors *\/ local 1995 sqlite3 *db = pParse->db; local 2177 sqlite3 *db = pParse->db; local 2322 sqlite3 *db = pParse->db; \/* The database connection *\/ local 2417 sqlite3 *db = pParse->db; local 2909 sqlite3 *db = pParse->db; local 3274 sqlite3 *db = pParse->db; local 3351 sqlite3 *db; local 3377 sqlite3 *db; local 3397 sqlite3 *db; local 3438 sqlite3 *db = pParse->db; local 3497 sqlite3 *db = pToplevel->db; local 3520 sqlite3 *db = pParse->db; local 3642 sqlite3 *db = pParse->db; \/* The database connection *\/ local 3678 sqlite3 *db = pParse->db; \/* The database connection *\/ local 3739 sqlite3 *db = pParse->db; local [all...] |
test_intarray.h | 36 ** sqlite3_intarray_create(db, "ex1", &p1); 37 ** sqlite3_intarray_create(db, "ex2", &p2); 38 ** sqlite3_intarray_create(db, "ex3", &p3); 97 sqlite3 *db,
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests/ |
x86id.asm | 44 db 0 45 db 0 46 db 0 47 db 0 48 db 0 49 db 0 50 db 0 51 db 0 61 db 0 62 db [all...] |
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests/ |
elf-x86id.asm | 44 db 0 45 db 0 46 db 0 47 db 0 48 db 0 49 db 0 50 db 0 51 db 0 61 db 0 62 db [all...] |
/external/e2fsprogs/e2fsck/ |
emptydir.c | 37 struct ext2_db_entry *db); 89 struct ext2_db_entry *db) 91 if (!edi || !db) 94 if (db->ino == 11) 98 db->blk, db->blockcnt, db->ino); 100 ext2fs_mark_block_bitmap(edi->empty_dir_blocks, db->blk); 101 if (ext2fs_test_inode_bitmap(edi->dir_map, db->ino)) 103 ext2fs_mark_inode_bitmap(edi->dir_map, db->ino) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
ClockDatabaseHelper.java | 65 static final String DATABASE_NAME = "alarms.db"; 71 private static void createAlarmsTable(SQLiteDatabase db) { 72 db.execSQL("CREATE TABLE " + ALARMS_TABLE_NAME + " (" + 85 private static void createInstanceTable(SQLiteDatabase db) { 86 db.execSQL("CREATE TABLE " + INSTANCES_TABLE_NAME + " (" + 104 private static void createCitiesTable(SQLiteDatabase db) { 105 db.execSQL("CREATE TABLE " + CITIES_TABLE_NAME + " (" + 121 public void onCreate(SQLiteDatabase db) { 122 createAlarmsTable(db); 123 createInstanceTable(db); 207 SQLiteDatabase db = getWritableDatabase(); local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/ |
DeletedContactsTableUtil.java | 34 * @param db The sqlite database instance. 36 public static void create(SQLiteDatabase db) { 38 db.execSQL("CREATE TABLE " + ContactsDatabaseHelper.Tables.DELETED_CONTACTS + " (" + 44 db.execSQL(MoreDatabaseUtils.buildCreateIndexSql( 52 * @param db The SQLiteDatabase instance. 56 public static long insertDeletedContact(SQLiteDatabase db, long contactId) { 62 return db.insertWithOnConflict(ContactsDatabaseHelper.Tables.DELETED_CONTACTS, null, values, 69 * @param db The database instance to use. 71 public static int deleteOldLogs(SQLiteDatabase db) { 78 return db.delete(ContactsDatabaseHelper.Tables.DELETED_CONTACTS [all...] |
/external/chromium_org/webkit/browser/appcache/ |
appcache_database_unittest.cc | 32 AppCacheDatabase db(kEmptyPath); 34 EXPECT_FALSE(db.LazyOpen(false)); 35 EXPECT_TRUE(db.LazyOpen(true)); 39 EXPECT_TRUE(db.FindLastStorageIds(&group_id, &cache_id, &response_id, 47 EXPECT_TRUE(db.FindOriginsWithGroups(&origins)); 55 const base::FilePath kDbFile = temp_dir.path().AppendASCII("appcache.db"); 61 AppCacheDatabase db(kDbFile); 62 EXPECT_FALSE(db.LazyOpen(false)); 63 EXPECT_TRUE(db.LazyOpen(true)); 69 EXPECT_TRUE(db.DeleteExistingAndCreateNewDatabase()) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
PrivateLog.java | 72 public void onCreate(SQLiteDatabase db) { 74 db.execSQL(LOG_TABLE_CREATE); 75 insert(db, "Created table"); 79 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 82 db.execSQL("DROP TABLE IF EXISTS " + LOG_TABLE_NAME); 83 onCreate(db); 84 insert(db, "Upgrade finished"); 87 private static void insert(SQLiteDatabase db, String event) { 92 db.insert(LOG_TABLE_NAME, null, c);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
test_sequence.py | 4 from test_all import db, test_support, get_new_environment_path, get_new_database_path namespace 13 self.dbenv = db.DBEnv() 14 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL, 0666) 15 self.d = db.DB(self.dbenv) 16 self.d.open(self.filename, db.DB_BTREE, db.DB_CREATE, 0666) 32 self.seq = db.DBSequence(self.d, flags=0) 36 self.assertEqual(None, self.seq.open(key='id', txn=None, flags=db.DB_CREATE) [all...] |
test_distributed_transactions.py | 7 from test_all import db, test_support, get_new_environment_path, \ 19 self.dbenv = db.DBEnv() 25 self.dbenv.set_flags(db.DB_TXN_NOSYNC,True) 26 self.dbenv.open(self.homeDir, db.DB_CREATE | db.DB_THREAD | 27 db.DB_RECOVER | 28 db.DB_INIT_TXN | db.DB_INIT_LOG | db.DB_INIT_MPOOL | 29 db.DB_INIT_LOCK, 0666 8 get_new_database_path namespace [all...] |
/frameworks/base/services/java/com/android/server/ |
BootReceiver.java | 97 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); local 111 if (recovery != null && db != null) { 112 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); 118 if (db != null) db.addText("SYSTEM_BOOT", headers); 121 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg", 123 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", 125 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", 127 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", 129 addAuditErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_AUDIT") [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerProvider.java | 40 private static final String DB_NAME = "tracking.db"; 56 public void onCreate(SQLiteDatabase db) { 62 db.execSQL(queryBuilder.toString()); 63 db.setVersion(DB_VERSION); 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 68 // TODO: reimplement this when dB version changes 72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); 73 onCreate(db); 87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 88 int result = db.delete(TABLE_NAME, selection, selectionArgs) 100 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 113 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsDatabaseHelper.java | 103 * Contacts DB version ranges: 120 private static final String DATABASE_NAME = "contacts2.db"; 3183 SQLiteDatabase db = getWritableDatabase(); local 4270 SQLiteDatabase db = getWritableDatabase(); local 4587 SQLiteDatabase db = getWritableDatabase(); local [all...] |
/external/chromium_org/third_party/sqlite/src/test/ |
tester.tcl | 20 # Commands to manipulate the db and the file-system at a high level: 23 # drop_all_table ?DB? 33 # dbcksum DB DBNAME 34 # allcksum ?DB? 35 # cksum ?DB? 39 # stepsql DB SQL 42 # explain SQL ?DB? 43 # catchsql SQL ?DB? 44 # execsql SQL ?DB? 50 # integrity_check TESTNAME ?DB [all...] |
/external/chromium/chrome/browser/webdata/ |
web_apps_table_unittest.cc | 27 ".db"; 44 WebDatabase db; local 46 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); 50 EXPECT_FALSE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); 53 EXPECT_TRUE(db.GetWebAppsTable()->SetWebAppHasAllImages(url, true)); 54 EXPECT_TRUE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); 57 EXPECT_TRUE(db.GetWebAppsTable()->RemoveWebApp(url)); 58 EXPECT_FALSE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); 62 WebDatabase db; local 64 ASSERT_EQ(sql::INIT_OK, db.Init(file_)) [all...] |
/external/chromium_org/chrome/browser/history/ |
history_db_task.h | 27 virtual bool RunOnDBThread(HistoryBackend* backend, HistoryDatabase* db) = 0;
|
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests/ |
ifcritical-err.asm | 3 teststring db "Hello, world" 6 db '5'
|
/external/chromium_org/webkit/browser/fileapi/ |
sandbox_directory_database_unittest.cc | 17 #include "third_party/leveldatabase/src/include/leveldb/db.h" 39 SandboxDirectoryDatabase* db() { function in class:fileapi::SandboxDirectoryDatabaseTest 109 return db()->RepairDatabase( 121 ASSERT_TRUE(db()->db_->Put( 131 ASSERT_TRUE(db()->GetFileInfo(file_id, &file_info)); 132 ASSERT_TRUE(db()->db_->Delete( 149 EXPECT_FALSE(db()->GetFileInfo(file_id, &info)); 155 EXPECT_TRUE(db()->GetFileInfo(file_id, &info)); 171 EXPECT_TRUE(db()->AddFileInfo(info, &file_id)); 196 EXPECT_TRUE(db()->AddFileInfo(info, &file_id0)) [all...] |