Home
last modified time | relevance | path

Searched refs:execSQL (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/database/
DNewDatabasePerformanceTests.java124 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
129 mDatabase.execSQL(statements[i]); in testRun()
156 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
157 mDatabase.execSQL("CREATE INDEX i1c ON t1(c)"); in setUp()
162 mDatabase.execSQL(statements[i]); in testRun()
183 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
187 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
222 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
226 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
259 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
[all …]
DDatabasePerformanceTests.java215 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
221 mDatabase.execSQL(statements[i]); in run()
248 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
249 mDatabase.execSQL("CREATE INDEX i1c ON t1(c)"); in setUp()
255 mDatabase.execSQL(statements[i]); in run()
276 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
280 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
316 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
320 mDatabase.execSQL("INSERT INTO t1 VALUES(" + i + "," + r + ",'" in setUp()
354 .execSQL("CREATE TABLE t1(a INTEGER, b INTEGER, c VARCHAR(100))"); in setUp()
[all …]
DDatabaseCursorTest.java82 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data TEXT);"); in populateDefaultTable()
84 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString1 + "');"); in populateDefaultTable()
85 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString2 + "');"); in populateDefaultTable()
86 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString3 + "');"); in populateDefaultTable()
92 mDatabase.execSQL( in testBlob()
110 mDatabase.execSQL(sql, args); in testBlob()
130 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data REAL);"); in testRealColumns()
237 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data TEXT);"); in testLargeField()
248 mDatabase.execSQL(sql.toString()); in testLargeField()
293 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data INT);"); in testManyRowsLong()
[all …]
DDatabaseGeneralTest.java85 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data TEXT);"); in populateDefaultTable()
87 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString1 + "');"); in populateDefaultTable()
88 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString2 + "');"); in populateDefaultTable()
89 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString3 + "');"); in populateDefaultTable()
116 mDatabase.execSQL("CREATE TABLE phones (num TEXT);"); in testPhoneNumbersEqual()
117 mDatabase.execSQL("INSERT INTO phones (num) VALUES ('911');"); in testPhoneNumbersEqual()
118 mDatabase.execSQL("INSERT INTO phones (num) VALUES ('5555');"); in testPhoneNumbersEqual()
119 mDatabase.execSQL("INSERT INTO phones (num) VALUES ('+" + PHONE_NUMBER + "');"); in testPhoneNumbersEqual()
321 mDatabase.execSQL("CREATE TABLE guess (numi INTEGER, numf FLOAT, str TEXT);"); in testCopyString()
322 mDatabase.execSQL( in testCopyString()
[all …]
DDatabaseStatementTest.java72 mDatabase.execSQL("CREATE TABLE test (_id INTEGER PRIMARY KEY, data TEXT);"); in populateDefaultTable()
74 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString1 + "');"); in populateDefaultTable()
75 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString2 + "');"); in populateDefaultTable()
76 mDatabase.execSQL("INSERT INTO test (data) VALUES ('" + sString3 + "');"); in populateDefaultTable()
93 mDatabase.execSQL("CREATE TABLE test (num INTEGER NOT NULL, str TEXT NOT NULL);"); in testSimpleQuery()
94 mDatabase.execSQL("INSERT INTO test VALUES (1234, 'hello');"); in testSimpleQuery()
130 mDatabase.execSQL("CREATE TABLE test (num INTEGER);"); in testStatementLongBinding()
152 mDatabase.execSQL("CREATE TABLE test (num TEXT);"); in testStatementStringBinding()
174 mDatabase.execSQL("CREATE TABLE test (num INTEGER);"); in testStatementClearBindings()
196 mDatabase.execSQL("CREATE TABLE test (num TEXT, value TEXT);"); in testSimpleStringBinding()
[all …]
DDatabaseStressTest.java52 mDatabase.execSQL("CREATE TABLE IF NOT EXISTS test (_id INTEGER PRIMARY KEY, data TEXT);"); in setUp()
71 mDatabase.execSQL("INSERT INTO test (data) VALUES (?)", strArr); in testSingleThreadInsertDelete()
72 mDatabase.execSQL("delete from test;"); in testSingleThreadInsertDelete()
93 mDatabase.execSQL("INSERT INTO test (data) VALUES (?)", strArr); in testOutOfSpace()
DDatabaseLocaleTest.java49 mDatabase.execSQL( in setUp()
55 mDatabase.execSQL("INSERT INTO test (data) VALUES('" + s + "');"); in insertStrings()
114 mDatabase.execSQL("INSERT INTO test(id, data) VALUES(1, '" + expectedString + "')"); in testHoge()
DDatabaseErrorHandlerTest.java66 mDatabase.execSQL("create table t (i int);"); in testDatabaseIsCorrupt()
75 mDatabase.execSQL("select * from t;"); in testDatabaseIsCorrupt()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java161 db.execSQL("CREATE TABLE secure (" + in createSecureTable()
166 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); in createSecureTable()
170 db.execSQL("CREATE TABLE global (" + in createGlobalTable()
175 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); in createGlobalTable()
180 db.execSQL("CREATE TABLE system (" + in onCreate()
185 db.execSQL("CREATE INDEX systemIndex1 ON system (name);"); in onCreate()
194 db.execSQL("CREATE TABLE bluetooth_devices (" + in onCreate()
202 db.execSQL("CREATE TABLE bookmarks (" + in onCreate()
211 db.execSQL("CREATE INDEX bookmarksIndex1 ON bookmarks (folder);"); in onCreate()
212 db.execSQL("CREATE INDEX bookmarksIndex2 ON bookmarks (shortcut);"); in onCreate()
[all …]
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java55 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE); in createDatabase()
56 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " (" in createDatabase()
64 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE); in createDatabase()
65 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " (" in createDatabase()
105 db.execSQL("UPDATE " + SYNC_STATE_TABLE in update()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DAggregatorStorage.java45 db.execSQL(mTableCmd); in onCreate()
53 db.execSQL("DROP TABLE IF EXISTS " + mTableName); in onUpgrade()
DBordeauxSessionStorage.java71 db.execSQL(DATABASE_CREATE); in onCreate()
79 db.execSQL("DROP TABLE IF EXISTS " + SESSION_TABLE); in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java54 db.execSQL("CREATE TABLE data (" + in onCreate()
60 db.execSQL("INSERT INTO data (text, integer) VALUES ('first data', 100);"); in onCreate()
68 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentsProvider.java131 db.execSQL("CREATE TABLE " + TABLE_RECENT + " (" + in onCreate()
137 db.execSQL("CREATE TABLE " + TABLE_STATE + " (" + in onCreate()
147 db.execSQL("CREATE TABLE " + TABLE_RESUME + " (" + in onCreate()
158 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RECENT); in onUpgrade()
159 db.execSQL("DROP TABLE IF EXISTS " + TABLE_STATE); in onUpgrade()
160 db.execSQL("DROP TABLE IF EXISTS " + TABLE_RESUME); in onUpgrade()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DTrackerProvider.java62 db.execSQL(queryBuilder.toString()); in onCreate()
72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java72 db.execSQL("CREATE TABLE data (" + in onCreate()
90 db.execSQL("DROP TABLE IF EXISTS data"); in onUpgrade()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCursorTest.java45 mDatabase.execSQL("CREATE TABLE " + TABLE_NAME + " (i int, j int);"); in setUp()
63 mDatabase.execSQL("CREATE TABLE " + testTable + " (col1 int, desc text not null);"); in testFillWindow()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DDatabaseHelper.java76 db.execSQL(CREATE_TABLE_SOUND_MODEL); in onCreate()
82 db.execSQL("DROP TABLE IF EXISTS " + SoundModelContract.TABLE); in onUpgrade()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java148 db.execSQL(builder.toString()); in onCreate()
155 db.execSQL("DROP TABLE IF EXISTS suggestions"); in onUpgrade()
/frameworks/base/docs/html/training/search/
Dsearch.jd90 mDatabase.execSQL(FTS_TABLE_CREATE);
97 db.execSQL("DROP TABLE IF EXISTS " + FTS_VIRTUAL_TABLE);
163 mDatabase.execSQL(FTS_TABLE_CREATE);
/frameworks/base/core/java/android/database/sqlite/
DSQLiteDatabase.java873 execSQL("PRAGMA user_version = " + version); in setVersion()
922 execSQL("PRAGMA page_size = " + numBytes); in setPageSize()
1604 public void execSQL(String sql) throws SQLException { in execSQL() method in SQLiteDatabase
1651 public void execSQL(String sql, Object[] bindArgs) throws SQLException { in execSQL() method in SQLiteDatabase
/frameworks/base/docs/html-intl/intl/zh-cn/training/basics/data-storage/
Ddatabases.jd156 db.execSQL(SQL_CREATE_ENTRIES);
161 db.execSQL(SQL_DELETE_ENTRIES);
/frameworks/base/docs/html-intl/intl/ru/training/basics/data-storage/
Ddatabases.jd156 db.execSQL(SQL_CREATE_ENTRIES);
161 db.execSQL(SQL_DELETE_ENTRIES);
/frameworks/base/docs/html-intl/intl/zh-tw/training/basics/data-storage/
Ddatabases.jd156 db.execSQL(SQL_CREATE_ENTRIES);
161 db.execSQL(SQL_DELETE_ENTRIES);
/frameworks/base/docs/html-intl/intl/ko/training/basics/data-storage/
Ddatabases.jd156 db.execSQL(SQL_CREATE_ENTRIES);
161 db.execSQL(SQL_DELETE_ENTRIES);

12