HomeSort by relevance Sort by last modified time
    Searched refs:db (Results 226 - 250 of 1110) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Gallery2/jni/filters/
fx.c 19 __inline__ int interp(unsigned char *src, int p , int *off ,float dr,float dg, float db){
25 float frb0 = fr00 * (1-db)+fr01*db;
26 float frb1 = fr10 * (1-db)+fr11*db;
79 float db = fb-lut_b; local
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db));
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db));
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db));
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
DataRowHandlerForEmail.java 38 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
42 long dataId = super.insert(db, txContext, rawContactId, values);
44 fixRawContactDisplayName(db, txContext, rawContactId);
53 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
55 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
66 fixRawContactDisplayName(db, txContext, rawContactId);
74 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
78 int count = super.delete(db, txContext, c);
81 fixRawContactDisplayName(db, txContext, rawContactId);
DataRowHandlerForNickname.java 40 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
44 long dataId = super.insert(db, txContext, rawContactId, values);
47 fixRawContactDisplayName(db, txContext, rawContactId);
55 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
60 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
68 fixRawContactDisplayName(db, txContext, rawContactId);
76 public int delete(SQLiteDatabase db, TransactionContext txContext, Cursor c) {
80 int count = super.delete(db, txContext, c);
83 fixRawContactDisplayName(db, txContext, rawContactId);
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);
DataRowHandlerForGroupMembership.java 76 public long insert(SQLiteDatabase db, TransactionContext txContext, long rawContactId,
78 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, true);
79 long dataId = super.insert(db, txContext, rawContactId, values);
80 if (hasFavoritesGroupMembership(db, rawContactId)) {
81 updateRawContactsStar(db, rawContactId, true /* starred */);
88 public boolean update(SQLiteDatabase db, TransactionContext txContext, ContentValues values,
91 boolean wasStarred = hasFavoritesGroupMembership(db, rawContactId);
92 resolveGroupSourceIdInValues(txContext, rawContactId, db, values, false);
93 if (!super.update(db, txContext, values, c, callerIsSyncAdapter)) {
96 boolean isStarred = hasFavoritesGroupMembership(db, rawContactId)
    [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)) {
71 updatePhoneLookup(db, rawContactId, dataId,
74 mContactAggregator.updateHasPhoneNumber(db, rawContactId);
75 fixRawContactDisplayName(db, txContext, rawContactId)
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/bsddb/test/
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_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...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/bsddb/test/
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_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...]
  /external/chromium/chrome/browser/importer/
firefox3_importer.h 59 // Gets the specific IDs of bookmark root node from |db|.
60 void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id,
63 // Loads all livemark IDs from database |db|.
64 void LoadLivemarkIDs(sql::Connection* db, std::set<int>* livemark);
68 void GetTopBookmarkFolder(sql::Connection* db,
73 void GetWholeBookmarkFolder(sql::Connection* db, BookmarkList* list,
78 void LoadFavicons(sql::Connection* db,
  /external/chromium_org/chrome/utility/importer/
firefox_importer.h 55 // Gets the specific IDs of bookmark root node from |db|.
56 void LoadRootNodeID(sql::Connection* db, int* toolbar_folder_id,
59 // Loads all livemark IDs from database |db|.
60 void LoadLivemarkIDs(sql::Connection* db, std::set<int>* livemark);
64 void GetTopBookmarkFolder(sql::Connection* db,
69 void GetWholeBookmarkFolder(sql::Connection* db, BookmarkList* list,
74 void LoadFavicons(sql::Connection* db,
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
RecentsProvider.java 98 private static final String DB_NAME = "recents.db";
110 public void onCreate(SQLiteDatabase db) {
112 db.execSQL("CREATE TABLE " + TABLE_RECENT + " (" +
118 db.execSQL("CREATE TABLE " + TABLE_STATE + " (" +
128 db.execSQL("CREATE TABLE " + TABLE_RESUME + " (" +
137 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
139 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RECENT);
140 db.execSQL("DROP TABLE IF EXISTS " + TABLE_STATE);
141 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RESUME);
142 onCreate(db);
155 final SQLiteDatabase db = mHelper.getReadableDatabase(); local
184 final SQLiteDatabase db = mHelper.getWritableDatabase(); local
    [all...]
  /packages/apps/Browser/src/com/android/browser/provider/
SnapshotProvider.java 73 static final String DATABASE_NAME = "snapshots.db";
81 public void onCreate(SQLiteDatabase db) {
82 db.execSQL("CREATE TABLE " + TABLE_SNAPSHOTS + "(" +
97 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
99 db.execSQL("DROP TABLE " + TABLE_SNAPSHOTS);
100 onCreate(db);
103 db.execSQL("ALTER TABLE " + TABLE_SNAPSHOTS + " ADD COLUMN "
105 db.execSQL("ALTER TABLE " + TABLE_SNAPSHOTS + " ADD COLUMN "
107 db.execSQL("UPDATE " + TABLE_SNAPSHOTS + " SET "
153 SQLiteDatabase db = getReadableDatabase() local
187 SQLiteDatabase db = getWritableDatabase(); local
236 SQLiteDatabase db = getWritableDatabase(); local
    [all...]
  /external/chromium_org/components/autofill/core/browser/webdata/
autofill_webdata_backend_impl.cc 35 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
41 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
50 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
68 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
79 const std::vector<FormFieldData>& fields, WebDatabase* db) {
80 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::DB));
82 if (!AutofillTable::FromWebDatabase(db)->AddFormFieldValues(
90 // done on the DB thread, and not the UI thread.
101 WebDatabase* db) {
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/gadget/
WidgetDatabaseHelper.java 37 private static final String DATABASE_NAME = "launcher.db";
100 public void onCreate(SQLiteDatabase db) {
101 db.execSQL("CREATE TABLE " + TABLE_WIDGETS + " ("
110 private void saveData(SQLiteDatabase db, int oldVersion, ArrayList<Entry> data) {
112 Cursor cursor = db.query("photos",
128 Cursor cursor = db.query("photos",
147 private void restoreData(SQLiteDatabase db, ArrayList<Entry> data) {
148 db.beginTransaction();
157 db.insert(TABLE_WIDGETS, null, values);
159 db.setTransactionSuccessful()
209 SQLiteDatabase db = getWritableDatabase(); local
236 SQLiteDatabase db = getReadableDatabase(); local
257 SQLiteDatabase db = getReadableDatabase(); local
302 SQLiteDatabase db = getWritableDatabase(); local
    [all...]
  /hardware/ti/wpan/tools/FM/FmRxApp/src/com/ti/fmrxapp/
DBAdapter.java 38 private static final String DATABASE_NAME = "presets.db";
50 private SQLiteDatabase db; field in class:DBAdapter
69 public void onCreate(SQLiteDatabase db)
72 db.execSQL(DATABASE_CREATE);
76 public void onUpgrade(SQLiteDatabase db, int oldVersion,
82 db.execSQL("DROP TABLE IF EXISTS presets");
83 onCreate(db);
90 db = DBHelper.getWritableDatabase();
111 return db.insert(DATABASE_TABLE, null, initialValues);
118 return db.delete(DATABASE_TABLE, KEY_ROWID
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SynchronousContactsProvider2.java 188 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
189 db.execSQL("UPDATE raw_contacts SET aggregation_mode=0,aggregation_needed=1;");
191 db.compileStatement("SELECT _id FROM raw_contacts LIMIT 1 OFFSET " + maxContact)
193 db.execSQL("DELETE FROM raw_contacts WHERE _id > " + rowId + ";");
197 SQLiteDatabase db = getDatabaseHelper(getContext()).getReadableDatabase();
198 return db.compileStatement("SELECT COUNT(*) FROM raw_contacts").simpleQueryForLong();
202 SQLiteDatabase db = getDatabaseHelper(getContext()).getReadableDatabase();
203 return db.compileStatement("SELECT COUNT(*) FROM contacts").simpleQueryForLong();
210 SQLiteDatabase db = getDatabaseHelper(getContext()).getWritableDatabase();
211 db.execSQL("replace into SQLITE_SEQUENCE (name,seq) values('raw_contacts', 42)")
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_bsddb185.py 3 The file 185test.db found in Lib/test/ is for testing purposes with this
20 db = bsddb185.hashopen(findfile("185test.db"))
21 self.assertEqual(db["1"], "1")
22 db.close()
26 self.assertEqual(whichdb.whichdb(findfile("185test.db")), "bsddb185")
32 dbfile = os.path.join(tmpdir, "foo.db")
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_bsddb185.py 3 The file 185test.db found in Lib/test/ is for testing purposes with this
20 db = bsddb185.hashopen(findfile("185test.db"))
21 self.assertEqual(db["1"], "1")
22 db.close()
26 self.assertEqual(whichdb.whichdb(findfile("185test.db")), "bsddb185")
32 dbfile = os.path.join(tmpdir, "foo.db")
  /external/chromium_org/third_party/sqlite/src/test/
threadtest3.c 411 sqlite3 *db; /* Database handle */ member in struct:Sqlite
466 pErr->rc = sqlite3_errcode(pDb->db);
468 "sqlite3_%s() - %s (%d)", zFunc, sqlite3_errmsg(pDb->db),
469 sqlite3_extended_errcode(pDb->db)
505 int bDelete /* True to delete db file before opening */
510 rc = sqlite3_open(zFile, &pDb->db);
513 sqlite3_close(pDb->db);
514 pDb->db = 0;
517 pDb->db, "md5sum", -1, SQLITE_UTF8, 0, 0, md5step, md5finalize
519 sqlite3_busy_handler(pDb->db, busyhandler, 0)
900 Sqlite db = {0}; \/* SQLite database connection *\/ local
939 Sqlite db = {0}; \/* SQLite database connection *\/ local
957 Sqlite db = {0}; \/* SQLite database connection *\/ local
982 Sqlite db = {0}; \/* SQLite database connection *\/ local
1019 Sqlite db = {0}; local
1038 Sqlite db = {0}; \/* SQLite database connection *\/ local
1074 Sqlite db = {0}; local
1099 Sqlite db = {0}; \/* SQLite database connection *\/ local
1113 Sqlite db = {0}; \/* SQLite database connection *\/ local
1133 Sqlite db = {0}; local
1153 Sqlite db = {0}; \/* SQLite database connection *\/ local
1166 Sqlite db = {0}; local
1258 Sqlite db = {0}; local
1285 Sqlite db = {0}; \/* SQLite database connection *\/ local
1336 Sqlite db = {0}; \/* SQLite database connection *\/ local
1362 Sqlite db = {0}; local
    [all...]
  /external/blktrace/btt/
btt_plot.py 152 db = {}
171 db[file] = {'x':xs, 'y':ys}
173 db[file]['ax'], db[file]['ay'] = avg(xs, ys)
175 db[file]['ax'] = db[file]['ay'] = None
177 db['min_x'] = min_x
178 db['max_x'] = max_x
179 db['min_y'] = min_y
180 db['max_y'] = max_
    [all...]
  /external/chromium_org/third_party/WebKit/Source/modules/webdatabase/
DatabaseTask.h 101 static PassOwnPtr<DatabaseOpenTask> create(DatabaseBackend* db, bool setVersionInNewDatabase, DatabaseTaskSynchronizer* synchronizer, DatabaseError& error, String& errorMessage, bool& success)
103 return adoptPtr(new DatabaseOpenTask(db, setVersionInNewDatabase, synchronizer, error, errorMessage, success));
122 static PassOwnPtr<DatabaseCloseTask> create(DatabaseBackend* db, DatabaseTaskSynchronizer* synchronizer)
124 return adoptPtr(new DatabaseCloseTask(db, synchronizer));
162 static PassOwnPtr<DatabaseTableNamesTask> create(DatabaseBackend* db, DatabaseTaskSynchronizer* synchronizer, Vector<String>& names)
164 return adoptPtr(new DatabaseTableNamesTask(db, synchronizer, names));
  /packages/apps/Dialer/src/com/android/dialer/database/
DialerDatabaseHelper.java 69 * SmartDial DB version ranges:
75 public static final String DATABASE_NAME = "dialer.db";
336 * @param db The database.
339 public void onCreate(SQLiteDatabase db) {
340 setupTables(db);
343 private void setupTables(SQLiteDatabase db) {
344 dropTables(db);
345 db.execSQL("CREATE TABLE " + Tables.SMARTDIAL_TABLE + " (" +
362 db.execSQL("CREATE TABLE " + Tables.PREFIX_TABLE + " (" +
368 db.execSQL("CREATE TABLE " + Tables.PROPERTIES + " ("
713 final SQLiteDatabase db = getWritableDatabase(); local
875 final SQLiteDatabase db = getReadableDatabase(); local
    [all...]
  /external/chromium/app/sql/
statement_unittest.cc 46 ASSERT_TRUE(db_.Open(temp_dir_.path().AppendASCII("SQLStatementTest.db")));
60 sql::Connection& db() { return db_; } function in class:SQLStatementTest
77 s.Assign(db().GetUniqueStatement("CREATE TABLE foo (a, b)"));
84 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)"));
85 ASSERT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (3, 12)"));
87 sql::Statement s(db().GetUniqueStatement("SELECT b FROM foo WHERE a=?"));
98 EXPECT_EQ(SQLITE_ROW, db().GetErrorCode());
115 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a INTEGER PRIMARY KEY, b)"));
120 sql::Statement s(db().GetUniqueStatement("INSERT INTO foo (a) VALUES (?)"));

Completed in 229 milliseconds

1 2 3 4 5 6 7 8 91011>>