/external/chromium/chrome/browser/history/ |
D | thumbnail_database_unittest.cc | 114 ThumbnailDatabase db; in TEST_F() local 115 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL, NULL)); in TEST_F() 116 db.BeginTransaction(); in TEST_F() 122 FaviconID id = db.AddFavicon(url, FAVICON); in TEST_F() 124 db.SetFavicon(id, favicon, time); in TEST_F() 125 EXPECT_TRUE(db.RenameAndDropThumbnails(file_name_, new_file_name_)); in TEST_F() 130 EXPECT_TRUE(db.GetFavicon(id, &time_out, &favicon_out, &url_out)); in TEST_F() 140 ThumbnailDatabase db; in TEST_F() local 141 ASSERT_EQ(sql::INIT_OK, db.Init(file_name_, NULL, NULL)); in TEST_F() 142 db.BeginTransaction(); in TEST_F() [all …]
|
D | text_database_unittest.cc | 52 int RowCount(TextDatabase* db) { in RowCount() argument 60 db->GetTextMatches("COUNTTAG", options, &results, &unique_urls, in RowCount() 66 void AddAllTestData(TextDatabase* db) { in AddAllTestData() argument 67 EXPECT_TRUE(db->AddPageData( in AddAllTestData() 69 EXPECT_TRUE(db->AddPageData( in AddAllTestData() 71 EXPECT_TRUE(db->AddPageData( in AddAllTestData() 73 EXPECT_EQ(3, RowCount(db)); in AddAllTestData() 108 TextDatabase* db = new TextDatabase(temp_dir_.path(), id, allow_create); in CreateDB() local 111 file_util::Delete(db->file_name(), false); in CreateDB() 113 if (!db->Init()) { in CreateDB() [all …]
|
/external/dbus/dbus/ |
D | dbus-userdb.c | 128 _dbus_user_database_lookup (DBusUserDatabase *db, in _dbus_user_database_lookup() argument 149 info = _dbus_hash_table_lookup_uintptr (db->users, uid); in _dbus_user_database_lookup() 151 … info = _dbus_hash_table_lookup_string (db->users_by_name, _dbus_string_get_const_data (username)); in _dbus_user_database_lookup() 202 if (!_dbus_hash_table_insert_uintptr (db->users, info->uid, info)) in _dbus_user_database_lookup() 209 if (!_dbus_hash_table_insert_string (db->users_by_name, in _dbus_user_database_lookup() 213 _dbus_hash_table_remove_uintptr (db->users, info->uid); in _dbus_user_database_lookup() 411 DBusUserDatabase *db; in _dbus_homedir_from_username() local 415 db = _dbus_user_database_get_system (); in _dbus_homedir_from_username() 416 if (db == NULL) in _dbus_homedir_from_username() 422 if (!_dbus_user_database_get_username (db, username, in _dbus_homedir_from_username() [all …]
|
D | dbus-userdb-util.c | 48 DBusUserDatabase *db; in _dbus_is_console_user() local 82 db = _dbus_user_database_get_system (); in _dbus_is_console_user() 83 if (db == NULL) in _dbus_is_console_user() 92 info = _dbus_user_database_lookup (db, uid, NULL, error); in _dbus_is_console_user() 132 DBusUserDatabase *db; in _dbus_get_group_id() local 136 db = _dbus_user_database_get_system (); in _dbus_get_group_id() 137 if (db == NULL) in _dbus_get_group_id() 143 if (!_dbus_user_database_get_groupname (db, groupname, in _dbus_get_group_id() 169 DBusUserDatabase *db; in _dbus_get_user_id_and_primary_group() local 173 db = _dbus_user_database_get_system (); in _dbus_get_user_id_and_primary_group() [all …]
|
/external/webkit/LayoutTests/storage/indexeddb/ |
D | database-basics-expected.txt | 7 db = event.target.result 8 db.setVersion('new version') 14 db.setVersion("version a") 15 db.setVersion("version b") 16 PASS db.version is "version b" 17 PASS db.name is "database-basics" 18 PASS db.objectStoreNames is [] 19 PASS db.objectStoreNames.length is 0 20 PASS db.objectStoreNames.contains('') is false 21 PASS db.objectStoreNames[0] is null [all …]
|
D | transaction-basics-expected.txt | 10 db = event.target.result 11 request = db.setVersion('version 1') 13 PASS window.db.objectStoreNames is [] 14 PASS window.db.objectStoreNames.length is 0 15 PASS window.db.objectStoreNames.contains('storeFail') is false 20 store = db.createObjectStore('storeFail', null) 22 db.deleteObjectStore('storeFail') 24 PASS window.db.objectStoreNames is [] 25 PASS window.db.objectStoreNames.length is 0 26 PASS window.db.objectStoreNames.contains('storeFail') is false [all …]
|
D | transaction-event-propagation-expected.txt | 7 db = event.target.result 8 db.setVersion('new version') 13 store = db.createObjectStore('storeName', null) 16 trans = db.transaction([], webkitIDBTransaction.READ_WRITE) 19 db.addEventListener('abort', dbAbortCaptureCallback, true) 20 db.addEventListener('abort', dbAbortBubbleCallback, false) 21 db.addEventListener('complete', unexpectedCompleteCallback, true) 22 db.addEventListener('complete', unexpectedCompleteCallback, false) 31 PASS event.currentTarget is db 45 PASS event.currentTarget is db [all …]
|
D | database-quota-expected.txt | 7 db = event.target.result 8 db.setVersion('new version') 13 PASS db.version is "new version" 14 PASS db.name is "database-quota" 15 PASS db.objectStoreNames is [] 16 PASS db.objectStoreNames.length is 0 17 PASS db.objectStoreNames.contains('') is false 18 db.createObjectStore("test123") 19 PASS db.objectStoreNames is ['test123'] 20 PASS db.objectStoreNames.length is 1 [all …]
|
/external/webkit/LayoutTests/storage/ |
D | sql-error-codes.js | 27 function testTransaction(db, transactionCallback, expectedErrorCodeName) argument 29 db.transaction(transactionCallback, 35 function testTransactionThrowsException(db) argument 37 …testTransaction(db, function(tx) { throw "Exception thrown in transaction callback."; }, "UNKNOWN_… 40 function testTransactionFailureBecauseOfStatementFailure(db) argument 42 testTransaction(db, 48 function testInvalidStatement(db) argument 50 testTransaction(db, function(tx) { tx.executeSql("BAD STATEMENT"); }, "SYNTAX_ERR"); 53 function testIncorrectNumberOfBindParameters(db) argument 55 testTransaction(db, [all …]
|
D | test-authorizer.js | 13 function cleanup(db) argument 15 db.transaction(function(tx) { 110 function testReadWriteMode(db) argument 112 db.transaction(function(tx) { 122 function testReadOnlyMode(db) argument 125 db.readTransaction(createTableCallback, 129 db.transaction(createTableCallback, 131 db.readTransaction(createStatementsCallback, 135 db.transaction(createStatementsCallback, 137 db.readTransaction(otherStatementsCallback, [all …]
|
/external/openssl/crypto/txt_db/ |
D | txt_db.c | 196 OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, OPENSSL_STRING *value) in TXT_DB_get_by_index() argument 201 if (idx >= db->num_fields) in TXT_DB_get_by_index() 203 db->error=DB_ERROR_INDEX_OUT_OF_RANGE; in TXT_DB_get_by_index() 206 lh=db->index[idx]; in TXT_DB_get_by_index() 209 db->error=DB_ERROR_NO_INDEX; in TXT_DB_get_by_index() 213 db->error=DB_ERROR_OK; in TXT_DB_get_by_index() 217 int TXT_DB_create_index(TXT_DB *db, int field, int (*qual)(OPENSSL_STRING *), in TXT_DB_create_index() argument 224 if (field >= db->num_fields) in TXT_DB_create_index() 226 db->error=DB_ERROR_INDEX_OUT_OF_RANGE; in TXT_DB_create_index() 232 db->error=DB_ERROR_MALLOC; in TXT_DB_create_index() [all …]
|
/external/chromium/app/sql/ |
D | transaction_unittest.cc | 22 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); in SetUp() 29 sql::Connection& db() { return db_; } in db() function in SQLTransactionTest 33 sql::Statement count(db().GetUniqueStatement("SELECT count(*) FROM foo")); in CountFoo() 45 sql::Transaction t(&db()); in TEST_F() 50 EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); in TEST_F() 63 sql::Transaction t(&db()); in TEST_F() 68 EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); in TEST_F() 75 sql::Transaction t2(&db()); in TEST_F() 79 EXPECT_TRUE(db().Execute("INSERT INTO foo (a, b) VALUES (1, 2)")); in TEST_F() 89 EXPECT_EQ(0, db().transaction_nesting()); in TEST_F() [all …]
|
D | connection_unittest.cc | 25 sql::Connection& db() { return db_; } in db() function in SQLConnectionTest 34 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); in TEST_F() 35 EXPECT_EQ(SQLITE_OK, db().GetErrorCode()); in TEST_F() 38 ASSERT_FALSE(db().Execute("CREATE TAB foo (a, b")); in TEST_F() 39 EXPECT_EQ(SQLITE_ERROR, db().GetErrorCode()); in TEST_F() 45 ASSERT_TRUE(db().Execute("CREATE TABLE foo (a, b)")); in TEST_F() 46 ASSERT_TRUE(db().Execute("INSERT INTO foo(a, b) VALUES (12, 13)")); in TEST_F() 50 sql::Statement s(db().GetCachedStatement(id1, "SELECT a FROM foo")); in TEST_F() 58 EXPECT_TRUE(db().HasCachedStatement(id1)); in TEST_F() 63 sql::Statement s(db().GetCachedStatement(id1, "something invalid(")); in TEST_F() [all …]
|
/external/chromium/chrome/browser/password_manager/ |
D | login_database_unittest.cc | 38 scoped_ptr<LoginDatabase> db(new LoginDatabase()); in TEST_F() local 40 ASSERT_TRUE(db->Init(file_)); in TEST_F() 45 EXPECT_TRUE(db->GetAutofillableLogins(&result)); in TEST_F() 63 EXPECT_TRUE(db->AddLogin(form)); in TEST_F() 64 EXPECT_TRUE(db->GetAutofillableLogins(&result)); in TEST_F() 70 EXPECT_TRUE(db->GetLogins(form, &result)); in TEST_F() 81 EXPECT_TRUE(db->GetLogins(form2, &result)); in TEST_F() 91 EXPECT_TRUE(db->GetLogins(form3, &result)); in TEST_F() 102 EXPECT_TRUE(db->GetLogins(form4, &result)); in TEST_F() 106 EXPECT_TRUE(db->AddLogin(form4)); in TEST_F() [all …]
|
/external/chromium/chrome/browser/webdata/ |
D | autofill_table_unittest.cc | 131 WebDatabase db; in TEST_F() local 133 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 140 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( in TEST_F() 150 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( in TEST_F() 160 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( in TEST_F() 170 EXPECT_TRUE(db.GetAutofillTable()->AddFormFieldValue( in TEST_F() 185 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement( in TEST_F() 198 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement( in TEST_F() 208 EXPECT_TRUE(db.GetAutofillTable()->GetIDAndCountOfFormElement( in TEST_F() 222 EXPECT_TRUE(db.GetAutofillTable()->GetFormValuesForElementName( in TEST_F() [all …]
|
D | logins_table_unittest.cc | 45 WebDatabase db; in TEST_F() local 47 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 52 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true)); in TEST_F() 70 EXPECT_TRUE(db.GetLoginsTable()->AddLogin(form)); in TEST_F() 71 EXPECT_TRUE(db.GetLoginsTable()->GetAllLogins(&result, true)); in TEST_F() 77 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form, &result)); in TEST_F() 88 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form2, &result)); in TEST_F() 98 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form3, &result)); in TEST_F() 109 EXPECT_TRUE(db.GetLoginsTable()->GetLogins(form4, &result)); in TEST_F() 113 EXPECT_TRUE(db.GetLoginsTable()->AddLogin(form4)); in TEST_F() [all …]
|
D | token_service_table_unittest.cc | 41 WebDatabase db; in TEST_F() local 42 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 50 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map)); in TEST_F() 54 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service, in TEST_F() 56 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service2, "steak")); in TEST_F() 57 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map)); in TEST_F() 63 EXPECT_TRUE(db.GetTokenServiceTable()->RemoveAllTokens()); in TEST_F() 64 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map)); in TEST_F() 68 EXPECT_TRUE(db.GetTokenServiceTable()->SetTokenForService(service, "cheese")); in TEST_F() 69 EXPECT_TRUE(db.GetTokenServiceTable()->GetAllTokens(&out_map)); in TEST_F() [all …]
|
D | web_apps_table_unittest.cc | 44 WebDatabase db; in TEST_F() local 46 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 50 EXPECT_FALSE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); in TEST_F() 53 EXPECT_TRUE(db.GetWebAppsTable()->SetWebAppHasAllImages(url, true)); in TEST_F() 54 EXPECT_TRUE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); in TEST_F() 57 EXPECT_TRUE(db.GetWebAppsTable()->RemoveWebApp(url)); in TEST_F() 58 EXPECT_FALSE(db.GetWebAppsTable()->GetWebAppHasAllImages(url)); in TEST_F() 62 WebDatabase db; in TEST_F() local 64 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 69 ASSERT_TRUE(db.GetWebAppsTable()->GetWebAppImages(url, &images)); in TEST_F() [all …]
|
D | keyword_table_unittest.cc | 60 WebDatabase db; in TEST_F() local 62 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 85 EXPECT_TRUE(db.GetKeywordTable()->AddKeyword(template_url)); in TEST_F() 88 EXPECT_TRUE(db.GetKeywordTable()->GetKeywords(&template_urls)); in TEST_F() 127 EXPECT_TRUE(db.GetKeywordTable()->RemoveKeyword(restored_url->id())); in TEST_F() 130 EXPECT_TRUE(db.GetKeywordTable()->GetKeywords(&template_urls)); in TEST_F() 138 WebDatabase db; in TEST_F() local 140 ASSERT_EQ(sql::INIT_OK, db.Init(file_)); in TEST_F() 142 ASSERT_EQ(0, db.GetKeywordTable()->GetDefaulSearchProviderID()); in TEST_F() 143 ASSERT_EQ(0, db.GetKeywordTable()->GetBuitinKeywordVersion()); in TEST_F() [all …]
|
/external/chromium/chrome/browser/sync/util/ |
D | user_settings_unittest.cc | 49 sql::Connection db; in SetUpVersion10Databases() local 50 ASSERT_TRUE(db.Open(v10_user_setting_db_path_)); in SetUpVersion10Databases() 61 ASSERT_TRUE(db.Execute( in SetUpVersion10Databases() 66 ASSERT_TRUE(db.Execute( in SetUpVersion10Databases() 70 ASSERT_TRUE(db.Execute("CREATE TABLE db_version (version)")); in SetUpVersion10Databases() 73 sql::Statement s(db.GetUniqueStatement(query)); in SetUpVersion10Databases() 75 LOG(FATAL) << query << "\n" << db.GetErrorMessage(); in SetUpVersion10Databases() 79 LOG(FATAL) << query << "\n" << db.GetErrorMessage(); in SetUpVersion10Databases() 83 ASSERT_TRUE(db.Execute( in SetUpVersion10Databases() 89 sql::Statement s(db.GetUniqueStatement(query)); in SetUpVersion10Databases() [all …]
|
/external/openssl/apps/ |
D | srp.c | 120 static int get_index(CA_DB *db, char* id, char type) in get_index() argument 126 for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) in get_index() 128 pp = (char **)sk_OPENSSL_PSTRING_value(db->db->data, i); in get_index() 132 else for (i = 0; i < sk_OPENSSL_PSTRING_num(db->db->data); i++) in get_index() 134 pp = (char **)sk_OPENSSL_PSTRING_value(db->db->data, i); in get_index() 143 static void print_entry(CA_DB *db, BIO *bio, int indx, int verbose, char *s) in print_entry() argument 148 char **pp = (char **)sk_OPENSSL_PSTRING_value(db->db->data, indx); in print_entry() 157 static void print_index(CA_DB *db, BIO *bio, int indexindex, int verbose) in print_index() argument 159 print_entry(db, bio, indexindex, verbose, "g N entry") ; in print_index() 162 static void print_user(CA_DB *db, BIO *bio, int userindex, int verbose) in print_user() argument [all …]
|
/external/e2fsprogs/e2fsck/ |
D | dirinfo.c | 41 struct dir_info_db *db = ctx->dir_info; in setup_tdb() local 58 retval = ext2fs_get_mem(strlen(tdb_dir) + 64, &db->tdb_fn); in setup_tdb() 63 sprintf(db->tdb_fn, "%s/%s-dirinfo-XXXXXX", tdb_dir, uuid); in setup_tdb() 64 fd = mkstemp(db->tdb_fn); in setup_tdb() 65 db->tdb = tdb_open(db->tdb_fn, 0, TDB_CLEAR_IF_FIRST, in setup_tdb() 72 struct dir_info_db *db; in setup_db() local 76 db = (struct dir_info_db *) in setup_db() 79 db->count = db->size = 0; in setup_db() 80 db->array = 0; in setup_db() 82 ctx->dir_info = db; in setup_db() [all …]
|
D | emptydir.c | 37 struct ext2_db_entry *db); 89 struct ext2_db_entry *db) in add_empty_dirblock() argument 91 if (!edi || !db) in add_empty_dirblock() 94 if (db->ino == 11) in add_empty_dirblock() 98 db->blk, db->blockcnt, db->ino); in add_empty_dirblock() 100 ext2fs_mark_block_bitmap(edi->empty_dir_blocks, db->blk); in add_empty_dirblock() 101 if (ext2fs_test_inode_bitmap(edi->dir_map, db->ino)) in add_empty_dirblock() 103 ext2fs_mark_inode_bitmap(edi->dir_map, db->ino); in add_empty_dirblock() 105 ext2fs_add_dir_block(edi->empty_dblist, db->ino, in add_empty_dirblock() 106 db->blk, db->blockcnt); in add_empty_dirblock() [all …]
|
/external/openssl/crypto/rsa/ |
D | rsa_oaep.c | 39 unsigned char *db, *seed; in RSA_padding_add_PKCS1_OAEP() local 57 db = to + SHA_DIGEST_LENGTH + 1; in RSA_padding_add_PKCS1_OAEP() 59 if (!EVP_Digest((void *)param, plen, db, NULL, EVP_sha1(), NULL)) in RSA_padding_add_PKCS1_OAEP() 61 memset(db + SHA_DIGEST_LENGTH, 0, in RSA_padding_add_PKCS1_OAEP() 63 db[emlen - flen - SHA_DIGEST_LENGTH - 1] = 0x01; in RSA_padding_add_PKCS1_OAEP() 64 memcpy(db + emlen - flen - SHA_DIGEST_LENGTH, from, (unsigned int) flen); in RSA_padding_add_PKCS1_OAEP() 83 db[i] ^= dbmask[i]; in RSA_padding_add_PKCS1_OAEP() 85 if (MGF1(seedmask, SHA_DIGEST_LENGTH, db, emlen - SHA_DIGEST_LENGTH) < 0) in RSA_padding_add_PKCS1_OAEP() 101 unsigned char *db = NULL, seed[SHA_DIGEST_LENGTH], phash[SHA_DIGEST_LENGTH]; in RSA_padding_check_PKCS1_OAEP() local 124 db = OPENSSL_malloc(dblen + num); in RSA_padding_check_PKCS1_OAEP() [all …]
|
/external/webkit/Tools/QueueStatusServer/model/ |
D | queuestatus.py | 29 from google.appengine.ext import db 33 class QueueStatus(db.Model, QueuePropertyMixin): 34 author = db.UserProperty() 35 queue_name = db.StringProperty() 36 bot_id = db.StringProperty() 37 active_bug_id = db.IntegerProperty() 38 active_patch_id = db.IntegerProperty() 39 message = db.StringProperty(multiline=True) 40 date = db.DateTimeProperty(auto_now_add=True) 41 results_file = db.BlobProperty()
|