/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSQLiteOpenHelper.java | 4 import android.database.sqlite.SQLiteDatabase; 5 import android.database.sqlite.SQLiteDatabase.CursorFactory; 6 import android.database.sqlite.SQLiteOpenHelper; 20 private static SQLiteDatabase database; field in class:ShadowSQLiteOpenHelper 23 if (database != null) { 24 database.close(); 26 database = null; 31 if (database != null) { 32 database.close(); 34 database = null [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SQLiteOpenHelperTest.java | 5 import android.database.sqlite.SQLiteDatabase; 6 import android.database.sqlite.SQLiteDatabase.CursorFactory; 7 import android.database.sqlite.SQLiteOpenHelper; 30 SQLiteDatabase database = helper.getReadableDatabase(); local 31 assertInitialDB(database); 36 SQLiteDatabase database = helper.getReadableDatabase(); local 38 database = helper.getReadableDatabase(); 40 assertSubsequentDB(database); 53 SQLiteDatabase database = helper.getWritableDatabase(); local 54 assertInitialDB(database); 75 SQLiteDatabase database = helper.getWritableDatabase(); local [all...] |
/external/chromium_org/webkit/browser/fileapi/ |
sandbox_prioritized_origin_database_unittest.cc | 23 SandboxPrioritizedOriginDatabase database(dir.path()); 26 EXPECT_TRUE(database.InitializePrimaryOrigin(kOrigin1)); 29 EXPECT_TRUE(database.GetPathForOrigin(kOrigin1, &path)); 30 EXPECT_TRUE(database.GetPathForOrigin(kOrigin2, &path)); 33 EXPECT_TRUE(database.HasOriginPath(kOrigin1)); 34 EXPECT_TRUE(database.GetPathForOrigin(kOrigin1, &path)); 36 EXPECT_TRUE(database.HasOriginPath(kOrigin2)); 37 EXPECT_TRUE(database.GetPathForOrigin(kOrigin2, &path)); 41 database.ListAllOrigins(&origins); 50 database.RemovePathForOrigin(kOrigin1) [all...] |
sandbox_origin_database_unittest.cc | 39 SandboxOriginDatabase database(kFSDir); 42 EXPECT_FALSE(database.HasOriginPath(origin)); 44 EXPECT_FALSE(database.HasOriginPath(origin)); 50 EXPECT_FALSE(database.GetPathForOrigin(std::string(), &path0)); 52 EXPECT_TRUE(database.GetPathForOrigin(origin, &path0)); 53 EXPECT_TRUE(database.HasOriginPath(origin)); 54 EXPECT_TRUE(database.GetPathForOrigin(origin, &path1)); 69 SandboxOriginDatabase database(kFSDir); 73 EXPECT_FALSE(database.HasOriginPath(origin0)); 74 EXPECT_FALSE(database.HasOriginPath(origin1)) [all...] |
sandbox_isolated_origin_database_unittest.cc | 23 SandboxIsolatedOriginDatabase database(kOrigin, dir.path(), 26 EXPECT_TRUE(database.HasOriginPath(kOrigin)); 30 EXPECT_FALSE(database.GetPathForOrigin(std::string(), &path1)); 31 EXPECT_FALSE(database.GetPathForOrigin("foo", &path1)); 33 EXPECT_TRUE(database.HasOriginPath(kOrigin)); 34 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path1)); 35 EXPECT_TRUE(database.GetPathForOrigin(kOrigin, &path2));
|
/external/chromium_org/chrome/browser/resources/sync_file_system_internals/ |
dump_database.html | 3 <button id="refresh-database-dump">Refresh</button> 5 <div id="dump-database-placeholder"></div>
|
/external/chromium_org/content/common/ |
database_messages.h | 13 // Database messages sent from the browser to the renderer. 15 // Notifies the child process of the new database size 18 base::string16 /* the database name */, 19 int64 /* the new database size */) 30 // Asks the child process to close a database immediately 33 base::string16 /* the database name */) 35 // Database messages sent from the renderer to the browser. 64 // Notifies the browser process that a new database has been opened 67 base::string16 /* database name */, 68 base::string16 /* database description */ [all...] |
/external/dropbear/_MTN/ |
options | 0 database "/Users/matt/.monotone/dropbear.db"
|
/frameworks/support/v4/java/android/support/v4/database/ |
package.html | 3 Support android.database classes to assist with development of applications for
|
/frameworks/base/core/java/android/database/ |
DefaultDatabaseErrorHandler.java | 16 package android.database; 21 import android.database.sqlite.SQLiteDatabase; 22 import android.database.sqlite.SQLiteException; 27 * Default class used to define the actions to take when the database corruption is reported 34 * android.database.sqlite.SQLiteDatabase.CursorFactory, DatabaseErrorHandler)}</li> 36 * android.database.sqlite.SQLiteDatabase.CursorFactory, int, DatabaseErrorHandler)}</li> 38 * The specified {@link DatabaseErrorHandler} is used to handle database corruption errors, if they 49 * defines the default method to be invoked when database corruption is detected. 50 * @param dbObj the {@link SQLiteDatabase} object representing the database on which corruption 54 Log.e(TAG, "Corruption reported by sqlite on database: " + dbObj.getPath()) [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
FilterStackSource.java | 20 import android.database.Cursor; 21 import android.database.sqlite.SQLiteDatabase; 22 import android.database.sqlite.SQLiteException; 36 private SQLiteDatabase database = null; field in class:FilterStackSource 45 database = dbHelper.getWritableDatabase(); 47 Log.w(LOGTAG, "could not open database", e); 52 database = null; 61 database.beginTransaction(); 63 ret = (-1 != database.insert(FilterStack.TABLE, null, val)); 64 database.setTransactionSuccessful() [all...] |
/external/chromium_org/chrome/browser/resources/predictors/ |
resource_prefetch_predictor.js | 6 * Requests the database from the backend. 13 * Callback from backend with the database contents. Sets up some globals and 15 * @param {Dictionary} database Information about ResourcePrefetchPredictor 16 * including the database as a flattened list, a boolean indicating if the 19 function updateResourcePrefetchPredictorDb(database) { 20 updateResourcePrefetchPredictorDbView(database); 24 * Truncates the string to keep the database readable. 33 * Updates the table from the database. 34 * @param {Dictionary} database Information about ResourcePrefetchPredictor 35 * including the database as a flattened list, a boolean indicating if th [all...] |
autocomplete_action_predictor.js | 6 * Requests the database from the backend. 13 * Callback from backend with the database contents. Sets up some globals and 15 * @param {Dictionary} database Information about AutocompleteActionPredictor 16 * including the database as a flattened list, a boolean indicating if the 19 function updateAutocompleteActionPredictorDb(database) { 25 updateAutocompleteActionPredictorDbView(database); 28 updateAutocompleteActionPredictorDbView(database); 32 * Updates the table from the database. 33 * @param {Dictionary} database Information about AutocompleteActionPredictor 34 * including the database as a flattened list, a boolean indicating if th [all...] |
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/ |
ChangeVersionWrapper.cpp | 31 #include "modules/webdatabase/Database.h" 46 ASSERT(transaction && transaction->database()); 48 DatabaseBackend* database = transaction->database(); local 51 if (!database->getVersionFromDatabase(actualVersion)) { 52 int sqliteError = database->sqliteDatabase().lastError(); 53 database->reportChangeVersionResult(1, SQLError::UNKNOWN_ERR, sqliteError); 55 sqliteError, database->sqliteDatabase().lastErrorMsg()); 60 database->reportChangeVersionResult(2, SQLError::VERSION_ERR, 0); 61 m_sqlError = SQLError::create(SQLError::VERSION_ERR, "current version of the database and `oldVersion` argument do not match") 72 DatabaseBackend* database = transaction->database(); local [all...] |
DatabaseTracker.cpp | 51 static void databaseClosed(DatabaseBackendBase* database) 55 createDatabaseIdentifierFromSecurityOrigin(database->securityOrigin()), 56 database->stringIdentifier()); 85 void DatabaseTracker::addOpenDatabase(DatabaseBackendBase* database) 91 String originIdentifier = createDatabaseIdentifierFromSecurityOrigin(database->securityOrigin()); 98 String name(database->stringIdentifier()); 105 databaseSet->add(database); 110 static PassOwnPtr<NotifyDatabaseObserverOnCloseTask> create(PassRefPtr<DatabaseBackendBase> database) 112 return adoptPtr(new NotifyDatabaseObserverOnCloseTask(database)); 126 NotifyDatabaseObserverOnCloseTask(PassRefPtr<DatabaseBackendBase> database) [all...] |
/external/chromium_org/third_party/sqlite/src/doc/ |
pager-invariants.txt | 6 *** Definition: A page of the database file is said to be "overwriteable" if 16 the database file at the start of the transaction. 18 (1) A page of the database file is never overwritten unless one of the 28 both the content in the database when the rollback journal was written 29 and the content in the database at the beginning of the current 32 (3) Writes to the database file are an integer multiple of the page size 35 (4) Reads from the database file are either aligned on a page boundary and 37 first 100 bytes of the database file. 39 (5) All writes to the database file are synced prior to the rollback journal 42 (6) If a master journal file is used, then all writes to the database fil [all...] |
/external/chromium_org/android_webview/test/data/device_files/ |
database_access.html | 8 document.title = db ? "Has database" : "No database";
|
/external/chromium_org/webkit/data/dom_storage/ |
README.txt | 1 webcore_test_database.localstorage - This is a sample local storage database 4 to verify that the Chromium backend can read a WebCore generated database.
|
/external/ganymed-ssh2/examples/ |
SimpleVerifier.java | 10 KnownHosts database; field in class:SimpleVerifier 16 public SimpleVerifier(KnownHosts database) 18 if (database == null) 21 this.database = database; 27 int result = database.verifyHostkey(hostname, serverHostKeyAlgorithm, serverHostKey); 42 database.addHostkey(new String[] { hostname }, serverHostKeyAlgorithm, serverHostKey); 49 // Better: ask user and add new key to database.
|
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseErrorHandlerTest.java | 17 package android.database; 20 import android.database.sqlite.SQLiteDatabase; 21 import android.database.sqlite.SQLiteDiskIOException; 22 import android.database.sqlite.SQLiteException; 60 // database file should still exist 67 // write junk into the database file 72 // since the database file is now corrupt, doing any sql on this database connection 90 // database file should be gone 92 // after corruption handler is called, the database file should be free o [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteOpenHelper.java | 17 package android.database.sqlite; 20 import android.database.DatabaseErrorHandler; 21 import android.database.DefaultDatabaseErrorHandler; 22 import android.database.sqlite.SQLiteDatabase.CursorFactory; 26 * A helper class to manage database creation and version management. 29 * optionally {@link #onOpen}, and this class takes care of opening the database 31 * Transactions are used to make sure the database is always in a sensible state. 34 * implementations to defer opening and upgrading the database until first use, 35 * to avoid blocking application startup with long-running database upgrades. 46 // When true, getReadableDatabase returns a read-only database if it is just being opened [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
SQLiteOpenHelperTest.java | 17 package android.database.sqlite.cts; 20 import android.database.Cursor; 21 import android.database.sqlite.SQLiteCursor; 22 import android.database.sqlite.SQLiteCursorDriver; 23 import android.database.sqlite.SQLiteDatabase; 24 import android.database.sqlite.SQLiteOpenHelper; 25 import android.database.sqlite.SQLiteQuery; 26 import android.database.sqlite.SQLiteDatabase.CursorFactory; 65 SQLiteDatabase database = null; local 68 database = mOpenHelper.getReadableDatabase() [all...] |
/frameworks/base/core/jni/ |
android_database_SQLiteCommon.cpp | 52 * should only be used when the database connection is not available because the 66 exceptionClass = "android/database/sqlite/SQLiteDiskIOException"; 70 exceptionClass = "android/database/sqlite/SQLiteDatabaseCorruptException"; 73 exceptionClass = "android/database/sqlite/SQLiteConstraintException"; 76 exceptionClass = "android/database/sqlite/SQLiteAbortException"; 79 exceptionClass = "android/database/sqlite/SQLiteDoneException"; 83 exceptionClass = "android/database/sqlite/SQLiteFullException"; 86 exceptionClass = "android/database/sqlite/SQLiteMisuseException"; 89 exceptionClass = "android/database/sqlite/SQLiteAccessPermException"; 92 exceptionClass = "android/database/sqlite/SQLiteDatabaseLockedException" [all...] |
/external/chromium_org/sql/ |
recovery.h | 19 // database and populate it with the recovered contents of the 20 // original database. If recovery is successful, the recovered 21 // database is backed up over the original database. If recovery is 22 // not successful, the original database is razed. In either case, 31 // // database. 50 // // Commit the recovered data to the original database file. 71 // Begin the recovery process by opening a temporary database handle 72 // and attach the existing database to it at "corrupt". To prevent 86 // Mark recovery completed by replicating the recovery database ove [all...] |
/external/chromium_org/third_party/WebKit/ManualTests/blackberry/ |
http-cookie-database-update.php | 3 echo 'Test updating of cookies\' database. It is for https://bugs.webkit.org/show_bug.cgi?id=83760.<br>'; 4 echo 'To run this test, http-cookie-database-set.php must be served over http and http-cookie-database-update.php must be served over https.<br>'; 6 echo '1. Load http-cookie-database-set.php. (If you load http-cookie-database-update.php directly in this step, please clear cookies and load http-cookie-database-set.php to finish this step.<br>'; 7 echo '2. Restart the browser and load http-cookie-database-set.php again to see the result.<br>';
|