| /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
| DictionaryDownloadProgressBar.java | 55 final SQLiteDatabase db = MetadataDbHelper.getDb(context, clientId); local 57 MetadataDbHelper.getContentValuesOfLatestAvailableWordlistById(db, wordlistId); 137 // clean up the db entry.
|
| /packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
| DownloadProvider.java | 82 private static final String DB_NAME = "downloads.db"; 243 public void onCreate(final SQLiteDatabase db) { 247 onUpgrade(db, 0, DB_VERSION); 258 public void onUpgrade(final SQLiteDatabase db, int oldV, final int newV) { 264 // no logic to upgrade from these older version, just recreate the DB 270 // DB, so just recreate it 277 upgradeTo(db, version); 284 private void upgradeTo(SQLiteDatabase db, int version) { 287 createDownloadsTable(db); 291 createHeadersTable(db); 473 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 504 final SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 530 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 900 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 1083 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 1225 final SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local [all...] |
| /packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
| MmsSmsProvider.java | 331 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 382 cursor = db.query(TABLE_CANONICAL_ADDRESSES, 391 cursor = db.query(TABLE_CANONICAL_ADDRESSES, 413 cursor = db.rawQuery(SEARCH_QUERY, SEARCH_STRING); 423 cursor = db.query( 437 cursor = db.rawQuery(mmsQuery, new String[] { String.valueOf(id) }); 458 cursor = db.rawQuery(getTextSearchQuery(smsTable, pduTable), 481 cursor = db.query(TABLE_PENDING_MSG, null, 548 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 549 cursor = db.query 689 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 1215 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 1262 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 1272 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 1284 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 1346 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local [all...] |
| /packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
| UserDictionaryProvider.java | 53 * DB versions are as follow: 69 private static final String DATABASE_NAME = "user_dict.db"; 110 public void onCreate(SQLiteDatabase db) { 111 db.execSQL("CREATE TABLE " + USERDICT_TABLE_NAME + " (" 122 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 126 db.execSQL("ALTER TABLE " + USERDICT_TABLE_NAME 131 db.execSQL("DROP TABLE IF EXISTS " + USERDICT_TABLE_NAME); 132 onCreate(db); 183 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local 184 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy) 242 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 256 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 285 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local [all...] |
| /prebuilts/gdb/darwin-x86/lib/python2.7/bsddb/ |
| dbshelve.py | 10 # forces the use of cPickle, and DB. 36 exec("from . import db") namespace 38 import db namespace 81 def open(filename, flags=db.DB_CREATE, mode=0660, filetype=db.DB_HASH, 89 db = dbshelve.open(filename) 91 db[key] = data 93 db.close() 98 flags = db.DB_RDONLY 102 flags = db.DB_CREAT [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/gdb/darwin-x86/lib/python2.7/bsddb/test/ |
| test_associate.py | 2 TestCases for DB.associate. 10 from test_all import db, dbshelve, test_support, verbose, have_threads, \ 80 self.filename = self.__class__.__name__ + '.db' 82 self.env = db.DBEnv() 83 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL) 96 dupDB = db.DB(self.env) 97 dupDB.set_flags(db.DB_DUP) 98 dupDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE 11 get_new_environment_path namespace [all...] |
| 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_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_dbshelve.py | 10 from test_all import db, dbshelve, test_support, verbose, \ 54 """Turn key into an appropriate key type for this db""" 146 self.assertRaises(db.DBNotFoundError, d.get, self.mk('bad key')) 265 dbtype = db.DB_BTREE 266 dbflags = db.DB_CREATE 270 dbtype = db.DB_HASH 271 dbflags = db.DB_CREATE 275 dbtype = db.DB_BTREE 276 dbflags = db.DB_CREATE | db.DB_THREA 11 get_new_environment_path, get_new_database_path namespace [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...] |
| /prebuilts/gdb/linux-x86/lib/python2.7/bsddb/ |
| dbshelve.py | 10 # forces the use of cPickle, and DB. 36 exec("from . import db") namespace 38 import db namespace 81 def open(filename, flags=db.DB_CREATE, mode=0660, filetype=db.DB_HASH, 89 db = dbshelve.open(filename) 91 db[key] = data 93 db.close() 98 flags = db.DB_RDONLY 102 flags = db.DB_CREAT [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/gdb/linux-x86/lib/python2.7/bsddb/test/ |
| test_associate.py | 2 TestCases for DB.associate. 10 from test_all import db, dbshelve, test_support, verbose, have_threads, \ 80 self.filename = self.__class__.__name__ + '.db' 82 self.env = db.DBEnv() 83 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL) 96 dupDB = db.DB(self.env) 97 dupDB.set_flags(db.DB_DUP) 98 dupDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE 11 get_new_environment_path namespace [all...] |
| 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_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_dbshelve.py | 10 from test_all import db, dbshelve, test_support, verbose, \ 54 """Turn key into an appropriate key type for this db""" 146 self.assertRaises(db.DBNotFoundError, d.get, self.mk('bad key')) 265 dbtype = db.DB_BTREE 266 dbflags = db.DB_CREATE 270 dbtype = db.DB_HASH 271 dbflags = db.DB_CREATE 275 dbtype = db.DB_BTREE 276 dbflags = db.DB_CREATE | db.DB_THREA 11 get_new_environment_path, get_new_database_path namespace [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...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/ |
| dbshelve.py | 10 # forces the use of cPickle, and DB. 36 exec("from . import db") namespace 38 import db namespace 81 def open(filename, flags=db.DB_CREATE, mode=0660, filetype=db.DB_HASH, 89 db = dbshelve.open(filename) 91 db[key] = data 93 db.close() 98 flags = db.DB_RDONLY 102 flags = db.DB_CREAT [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/darwin-x86/2.7.5/lib/python2.7/bsddb/test/ |
| test_associate.py | 2 TestCases for DB.associate. 10 from test_all import db, dbshelve, test_support, verbose, have_threads, \ 80 self.filename = self.__class__.__name__ + '.db' 82 self.env = db.DBEnv() 83 self.env.open(self.homeDir, db.DB_CREATE | db.DB_INIT_MPOOL) 96 dupDB = db.DB(self.env) 97 dupDB.set_flags(db.DB_DUP) 98 dupDB.open(self.filename, "primary", db.DB_BTREE, db.DB_CREATE 11 get_new_environment_path namespace [all...] |
| 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_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_dbshelve.py | 10 from test_all import db, dbshelve, test_support, verbose, \ 54 """Turn key into an appropriate key type for this db""" 146 self.assertRaises(db.DBNotFoundError, d.get, self.mk('bad key')) 265 dbtype = db.DB_BTREE 266 dbflags = db.DB_CREATE 270 dbtype = db.DB_HASH 271 dbflags = db.DB_CREATE 275 dbtype = db.DB_BTREE 276 dbflags = db.DB_CREATE | db.DB_THREA 11 get_new_environment_path, get_new_database_path namespace [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...] |