Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/provider/
DCalendarContract.java35 import android.database.DatabaseUtils;
527 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
528 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
530 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, _SYNC_ID); in getEntityAndIncrementCursor()
531 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
532 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, MUTATORS); in getEntityAndIncrementCursor()
534 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC1); in getEntityAndIncrementCursor()
535 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC2); in getEntityAndIncrementCursor()
536 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC3); in getEntityAndIncrementCursor()
537 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC4); in getEntityAndIncrementCursor()
[all …]
DBrowser.java25 import android.database.DatabaseUtils;
281 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
284 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
288 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
292 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
295 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
298 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
DContactsContract.java38 import android.database.DatabaseUtils;
3049 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
3050 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
3051 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, DATA_SET); in getEntityAndIncrementCursor()
3052 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, _ID); in getEntityAndIncrementCursor()
3053 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
3054 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, VERSION); in getEntityAndIncrementCursor()
3055 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SOURCE_ID); in getEntityAndIncrementCursor()
3056 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC1); in getEntityAndIncrementCursor()
3057 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC2); in getEntityAndIncrementCursor()
[all …]
DMediaStore.java27 import android.database.DatabaseUtils;
1401 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;
454 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
456 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
458 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
460 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
463 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
465 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
468 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
470 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, in testTokenize()
[all …]
DDatabaseCursorTest.java24 import android.database.DatabaseUtils;
116 DatabaseUtils.cursorRowToContentValues(c, cv); in testBlob()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteProgram.java19 import android.database.DatabaseUtils;
45 int n = DatabaseUtils.getSqlStatementType(mSql); in SQLiteProgram()
47 case DatabaseUtils.STATEMENT_BEGIN: in SQLiteProgram()
48 case DatabaseUtils.STATEMENT_COMMIT: in SQLiteProgram()
49 case DatabaseUtils.STATEMENT_ABORT: in SQLiteProgram()
56 boolean assumeReadOnly = (n == DatabaseUtils.STATEMENT_SELECT); in SQLiteProgram()
DSQLiteSession.java20 import android.database.DatabaseUtils;
871 final int type = DatabaseUtils.getSqlStatementType(sql); in executeSpecial()
873 case DatabaseUtils.STATEMENT_BEGIN: in executeSpecial()
878 case DatabaseUtils.STATEMENT_COMMIT: in executeSpecial()
883 case DatabaseUtils.STATEMENT_ABORT: in executeSpecial()
DSQLiteCursor.java21 import android.database.DatabaseUtils;
142 int startPos = DatabaseUtils.cursorPickFillWindowStartPosition(requiredPos, 0); in fillWindow()
149 int startPos = DatabaseUtils.cursorPickFillWindowStartPosition(requiredPos, in fillWindow()
DSQLiteDatabase.java24 import android.database.DatabaseUtils;
866 return ((Long) DatabaseUtils.longForQuery(this, "PRAGMA user_version;", null)).intValue(); in getVersion()
884 long pageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count;", null); in getMaximumSize()
902 long newPageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count = " + numPages, in setMaximumSize()
913 return DatabaseUtils.longForQuery(this, "PRAGMA page_size;", null); in getPageSize()
1662 if (DatabaseUtils.getSqlStatementType(sql) == DatabaseUtils.STATEMENT_ATTACH) { in executeSql()
DSQLiteQueryBuilder.java20 import android.database.DatabaseUtils;
121 DatabaseUtils.appendEscapedSQLString(mWhereClause, inWhere); in appendWhereEscapeString()
DSQLiteConnection.java24 import android.database.DatabaseUtils;
892 final int type = DatabaseUtils.getSqlStatementType(sql); in acquirePreparedStatement()
993 switch (DatabaseUtils.getTypeOfObject(arg)) { in bindArguments()
1031 if (statementType == DatabaseUtils.STATEMENT_UPDATE in isCacheable()
1032 || statementType == DatabaseUtils.STATEMENT_SELECT) { in isCacheable()
/frameworks/base/core/java/android/database/
DBulkCursorNative.java126 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
164 DatabaseUtils.readExceptionFromParcel(reply); in getWindow()
185 DatabaseUtils.readExceptionFromParcel(reply); in onMove()
200 DatabaseUtils.readExceptionFromParcel(reply); in deactivate()
215 DatabaseUtils.readExceptionFromParcel(reply); in close()
230 DatabaseUtils.readExceptionFromParcel(reply); in requery()
254 DatabaseUtils.readExceptionFromParcel(reply); in getExtras()
273 DatabaseUtils.readExceptionFromParcel(reply); in respond()
DCrossProcessCursorWrapper.java53 DatabaseUtils.cursorFillWindow(mCursor, position, window); in fillWindow()
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()
360 DatabaseUtils.appendEscapedSQLString(escaper, value); in sqlEscapeString()
1128 DatabaseUtils.bindObjectToProgram(stmt, i, e.getValue()); in insertInternal()
DMatrixCursor.java307 return DatabaseUtils.getTypeOfObject(get(column)); in getType()
DAbstractCursor.java248 DatabaseUtils.cursorFillWindow(this, position, window); in fillWindow()
/frameworks/base/core/java/android/content/
DContentProviderNative.java24 import android.database.DatabaseUtils;
360 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
421 DatabaseUtils.readExceptionFromParcel(reply); in query()
454 DatabaseUtils.readExceptionFromParcel(reply); in getType()
476 DatabaseUtils.readExceptionFromParcel(reply); in insert()
497 DatabaseUtils.readExceptionFromParcel(reply); in bulkInsert()
520 DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(reply); in applyBatch()
544 DatabaseUtils.readExceptionFromParcel(reply); in delete()
568 DatabaseUtils.readExceptionFromParcel(reply); in update()
594 DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(reply); in openFile()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMapper.java22 import android.database.DatabaseUtils;
213 DatabaseUtils.appendSelectionArgs(args, strings(ROW_STATE_VALID))); in startAddingDocuments()
346 DatabaseUtils.appendSelectionArgs(strings(ROW_STATE_INVALIDATED), args))) { in stopAddingDocuments()
352 DatabaseUtils.appendSelectionArgs( in stopAddingDocuments()
393 DatabaseUtils.appendSelectionArgs(args, strings(ROW_STATE_INVALIDATED))); in cancelAddingDocuments()
441 DatabaseUtils.appendSelectionArgs( in queryCandidate()
DMtpDatabase.java26 import android.database.DatabaseUtils;
162 DatabaseUtils.cursorRowToContentValues(deviceRoot, values); in queryRoots()
588 DatabaseUtils.cursorRowToContentValues(cursor, values); in writeRowSnapshot()
/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;
107 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
DProviderTestCase2.java26 import android.database.DatabaseUtils;
230 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql); in newResolverWithContentProviderFromSql()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java20 import android.database.DatabaseUtils;
159 return DatabaseUtils.blobFileDescriptorForQuery(db, sql, null); in getBlobColumnAsFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWapPushOverSms.java32 import android.database.DatabaseUtils;
501 DatabaseUtils.sqlEscapeString(messageId), in getDeliveryOrReadReportThreadId()

12