Searched refs:statement (Results 1 - 25 of 49) sorted by relevance

12

/external/webkit/WebCore/page/
H A DGeolocationPositionCache.cpp102 SQLiteStatement statement(database, "SELECT * FROM CachedPosition");
103 if (statement.prepare() != SQLResultOk)
106 if (statement.step() != SQLResultRow)
109 bool providesAltitude = statement.getColumnValue(2).type() != SQLValue::NullValue;
110 bool providesAltitudeAccuracy = statement.getColumnValue(4).type() != SQLValue::NullValue;
111 bool providesHeading = statement.getColumnValue(5).type() != SQLValue::NullValue;
112 bool providesSpeed = statement.getColumnValue(6).type() != SQLValue::NullValue;
113 RefPtr<Coordinates> coordinates = Coordinates::create(statement.getColumnDouble(0), // latitude
114 statement.getColumnDouble(1), // longitude
115 providesAltitude, statement
[all...]
/external/gtest/include/gtest/
H A Dgtest-death-test.h154 // Asserts that a given statement causes the program to exit, with an
157 #define ASSERT_EXIT(statement, predicate, regex) \
158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
162 #define EXPECT_EXIT(statement, predicate, regex) \
163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
165 // Asserts that a given statement causes the program to exit, either by
168 #define ASSERT_DEATH(statement, regex) \
169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
173 #define EXPECT_DEATH(statement, regex) \
174 EXPECT_EXIT(statement,
[all...]
H A Dgtest-spi.h117 // statement will cause exactly one fatal Google Test failure with 'substr'
124 // The verification of the assertion is done correctly even when the statement
128 // - 'statement' cannot reference local non-static variables or
130 // - 'statement' cannot return a value.
138 #define EXPECT_FATAL_FAILURE(statement, substr) \
142 static void Execute() { statement; }\
155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
159 static void Execute() { statement; }\
174 // statement will cause exactly one non-fatal Google Test failure with 'substr'
181 // 'statement' i
[all...]
H A Dgtest.h1043 // * {ASSERT|EXPECT}_THROW(statement, expected_exception):
1044 // Tests that the statement throws the expected exception.
1045 // * {ASSERT|EXPECT}_NO_THROW(statement):
1046 // Tests that the statement doesn't throw any exception.
1047 // * {ASSERT|EXPECT}_ANY_THROW(statement):
1048 // Tests that the statement throws an exception.
1050 #define EXPECT_THROW(statement, expected_exception) \
1051 GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
1052 #define EXPECT_NO_THROW(statement) \
1053 GTEST_TEST_NO_THROW_(statement, GTEST_NONFATAL_FAILURE
[all...]
/external/webkit/WebCore/manual-tests/inspector/resources/
H A Dloop-statements.js19 function statement() function
/external/webkit/WebCore/storage/
H A DDatabaseTracker.cpp173 SQLiteStatement statement(m_database, "SELECT guid FROM Databases WHERE origin=? AND name=?;");
175 if (statement.prepare() != SQLResultOk)
178 statement.bindText(1, origin->databaseIdentifier());
179 statement.bindText(2, databaseIdentifier);
181 return statement.step() == SQLResultRow;
218 SQLiteStatement statement(m_database, "SELECT path FROM Databases WHERE origin=? AND name=?;");
220 if (statement.prepare() != SQLResultOk)
223 statement.bindText(1, originIdentifier);
224 statement.bindText(2, name);
226 int result = statement
[all...]
H A DSQLStatement.cpp47 PassRefPtr<SQLStatement> SQLStatement::create(const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, bool readOnly) argument
49 return adoptRef(new SQLStatement(statement, arguments, callback, errorCallback, readOnly));
52 SQLStatement::SQLStatement(const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, bool readOnly) argument
53 : m_statement(statement.crossThreadString())
65 // If we're re-running this statement after a quota violation, we need to clear that error now
78 SQLiteStatement statement(*database, m_statement);
79 int result = statement.prepare();
82 LOG(StorageAPI, "Unable to verify correctness of statement %s - error %i (%s)", m_statement.ascii().data(), result, database->lastErrorMsg());
87 // FIXME: If the statement uses the ?### syntax supported by sqlite, the bind parameter count is very likely off from the number of question marks.
89 if (statement
[all...]
H A DDatabase.cpp251 SQLiteStatement statement(db, query);
252 int result = statement.prepare();
255 LOG_ERROR("Error (%i) preparing statement to read text result from database (%s)", result, query.ascii().data());
259 result = statement.step();
261 resultString = statement.getColumnText(0);
289 SQLiteStatement statement(db, query);
290 int result = statement.prepare();
293 LOG_ERROR("Failed to prepare statement to set value in database (%s)", query.ascii().data());
297 statement.bindText(1, value);
299 result = statement
[all...]
H A DSQLTransaction.cpp55 // There's no way of knowing exactly how much more space will be required when a statement hits the quota limit.
103 RefPtr<SQLStatement> statement = SQLStatement::create(sqlStatement, arguments, callback, callbackError, readOnlyMode); local
106 statement->setDatabaseDeletedError();
109 statement->setVersionMismatchedError();
111 enqueueStatement(statement);
114 void SQLTransaction::enqueueStatement(PassRefPtr<SQLStatement> statement) argument
117 m_statementQueue.append(statement);
321 // Reset the maximum size here, as it was increased to allow us to retry this statement.
322 // m_shouldRetryCurrentStatement is set to true only when a statement exceeds
327 // If the current statement ha
[all...]
H A DSQLStatement.h69 SQLStatement(const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, bool readOnly);
/external/webkit/WebCore/loader/appcache/
H A DApplicationCacheStorage.cpp100 SQLiteStatement statement(m_database, "SELECT id, manifestURL, newestCache FROM CacheGroups WHERE newestCache IS NOT NULL AND manifestURL=?");
101 if (statement.prepare() != SQLResultOk)
104 statement.bindText(1, manifestURL);
106 int result = statement.step();
115 unsigned newestCacheStorageID = static_cast<unsigned>(statement.getColumnInt64(2));
123 group->setStorageID(static_cast<unsigned>(statement.getColumnInt64(0)));
170 SQLiteStatement statement(m_database, "SELECT manifestHostHash FROM CacheGroups");
171 if (statement.prepare() != SQLResultOk)
175 while ((result = statement.step()) == SQLResultRow)
176 m_cacheHostSet.add(static_cast<unsigned>(statement
512 executeStatement(SQLiteStatement& statement) argument
[all...]
/external/v8/src/arm/
H A Dcodegen-arm-inl.h50 void CodeGenerator::VisitAndSpill(Statement* statement) { argument
51 Visit(statement);
/external/webkit/WebCore/platform/sql/
H A DSQLiteDatabase.cpp107 SQLiteStatement statement(*this, "PRAGMA max_page_count");
108 int64_t size = statement.getColumnInt64(0) * pageSize();
127 SQLiteStatement statement(*this, "PRAGMA max_page_count = " + String::number(newMaxPageCount));
128 statement.prepare();
129 if (statement.step() != SQLResultRow)
144 SQLiteStatement statement(*this, "PRAGMA page_size");
145 m_pageSize = statement.getColumnInt(0);
158 SQLiteStatement statement(*this, "PRAGMA freelist_count");
159 int64_t size = statement.getColumnInt64(0) * pageSize();
201 String statement
[all...]
/external/gtest/include/gtest/internal/
H A Dgtest-death-test-internal.h81 static bool Create(const char* statement, const RE* regex,
141 virtual bool Create(const char* statement, const RE* regex,
148 virtual bool Create(const char* statement, const RE* regex,
158 #define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \
163 if (!::testing::internal::DeathTest::Create(#statement, &gtest_regex, \
179 GTEST_HIDE_UNREACHABLE_CODE_(statement); \
H A Dgtest-internal.h772 // statement if it returns or throws (or doesn't return or throw in some
774 #define GTEST_HIDE_UNREACHABLE_CODE_(statement) \
775 if (::testing::internal::AlwaysTrue()) { statement; }
777 #define GTEST_TEST_THROW_(statement, expected_exception, fail) \
782 GTEST_HIDE_UNREACHABLE_CODE_(statement); \
788 gtest_msg = "Expected: " #statement " throws an exception of type " \
794 gtest_msg = "Expected: " #statement " throws an exception of type " \
802 #define GTEST_TEST_NO_THROW_(statement, fail) \
806 GTEST_HIDE_UNREACHABLE_CODE_(statement); \
809 gtest_msg = "Expected: " #statement " does
[all...]
/external/bluetooth/bluez/rfcomm/
H A Dparser.y67 | statement
68 | config statement
71 statement : section '{' rfcomm_options '}' label
/external/webkit/WebKit/android/WebCoreSupport/
H A DGeolocationPermissions.cpp340 SQLiteStatement statement(database, "SELECT * FROM Permissions");
341 if (statement.prepare() != SQLResultOk) {
347 while (statement.step() == SQLResultRow)
348 s_permanentPermissions.set(statement.getColumnText(0), statement.getColumnInt64(1));
376 SQLiteStatement statement(database, "INSERT INTO Permissions (origin, allow) VALUES (?, ?)");
377 if (statement.prepare() != SQLResultOk)
379 statement.bindText(1, iter->first);
380 statement.bindInt64(2, iter->second);
381 statement
[all...]
/external/sqlite/android/
H A Dsqlite3_android.cpp220 sqlite3_stmt * statement = (sqlite3_stmt *)data; local
221 sqlite3_finalize(statement);
298 // Get or create the prepared statement for the insertions
299 sqlite3_stmt * statement = (sqlite3_stmt *)sqlite3_get_auxdata(context, 0); local
300 if (!statement) {
307 err = sqlite3_prepare_v2(handle, sql, -1, &statement, NULL);
314 // This binds the statement to the table it was compiled against, which is argv[0].
317 sqlite3_set_auxdata(context, 0, statement, tokenize_auxdata_delete);
319 // Reset the cached statement so that binding the row ID will work properly
320 sqlite3_reset(statement);
[all...]
/external/gtest/src/
H A Dgtest-death-test.cc168 // to executing the given statement. It is the responsibility of the
190 // code; and RETURNED means that the test statement attempted a "return,"
312 bool DeathTest::Create(const char* statement, const RE* regex, argument
315 statement, regex, file, line, test);
333 DeathTestImpl(const char* statement, const RE* regex) argument
334 : statement_(statement),
342 const char* statement() const { return statement_; } function in class:testing::internal::DeathTestImpl
399 WindowsDeathTest(const char* statement, argument
403 : DeathTestImpl(statement, regex), file_(file), line_(line) {}
641 ForkingDeathTest(const char* statement, cons
661 ForkingDeathTest(const char* statement, const RE* regex) argument
872 NoExecDeathTest(const char* statement, const RE* regex) argument
923 ExecDeathTest(const char* statement, const RE* regex, const char* file, int line) argument
1131 Create(const char* statement, const RE* regex, const char* file, int line, DeathTest** test) argument
[all...]
/external/v8/src/
H A Dfull-codegen.h116 // Generate code to leave the nested statement. This includes
120 // nested statement's stack, and returns a number of stack
121 // elements left on top of the surrounding statement's stack.
146 virtual bool IsBreakTarget(Statement* statement) { argument
147 return target_ == statement;
149 BreakableStatement* statement() { return target_; } function in class:v8::internal::FullCodeGenerator::Breakable
164 virtual bool IsContinueTarget(Statement* statement) { argument
165 return this->statement() == statement;
173 // The environment inside the try block of a try/catch statement
223 ForIn(FullCodeGenerator* codegen, ForInStatement* statement) argument
[all...]
/external/webkit/WebCore/bindings/v8/custom/
H A DV8SQLTransactionCustom.cpp54 return throwError("SQL statement is required.", V8Proxy::SyntaxError);
56 String statement = toWebCoreString(args[0]);
121 transaction->executeSQL(statement, sqlValues, callback, errorCallback, ec);
/external/webkit/JavaScriptCore/parser/
H A DNodeConstructors.h717 inline DoWhileNode::DoWhileNode(JSGlobalData* globalData, StatementNode* statement, ExpressionNode* expr) argument
719 , m_statement(statement)
724 inline WhileNode::WhileNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement) argument
727 , m_statement(statement)
731 inline ForNode::ForNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, ExpressionNode* expr3, StatementNode* statement, bool expr1WasVarDecl) argument
736 , m_statement(statement)
739 ASSERT(statement);
772 inline WithNode::WithNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement, uint32_t divot, uint32_t expressionLength) argument
775 , m_statement(statement)
781 inline LabelNode::LabelNode(JSGlobalData* globalData, const Identifier& name, StatementNode* statement) argument
878 ForInNode(JSGlobalData* globalData, ExpressionNode* l, ExpressionNode* expr, StatementNode* statement) argument
889 ForInNode(JSGlobalData* globalData, const Identifier& ident, ExpressionNode* in, ExpressionNode* expr, StatementNode* statement, int divot, int startOffset, int endOffset) argument
[all...]
/external/clearsilver/python/examples/base/
H A Dodb_sqlite.py137 for statement in statements:
138 # print statement
139 cur.execute(statement)
/external/dhcpcd/mk/
H A Dcc.mk17 -Wdeclaration-after-statement -Wsequence-point -Wextra
/external/ipsec-tools/src/racoon/
H A Dprsa_par.y155 statements statement
156 | statement
159 statement: label

Completed in 191 milliseconds

12