Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/provider/
DCalendarContract.java39 import android.database.DatabaseUtils;
604 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
605 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
607 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, _SYNC_ID); in getEntityAndIncrementCursor()
608 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
609 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, MUTATORS); in getEntityAndIncrementCursor()
611 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC1); in getEntityAndIncrementCursor()
612 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC2); in getEntityAndIncrementCursor()
613 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC3); in getEntityAndIncrementCursor()
614 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, CAL_SYNC4); in getEntityAndIncrementCursor()
[all …]
DBrowser.java24 import android.database.DatabaseUtils;
279 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
282 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
286 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
290 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
293 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
296 DatabaseUtils.appendEscapedSQLString(whereClause, in getVisitedLike()
DContactsContract.java44 import android.database.DatabaseUtils;
3099 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_NAME); in getEntityAndIncrementCursor()
3100 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, ACCOUNT_TYPE); in getEntityAndIncrementCursor()
3101 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, DATA_SET); in getEntityAndIncrementCursor()
3102 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, _ID); in getEntityAndIncrementCursor()
3103 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, DIRTY); in getEntityAndIncrementCursor()
3104 DatabaseUtils.cursorLongToContentValuesIfPresent(cursor, cv, VERSION); in getEntityAndIncrementCursor()
3105 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SOURCE_ID); in getEntityAndIncrementCursor()
3106 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC1); in getEntityAndIncrementCursor()
3107 DatabaseUtils.cursorStringToContentValuesIfPresent(cursor, cv, SYNC2); in getEntityAndIncrementCursor()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteProgram.java20 import android.database.DatabaseUtils;
48 int n = DatabaseUtils.getSqlStatementType(mSql); in SQLiteProgram()
50 case DatabaseUtils.STATEMENT_BEGIN: in SQLiteProgram()
51 case DatabaseUtils.STATEMENT_COMMIT: in SQLiteProgram()
52 case DatabaseUtils.STATEMENT_ABORT: in SQLiteProgram()
59 boolean assumeReadOnly = (n == DatabaseUtils.STATEMENT_SELECT); in SQLiteProgram()
DSQLiteSession.java21 import android.database.DatabaseUtils;
873 final int type = DatabaseUtils.getSqlStatementType(sql); in executeSpecial()
875 case DatabaseUtils.STATEMENT_BEGIN: in executeSpecial()
880 case DatabaseUtils.STATEMENT_COMMIT: in executeSpecial()
885 case DatabaseUtils.STATEMENT_ABORT: in executeSpecial()
DSQLiteCursor.java22 import android.database.DatabaseUtils;
159 int startPos = mFillWindowForwardOnly ? requiredPos : DatabaseUtils in fillWindow()
DSQLiteDatabase.java30 import android.database.DatabaseUtils;
991 return ((Long) DatabaseUtils.longForQuery(this, "PRAGMA user_version;", null)).intValue(); in getVersion()
1009 long pageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count;", null); in getMaximumSize()
1027 long newPageCount = DatabaseUtils.longForQuery(this, "PRAGMA max_page_count = " + numPages, in setMaximumSize()
1038 return DatabaseUtils.longForQuery(this, "PRAGMA page_size;", null); in getPageSize()
1790 final int statementType = DatabaseUtils.getSqlStatementType(sql); in executeSql()
1791 if (statementType == DatabaseUtils.STATEMENT_ATTACH) { in executeSql()
1810 if (statementType == DatabaseUtils.STATEMENT_DDL) { in executeSql()
DSQLiteConnection.java21 import android.database.DatabaseUtils;
989 final int type = DatabaseUtils.getSqlStatementType(sql); in acquirePreparedStatement()
1090 switch (DatabaseUtils.getTypeOfObject(arg)) { in bindArguments()
1128 if (statementType == DatabaseUtils.STATEMENT_UPDATE in isCacheable()
1129 || statementType == DatabaseUtils.STATEMENT_SELECT) { in isCacheable()
/frameworks/base/core/java/android/database/
DBulkCursorNative.java127 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
166 DatabaseUtils.readExceptionFromParcel(reply); in getWindow()
187 DatabaseUtils.readExceptionFromParcel(reply); in onMove()
202 DatabaseUtils.readExceptionFromParcel(reply); in deactivate()
217 DatabaseUtils.readExceptionFromParcel(reply); in close()
232 DatabaseUtils.readExceptionFromParcel(reply); in requery()
256 DatabaseUtils.readExceptionFromParcel(reply); in getExtras()
275 DatabaseUtils.readExceptionFromParcel(reply); in respond()
DRedactingCursor.java66 DatabaseUtils.cursorFillWindow(this, position, window); in fillWindow()
166 return DatabaseUtils.getTypeOfObject(mRedactions.valueAt(i)); in getType()
DCrossProcessCursorWrapper.java53 DatabaseUtils.cursorFillWindow(mCursor, position, window); in fillWindow()
DDatabaseUtils.java52 public class DatabaseUtils { class
140 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionFromParcel()
151 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionWithFileNotFoundExceptionFromParcel()
163 DatabaseUtils.readExceptionFromParcel(reply, msg, code); in readExceptionWithOperationApplicationExceptionFromParcel()
275 switch (DatabaseUtils.getTypeOfObject(arg)) { in bindSelection()
452 DatabaseUtils.appendEscapedSQLString(escaper, value); in sqlEscapeString()
1218 DatabaseUtils.bindObjectToProgram(stmt, i, e.getValue()); in insertInternal()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCompatibilityWalFlagsTest.java25 import android.database.DatabaseUtils;
106 String journalMode = DatabaseUtils.stringForQuery(mDatabase, "PRAGMA journal_mode", null); in testApplyFlags()
108 String syncMode = DatabaseUtils.stringForQuery(mDatabase, "PRAGMA synchronous", null); in testApplyFlags()
122 String journalMode = DatabaseUtils.stringForQuery(mDatabase, "PRAGMA journal_mode", null); in testApplyFlags_thenDisableWriteAheadLogging()
124 String syncMode = DatabaseUtils.stringForQuery(mDatabase, "PRAGMA synchronous", null); in testApplyFlags_thenDisableWriteAheadLogging()
/frameworks/base/core/java/android/content/
DContentProviderNative.java26 import android.database.DatabaseUtils;
368 DatabaseUtils.writeExceptionToParcel(reply, e); in onTransact()
423 DatabaseUtils.readExceptionFromParcel(reply); in query()
458 DatabaseUtils.readExceptionFromParcel(reply); in getType()
481 DatabaseUtils.readExceptionFromParcel(reply); in insert()
503 DatabaseUtils.readExceptionFromParcel(reply); in bulkInsert()
528 DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(reply); in applyBatch()
553 DatabaseUtils.readExceptionFromParcel(reply); in delete()
578 DatabaseUtils.readExceptionFromParcel(reply); in update()
604 DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(reply); in openFile()
[all …]
DLoggingContentInterface.java23 import android.database.DatabaseUtils;
78 DatabaseUtils.dumpCursor((Cursor) res, sb); in setResult()
/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()
/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.java27 import android.database.DatabaseUtils;
231 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/base/core/tests/coretests/src/android/database/
DSQLiteOpenHelperTest.java188 String journalMode = DatabaseUtils in testOpenParamsConstructor()
192 String syncMode = DatabaseUtils in testOpenParamsConstructor()
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;
560 num, DatabaseUtils.longForQuery(mDatabase, "SELECT num FROM test", null)); in checkNum()
690 DatabaseUtils.InsertHelper ih = in testInsertHelper()
691 new DatabaseUtils.InsertHelper(mDatabase, "insert_test"); in testInsertHelper()
850 DatabaseUtils.InsertHelper ih = in testCollateLocalizedForJapanese()
851 new DatabaseUtils.InsertHelper(mDatabase, dbName); in testCollateLocalizedForJapanese()
1087 long rowCount = DatabaseUtils.longForQuery(db, "select count(*) from data", null); in testSavepointRollbacks()
DDatabaseUtilsTest.java19 import static android.database.DatabaseUtils.bindSelection;
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountsDb.java24 import android.database.DatabaseUtils;
768 return DatabaseUtils.longForQuery(db, in findAccountLastAuthenticatedTime()
897 return DatabaseUtils.longForQuery(db, COUNT_OF_MATCHING_GRANTS, args); in findMatchingGrantsCount()
903 return DatabaseUtils.longForQuery(db, COUNT_OF_MATCHING_GRANTS_ANY_TOKEN, args); in findMatchingGrantsCountAnyToken()
1304 int size = (int) DatabaseUtils.longForQuery(db, queryCountDebugDbRows, null); in calculateDebugTableInsertionPoint()
1317 return DatabaseUtils.longForQuery(db, queryCountDebugDbRows, null); in calculateDebugTableInsertionPoint()
/frameworks/base/core/java/android/app/
DDownloadManager.java33 import android.database.DatabaseUtils;
1289 + DatabaseUtils.dumpCurrentRowToString(cursor));
1294 + DatabaseUtils.dumpCurrentRowToString(cursor));
1297 + DatabaseUtils.dumpCurrentRowToString(cursor));

12