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

1 2 34 5 6 7 8 91011>>

  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/
test_cursor_pget_bug.py 4 from test_all import db, test_support, get_new_environment_path, \
11 db_name = 'test-cursor_pget.db'
15 self.env = db.DBEnv()
16 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL)
17 self.primary_db = db.DB(self.env)
18 self.primary_db.open(self.db_name, 'primary', db.DB_BTREE, db.DB_CREATE)
19 self.secondary_db = db.DB(self.env
5 get_new_database_path namespace
    [all...]
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...]
test_get_none.py 8 from test_all import db, verbose, get_new_database_path namespace
25 d = db.DB()
26 d.open(self.filename, db.DB_BTREE, db.DB_CREATE)
53 d = db.DB()
54 d.open(self.filename, db.DB_BTREE, db.DB_CREATE)
60 self.assertRaises(db.DBNotFoundError, d.get, 'bad key'
    [all...]
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_queue.py 2 TestCases for exercising a Queue DB.
9 from test_all import db, verbose, get_new_database_path namespace
31 d = db.DB()
33 d.open(self.filename, db.DB_QUEUE, db.DB_CREATE)
57 d = db.DB()
88 "Berkeley DB 3.1.17 with the patch in patches/qam_stat.diff")
95 # Basic Queue tests using the new DB.consume method in DB 3.2
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_bsddb3.py 58 from bsddb import db namespace
65 print >>sys.stderr, db.DB_VERSION_STRING
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
RecentsProvider.java 122 private static final String DB_NAME = "recents.db";
134 public void onCreate(SQLiteDatabase db) {
136 db.execSQL("CREATE TABLE " + TABLE_RECENT + " (" +
142 db.execSQL("CREATE TABLE " + TABLE_STATE + " (" +
152 db.execSQL("CREATE TABLE " + TABLE_RESUME + " (" +
161 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
163 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RECENT);
164 db.execSQL("DROP TABLE IF EXISTS " + TABLE_STATE);
165 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RESUME);
166 onCreate(db);
179 final SQLiteDatabase db = mHelper.getReadableDatabase(); local
208 final SQLiteDatabase db = mHelper.getWritableDatabase(); local
312 final SQLiteDatabase db = mHelper.getWritableDatabase(); local
    [all...]
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactMetadataProvider.java 155 final SQLiteDatabase db = mDbHelper.getReadableDatabase(); local
156 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null,
183 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
184 db.beginTransaction();
191 final long metadataSyncId = updateOrInsertDataToMetadataSync(db, uri, values);
192 db.setTransactionSuccessful();
196 final Long syncStateId = db.replace(
198 db.setTransactionSuccessful();
205 db.endTransaction();
214 final SQLiteDatabase db = mDbHelper.getWritableDatabase() local
262 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
298 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
317 final SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
    [all...]
ContactDirectoryManager.java 121 SQLiteDatabase db = getDbHelper().getReadableDatabase(); local
123 Cursor cursor = db.query(Tables.DIRECTORIES,
236 SQLiteDatabase db = getDbHelper().getWritableDatabase(); local
237 insertDefaultDirectory(db);
238 insertLocalInvisibleDirectory(db);
292 int deletedRows = db.delete(Tables.DIRECTORIES, deleteWhereBuilder.toString(),
299 private void insertDefaultDirectory(SQLiteDatabase db) {
310 db.replace(Tables.DIRECTORIES, null, values);
313 private void insertLocalInvisibleDirectory(SQLiteDatabase db) {
324 db.replace(Tables.DIRECTORIES, null, values)
378 SQLiteDatabase db = getDbHelper().getWritableDatabase(); local
    [all...]
DataRowHandlerForPhoneNumber.java 42 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
46 final long dataId = super.insert(db, txContext, rawContactId, values);
50 updatePhoneLookup(db, rawContactId, dataId, number, normalizedNumber);
51 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
52 fixRawContactDisplayName(db, txContext, rawContactId);
60 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
64 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
71 updatePhoneLookup(db, rawContactId, dataId,
74 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
75 fixRawContactDisplayName(db, txContext, rawContactId)
    [all...]
  /external/javasqlite/src/main/java/SQLite/
Shell.java 19 Database db; field in class:Shell
52 s.db = db;
159 if (db.is3()) {
324 db.close();
383 t = db.get_table("SELECT name FROM sqlite_master " +
393 t = db.get_table("SELECT name FROM sqlite_master " +
415 db.exec("SELECT sql FROM sqlite_master " +
427 db.exec("SELECT sql FROM sqlite_master " +
441 db.set_encoding(args.length > 0 ? args[0] : null)
    [all...]
  /cts/tests/JobScheduler/src/android/jobscheduler/
DummyJobContentProvider.java 32 private static final String DATABASE_NAME = "dummy.db";
69 public void onCreate(SQLiteDatabase db) {
71 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY,"
76 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
91 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
92 db.insert(tbName, VALUE, values);
110 SQLiteDatabase db = mDbHelper.getReadableDatabase(); local
111 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder);
136 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
137 int count = db.update(tbName, values, selection, selectionArgs)
153 SQLiteDatabase db = mDbHelper.getWritableDatabase(); local
    [all...]
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseErrorHandlerTest.java 35 private static final String DB_NAME = "database_test.db";
79 * this test used to produce a corrupted db. but with new sqlite it instead reports
81 * need to figure out how to cause corruption in db
94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, local
96 assertTrue(db.isDatabaseIntegrityOk());
  /frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
SoundTriggerDbHelper.java 41 private static final String NAME = "st_sound_model.db";
66 public void onCreate(SQLiteDatabase db) {
68 db.execSQL(CREATE_TABLE_ST_SOUND_MODEL);
72 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
74 db.execSQL("DROP TABLE IF EXISTS " + GenericSoundModelContract.TABLE);
75 onCreate(db);
84 SQLiteDatabase db = getWritableDatabase(); local
91 return db.insertWithOnConflict(GenericSoundModelContract.TABLE, null, values,
94 db.close();
107 SQLiteDatabase db = getReadableDatabase() local
135 SQLiteDatabase db = getWritableDatabase(); 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...]
  /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 static void insert(SQLiteDatabase db, String event) {
92 db.insert(LOG_TABLE_NAME, null, c);
  /development/samples/SampleSyncAdapter/samplesyncadapter_server/model/
datastore.py 19 from google.appengine.ext import db namespace
22 class Contact(db.Model):
25 handle = db.StringProperty(required=True)
26 firstname = db.StringProperty()
27 lastname = db.StringProperty()
28 phone_home = db.PhoneNumberProperty()
29 phone_office = db.PhoneNumberProperty()
30 phone_mobile = db.PhoneNumberProperty()
31 email = db.EmailProperty()
32 status = db.TextProperty(
    [all...]
  /external/autotest/tko/
machine_aggr.cgi 10 from autotest_lib.tko import db, display, frontend, plotgraph namespace
15 db = db.db() variable
49 machine = frontend.machine.select(db, {'hostname' : machine_idx})[0]
69 for test in frontend.test.select(db, where):
86 kernel_base = frontend.kernel.select(db, {'printable' : kernels_sort[0]})[0]
87 for test in frontend.test.select(db, { 'subdir' : benchmark, 'machine_idx' : machine.idx, 'kernel_idx' : kernel_base.idx}):
94 for test in frontend.test.select(db, where, wherein):
save_query.cgi 4 import db, unique_cookie namespace
30 db_obj = db.db()
41 db_obj = db.db()
  /external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/demos/tunes_db/server/
model.py 18 """Internal Datastore model for the Tunes DB.
20 The Tunes DB is a simple polymophic structure composed of polymorphic
28 from google.appengine.ext import db namespace
29 from google.appengine.ext.db import polymodel
66 return db.ByteString(name.lower().encode('utf-8'))
70 """Base class for all Info records in Tunes DB.
78 name = db.StringProperty()
80 @db.ComputedProperty
99 query.filter('encoded_name >=', db.ByteString(name_prefix))
102 query.filter('encoded_name <=', db.ByteString(name_prefix + '\xff')
    [all...]
  /external/clang/tools/libclang/
CXCompilationDatabase.cpp 19 std::unique_ptr<CompilationDatabase> db = local
22 if (!db) {
30 return db.release();
51 if (CompilationDatabase *db = static_cast<CompilationDatabase *>(CDb)) {
52 std::vector<CompileCommand> CCmd(db->getCompileCommands(CompleteFileName));
62 if (CompilationDatabase *db = static_cast<CompilationDatabase *>(CDb)) {
63 std::vector<CompileCommand> CCmd(db->getAllCompileCommands());
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/
parsecvs.php 29 $db = "modeling"; /* database name. change this to match your project or can leave as is */ variable
62 mysql_select_db($db, $connect) or die(mysql_error());
126 $result = wmysql_query("SELECT TABLE_NAME FROM TABLES WHERE `TABLE_SCHEMA` = '$db' AND `TABLE_TYPE` = 'BASE TABLE'");
132 mysql_select_db($db) or die(mysql_error());
  /external/iproute2/lib/
names.c 2 * names.c db names
55 struct db_names *db; local
57 db = malloc(sizeof(*db));
58 if (!db)
61 memset(db, 0, sizeof(*db));
63 db->size = MAX_ENTRIES;
64 db->hash = malloc(sizeof(struct db_entry *) * db->size)
    [all...]
  /external/libchrome/crypto/third_party/nss/
rsawrapr.c 80 unsigned char *db; local
97 db = (unsigned char *)PORT_Alloc(dbMaskLen);
98 if (db == NULL) {
103 MGF1(maskHashAlg, db, dbMaskLen, &em[dbMaskLen], hash->length);
107 db[i] ^= em[i];
111 db[0] &= 0x7f;
115 if (db[i] != 0) {
116 PORT_Free(db);
121 if (db[dbMaskLen - sLen - 1] != 0x01) {
122 PORT_Free(db);
    [all...]
  /external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
BufferUtilsTest.java 49 DoubleBuffer db = BufferUtils.newDoubleBuffer(8); local
119 db.position(4);
120 BufferUtils.copy(new double[] {1, 2, 3, 4}, 0, db, 4);
121 checkFloat(db.get(), 1);
122 checkFloat(db.get(), 2);
123 checkFloat(db.get(), 3);
124 checkFloat(db.get(), 4);
125 db.position(0);
126 BufferUtils.copy(new double[] {5, 6, 7, 8}, 1, db, 3);
127 checkFloat(db.get(), 6);
354 DoubleBuffer db = BufferUtils.newDoubleBuffer(1024 * 1024 \/ 8); local
    [all...]

Completed in 794 milliseconds

1 2 34 5 6 7 8 91011>>