Searched refs:db (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/base/awt/java/awt/image/
H A DAwtImageBackdoorAccessorImpl.java69 public Object getData(DataBuffer db) { argument
70 if (db instanceof DataBufferByte) {
71 return ((DataBufferByte)db).getData();
72 } else if (db instanceof DataBufferUShort) {
73 return ((DataBufferUShort)db).getData();
74 } else if (db instanceof DataBufferShort) {
75 return ((DataBufferShort)db).getData();
76 } else if (db instanceof DataBufferInt) {
77 return ((DataBufferInt)db).getData();
78 } else if (db instanceo
90 getDataInt(DataBuffer db) argument
98 getDataByte(DataBuffer db) argument
106 getDataShort(DataBuffer db) argument
114 getDataUShort(DataBuffer db) argument
122 getDataDouble(DataBuffer db) argument
130 getDataFloat(DataBuffer db) argument
138 addDataBufferListener(DataBuffer db, DataBufferListener listener) argument
143 removeDataBufferListener(DataBuffer db) argument
148 validate(DataBuffer db) argument
153 releaseData(DataBuffer db) argument
[all...]
/frameworks/base/awt/org/apache/harmony/awt/gl/
H A DAwtImageBackdoorAccessor.java53 public abstract Object getData(DataBuffer db); argument
54 public abstract int[] getDataInt(DataBuffer db); argument
55 public abstract byte[] getDataByte(DataBuffer db); argument
56 public abstract short[] getDataShort(DataBuffer db); argument
57 public abstract short[] getDataUShort(DataBuffer db); argument
58 public abstract double[] getDataDouble(DataBuffer db); argument
59 public abstract float[] getDataFloat(DataBuffer db); argument
60 public abstract void releaseData(DataBuffer db); argument
62 public abstract void addDataBufferListener(DataBuffer db, DataBufferListener listener); argument
63 public abstract void removeDataBufferListener(DataBuffer db); argument
64 validate(DataBuffer db) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteOpenHelper.java91 SQLiteDatabase db = null;
96 db = SQLiteDatabase.create(null);
98 db = mContext.openOrCreateDatabase(mName, 0, mFactory);
101 int version = db.getVersion();
103 db.beginTransaction();
106 onCreate(db);
108 onUpgrade(db, version, mNewVersion);
110 db.setVersion(mNewVersion);
111 db.setTransactionSuccessful();
113 db
202 onCreate(SQLiteDatabase db) argument
219 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
228 onOpen(SQLiteDatabase db) argument
[all...]
H A DSQLiteCompiledSql.java56 /* package */ SQLiteCompiledSql(SQLiteDatabase db, String sql) { argument
57 if (!db.isOpen()) {
58 throw new IllegalStateException("database " + db.getPath() + " already closed");
60 mDatabase = db;
63 this.nHandle = db.mNativeHandle;
H A DSQLiteContentHelper.java38 * @param db Handle to a readable database.
46 public static AssetFileDescriptor getBlobColumnAsAssetFile(SQLiteDatabase db, String sql, argument
49 MemoryFile file = simpleQueryForBlobMemoryFile(db, sql, selectionArgs);
69 private static MemoryFile simpleQueryForBlobMemoryFile(SQLiteDatabase db, String sql, argument
71 Cursor cursor = db.rawQuery(sql, selectionArgs);
H A DSQLiteProgram.java58 /* package */ SQLiteProgram(SQLiteDatabase db, String sql) { argument
59 mDatabase = db;
61 db.acquireReference();
62 db.addSQLiteClosable(this);
63 this.nHandle = db.mNativeHandle;
70 mCompiledSql = new SQLiteCompiledSql(db, sql);
77 mCompiledSql = db.getCompiledStatementForSql(sql);
80 mCompiledSql = new SQLiteCompiledSql(db, sql);
86 db.addToCompiledQueries(sql, mCompiledSql);
100 mCompiledSql = new SQLiteCompiledSql(db, sq
[all...]
H A DSQLiteDirectCursorDriver.java34 public SQLiteDirectCursorDriver(SQLiteDatabase db, String sql, String editTable) { argument
35 mDatabase = db;
H A DSQLiteStatement.java32 * @param db
35 /* package */ SQLiteStatement(SQLiteDatabase db, String sql) { argument
36 super(db, sql);
H A DSQLiteQuery.java41 * @param db The database that this query object is associated with
45 /* package */ SQLiteQuery(SQLiteDatabase db, String query, int offsetIndex, String[] bindArgs) { argument
46 super(db, query);
H A DSQLiteCursor.java200 * @param db a reference to a Database object that is already constructed
206 public SQLiteCursor(SQLiteDatabase db, SQLiteCursorDriver driver, argument
211 mDatabase = db;
218 db.lock();
239 db.unlock();
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java61 private static final String DATABASE_NAME = "settings.db";
94 private void createSecureTable(SQLiteDatabase db) { argument
95 db.execSQL("CREATE TABLE secure (" +
100 db.execSQL("CREATE INDEX secureIndex1 ON secure (name);");
104 public void onCreate(SQLiteDatabase db) { argument
105 db.execSQL("CREATE TABLE system (" +
110 db.execSQL("CREATE INDEX systemIndex1 ON system (name);");
112 createSecureTable(db);
114 db.execSQL("CREATE TABLE bluetooth_devices (" +
122 db
145 onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) argument
741 moveFromSystemToSecure(SQLiteDatabase db, String [] settingsToMove) argument
773 upgradeLockPatternLocation(SQLiteDatabase db) argument
797 upgradeScreenTimeoutFromNever(SQLiteDatabase db) argument
827 loadBookmarks(SQLiteDatabase db, int startingIndex) argument
903 loadBookmarks(SQLiteDatabase db) argument
913 loadVolumeLevels(SQLiteDatabase db) argument
960 loadVibrateSetting(SQLiteDatabase db, boolean deleteOld) argument
982 loadSettings(SQLiteDatabase db) argument
987 loadSystemSettings(SQLiteDatabase db) argument
1092 loadSecureSettings(SQLiteDatabase db) argument
[all...]
H A DSettingsProvider.java269 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
272 cursor = db.query(table, COLUMN_VALUE, "name=?", new String[]{key},
291 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
302 Cursor cursor = db.rawQuery("PRAGMA table_info(favorites);", null);
315 Cursor ret = qb.query(db, select, args.where, args.args, null, null, sort);
341 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
342 db.beginTransaction();
346 if (db.insert(args.table, null, values[i]) < 0) return 0;
350 db.setTransactionSuccessful();
352 db
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DSyncStateContentProviderHelper.java58 public void createDatabase(SQLiteDatabase db) { argument
59 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_TABLE);
60 db.execSQL("CREATE TABLE " + SYNC_STATE_TABLE + " ("
68 db.execSQL("DROP TABLE IF EXISTS " + SYNC_STATE_META_TABLE);
69 db.execSQL("CREATE TABLE " + SYNC_STATE_META_TABLE + " ("
73 db.insert(SYNC_STATE_META_TABLE, SYNC_STATE_META_VERSION_COLUMN, values);
76 public void onDatabaseOpened(SQLiteDatabase db) { argument
77 long version = DatabaseUtils.longForQuery(db,
81 createDatabase(db);
85 public Cursor query(SQLiteDatabase db, Strin argument
91 insert(SQLiteDatabase db, ContentValues values) argument
95 delete(SQLiteDatabase db, String userWhere, String[] whereArgs) argument
99 update(SQLiteDatabase db, ContentValues values, String selection, String[] selectionArgs) argument
104 update(SQLiteDatabase db, long rowId, Object data) argument
117 onAccountsChanged(SQLiteDatabase db, Account[] accounts) argument
[all...]
H A DSelectionBuilder.java99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { argument
100 return query(db, table, columns, null, null, orderBy, null);
106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, argument
108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having,
115 public int update(SQLiteDatabase db, String table, ContentValues values) { argument
116 return db.update(table, values, getSelection(), getSelectionArgs());
122 public int delete(SQLiteDatabase db, String table) { argument
123 return db.delete(table, getSelection(), getSelectionArgs());
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java40 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/test-runner/src/android/test/
H A DDatabaseTestUtils.java34 * @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/services/java/com/android/server/
H A DBootReceiver.java98 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE);
110 if (recovery != null && db != null) {
111 db.addText("SYSTEM_RECOVERY_LOG", headers + recovery);
117 if (db != null) db.addText("SYSTEM_BOOT", headers);
120 addFileToDropBox(db, prefs, headers, "/proc/last_kmsg",
122 addFileToDropBox(db, prefs, headers, "/cache/recovery/log",
124 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console",
126 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads",
129 if (db !
156 addFileToDropBox( DropBoxManager db, SharedPreferences prefs, String headers, String filename, int maxSize, String tag) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DLocalProvider.java46 private static final String DATABASE_NAME = "local.db";
54 public void onCreate(SQLiteDatabase db) { argument
55 db.execSQL("CREATE TABLE data (" +
61 db.execSQL("INSERT INTO data (text, integer) VALUES ('first data', 100);");
65 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
69 db.execSQL("DROP TABLE IF EXISTS data");
70 onCreate(db);
104 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
105 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs,
135 SQLiteDatabase db
[all...]
/frameworks/base/core/java/android/accounts/
H A DAccountManagerService.java89 private static final String DATABASE_NAME = "accounts.db";
235 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
236 Cursor cursor = db.query(TABLE_ACCOUNTS,
248 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null);
262 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
263 Cursor cursor = db.query(TABLE_ACCOUNTS,
273 db.delete(TABLE_ACCOUNTS, ACCOUNTS_ID + "=" + accountId, null);
301 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
302 Cursor cursor = db.query(TABLE_ACCOUNTS, new String[]{ACCOUNTS_PASSWORD},
332 SQLiteDatabase db
448 insertExtra(SQLiteDatabase db, long accountId, String key, String value) argument
595 invalidateAuthToken(SQLiteDatabase db, String accountType, String authToken) argument
1204 getAccountId(SQLiteDatabase db, Account account) argument
1217 getExtrasId(SQLiteDatabase db, long accountId, String key) argument
1496 onCreate(SQLiteDatabase db) argument
1527 createAccountsDeletionTrigger(SQLiteDatabase db) argument
1540 createGrantsTable(SQLiteDatabase db) argument
1550 onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) argument
1574 onOpen(SQLiteDatabase db) argument
[all...]
/frameworks/base/core/java/android/content/
H A DSearchRecentSuggestionsProvider.java78 private static final String sDatabaseName = "suggestions.db";
131 public void onCreate(SQLiteDatabase db) { argument
142 db.execSQL(builder.toString());
146 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
149 db.execSQL("DROP TABLE IF EXISTS suggestions");
150 onCreate(db);
214 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
224 count = db.delete(sSuggestions, selection, selectionArgs);
261 SQLiteDatabase db = mOpenHelper.getWritableDatabase();
273 rowID = db
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DMemoryFileProvider.java68 private static final String DATABASE_NAME = "local.db";
76 public void onCreate(SQLiteDatabase db) { argument
77 db.execSQL("CREATE TABLE data (" +
87 db.insert("data", null, values);
91 public void onUpgrade(SQLiteDatabase db, int oldVersion, int currentVersion) { argument
95 db.execSQL("DROP TABLE IF EXISTS data");
96 onCreate(db);
168 SQLiteDatabase db = mOpenHelper.getReadableDatabase();
169 MemoryFile file = simpleQueryForBlobMemoryFile(db, sql);
180 private MemoryFile simpleQueryForBlobMemoryFile(SQLiteDatabase db, Strin argument
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DDatabaseSessionCache.java59 public static final String DATABASE_NAME = "ssl_sessions.db";
154 // We want a single db per VM.
293 public void onCreate(SQLiteDatabase db) { argument
294 db.execSQL("CREATE TABLE " + SSL_CACHE_TABLE + " (" +
300 db.execSQL("CREATE INDEX ssl_sessions_idx1 ON ssl_sessions (" +
305 public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { argument
306 db.execSQL("DROP TABLE IF EXISTS " + SSL_CACHE_TABLE );
307 onCreate(db);
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java602 * @param db the database the table is in
606 public static long queryNumEntries(SQLiteDatabase db, String table) { argument
607 Cursor cursor = db.query(table, countProjection,
618 * Utility method to run the query on the db and return the value in the
621 public static long longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { argument
622 SQLiteStatement prog = db.compileStatement(query);
646 * Utility method to run the query on the db and return the value in the
649 public static String stringForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { argument
650 SQLiteStatement prog = db.compileStatement(query);
793 * @param db th
796 InsertHelper(SQLiteDatabase db, String tableName) argument
[all...]
/frameworks/base/awt/com/android/internal/awt/
H A DAndroidJavaBlitter.java390 int sa, sr, sg, sb, da, dr, dg, db;
412 db = dstRGB & 0xff;
417 db = mulLUT[da][db] & 0xff;
477 db = (mulLUT[sb][Fs] & 0xff) + (mulLUT[db][Fd] & 0xff);
485 db = divLUT[da][db] & 0xff;
491 dstRGB = (da << 24) | (dr << 16) | (dg << 8) | db;
/frameworks/base/awt/java/awt/
H A DGradientPaintContext.java143 double db = ((c2 & 0xFF) - cb) * k;
155 cb += db;

Completed in 428 milliseconds

12