HomeSort by relevance Sort by last modified time
    Searched refs:db (Results 251 - 275 of 1274) sorted by null

<<11121314151617181920>>

  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/
test_compare.py 2 TestCases for python DB duplicate and Btree key comparison function.
11 from test_all import db, dbshelve, test_support, \
69 db = None variable in class:AbstractBtreeKeyCompareTestCase
77 self.filename = self.__class__.__name__ + '.db'
79 env = db.DBEnv()
81 db.DB_CREATE | db.DB_INIT_MPOOL
82 | db.DB_INIT_LOCK | db.DB_THREAD)
95 self.db.put(item, str(i)
12 get_new_environment_path, get_new_database_path namespace
255 db = None variable in class:AbstractDuplicateCompareTestCase
    [all...]
test_thread.py 1 """TestCases for multi-threaded access to a DB.
19 from test_all import db, dbutils, test_support, verbose, have_threads, \
33 dbtype = db.DB_UNKNOWN # must be set in derived class
43 self.env = db.DBEnv()
45 self.env.open(self.homeDir, self.envflags | db.DB_CREATE)
47 self.filename = self.__class__.__name__ + '.db'
48 self.d = db.DB(self.env)
51 self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE)
69 dbopenflags = db.DB_THREA
20 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/bsddb/test/
test_compare.py 2 TestCases for python DB duplicate and Btree key comparison function.
11 from test_all import db, dbshelve, test_support, \
69 db = None variable in class:AbstractBtreeKeyCompareTestCase
77 self.filename = self.__class__.__name__ + '.db'
79 env = db.DBEnv()
81 db.DB_CREATE | db.DB_INIT_MPOOL
82 | db.DB_INIT_LOCK | db.DB_THREAD)
95 self.db.put(item, str(i)
12 get_new_environment_path, get_new_database_path namespace
255 db = None variable in class:AbstractDuplicateCompareTestCase
    [all...]
test_thread.py 1 """TestCases for multi-threaded access to a DB.
19 from test_all import db, dbutils, test_support, verbose, have_threads, \
33 dbtype = db.DB_UNKNOWN # must be set in derived class
43 self.env = db.DBEnv()
45 self.env.open(self.homeDir, self.envflags | db.DB_CREATE)
47 self.filename = self.__class__.__name__ + '.db'
48 self.d = db.DB(self.env)
51 self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE)
69 dbopenflags = db.DB_THREA
20 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...]
  /external/toybox/toys/other/
lspci.c 37 FILE *db;
77 if (CFG_LSPCI_TEXT && TT.db) {
81 fseek(TT.db, 0, SEEK_SET);
84 if (!fgets(s, sizeof(toybuf)-(p-toybuf)-1, TT.db)) break;
125 if (!(TT.db = fopen(TT.ids, "r")))
126 perror_msg("could not open PCI ID db");
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
UpdateConversationArchiveStatusAction.java 57 final DatabaseWrapper db = DataModel.get().getDatabase(); local
58 db.beginTransaction();
61 db, conversationId, isArchived);
62 db.setTransactionSuccessful();
64 db.endTransaction();
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForCommonDataKind.java 44 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
47 return super.insert(db, txContext, rawContactId, values);
51 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
54 final ContentValues augmented = getAugmentedValues(db, dataId, values);
59 return super.update(db, txContext, values, c, callerIsSyncAdapter,
DataRowHandlerForPhoto.java 58 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
70 long dataId = super.insert(db, txContext, rawContactId, values);
72 mContactAggregator.updatePhotoId(db, rawContactId);
78 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
92 if (!super.update(db, txContext, values, c, callerIsSyncAdapter, callerIsMetadataSyncAdapter)) {
96 mContactAggregator.updatePhotoId(db, rawContactId);
131 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
133 int count = super.delete(db, txContext, c);
134 mContactAggregator.updatePhotoId(db, rawContactId);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/
ParticipantRefresh.java 259 final DatabaseWrapper db = DataModel.get().getDatabase(); local
263 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
271 if (refreshParticipant(db, participantData)) {
275 updateParticipant(db, participantData);
314 final DatabaseWrapper db = DataModel.get().getDatabase(); local
319 cursor = db.query(DatabaseHelper.PARTICIPANTS_TABLE,
360 final DatabaseWrapper db = DataModel.get().getDatabase(); local
366 db.beginTransaction();
375 db.execSQL(DatabaseHelper.getCreateSelfParticipantSql(subId));
395 db.execSQL(getUpdateSelfParticipantSubscriptionInfoSql(record.getSimSlotIndex()
629 final DatabaseWrapper db = DataModel.get().getDatabase(); local
660 final DatabaseWrapper db = DataModel.get().getDatabase(); local
698 final DatabaseWrapper db = DataModel.get().getDatabase(); local
728 final DatabaseWrapper db = DataModel.get().getDatabase(); local
    [all...]
DatabaseHelper.java 627 public void onDowngrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) {
628 mUpgradeHelper.onDowngrade(db, oldVersion, newVersion);
634 public static void rebuildTables(final SQLiteDatabase db) {
636 dropAllTables(db);
637 dropAllViews(db);
638 dropAllIndexes(db);
639 dropAllTriggers(db);
642 createDatabase(db);
648 static void rebuildView(final SQLiteDatabase db, final String viewName,
650 dropView(db, viewName, true /* throwOnFailure */)
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/bsddb/test/
test_thread.py 1 """TestCases for multi-threaded access to a DB.
19 from test_all import db, dbutils, test_support, verbose, have_threads, \
33 dbtype = db.DB_UNKNOWN # must be set in derived class
43 self.env = db.DBEnv()
45 self.env.open(self.homeDir, self.envflags | db.DB_CREATE)
47 self.filename = self.__class__.__name__ + '.db'
48 self.d = db.DB(self.env)
51 self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE)
69 dbopenflags = db.DB_THREA
20 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/gdb/linux-x86/lib/python2.7/bsddb/test/
test_thread.py 1 """TestCases for multi-threaded access to a DB.
19 from test_all import db, dbutils, test_support, verbose, have_threads, \
33 dbtype = db.DB_UNKNOWN # must be set in derived class
43 self.env = db.DBEnv()
45 self.env.open(self.homeDir, self.envflags | db.DB_CREATE)
47 self.filename = self.__class__.__name__ + '.db'
48 self.d = db.DB(self.env)
51 self.d.open(self.filename, self.dbtype, self.dbopenflags|db.DB_CREATE)
69 dbopenflags = db.DB_THREA
20 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...]
  /external/javasqlite/src/main/java/SQLite/JDBC2z/
JDBCConnection.java 12 protected DatabaseX db; field in class:JDBCConnection
75 private boolean busy0(DatabaseX db, int count) {
79 if (db != null) {
84 db.wait(100);
91 return busy0(db, count);
94 protected boolean busy3(DatabaseX db, int count) {
98 if (db != null) {
158 db = open(readonly);
161 db.key(pwd);
166 db.busy_handler(this)
    [all...]
  /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...]
  /development/samples/training/threadsample/src/com/example/android/threadsample/
DataProvider.java 152 * @param db A handle to the provider's backing database.
154 private void dropTables(SQLiteDatabase db) {
157 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.PICTUREURL_TABLE_NAME);
158 db.execSQL("DROP TABLE IF EXISTS " + DataProviderContract.DATE_TABLE_NAME);
164 * invoked and no db instance is available.
166 * @param db the database instance in which to create the tables.
169 public void onCreate(SQLiteDatabase db) {
171 db.execSQL(CREATE_PICTUREURL_TABLE_SQL);
172 db.execSQL(CREATE_DATE_TABLE_SQL);
180 * @param db The database to upgrad
248 SQLiteDatabase db = mHelper.getReadableDatabase(); local
    [all...]
  /packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/
ReadWriteDraftMessageActionTest.java 69 final DatabaseWrapper db = DataModel.get().getDatabase(); local
71 final String conversationId = getOrCreateConversation(db, participantNumber, threadId,
73 final String selfId = getOrCreateSelfId(db);
75 // Should clear/stub DB
94 // Should check DB
95 final MessageData actual = BugleDatabaseOperations.readMessage(db, messageId);
100 private static String getOrCreateSelfId(final DatabaseWrapper db) {
101 db.beginTransaction();
102 final String selfId = BugleDatabaseOperations.getOrCreateParticipantInTransaction(db,
104 db.setTransactionSuccessful()
128 final DatabaseWrapper db = DataModel.get().getDatabase(); local
170 final DatabaseWrapper db = DataModel.get().getDatabase(); local
226 final DatabaseWrapper db = DataModel.get().getDatabase(); local
287 final DatabaseWrapper db = DataModel.get().getDatabase(); local
337 final DatabaseWrapper db = DataModel.get().getDatabase(); local
    [all...]
  /frameworks/base/packages/WAPPushManager/src/com/android/smspush/
WapPushManager.java 53 private static final String DATABASE_NAME = "wappush.db";
73 public void onCreate(SQLiteDatabase db) {
74 if (LOCAL_LOGV) Log.v(LOG_TAG, "db onCreate.");
88 db.execSQL(sql);
92 public void onUpgrade(SQLiteDatabase db,
96 db.execSQL(
98 onCreate(db);
118 protected queryData queryLastApp(SQLiteDatabase db,
123 Cursor cur = db.query(APPID_TABLE_NAME,
186 SQLiteDatabase db = dbh.getReadableDatabase() local
247 SQLiteDatabase db = dbh.getWritableDatabase(); local
307 SQLiteDatabase db = dbh.getWritableDatabase(); local
342 SQLiteDatabase db = dbh.getWritableDatabase(); local
396 SQLiteDatabase db = dbh.getReadableDatabase(); local
430 SQLiteDatabase db = dbh.getReadableDatabase(); local
    [all...]
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/common/db/
SelectionBuilder.java 23 package com.example.android.common.db;
52 * .query(db, projection, sortOrder)
288 * @param db Database to query.
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) {
297 return query(db, columns, null, null, orderBy, null);
305 * @param db Database to query.
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy,
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having,
334 * @param db Database to query.
339 public int update(SQLiteDatabase db, ContentValues values)
    [all...]
  /developers/samples/android/common/src/java/com/example/android/common/db/
SelectionBuilder.java 23 package com.example.android.common.db;
52 * .query(db, projection, sortOrder)
288 * @param db Database to query.
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) {
297 return query(db, columns, null, null, orderBy, null);
305 * @param db Database to query.
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy,
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having,
334 * @param db Database to query.
339 public int update(SQLiteDatabase db, ContentValues values)
    [all...]
  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/db/
SelectionBuilder.java 23 package com.example.android.common.db;
52 * .query(db, projection, sortOrder)
288 * @param db Database to query.
296 public Cursor query(SQLiteDatabase db, String[] columns, String orderBy) {
297 return query(db, columns, null, null, orderBy, null);
305 * @param db Database to query.
322 public Cursor query(SQLiteDatabase db, String[] columns, String groupBy,
327 return db.query(mTable, columns, getSelection(), getSelectionArgs(), groupBy, having,
334 * @param db Database to query.
339 public int update(SQLiteDatabase db, ContentValues values)
    [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):

Completed in 474 milliseconds

<<11121314151617181920>>