/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteWalTest.java | 89 SQLiteDatabase db = mContext.openOrCreateDatabase( in openDatabase() local 91 db.execSQL("PRAGMA synchronous=FULL"); in openDatabase() 92 return db; in openDatabase() 95 private void assertTestTableExists(SQLiteDatabase db) { in assertTestTableExists() argument 96 assertEquals(1, DatabaseUtils.longForQuery(db, "SELECT count(*) FROM test", null)); in assertTestTableExists() 100 SQLiteDatabase db = openDatabase(); in prepareDatabase() local 102 db.execSQL("CREATE TABLE test (column TEXT);"); in prepareDatabase() 103 db.execSQL("INSERT INTO test (column) VALUES (" in prepareDatabase() 107 assertTrue((new File(db.getPath())).exists()); in prepareDatabase() 108 assertTrue((new File(db.getPath() + SHM_SUFFIX)).exists()); in prepareDatabase() [all …]
|
D | SQLiteOpenHelperTest.java | 258 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(dbPath, null); in testWalSchemaChangeVisibilityOnUpgrade() local 259 db.execSQL("CREATE TABLE test_table (_id INTEGER PRIMARY KEY AUTOINCREMENT)"); in testWalSchemaChangeVisibilityOnUpgrade() 260 db.setVersion(1); in testWalSchemaChangeVisibilityOnUpgrade() 261 db.close(); in testWalSchemaChangeVisibilityOnUpgrade() 268 public void onCreate(SQLiteDatabase db) { in testWalSchemaChangeVisibilityOnUpgrade() 272 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in testWalSchemaChangeVisibilityOnUpgrade() 274 db.execSQL("ALTER TABLE test_table ADD column2 INT DEFAULT 1234"); in testWalSchemaChangeVisibilityOnUpgrade() 275 db.execSQL("CREATE TABLE test_table2 (_id INTEGER PRIMARY KEY AUTOINCREMENT)"); in testWalSchemaChangeVisibilityOnUpgrade() 318 public void onCreate(SQLiteDatabase db) { in onCreate() argument 322 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument [all …]
|
D | SQLiteDatabaseTest.java | 108 SQLiteDatabase db = SQLiteDatabase.openDatabase(mDatabaseFilePath, in testOpenDatabase() local 110 assertNotNull(db); in testOpenDatabase() 111 db.close(); in testOpenDatabase() 116 db = SQLiteDatabase.openOrCreateDatabase(dbFile.getPath(), factory); in testOpenDatabase() 117 assertNotNull(db); in testOpenDatabase() 118 db.close(); in testOpenDatabase() 122 db = SQLiteDatabase.openOrCreateDatabase(dbFile, factory); in testOpenDatabase() 123 assertNotNull(db); in testOpenDatabase() 124 db.close(); in testOpenDatabase() 127 db = SQLiteDatabase.create(factory); in testOpenDatabase() [all …]
|
D | DatabaseStatementTest.java | 250 public StatementTestThread(SQLiteDatabase db, SQLiteStatement statement) { in StatementTestThread() argument 252 mDatabase = db; in StatementTestThread()
|
/cts/hostsidetests/appsecurity/test-apps/AppWithData/src/com/android/cts/appwithdata/ |
D | CreatePrivateDataTest.java | 116 SQLiteDatabase db = null; in writeToDatabase() local 119 db = new TestDatabaseOpenHelper(mContext).getWritableDatabase(); in writeToDatabase() 122 assertTrue(db.insert(DB_TABLE_NAME, null, values) != -1); in writeToDatabase() 124 cursor = db.query(DB_TABLE_NAME, new String[] {DB_COLUMN}, in writeToDatabase() 131 if (db != null) { in writeToDatabase() 132 db.close(); in writeToDatabase() 154 SQLiteDatabase db = null; in assertDatabaseDataDoesNotExist() local 157 db = new TestDatabaseOpenHelper(mContext).getWritableDatabase(); in assertDatabaseDataDoesNotExist() 158 cursor = db.query(DB_TABLE_NAME, new String[] {DB_COLUMN}, in assertDatabaseDataDoesNotExist() 165 if (db != null) { in assertDatabaseDataDoesNotExist() [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | DummyJobContentProvider.java | 69 public void onCreate(SQLiteDatabase db) { in onCreate() argument 71 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY," in onCreate() 76 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 91 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local 92 db.insert(tbName, VALUE, values); in insert() 110 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local 111 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query() 136 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() local 137 int count = db.update(tbName, values, selection, selectionArgs); in update() 153 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local [all …]
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | DummyJobContentProvider.java | 69 public void onCreate(SQLiteDatabase db) { in onCreate() argument 71 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY," in onCreate() 76 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 91 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local 92 db.insert(tbName, VALUE, values); in insert() 110 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local 111 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query() 136 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() local 137 int count = db.update(tbName, values, selection, selectionArgs); in update() 153 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | DummyProvider.java | 80 public void onCreate(SQLiteDatabase db) { in onCreate() argument 82 db.execSQL("CREATE TABLE " + NAME_VALUE_TABLE + " (" + _ID + " INTEGER PRIMARY KEY," in onCreate() 87 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 102 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in insert() local 103 db.insert(tbName, VALUE, values); in insert() 121 SQLiteDatabase db = mDbHelper.getReadableDatabase(); in query() local 122 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query() 167 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in update() local 168 int count = db.update(tbName, values, selection, selectionArgs); in update() 184 SQLiteDatabase db = mDbHelper.getWritableDatabase(); in delete() local [all …]
|
D | MockContentProvider.java | 85 public void onCreate(SQLiteDatabase db) { in onCreate() argument 86 db.execSQL("CREATE TABLE TestTable1 (" in onCreate() 90 db.execSQL("CREATE TABLE TestTable2 (" in onCreate() 96 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 97 db.execSQL("DROP TABLE IF EXISTS TestTable1"); in onUpgrade() 98 db.execSQL("DROP TABLE IF EXISTS TestTable2"); in onUpgrade() 99 onCreate(db); in onUpgrade() 140 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in delete() local 150 count = db.delete("TestTable1", selection, selectionArgs); in delete() 154 count = db.delete("TestTable1", "_id=" + segment + in delete() [all …]
|
D | ContextTest.java | 248 SQLiteDatabase db = mContext.openOrCreateDatabase("test.db", in testMoveDatabaseFrom() local 250 db.execSQL("CREATE TABLE list(item TEXT);"); in testMoveDatabaseFrom() 251 db.execSQL("INSERT INTO list VALUES ('cat')"); in testMoveDatabaseFrom() 252 db.execSQL("INSERT INTO list VALUES ('dog')"); in testMoveDatabaseFrom() 253 db.close(); in testMoveDatabaseFrom() 257 db = deviceContext.openOrCreateDatabase("test.db", in testMoveDatabaseFrom() 259 Cursor c = db.query("list", null, null, null, null, null, null); in testMoveDatabaseFrom() 266 db.execSQL("INSERT INTO list VALUES ('mouse')"); in testMoveDatabaseFrom() 267 db.close(); in testMoveDatabaseFrom() 274 db = mContext.openOrCreateDatabase("test.db", in testMoveDatabaseFrom() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/ |
D | Database.java | 17 package android.inputmethodservice.cts.db; 46 public void onCreate(SQLiteDatabase db) { in Database() 47 db.beginTransaction(); in Database() 50 db.execSQL(table.createTableSql()); in Database() 52 db.setTransactionSuccessful(); in Database() 54 db.endTransaction(); in Database() 59 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in Database()
|
D | Table.java | 17 package android.inputmethodservice.cts.db;
|
D | Entity.java | 17 package android.inputmethodservice.cts.db;
|
D | Field.java | 17 package android.inputmethodservice.cts.db;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResultsProvider.java | 116 public void onCreate(SQLiteDatabase db) { in onCreate() argument 117 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate() 127 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { in onUpgrade() argument 128 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade() 129 onCreate(db); in onUpgrade() 160 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); in query() local 161 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query() 166 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in insert() local 167 long id = db.insert(TABLE_NAME, null, values); in insert() 203 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); in update() local [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 103 final int db = getAlphaScaledBlue(p1) - getAlphaScaledBlue(p2); in checkNeighbors() local 105 if (Math.abs(db) <= threshold && in checkNeighbors() 146 final int db = getAlphaScaledBlue(p1) - getAlphaScaledBlue(p2); in compare() local 148 if (Math.abs(db) > threshold || in compare() 151 System.err.println("fail dr=" + dr+ " dg=" + dg+ " db=" + db); in compare()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | PinnedStackTests.java | 217 Rect db = wmState1.getDefaultPinnedStackBounds(); in testPinnedStackDefaultBounds() local 219 return (db.width() > 0 && db.height() > 0) && in testPinnedStackDefaultBounds() 220 (sb.contains(db)); in testPinnedStackDefaultBounds() 231 Rect db = wmState1.getDefaultPinnedStackBounds(); in testPinnedStackDefaultBounds() local 233 return (db.width() > 0 && db.height() > 0) && in testPinnedStackDefaultBounds() 234 (sb.contains(db)); in testPinnedStackDefaultBounds() 255 Rect db = wmState1.getPinnedStackMovementBounds(); in testPinnedStackMovementBounds() local 257 return (db.width() > 0 && db.height() > 0) && in testPinnedStackMovementBounds() 258 (sb.contains(db)); in testPinnedStackMovementBounds() 269 Rect db = wmState1.getPinnedStackMovementBounds(); in testPinnedStackMovementBounds() local [all …]
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 47 df:22:80:99:30:58:2c:61:85:02:e7:4f:f8:7a:db: 48 1e:bb:07:df:f6:99:db:95:de:71:dc:8e:34:3f:fa: 69 7b:71:e1:4c:ac:bf:08:e3:08:72:e6:fd:8c:db:bd:84:01:ac: 79 03:0d:62:28:8a:93:62:2f:d9:b6:db:a9:30:10:f7:f7:12:85:
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 33 import android.inputmethodservice.cts.db.Entity; 34 import android.inputmethodservice.cts.db.Field; 35 import android.inputmethodservice.cts.db.Table;
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 405 final SQLiteDatabase db = getContext().openOrCreateDatabase("my_db", in testDataWrite() local 408 db.execSQL("DROP TABLE IF EXISTS my_table"); in testDataWrite() 409 db.execSQL("CREATE TABLE my_table(value INTEGER)"); in testDataWrite() 410 db.execSQL("INSERT INTO my_table VALUES (101), (102), (103)"); in testDataWrite() 412 db.close(); in testDataWrite() 423 final SQLiteDatabase db = getContext().openOrCreateDatabase("my_db", in testDataRead() local 426 final Cursor cursor = db.query("my_table", null, null, null, null, null, "value ASC"); in testDataRead() 439 db.close(); in testDataRead()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | NdkApiXmlReport.java | 137 DocumentBuilder db = dbf.newDocumentBuilder(); in main() local 139 dom = db.newDocument(); in main() 238 DocumentBuilder db = dbf.newDocumentBuilder(); in saveToXML() local 240 dom = db.newDocument(); in saveToXML()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CurrentApiHelper.java | 128 DocumentBuilder db = dbf.newDocumentBuilder(); in parseXmlFile() local 129 Document dom = db.parse(apiFile.toURI().toString()); in parseXmlFile()
|
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/ |
D | EventProvider.java | 27 import android.inputmethodservice.cts.db.Database; 28 import android.inputmethodservice.cts.db.Table;
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseCursorTest.java | 474 public Cursor newCursor(SQLiteDatabase db, SQLiteCursorDriver masterQuery, in testRequeryWithAlteredSelectionArgs() 476 return new SQLiteCursor(db, masterQuery, editTable, query) { in testRequeryWithAlteredSelectionArgs()
|
D | DatabaseUtilsTest.java | 146 SQLiteDatabase db = getContext().openOrCreateDatabase(dbName, 0, null); in testCreateDbFromSqlStatements() local 151 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements()
|