Home
last modified time | relevance | path

Searched refs:statement (Results 1 – 25 of 764) sorted by relevance

12345678910>>...31

/external/chromium/chrome/browser/history/
Ddownload_database.cc36 void BindFilePath(sql::Statement& statement, const FilePath& path, int col) { in BindFilePath() argument
37 statement.BindString(col, path.value()); in BindFilePath()
39 FilePath ColumnFilePath(sql::Statement& statement, int col) { in ColumnFilePath() argument
40 return FilePath(statement.ColumnString(col)); in ColumnFilePath()
46 void BindFilePath(sql::Statement& statement, const FilePath& path, int col) {
47 statement.BindString(col, UTF16ToUTF8(path.value()));
49 FilePath ColumnFilePath(sql::Statement& statement, int col) {
50 return FilePath(UTF8ToUTF16(statement.ColumnString(col)));
87 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in QueryDownloads() local
92 if (!statement) in QueryDownloads()
[all …]
Dvisit_database.cc89 void VisitDatabase::FillVisitRow(sql::Statement& statement, VisitRow* visit) { in FillVisitRow() argument
90 visit->visit_id = statement.ColumnInt64(0); in FillVisitRow()
91 visit->url_id = statement.ColumnInt64(1); in FillVisitRow()
92 visit->visit_time = base::Time::FromInternalValue(statement.ColumnInt64(2)); in FillVisitRow()
93 visit->referring_visit = statement.ColumnInt64(3); in FillVisitRow()
94 visit->transition = PageTransition::FromInt(statement.ColumnInt(4)); in FillVisitRow()
95 visit->segment_id = statement.ColumnInt64(5); in FillVisitRow()
96 visit->is_indexed = !!statement.ColumnInt(6); in FillVisitRow()
100 void VisitDatabase::FillVisitVector(sql::Statement& statement, in FillVisitVector() argument
102 while (statement.Step()) { in FillVisitVector()
[all …]
Durl_database.cc90 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetURLRow() local
92 if (!statement) in GetURLRow()
95 statement.BindInt64(0, url_id); in GetURLRow()
96 if (statement.Step()) { in GetURLRow()
97 FillURLRow(statement, info); in GetURLRow()
104 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAllTypedUrls() local
106 if (!statement) in GetAllTypedUrls()
109 while (statement.Step()) { in GetAllTypedUrls()
111 FillURLRow(statement, &info); in GetAllTypedUrls()
118 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetRowForURL() local
[all …]
Dthumbnail_database.cc30 static void FillIconMapping(const sql::Statement& statement, in FillIconMapping() argument
33 icon_mapping->mapping_id = statement.ColumnInt64(0); in FillIconMapping()
34 icon_mapping->icon_id = statement.ColumnInt64(1); in FillIconMapping()
36 static_cast<history::IconType>(statement.ColumnInt(2)); in FillIconMapping()
256 sql::Statement statement(db_.GetCachedStatement(SQL_FROM_HERE, in SetPageThumbnail() local
260 if (!statement) in SetPageThumbnail()
276 statement.BindInt64(0, id); in SetPageThumbnail()
277 statement.BindDouble(1, score.boring_score); in SetPageThumbnail()
278 statement.BindBool(2, score.good_clipping); in SetPageThumbnail()
279 statement.BindBool(3, score.at_top); in SetPageThumbnail()
[all …]
Dtop_sites_database.cc88 sql::Statement statement(db_->GetCachedStatement( in GetPageThumbnails() local
94 if (!statement) { in GetPageThumbnails()
102 while (statement.Step()) { in GetPageThumbnails()
105 GURL gurl(statement.ColumnString(0)); in GetPageThumbnails()
107 url.title = statement.ColumnString16(2); in GetPageThumbnails()
108 std::string redirects = statement.ColumnString(4); in GetPageThumbnails()
113 statement.ColumnBlobAsVector(3, &data); in GetPageThumbnails()
116 thumbnail.thumbnail_score.boring_score = statement.ColumnDouble(5); in GetPageThumbnails()
117 thumbnail.thumbnail_score.good_clipping = statement.ColumnBool(6); in GetPageThumbnails()
118 thumbnail.thumbnail_score.at_top = statement.ColumnBool(7); in GetPageThumbnails()
[all …]
Dvisitsegment_database.cc142 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetSegmentNamed() local
144 if (!statement) in GetSegmentNamed()
147 statement.BindString(0, segment_name); in GetSegmentNamed()
148 if (statement.Step()) in GetSegmentNamed()
149 return statement.ColumnInt64(0); in GetSegmentNamed()
155 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateSegmentRepresentationURL() local
157 if (!statement) in UpdateSegmentRepresentationURL()
160 statement.BindInt64(0, url_id); in UpdateSegmentRepresentationURL()
161 statement.BindInt64(1, segment_id); in UpdateSegmentRepresentationURL()
162 return statement.Run(); in UpdateSegmentRepresentationURL()
[all …]
/external/chromium_org/chrome/browser/history/
Dvisit_database.cc85 void VisitDatabase::FillVisitRow(sql::Statement& statement, VisitRow* visit) { in FillVisitRow() argument
86 visit->visit_id = statement.ColumnInt64(0); in FillVisitRow()
87 visit->url_id = statement.ColumnInt64(1); in FillVisitRow()
88 visit->visit_time = base::Time::FromInternalValue(statement.ColumnInt64(2)); in FillVisitRow()
89 visit->referring_visit = statement.ColumnInt64(3); in FillVisitRow()
90 visit->transition = content::PageTransitionFromInt(statement.ColumnInt(4)); in FillVisitRow()
91 visit->segment_id = statement.ColumnInt64(5); in FillVisitRow()
93 base::TimeDelta::FromInternalValue(statement.ColumnInt64(6)); in FillVisitRow()
97 bool VisitDatabase::FillVisitVector(sql::Statement& statement, in FillVisitVector() argument
99 if (!statement.is_valid()) in FillVisitVector()
[all …]
Durl_database.cc80 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetURLRow() local
82 statement.BindInt64(0, url_id); in GetURLRow()
84 if (statement.Step()) { in GetURLRow()
85 FillURLRow(statement, info); in GetURLRow()
92 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetAllTypedUrls() local
95 while (statement.Step()) { in GetAllTypedUrls()
97 FillURLRow(statement, &info); in GetAllTypedUrls()
104 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetRowForURL() local
107 statement.BindString(0, url_string); in GetRowForURL()
109 if (!statement.Step()) in GetRowForURL()
[all …]
Dthumbnail_database.cc91 void FillIconMapping(const sql::Statement& statement, in FillIconMapping() argument
94 icon_mapping->mapping_id = statement.ColumnInt64(0); in FillIconMapping()
95 icon_mapping->icon_id = statement.ColumnInt64(1); in FillIconMapping()
97 static_cast<chrome::IconType>(statement.ColumnInt(2)); in FillIconMapping()
98 icon_mapping->icon_url = GURL(statement.ColumnString(3)); in FillIconMapping()
182 sql::Statement statement(db->GetUniqueStatement(kVersionSql)); in ReportError() local
183 if (statement.Step()) { in ReportError()
185 debug_info += statement.ColumnString(0); in ReportError()
187 } else if (statement.Succeeded()) { in ReportError()
209 sql::Statement statement(db->GetUniqueStatement(kSchemaSql)); in ReportError() local
[all …]
Dvisitsegment_database.cc165 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetSegmentNamed() local
167 statement.BindString(0, segment_name); in GetSegmentNamed()
169 if (statement.Step()) in GetSegmentNamed()
170 return statement.ColumnInt64(0); in GetSegmentNamed()
176 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in UpdateSegmentRepresentationURL() local
178 statement.BindInt64(0, url_id); in UpdateSegmentRepresentationURL()
179 statement.BindInt64(1, segment_id); in UpdateSegmentRepresentationURL()
181 return statement.Run(); in UpdateSegmentRepresentationURL()
185 sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE, in GetSegmentRepresentationURL() local
187 statement.BindInt64(0, segment_id); in GetSegmentRepresentationURL()
[all …]
/external/chromium_org/webkit/browser/appcache/
Dappcache_database.cc255 sql::Statement statement(db_->GetUniqueStatement(kSql)); in FindOriginsWithGroups() local
257 while (statement.Step()) in FindOriginsWithGroups()
258 origins->insert(GURL(statement.ColumnString(0))); in FindOriginsWithGroups()
260 return statement.Succeeded(); in FindOriginsWithGroups()
319 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in FindGroup() local
321 statement.BindInt64(0, group_id); in FindGroup()
322 if (!statement.Step()) in FindGroup()
325 ReadGroupRecord(statement, record); in FindGroup()
341 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in FindGroupForManifestUrl() local
342 statement.BindString(0, manifest_url.spec()); in FindGroupForManifestUrl()
[all …]
/external/open-vcdiff/gtest/include/gtest/
Dgtest-death-test.h157 #define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 #define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 #define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 #define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 #define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/protobuf/gtest/include/gtest/
Dgtest-death-test.h157 #define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 #define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 #define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 #define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 #define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/mesa3d/src/gtest/include/gtest/
Dgtest-death-test.h157 # define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 # define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/chromium_org/testing/gtest/include/gtest/
Dgtest-death-test.h168 # define ASSERT_EXIT(statement, predicate, regex) \ argument
169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
173 # define EXPECT_EXIT(statement, predicate, regex) \ argument
174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
179 # define ASSERT_DEATH(statement, regex) \ argument
180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
184 # define EXPECT_DEATH(statement, regex) \ argument
185 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
258 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
259 GTEST_EXECUTE_STATEMENT_(statement, regex)
[all …]
/external/chromium/testing/gtest/include/gtest/
Dgtest-death-test.h157 # define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 # define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/llvm/utils/unittest/googletest/include/gtest/
Dgtest-death-test.h157 # define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 # define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/
Dgtest-death-test.h157 # define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 # define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/gtest/include/gtest/
Dgtest-death-test.h157 # define ASSERT_EXIT(statement, predicate, regex) \ argument
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 # define EXPECT_EXIT(statement, predicate, regex) \ argument
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
168 # define ASSERT_DEATH(statement, regex) \ argument
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 # define EXPECT_DEATH(statement, regex) \ argument
174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
247 # define EXPECT_DEBUG_DEATH(statement, regex) \ argument
248 do { statement; } while (::testing::internal::AlwaysFalse())
[all …]
/external/chromium_org/webkit/browser/quota/
Dquota_database.cc152 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in GetHostQuota() local
153 statement.BindString(0, host); in GetHostQuota()
154 statement.BindInt(1, static_cast<int>(type)); in GetHostQuota()
156 if (!statement.Step()) in GetHostQuota()
159 *quota = statement.ColumnInt64(0); in GetHostQuota()
173 sql::Statement statement(db_->GetCachedStatement(SQL_FROM_HERE, kSql)); in SetHostQuota() local
174 statement.BindInt64(0, quota); in SetHostQuota()
175 statement.BindString(1, host); in SetHostQuota()
176 statement.BindInt(2, static_cast<int>(type)); in SetHostQuota()
178 if (!statement.Run()) in SetHostQuota()
[all …]
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-death-test.h102 #define ASSERT_EXIT(statement, predicate, regex) \ argument
103 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_FATAL_FAILURE)
107 #define EXPECT_EXIT(statement, predicate, regex) \ argument
108 GTEST_DEATH_TEST(statement, predicate, regex, GTEST_NONFATAL_FAILURE)
113 #define ASSERT_DEATH(statement, regex) \ argument
114 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
118 #define EXPECT_DEATH(statement, regex) \ argument
119 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
187 #define EXPECT_DEBUG_DEATH(statement, regex) \ argument
188 do { statement; } while (false)
[all …]
/external/chromium_org/chrome/browser/predictors/
Dautocomplete_action_predictor_table.cc25 sql::Statement* statement) { in BindRowToStatement() argument
27 statement->BindString(0, row.id); in BindRowToStatement()
28 statement->BindString16(1, row.user_text.substr(0, kMaxDataLength)); in BindRowToStatement()
29 statement->BindString(2, row.url.spec().substr(0, kMaxDataLength)); in BindRowToStatement()
30 statement->BindInt(3, row.number_of_hits); in BindRowToStatement()
31 statement->BindInt(4, row.number_of_misses); in BindRowToStatement()
35 sql::Statement* statement, in StepAndInitializeRow() argument
37 if (!statement->Step()) in StepAndInitializeRow()
40 row->id = statement->ColumnString(0); in StepAndInitializeRow()
41 row->user_text = statement->ColumnString16(1); in StepAndInitializeRow()
[all …]
Dlogged_in_predictor_table.cc60 Statement statement(DB()->GetCachedStatement(SQL_FROM_HERE, in AddDomainFromURL() local
64 statement.BindString(0, GetKey(url)); in AddDomainFromURL()
65 statement.BindInt64(1, base::Time::Now().ToInternalValue()); in AddDomainFromURL()
67 statement.Run(); in AddDomainFromURL()
75 Statement statement(DB()->GetCachedStatement(SQL_FROM_HERE, in DeleteDomainFromURL() local
78 statement.BindString(0, GetKey(url)); in DeleteDomainFromURL()
80 statement.Run(); in DeleteDomainFromURL()
94 Statement statement(DB()->GetCachedStatement(SQL_FROM_HERE, in HasUserLoggedIn() local
98 statement.BindString(0, GetKey(url)); in HasUserLoggedIn()
100 if (statement.Step()) { in HasUserLoggedIn()
[all …]
/external/chromium_org/components/precache/core/
Dprecache_url_table.cc39 Statement statement(db_->GetCachedStatement( in AddURL() local
43 statement.BindString(0, GetKey(url)); in AddURL()
44 statement.BindInt64(1, precache_time.ToInternalValue()); in AddURL()
45 statement.Run(); in AddURL()
49 Statement statement(db_->GetCachedStatement( in HasURL() local
52 statement.BindString(0, GetKey(url)); in HasURL()
53 return statement.Step(); in HasURL()
57 Statement statement(db_->GetCachedStatement( in DeleteURL() local
60 statement.BindString(0, GetKey(url)); in DeleteURL()
61 statement.Run(); in DeleteURL()
[all …]
/external/chromium/chrome/browser/sync/util/
Duser_settings.cc36 SQLStatement statement; in ExecOrDie() local
37 statement.prepare(dbhandle, query); in ExecOrDie()
38 if (SQLITE_DONE != statement.step()) { in ExecOrDie()
166 SQLStatement statement; in MakeClientIDTable() local
167 statement.prepare(dbhandle, in MakeClientIDTable()
169 statement.bind_string(0, Generate128BitRandomHexString()); in MakeClientIDTable()
170 if (SQLITE_DONE != statement.step()) { in MakeClientIDTable()
218 SQLStatement statement; in Init() local
219 statement.prepare(dbhandle.get(), in Init()
223 if (SQLITE_DONE != statement.step()) { in Init()
[all …]

12345678910>>...31