Home
last modified time | relevance | path

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

123

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java32 import static com.android.providers.media.util.DatabaseUtils.bindSelection;
33 import static com.android.providers.media.util.DatabaseUtils.escapeForLike;
34 import static com.android.providers.media.util.DatabaseUtils.maybeBalance;
35 import static com.android.providers.media.util.DatabaseUtils.parseBoolean;
36 import static com.android.providers.media.util.DatabaseUtils.recoverAbusiveLimit;
37 import static com.android.providers.media.util.DatabaseUtils.recoverAbusiveSortOrder;
38 import static com.android.providers.media.util.DatabaseUtils.resolveQueryArgs;
74 new DatabaseUtils(); in testConstructor()
361 assertEquals("()", DatabaseUtils.bindList()); in testBindList()
362 assertEquals("( 'foo' )", DatabaseUtils.bindList("foo")); in testBindList()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java24 import android.database.DatabaseUtils;
253 private DatabaseUtils.InsertHelper mCalendarsInserter;
254 private DatabaseUtils.InsertHelper mColorsInserter;
255 private DatabaseUtils.InsertHelper mEventsInserter;
256 private DatabaseUtils.InsertHelper mEventsRawTimesInserter;
257 private DatabaseUtils.InsertHelper mInstancesInserter;
258 private DatabaseUtils.InsertHelper mAttendeesInserter;
259 private DatabaseUtils.InsertHelper mRemindersInserter;
260 private DatabaseUtils.InsertHelper mCalendarAlertsInserter;
261 private DatabaseUtils.InsertHelper mExtendedPropertiesInserter;
[all …]
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java30 import android.database.DatabaseUtils;
258 DatabaseUtils.InsertHelper insertHelper = null; in addDefaultBookmarks()
260 insertHelper = new DatabaseUtils.InsertHelper(db, TABLE_BOOKMARKS); in addDefaultBookmarks()
372 selection = DatabaseUtils.concatenateWhere(selection, in query()
375 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query()
379 selection = DatabaseUtils.concatenateWhere(selection, in query()
382 selectionArgs = DatabaseUtils.appendSelectionArgs(selectionArgs, in query()
404 where = DatabaseUtils.concatenateWhere(where, selection); in query()
407 args = DatabaseUtils.appendSelectionArgs(args, selectionArgs); in query()
/packages/services/Mtp/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()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSQLiteQueryBuilder.java26 import static com.android.providers.media.util.DatabaseUtils.bindSelection;
32 import android.database.DatabaseUtils;
191 DatabaseUtils.appendEscapedSQLString(mWhereClause, inWhere); in appendWhereEscapeString()
597 final ArrayMap<String, Object> rawValues = com.android.providers.media.util.DatabaseUtils
611 return com.android.providers.media.util.DatabaseUtils.executeInsert(db, sql, sqlArgs);
679 final ArrayMap<String, Object> rawValues = com.android.providers.media.util.DatabaseUtils
697 return com.android.providers.media.util.DatabaseUtils.executeUpdateDelete(db, sql, sqlArgs);
766 return com.android.providers.media.util.DatabaseUtils.executeUpdateDelete(db, sql, sqlArgs);
788 final ArrayMap<String, Object> rawValues = com.android.providers.media.util.DatabaseUtils
906 final ArrayMap<String, Object> rawValues = com.android.providers.media.util.DatabaseUtils
[all …]
DDatabaseUtils.java57 public class DatabaseUtils { class
110 switch (DatabaseUtils.getTypeOfObject(arg)) { in bindSelection()
517 return DatabaseUtils.bindSelection(sb.toString(), args); in bindList()
/packages/providers/TvProvider/src/com/android/providers/tv/util/
DSqlParams.java19 import android.database.DatabaseUtils;
53 mSelection = DatabaseUtils.concatenateWhere(mSelection, selection); in appendWhere()
55 mSelectionArgs = DatabaseUtils.appendSelectionArgs(mSelectionArgs, selectionArgs); in appendWhere()
/packages/apps/TV/common/src/com/android/tv/common/util/sql/
DSqlParams.java19 import android.database.DatabaseUtils;
56 mSelection = DatabaseUtils.concatenateWhere(mSelection, selection); in appendWhere()
58 mSelectionArgs = DatabaseUtils.appendSelectionArgs(mSelectionArgs, selectionArgs); in appendWhere()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java47 import com.android.providers.media.util.DatabaseUtils;
214 DatabaseUtils.copyFromCursorToContentValues(FileColumns.DISPLAY_NAME, c, values); in doForwardLock()
215 DatabaseUtils.copyFromCursorToContentValues(FileColumns.MIME_TYPE, c, values); in doForwardLock()
216 DatabaseUtils.copyFromCursorToContentValues(FileColumns.MEDIA_TYPE, c, values); in doForwardLock()
217 DatabaseUtils.copyFromCursorToContentValues(FileColumns.IS_DRM, c, values); in doForwardLock()
218 DatabaseUtils.copyFromCursorToContentValues(FileColumns.DURATION, c, values); in doForwardLock()
DMediaScannerTest.java31 import android.database.DatabaseUtils;
204 DatabaseUtils.dumpCursor(cl); in testCorrectness()
206 DatabaseUtils.dumpCursor(cm); in testCorrectness()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DCallLogMigrationTest.java19 import android.database.DatabaseUtils;
70 assertEquals(3, DatabaseUtils.longForQuery(db, "select count(*) from " + in testMigration()
73 assertEquals(2, DatabaseUtils.longForQuery(db, "select count(*) from " + in testMigration()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForOrganization.java21 import android.database.DatabaseUtils;
71 company = DatabaseUtils.stringForQuery(db, in update()
82 title = DatabaseUtils.stringForQuery(db, in update()
DMemoryCursor.java21 import android.database.DatabaseUtils;
36 DatabaseUtils.cursorFillWindow(cursor, 0, getWindow()); in fillFromCursor()
DCallLogDatabaseHelper.java22 import android.database.DatabaseUtils;
515 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
526 DatabaseUtils.cursorRowToContentValues(source, cv); in migrateFromLegacyTables()
559 return DatabaseUtils.longForQuery(db, in tableExists()
DCallLogProvider.java36 import android.database.DatabaseUtils;
262 private DatabaseUtils.InsertHelper mCallsInserter;
611 mCallsInserter = new DatabaseUtils.InsertHelper(db, Tables.CALLS); in insertInternal()
875 private DatabaseModifier createDatabaseModifier(DatabaseUtils.InsertHelper insertHelper) { in createDatabaseModifier()
1127 DatabaseUtils.cursorRowToContentValues(cursor, values); in copyEntriesFromCursor()
1149 if (DatabaseUtils.queryNumEntries(db, Tables.CALLS, in copyEntriesFromCursor()
DContactsDatabaseHelper.java30 import android.database.DatabaseUtils;
3170 DatabaseUtils.appendEscapedSQLString(sb, iccId); in upgradeToVersion1003()
3961 DatabaseUtils.bindObjectToProgram(select, 1, accountWithDataSet.getAccountName()); in getAccountIdOrNull()
3962 DatabaseUtils.bindObjectToProgram(select, 2, accountWithDataSet.getAccountType()); in getAccountIdOrNull()
3963 DatabaseUtils.bindObjectToProgram(select, 3, accountWithDataSet.getDataSet()); in getAccountIdOrNull()
3994 DatabaseUtils.bindObjectToProgram(insert, 1, accountWithDataSet.getAccountName()); in getOrCreateAccountIdInTransaction()
3995 DatabaseUtils.bindObjectToProgram(insert, 2, accountWithDataSet.getAccountType()); in getOrCreateAccountIdInTransaction()
3996 DatabaseUtils.bindObjectToProgram(insert, 3, accountWithDataSet.getDataSet()); in getOrCreateAccountIdInTransaction()
4043 DatabaseUtils.bindObjectToProgram(insert, 1, accountWithDataSet.getAccountName()); in createSimAccountIdInTransaction()
4044 DatabaseUtils.bindObjectToProgram(insert, 2, accountWithDataSet.getAccountType()); in createSimAccountIdInTransaction()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DStringableCursor.java20 import android.database.DatabaseUtils;
40 return DatabaseUtils.dumpCursorToString(wrapped); in toString()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineups.java22 import android.database.DatabaseUtils;
37 DatabaseUtils.cursorRowToContentValues(cursor, contentValues); in query()
DEpgInputs.java22 import android.database.DatabaseUtils;
58 DatabaseUtils.cursorRowToContentValues(cursor, contentValues); in queryEpgInputs()
/packages/apps/KeyChain/src/com/android/keychain/internal/
DGrantsDatabase.java23 import android.database.DatabaseUtils;
135 DatabaseUtils.longForQuery( in hasEntryInUserSelectableTable()
169 DatabaseUtils.longForQuery( in hasGrantInternal()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarDatabaseHelperTest.java25 import android.database.DatabaseUtils;
48 private DatabaseUtils.InsertHelper mBadEventsInserter;
49 private DatabaseUtils.InsertHelper mGoodEventsInserter;
/packages/apps/Gallery2/src/com/android/photos/data/
DPhotoProvider.java24 import android.database.DatabaseUtils;
361 return DatabaseUtils.concatenateWhere(selection, where); in addIdToSelection()
377 return DatabaseUtils.appendSelectionArgs(selectionArgs, whereArgs); in addIdToSelectionArgs()
387 return DatabaseUtils.appendSelectionArgs(selectionArgs, additionalArgs); in addMetadataKeysToSelectionArgs()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DDbQueryUtils.java19 import android.database.DatabaseUtils;
53 DatabaseUtils.appendEscapedSQLString(clause, value); in getClauseWithOperator()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLauncherDbUtils.java22 import android.database.DatabaseUtils;
73 if (DatabaseUtils.queryNumEntries(db, Favorites.TABLE_NAME, in prepareScreenZeroToHostQsb()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java66 import static com.android.providers.media.util.DatabaseUtils.bindList;
206 import com.android.providers.media.util.DatabaseUtils;
1250 String relativePath = "Android/media/" + DatabaseUtils.escapeForLike(packageName) + "/%"; in onPackageOrphaned()
1873 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1875 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1877 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1882 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1884 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1889 options.add(DatabaseUtils.bindSelection("media_type=?", in getWhereClauseForMatchableVisibleFromFilePath()
1900 options.add(DatabaseUtils.bindSelection(matchSharedPackagesClause)); in getWhereClauseForMatchableVisibleFromFilePath()
[all …]

123