Home
last modified time | relevance | path

Searched refs:DatabaseUtils (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/core/java/android/provider/
DCalendarContract.java34 import android.database.DatabaseUtils;
441 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
442 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
444 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, _SYNC_ID); in getEntityAndIncrementCursor()
445 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
447 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC1); in getEntityAndIncrementCursor()
448 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC2); in getEntityAndIncrementCursor()
449 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC3); in getEntityAndIncrementCursor()
450 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC4); in getEntityAndIncrementCursor()
451 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC5); in getEntityAndIncrementCursor()
[all …]
DContactsContract.java34 import android.database.DatabaseUtils;
2847 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
2848 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
2849 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, DATA_SET); in getEntityAndIncrementCursor()
2850 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, _ID); in getEntityAndIncrementCursor()
2851 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
2852 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, VERSION); in getEntityAndIncrementCursor()
2853 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SOURCE_ID); in getEntityAndIncrementCursor()
2854 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC1); in getEntityAndIncrementCursor()
2855 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC2); in getEntityAndIncrementCursor()
[all …]
DBrowser.java25 import android.database.DatabaseUtils;
277 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
280 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
284 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
288 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
291 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
294 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
DMediaStore.java26 import android.database.DatabaseUtils;
1226 String key = DatabaseUtils.getCollationKey(name); in keyFor()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java19 import static android.database.DatabaseUtils.InsertHelper.TABLE_INFO_PRAGMA_COLUMNNAME_INDEX;
20 import static android.database.DatabaseUtils.InsertHelper.TABLE_INFO_PRAGMA_DEFAULT_INDEX;
488 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
490 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
492 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
494 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
497 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
499 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
502 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
504 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
[all …]
DDatabaseCursorTest.java25 import android.database.DatabaseUtils;
118 DatabaseUtils.cursorRowToContentValues(c, cv); in testBlob()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteStatement.java19 import android.database.DatabaseUtils;
121 DatabaseUtils.STATEMENT_UPDATE) || in saveSqlAsLastSqlStatement()
123 DatabaseUtils.STATEMENT_BEGIN) { in saveSqlAsLastSqlStatement()
237 if ((mStatementType & SQLiteProgram.STATEMENT_TYPE_MASK) == DatabaseUtils.STATEMENT_BEGIN) { in acquireAndLock()
244 DatabaseUtils.STATEMENT_UPDATE) { in acquireAndLock()
279 DatabaseUtils.STATEMENT_COMMIT || in releaseAndUnlock()
281 DatabaseUtils.STATEMENT_ABORT) { in releaseAndUnlock()
DSQLiteProgram.java19 import android.database.DatabaseUtils;
100 int n = DatabaseUtils.getSqlStatementType(mSql); in SQLiteProgram()
102 case DatabaseUtils.STATEMENT_UPDATE: in SQLiteProgram()
105 case DatabaseUtils.STATEMENT_SELECT: in SQLiteProgram()
108 case DatabaseUtils.STATEMENT_BEGIN: in SQLiteProgram()
109 case DatabaseUtils.STATEMENT_COMMIT: in SQLiteProgram()
110 case DatabaseUtils.STATEMENT_ABORT: in SQLiteProgram()
DSQLiteDatabase.java24 import android.database.DatabaseUtils;
1064 String s = DatabaseUtils.stringForQuery(this, "PRAGMA journal_mode=" + mode, null);
1243 return ((Long) DatabaseUtils.longForQuery(this, "PRAGMA user_version;", null)).intValue();
1261 long pageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count;", null);
1279 long newPageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count = " + numPages,
1290 return DatabaseUtils.longForQuery(this, "PRAGMA page_size;", null);
1920 if (DatabaseUtils.getSqlStatementType(sql) == DatabaseUtils.STATEMENT_ATTACH) { in executeSql()
2512 long pageCount = DatabaseUtils.longForQuery(db, "PRAGMA " + p.first in getDbStats()
DSQLiteQueryBuilder.java20 import android.database.DatabaseUtils;
119 DatabaseUtils.appendEscapedSQLString(mWhereClause, inWhere); in appendWhereEscapeString()
/frameworks/base/core/java/android/database/
DBulkCursorNative.java154 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
192 DatabaseUtils.readExceptionFromParcel(reply); in getWindow()
213 DatabaseUtils.readExceptionFromParcel(reply); in onMove()
228 DatabaseUtils.readExceptionFromParcel(reply); in count()
251 DatabaseUtils.readExceptionFromParcel(reply); in getColumnNames()
274 DatabaseUtils.readExceptionFromParcel(reply); in deactivate()
289 DatabaseUtils.readExceptionFromParcel(reply); in close()
304 DatabaseUtils.readExceptionFromParcel(reply); in requery()
327 DatabaseUtils.readExceptionFromParcel(reply); in getWantsAllOnMoveCalls()
345 DatabaseUtils.readExceptionFromParcel(reply); in getExtras()
[all …]
DDatabaseUtils.java47 public class DatabaseUtils { class
135 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionFromParcel()
146 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionWithFileNotFoundExceptionFromParcel()
158 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionWithOperationApplicationExceptionFromParcel()
288 DatabaseUtils.appendEscapedSQLString(escaper, value); in sqlEscapeString()
977 DatabaseUtils.bindObjectToProgram(stmt, i, e.getValue()); in insertInternal()
DMatrixCursor.java282 return DatabaseUtils.getTypeOfObject(get(column)); in getType()
/frameworks/base/core/java/android/content/
DContentProviderNative.java25 import android.database.DatabaseUtils;
300 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
358 DatabaseUtils.readExceptionFromParcel(reply); in query()
394 DatabaseUtils.readExceptionFromParcel(reply); in getType()
415 DatabaseUtils.readExceptionFromParcel(reply); in insert()
435 DatabaseUtils.readExceptionFromParcel(reply); in bulkInsert()
456 DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(reply); in applyBatch()
479 DatabaseUtils.readExceptionFromParcel(reply); in delete()
502 DatabaseUtils.readExceptionFromParcel(reply); in update()
523 DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(reply); in openFile()
[all …]
/frameworks/ex/common/java/com/android/common/content/
DSyncStateContentProviderHelper.java22 import android.database.DatabaseUtils;
73 long version = DatabaseUtils.longForQuery(db, in onDatabaseOpened()
101 if (DatabaseUtils.longForQuery(db, QUERY_COUNT_SYNC_STATE_ROWS, in update()
/frameworks/base/test-runner/src/android/test/
DProviderTestCase.java24 import android.database.DatabaseUtils;
108 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
DProviderTestCase2.java25 import android.database.DatabaseUtils;
219 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteDatabaseTest.java23 import android.database.DatabaseUtils;
407 DatabaseUtils.longForQuery(db, "select count(*) from " + this.table, null); in run()
712 assertEquals(999, DatabaseUtils.longForQuery(getDb(), in runExecSqlToStartAndEndTransaction()
765 assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay1()
786 assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay1()
823 assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay2()
843 assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay2()
879 assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay3()
892 assertEquals(1, DatabaseUtils.longForQuery(mDatabase, in testTransactionAndWalInterplay3()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java20 import android.database.DatabaseUtils;
159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null); in getBlobColumnAsFile()
/frameworks/base/core/java/android/webkit/
DWebViewDatabase.java29 import android.database.DatabaseUtils;
163 private static DatabaseUtils.InsertHelper mCacheInserter;
299 new DatabaseUtils.InsertHelper(mCacheDatabase, in initCacheDatabase()
/frameworks/base/docs/html/sdk/api_diff/8/
DmissingSinces.txt81 NO DOC BLOCK: android.database.DatabaseUtils Method cursorDoubleToContentValuesIfPresent(android.da…
82 NO DOC BLOCK: android.database.DatabaseUtils Method cursorFloatToContentValuesIfPresent(android.dat…
83 NO DOC BLOCK: android.database.DatabaseUtils Method cursorIntToContentValuesIfPresent(android.datab…
84 NO DOC BLOCK: android.database.DatabaseUtils Method cursorLongToContentValuesIfPresent(android.data…
85 NO DOC BLOCK: android.database.DatabaseUtils Method cursorShortToContentValuesIfPresent(android.dat…
86 NO DOC BLOCK: android.database.DatabaseUtils Method cursorStringToContentValuesIfPresent(android.da…
/frameworks/base/core/java/com/google/android/mms/pdu/
DPduPersister.java32 import android.database.DatabaseUtils;
998 DatabaseUtils.appendEscapedSQLString(filter, partUri.getLastPathSegment()); in updateParts()
/frameworks/base/core/java/android/accounts/
DAccountManagerService.java38 import android.database.DatabaseUtils;
409 long numMatches = DatabaseUtils.longForQuery(db, in addAccountInternal()
1995 DatabaseUtils.longForQuery(db, COUNT_OF_MATCHING_GRANTS, args) != 0; in hasExplicitlyGrantedPermission()
/frameworks/base/docs/html/sdk/api_diff/5/
DmissingSinces.txt229 NO DOC BLOCK: android.database.DatabaseUtils Method readExceptionWithOperationApplicationExceptionF…
/frameworks/base/
Dpreloaded-classes293 android.database.DatabaseUtils

12