/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
BitmapPixels.java | 96 int db = ((getB32(to) << 23) - b) / (n - 1); local 106 b += db;
|
/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...] |
/external/bsdiff/ |
bsdiff.c | 209 u_char *db,*eb; local 243 if(((db=malloc(newsize+1))==NULL) || 327 db[dblen+i]=new[lastscan+i]-old[lastpos+i]; 366 BZ2_bzWrite(&bz2err, pfbz2, db, dblen); 397 free(db);
|
/external/chromium/chrome/browser/history/ |
text_database_manager.cc | 275 TextDatabase* db = GetDBForTime(visit_time, true); local 276 if (!db) 289 // avoid another DB query. 316 bool success = db->AddPageData(visit_time, url_str, 337 TextDatabase* db = GetDB(db_ident, false); local 338 if (!db) 340 db = GetDB(db_ident, true); 345 db->DeletePageData(time, URLDatabase::GURLToDatabaseURL(url)); 402 TextDatabase* db = GetDB(*i, false); local 403 if (!db) [all...] |
thumbnail_database_unittest.cc | 60 // Get a temporary directory for the test DB files. 63 file_name_ = temp_dir_.path().AppendASCII("TestThumbnails.db"); 64 new_file_name_ = temp_dir_.path().AppendASCII("TestFavicons.db"); 65 history_db_name_ = temp_dir_.path().AppendASCII("TestHistory.db"); 114 ThumbnailDatabase db; local 115 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL, NULL)); 116 db.BeginTransaction(); 122 FaviconID id = db.AddFavicon(url, FAVICON); 124 db.SetFavicon(id, favicon, time); 125 EXPECT_TRUE(db.RenameAndDropThumbnails(file_name_, new_file_name_)) 140 ThumbnailDatabase db; local 162 ThumbnailDatabase db; local 194 ThumbnailDatabase db; local 225 ThumbnailDatabase db; local 252 ThumbnailDatabase db; local 290 ThumbnailDatabase db; local 315 ThumbnailDatabase db; local 367 ThumbnailDatabase db; local 416 ThumbnailDatabase db; local [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
filter_false_positive_perftest.cc | 128 sql::Connection db; local 129 if (!db.Open(database_file)) 134 sql::Statement count_statement(db.GetCachedStatement(SQL_FROM_HERE, query)); 146 sql::Statement prefix_statement(db.GetCachedStatement(SQL_FROM_HERE, query));
|
/external/chromium/chrome/browser/sync/sessions/ |
sync_session_unittest.cc | 112 TestDirectorySetterUpper db; local 113 db.SetUp(); 115 context_.reset(new SyncSessionContext(NULL, db.manager(), this, 118 context_->set_account_name(db.name()); 130 db.TearDown();
|
/external/chromium/chrome/browser/webdata/ |
autofill_table_unittest.cc | 102 ".db"; 131 WebDatabase db; local 133 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); 140 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( 150 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( 160 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( 170 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( 185 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement( 198 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement( 208 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement 343 WebDatabase db; local 390 WebDatabase db; local 431 WebDatabase db; local 459 WebDatabase db; local 487 WebDatabase db; local 505 WebDatabase db; local 541 WebDatabase db; local 567 WebDatabase db; local 601 WebDatabase db; local 652 WebDatabase db; local 779 WebDatabase db; local 820 WebDatabase db; local 858 WebDatabase db; local 899 WebDatabase db; local 940 WebDatabase db; local 981 WebDatabase db; local 1004 WebDatabase db; local 1079 WebDatabase db; local 1165 WebDatabase db; local 1250 WebDatabase db; local 1326 WebDatabase db; local 1443 WebDatabase db; local 1454 WebDatabase db; local 1499 WebDatabase db; local 1563 WebDatabase db; local [all...] |
web_database_migration_unittest.cc | 230 WebDatabase db; local 231 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); 291 WebDatabase db; local 292 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); 340 WebDatabase db; local 341 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); 389 WebDatabase db; local 390 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())); 434 WebDatabase db; local 435 ASSERT_EQ(sql::INIT_OK, db.Init(GetDatabasePath())) 470 WebDatabase db; local 533 WebDatabase db; local 603 WebDatabase db; local 694 WebDatabase db; local 756 WebDatabase db; local 858 WebDatabase db; local 981 WebDatabase db; local 1278 WebDatabase db; local 1334 WebDatabase db; local 1391 WebDatabase db; local [all...] |
/external/e2fsprogs/e2fsck/ |
dirinfo.c | 41 struct dir_info_db *db = ctx->dir_info; local 58 retval = ext2fs_get_mem(strlen(tdb_dir) + 64, &db->tdb_fn); 63 sprintf(db->tdb_fn, "%s/%s-dirinfo-XXXXXX", tdb_dir, uuid); 64 fd = mkstemp(db->tdb_fn); 65 db->tdb = tdb_open(db->tdb_fn, 0, TDB_CLEAR_IF_FIRST, 72 struct dir_info_db *db; local 76 db = (struct dir_info_db *) 78 "directory map db"); 79 db->count = db->size = 0 111 struct dir_info_db *db; local 177 struct dir_info_db *db = ctx->dir_info; local 258 struct dir_info_db *db = ctx->dir_info; local 317 struct dir_info_db *db = ctx->dir_info; local 342 struct dir_info_db *db = ctx->dir_info; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/ |
AbstractResults.java | 11 package org.eclipse.test.internal.performance.results.db;
|
SQL_Results.java | 11 package org.eclipse.test.internal.performance.results.db; 21 import org.eclipse.test.internal.performance.db.SQL; 242 * summaries for all DB builds will be read.
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
ARMAddressingModes.h | 71 db enumerator in enum:llvm::ARM_AM::AMSubMode 80 case ARM_AM::db: return "db"; 469 // DB - Decrement before 470 // For VFP instructions, only the IA and DB modes are valid.
|
/external/opencv/cvaux/src/ |
cvhmmobs.cpp | 578 double db = a0 * b0 + a0 * b0; local 586 ROTATE( a, b, da, db ); 590 ROTATE( a, b, da, db );
|
/external/openssl/apps/ |
apps.h | 294 TXT_DB *db; member in struct:ca_db_st 302 int index_index(CA_DB *db); 303 int save_index(const char *dbfile, const char *suffix, CA_DB *db); 305 void free_index(CA_DB *db);
|
srp.c | 120 static int get_index(CA_DB *db, char* id, char type) 126 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) 128 pp = sk_OPENSSL_PSTRING_value(db->db->data,i); 132 else for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) 134 pp = sk_OPENSSL_PSTRING_value(db->db->data,i); 143 static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s 292 CA_DB *db=NULL; local [all...] |
/external/protobuf/src/google/protobuf/ |
descriptor_database_unittest.cc | 500 EncodedDescriptorDatabase db; local 501 db.Add(data1.data(), data1.size()); 502 db.Add(data2.data(), data2.size()); 506 EXPECT_TRUE(db.FindNameOfFileContainingSymbol("foo.Foo", &filename)); 508 EXPECT_TRUE(db.FindNameOfFileContainingSymbol("foo.Foo.Blah", &filename)); 510 EXPECT_TRUE(db.FindNameOfFileContainingSymbol("bar.Bar", &filename)); 512 EXPECT_FALSE(db.FindNameOfFileContainingSymbol("foo", &filename)); 513 EXPECT_FALSE(db.FindNameOfFileContainingSymbol("bar", &filename)); 514 EXPECT_FALSE(db.FindNameOfFileContainingSymbol("baz.Baz", &filename));
|
/external/skia/legacy/src/core/ |
SkSpriteBlitter_RGB16.cpp | 27 unsigned dr, dg, db; local 32 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); 39 db = (SkPacked32ToB16(sc) * src_scale + 42 *dst = SkPackRGB16(dr, dg, db);
|
/external/skia/src/core/ |
SkSpriteBlitter_RGB16.cpp | 27 unsigned dr, dg, db; local 32 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); 39 db = (SkPacked32ToB16(sc) * src_scale + 42 *dst = SkPackRGB16(dr, dg, db);
|
/external/skia/src/effects/gradients/ |
SkGradientShader.cpp | 274 SkFixed db = SkIntToFixed(SkColorGetB(c1) - b) / (count - 1); local 289 b += db; 328 SkFixed db = SkIntToFixed(SkColorGetB(c1) - b) / (count - 1); local 346 b += db;
|
/external/webkit/Source/WebCore/platform/sql/ |
SQLiteDatabase.cpp | 97 sqlite3* db = m_db; local 102 sqlite3_close(db);
|
/frameworks/base/core/java/android/content/ |
SearchRecentSuggestionsProvider.java | 84 private static final String sDatabaseName = "suggestions.db"; 137 public void onCreate(SQLiteDatabase db) { 148 db.execSQL(builder.toString()); 152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { 155 db.execSQL("DROP TABLE IF EXISTS suggestions"); 156 onCreate(db); 226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 236 count = db.delete(sSuggestions, selection, selectionArgs); 273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); local 285 rowID = db.insert(sSuggestions, NULL_COLUMN, values) 321 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); local [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsProvider.java | 353 // the db file itself will be deleted automatically, but we need to tear down 370 Slog.i(TAG, "Installing settings db helper and caches for user " + userHandle); 387 // Initialization of the db *outside* the locks. It's possible that racing 390 // manages concurrency itself, and it's important that we not run the db 392 SQLiteDatabase db = dbhelper.getWritableDatabase(); local 396 // separately, and of course it has to run after the db file 400 SettingsFileObserver observer = new SettingsFileObserver(userHandle, db.getPath()); 441 SQLiteDatabase db = dbHelper.getReadableDatabase(); local 442 Cursor c = db.query( 597 // fast path: owner db & cache are immutable after onCreate() so we need no 668 SQLiteDatabase db = dbHelper.getReadableDatabase(); local 699 SQLiteDatabase db = dbH.getReadableDatabase(); local 764 SQLiteDatabase db = dbH.getWritableDatabase(); local 913 SQLiteDatabase db = dbH.getWritableDatabase(); local 945 SQLiteDatabase db = dbH.getWritableDatabase(); local 977 SQLiteDatabase db = dbH.getWritableDatabase(); local [all...] |
/hardware/invensense/mlsdk/mllite/ |
ml_stored_data.c | 546 double db; member in union:doubleToLongLong 713 inv_obj.compass_bias_v[i] = dToLL.db; 727 inv_obj.compass_bias_ptr[i] = dToLL.db; 776 double db; member in union:doubleToLongLong 1242 double db; member in union:doubleToLongLong [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...] |