/frameworks/ex/common/java/com/android/common/content/ |
H A D | SyncStateContentProviderHelper.java | 54 public void createDatabase(SQLiteDatabase db) { argument 55 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE); 56 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " (" 64 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE); 65 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " (" 69 db.insert(SYNC_STATE_META_TABLE, SYNC_STATE_META_VERSION_COLUMN, values); 72 public void onDatabaseOpened(SQLiteDatabase db) { argument 73 long version = DatabaseUtils.longForQuery(db, 77 createDatabase(db); 81 public Cursor query(SQLiteDatabase db, Strin argument 87 insert(SQLiteDatabase db, ContentValues values) argument 91 delete(SQLiteDatabase db, String userWhere, String[] whereArgs) argument 95 update(SQLiteDatabase db, ContentValues values, String selection, String[] selectionArgs) argument 100 update(SQLiteDatabase db, long rowId, Object data) argument 113 onAccountsChanged(SQLiteDatabase db, Account[] accounts) argument [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BordeauxSessionStorage.java | 70 public void onCreate(SQLiteDatabase db) { argument 71 db.execSQL(DATABASE_CREATE); 75 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument 79 db.execSQL("DROP TABLE IF EXISTS " + SESSION_TABLE); 80 onCreate(db);
|
/frameworks/native/opengl/libs/ETC1/ |
H A D | etc1.cpp | 395 int db = b52 - b51; local 398 && inRange4bitSigned(db); 402 b2 = convert5To8(b51 + db); 404 | ((7 & dg) << 16) | (b51 << 11) | ((7 & db) << 8) | 2;
|
/frameworks/native/services/sensorservice/ |
H A D | Fusion.cpp | 438 const vec3_t db(K[1]*e); 442 x1 += db;
|
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/ |
H A D | ColladaParser.java | 84 DocumentBuilder db = dbf.newDocumentBuilder();
85 mDom = db.parse(is);
|
/frameworks/base/services/java/com/android/server/ |
H A D | BatteryService.java | 506 DropBoxManager db = (DropBoxManager) mContext.getSystemService(Context.DROPBOX_SERVICE); 507 if (db == null || !db.isTagEnabled("BATTERY_DISCHARGE_INFO")) return; 519 db.addFile("BATTERY_DISCHARGE_INFO", dumpFile, DropBoxManager.IS_TEXT);
|
H A D | BootReceiver.java | 86 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); 100 if (recovery != null && db != null) { 101 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery); 107 if (db != null) db.addText("SYSTEM_BOOT", headers); 110 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg", 112 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", 114 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", 116 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", 119 if (db ! 146 addFileToDropBox( DropBoxManager db, SharedPreferences prefs, String headers, String filename, int maxSize, String tag) argument [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | DatabaseTestUtils.java | 34 * @param expectedDb the db that is known to have the correct schema 35 * @param db the db whose schema should be checked 37 public static void assertSchemaEquals(SQLiteDatabase expectedDb, SQLiteDatabase db) { argument 39 Set<String> schema = getSchemaSet(db); 43 private static Set<String> getSchemaSet(SQLiteDatabase db) { argument 46 Cursor entityCursor = db.rawQuery("SELECT sql FROM sqlite_master", null);
|
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
H A D | SummarizerDBHelper.java | 53 private static final void createTables(SQLiteDatabase db) { argument 60 db.execSQL(cmd); 64 private static final void dropTables(SQLiteDatabase db) { argument 66 db.execSQL("DROP TABLE IF EXISTS " + tableName); 76 public void onCreate(SQLiteDatabase db) { argument 77 dropTables(db); 78 createTables(db); 82 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument 83 /** NOOP for now, because we will never upgrade the db */ 86 public void reset(SQLiteDatabase db) { argument [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerProvider.java | 40 private static final String DB_NAME = "tracking.db"; 56 public void onCreate(SQLiteDatabase db) { argument 62 db.execSQL(queryBuilder.toString()); 63 db.setVersion(DB_VERSION); 67 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument 72 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); 73 onCreate(db); 87 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); 88 int result = db.delete(TABLE_NAME, selection, selectionArgs); 100 SQLiteDatabase db [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | DatabaseHelper.java | 65 private static final String DATABASE_NAME = "settings.db"; 96 // The owner gets the unadorned db name; 119 private void createSecureTable(SQLiteDatabase db) { argument 120 db.execSQL("CREATE TABLE secure (" + 125 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);"); 128 private void createGlobalTable(SQLiteDatabase db) { argument 129 db.execSQL("CREATE TABLE global (" + 134 db.execSQL("CREATE INDEX globalIndex1 ON global (name);"); 138 public void onCreate(SQLiteDatabase db) { argument 139 db 184 onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) argument 1529 moveSettingsToNewTable(SQLiteDatabase db, String sourceTable, String destTable, String[] settingsToMove, boolean doIgnore) argument 1567 movePrefixedSettingsToNewTable( SQLiteDatabase db, String sourceTable, String destTable, String[] prefixesToMove) argument 1601 upgradeLockPatternLocation(SQLiteDatabase db) argument 1625 upgradeScreenTimeoutFromNever(SQLiteDatabase db) argument 1649 upgradeVibrateSettingFromNone(SQLiteDatabase db) argument 1671 upgradeScreenTimeout(SQLiteDatabase db) argument 1688 upgradeAutoBrightness(SQLiteDatabase db) argument 1707 loadBookmarks(SQLiteDatabase db) argument 1794 loadVolumeLevels(SQLiteDatabase db) argument 1849 loadVibrateSetting(SQLiteDatabase db, boolean deleteOld) argument 1872 loadVibrateWhenRingingSetting(SQLiteDatabase db) argument 1890 loadSettings(SQLiteDatabase db) argument 1899 loadSystemSettings(SQLiteDatabase db) argument 1968 loadSecureSettings(SQLiteDatabase db) argument 2065 loadGlobalSettings(SQLiteDatabase db) argument 2235 getIntValueFromSystem(SQLiteDatabase db, String name, int defaultValue) argument 2239 getIntValueFromTable(SQLiteDatabase db, String table, String name, int defaultValue) argument 2245 getStringValueFromTable(SQLiteDatabase db, String table, String name, String defaultValue) argument [all...] |
H A D | SettingsProvider.java | 347 // the db file itself will be deleted automatically, but we need to tear down 364 Slog.i(TAG, "Installing settings db helper and caches for user " + userHandle); 381 // Initialization of the db *outside* the locks. It's possible that racing 384 // manages concurrency itself, and it's important that we not run the db 386 SQLiteDatabase db = dbhelper.getWritableDatabase(); 390 // separately, and of course it has to run after the db file 394 SettingsFileObserver observer = new SettingsFileObserver(userHandle, db.getPath()); 435 SQLiteDatabase db = dbHelper.getReadableDatabase(); 436 Cursor c = db.query( 580 // fast path: owner db [all...] |
/frameworks/base/packages/WAPPushManager/src/com/android/smspush/ |
H A D | WapPushManager.java | 53 private static final String DATABASE_NAME = "wappush.db"; 73 public void onCreate(SQLiteDatabase db) { argument 74 if (LOCAL_LOGV) Log.v(LOG_TAG, "db onCreate."); 88 db.execSQL(sql); 92 public void onUpgrade(SQLiteDatabase db, argument 96 db.execSQL( 98 onCreate(db); 118 protected queryData queryLastApp(SQLiteDatabase db, argument 127 Cursor cur = db.rawQuery(sql, null); 182 SQLiteDatabase db [all...] |
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDatabase.java | 198 SQLiteDatabase db = null; 201 db = context.openOrCreateDatabase("device-properties", Context.MODE_PRIVATE, null); 202 if (db != null) { 203 c = db.query("properties", new String[] { "_id", "code", "value" }, 219 if (db != null) db.close();
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | LocalProvider.java | 45 private static final String DATABASE_NAME = "local.db"; 53 public void onCreate(SQLiteDatabase db) { argument 54 db.execSQL("CREATE TABLE data (" + 60 db.execSQL("INSERT INTO data (text, integer) VALUES ('first data', 100);"); 64 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument 68 db.execSQL("DROP TABLE IF EXISTS data"); 69 onCreate(db); 103 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); 104 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, 134 SQLiteDatabase db [all...] |
/frameworks/base/core/tests/coretests/src/android/content/ |
H A D | MemoryFileProvider.java | 63 private static final String DATABASE_NAME = "local.db"; 71 public void onCreate(SQLiteDatabase db) { argument 72 db.execSQL("CREATE TABLE data (" + 82 db.insert("data", null, values); 86 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument 90 db.execSQL("DROP TABLE IF EXISTS data"); 91 onCreate(db); 158 SQLiteDatabase db = mOpenHelper.getReadableDatabase(); 159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseCursorTest.java | 55 mDatabaseFile = new File(dbDir, "database_test.db"); 447 SQLiteDatabase db, SQLiteCursorDriver masterQuery, String editTable, 449 return new SQLiteCursor(db, masterQuery, editTable, query) {
|
H A D | DatabaseErrorHandlerTest.java | 35 private static final String DB_NAME = "database_test.db"; 79 * this test used to produce a corrupted db. but with new sqlite it instead reports 81 * need to figure out how to cause corruption in db 94 SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, 96 assertTrue(db.isDatabaseIntegrityOk());
|
H A D | DatabaseStatementTest.java | 45 mDatabaseFile = new File(dbDir, "database_test.db"); 249 public StatementTestThread(SQLiteDatabase db, SQLiteStatement statement) { argument 251 mDatabase = db;
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManagerService.java | 94 private static final String DATABASE_NAME = "accounts.db"; 282 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); 283 final Cursor cursor = db.query(TABLE_GRANTS, 295 db.delete(TABLE_GRANTS, GRANTS_GRANTEE_UID + "=?", 333 final SQLiteDatabase db = accounts.openHelper.getWritableDatabase(); 335 Cursor cursor = db.query(TABLE_ACCOUNTS, 350 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null); 452 final SQLiteDatabase db = accounts.openHelper.getReadableDatabase(); 453 Cursor cursor = db.query(TABLE_ACCOUNTS, new String[]{ACCOUNTS_PASSWORD}, 536 final SQLiteDatabase db 578 insertExtraLocked(SQLiteDatabase db, long accountId, String key, String value) argument 778 invalidateAuthTokenLocked(UserAccounts accounts, SQLiteDatabase db, String accountType, String authToken) argument 1622 getAccountIdLocked(SQLiteDatabase db, Account account) argument 1635 getExtrasIdLocked(SQLiteDatabase db, long accountId, String key) argument 1963 onCreate(SQLiteDatabase db) argument 1994 createAccountsDeletionTrigger(SQLiteDatabase db) argument 2007 createGrantsTable(SQLiteDatabase db) argument 2017 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument 2041 onOpen(SQLiteDatabase db) argument 2454 writeUserDataIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2468 writeAuthTokenIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2509 readUserDataForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument 2529 readAuthTokensForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ContextImpl.java | 854 SQLiteDatabase db = SQLiteDatabase.openDatabase(f.getPath(), factory, flags, errorHandler); 856 return db;
|
/frameworks/base/core/java/android/content/ |
H A D | SearchRecentSuggestionsProvider.java | 84 private static final String sDatabaseName = "suggestions.db"; 137 public void onCreate(SQLiteDatabase db) { argument 148 db.execSQL(builder.toString()); 152 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument 155 db.execSQL("DROP TABLE IF EXISTS suggestions"); 156 onCreate(db); 226 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); 236 count = db.delete(sSuggestions, selection, selectionArgs); 273 SQLiteDatabase db = mOpenHelper.getWritableDatabase(); 285 rowID = db [all...] |
H A D | SyncStorageEngine.java | 1853 File file = mContext.getDatabasePath("syncmanager.db"); 1858 SQLiteDatabase db = null; 1860 db = SQLiteDatabase.openDatabase(path, null, 1865 if (db != null) { 1866 final boolean hasType = db.getVersion() >= 11; 1869 if (DEBUG_FILE) Log.v(TAG, "Reading legacy sync accounts db"); 1893 Cursor c = qb.query(db, null, null, null, null, null, null); 1942 c = qb.query(db, null, null, null, null, null, null); 1966 db.close();
|
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 753 * @param db the database the table is in 757 public static long queryNumEntries(SQLiteDatabase db, String table) { argument 758 return queryNumEntries(db, table, null, null); 763 * @param db the database the table is in 770 public static long queryNumEntries(SQLiteDatabase db, String table, String selection) { argument 771 return queryNumEntries(db, table, selection, null); 776 * @param db the database the table is in 787 public static long queryNumEntries(SQLiteDatabase db, String table, String selection, argument 790 return longForQuery(db, "select count(*) from " + table + s, 795 * Utility method to run the query on the db an 798 longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) argument 820 stringForQuery(SQLiteDatabase db, String query, String[] selectionArgs) argument 844 blobFileDescriptorForQuery(SQLiteDatabase db, String query, String[] selectionArgs) argument 1001 InsertHelper(SQLiteDatabase db, String tableName) argument [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteCursor.java | 70 * @param db a reference to a Database object that is already constructed 78 public SQLiteCursor(SQLiteDatabase db, SQLiteCursorDriver driver, argument
|