Home
last modified time | relevance | path

Searched refs:rawQuery (Results 1 – 25 of 51) sorted by relevance

123

/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DRcsProviderParticipantHelper.java138 StringBuilder rawQuery = buildInitialRawQuery(queryParameters); in performInitialQuery() local
139 RcsProviderUtil.appendLimit(rawQuery, queryParameters.getLimit()); in performInitialQuery()
140 String rawQueryAsString = rawQuery.toString(); in performInitialQuery()
141 Cursor cursor = db.rawQuery(rawQueryAsString, null); in performInitialQuery()
155 StringBuilder rawQuery = new StringBuilder("SELECT * FROM "); in buildInitialRawQuery() local
160 rawQuery.append(RCS_PARTICIPANT_WITH_THREAD_VIEW); in buildInitialRawQuery()
162 rawQuery.append(RCS_PARTICIPANT_WITH_ADDRESS_VIEW); in buildInitialRawQuery()
170 rawQuery.append(" WHERE "); in buildInitialRawQuery()
174 rawQuery.append(RCS_ALIAS_COLUMN).append(" LIKE \"").append( in buildInitialRawQuery()
180 rawQuery.append(" AND "); in buildInitialRawQuery()
[all …]
DRcsProviderEventHelper.java137 StringBuilder rawQuery = new StringBuilder("SELECT * FROM ").append(RCS_UNIFIED_EVENT_VIEW); in performInitialQuery() local
141 rawQuery.append(" WHERE ").append(EVENT_TYPE_COLUMN); in performInitialQuery()
143 rawQuery.append(" IN (").append( in performInitialQuery()
150 rawQuery.append("=").append(eventType); in performInitialQuery()
154 rawQuery.append(" ORDER BY "); in performInitialQuery()
158 rawQuery.append(TIMESTAMP_COLUMN); in performInitialQuery()
160 rawQuery.append(EVENT_ID_COLUMN); in performInitialQuery()
163 rawQuery.append(queryParameters.getSortDirection() ? " ASC " : " DESC "); in performInitialQuery()
165 RcsProviderUtil.appendLimit(rawQuery, queryParameters.getLimit()); in performInitialQuery()
166 String rawQueryAsString = rawQuery.toString(); in performInitialQuery()
[all …]
DRcsProviderMessageHelper.java347 StringBuilder rawQuery = new StringBuilder("SELECT * FROM ").append(UNIFIED_MESSAGE_VIEW); in performInitialQuery() local
359 rawQuery.append(" WHERE "); in performInitialQuery()
363 rawQuery.append(MESSAGE_TYPE_COLUMN).append("=").append(MESSAGE_TYPE_INCOMING); in performInitialQuery()
365 rawQuery.append(MESSAGE_TYPE_COLUMN).append("=").append(MESSAGE_TYPE_OUTGOING); in performInitialQuery()
370 rawQuery.append(" AND "); in performInitialQuery()
372 rawQuery.append(MESSAGE_TEXT_COLUMN).append(" LIKE \"").append(messageLike) in performInitialQuery()
378 rawQuery.append(" AND "); in performInitialQuery()
380 rawQuery.append(RCS_THREAD_ID_COLUMN).append("=").append(threadId); in performInitialQuery()
387 rawQuery.append(" ORDER BY "); in performInitialQuery()
391 rawQuery.append(ORIGINATION_TIMESTAMP_COLUMN); in performInitialQuery()
[all …]
DRcsProviderThreadHelper.java255 StringBuilder rawQuery = new StringBuilder("SELECT * FROM ").append( in performInitialQuery() local
259 rawQuery.append(" WHERE ").append(THREAD_TYPE_COLUMN).append("=0"); in performInitialQuery()
261 rawQuery.append(" WHERE ").append(THREAD_TYPE_COLUMN).append("=1"); in performInitialQuery()
264 rawQuery.append(" ORDER BY "); in performInitialQuery()
267 rawQuery.append(ORIGINATION_TIMESTAMP_COLUMN); in performInitialQuery()
269 rawQuery.append(RCS_THREAD_ID_COLUMN); in performInitialQuery()
272 rawQuery.append(queryParameters.getSortDirection() ? " ASC " : " DESC "); in performInitialQuery()
273 RcsProviderUtil.appendLimit(rawQuery, queryParameters.getLimit()); in performInitialQuery()
275 String rawQueryAsString = rawQuery.toString(); in performInitialQuery()
276 Cursor cursor = db.rawQuery(rawQueryAsString, null); in performInitialQuery()
DRcsProviderUtil.java61 String rawQuery = continuationToken.getRawQuery(); in performContinuationQuery() local
64 if (offset <= 0 || TextUtils.isEmpty(rawQuery)) { in performContinuationQuery()
69 String continuationQuery = rawQuery + " OFFSET " + offset; in performContinuationQuery()
71 Cursor cursor = db.rawQuery(continuationQuery, null); in performContinuationQuery()
DMmsSmsProvider.java417 cursor = db.rawQuery(SEARCH_QUERY, SEARCH_STRING); in query()
441 cursor = db.rawQuery(mmsQuery, new String[] { String.valueOf(id) }); in query()
462 cursor = db.rawQuery(getTextSearchQuery(smsTable, pduTable), in query()
698 cursor = db.rawQuery(THREAD_QUERY, selectionArgs); in getThreadId()
709 cursor = db.rawQuery(THREAD_QUERY, selectionArgs); in getThreadId()
819 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getDraftThread()
884 return mOpenHelper.getReadableDatabase().rawQuery(outerQuery, EMPTY_STRING_ARRAY); in getConversations()
929 Cursor cursor = mOpenHelper.getReadableDatabase().rawQuery(unionQuery, EMPTY_STRING_ARRAY); in getFirstLockedMessage()
947 return mOpenHelper.getReadableDatabase().rawQuery(unionQuery, EMPTY_STRING_ARRAY); in getCompleteConversations()
987 return mOpenHelper.getReadableDatabase().rawQuery(unionQuery, EMPTY_STRING_ARRAY); in getConversationMessages()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarDatabaseHelperTest.java351 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events()
352 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion50Events()
385 assertEquals(mBadDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events()
386 assertEquals(mGoodDb.rawQuery("SELECT _id FROM Events;", null).getCount(), 2); in addVersion67Events()
401 badCursor = mBadDb.rawQuery("SELECT _id,dtstart,dtend,duration,dtstart2,dtend2," + in testUpgradeToVersion69()
404 goodCursor = mGoodDb.rawQuery("SELECT _id,dtstart,dtend,duration,dtstart2,dtend2," + in testUpgradeToVersion69()
433 badCursor = mBadDb.rawQuery("SELECT _id,dtstart,dtend,duration," + in testUpgradeToCurrentVersion()
436 goodCursor = mGoodDb.rawQuery("SELECT _id,dtstart,dtend,duration," + in testUpgradeToCurrentVersion()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesDatabaseHelperTest.java63 Cursor cursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testDatabaseSchema()
88 Cursor baseline = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData()
93 Cursor newCursor = mDatabase.rawQuery("SELECT * FROM slices_index", null); in testUpgrade_dropsOldData()
DSlicesIndexerTest.java86 try (final Cursor cursor = db.rawQuery("SELECT * FROM slices_index", null)) { in testAlreadyIndexed_doesNotIndexAgain()
116 try (final Cursor cursor = db.rawQuery("SELECT * FROM slices_index", null)) { in testInsertSliceData_mockDataInserted()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java436 try (Cursor c = db.rawQuery(ACCOUNTS_QUERY, null)) { in dump()
471 try (Cursor c = db.rawQuery(RAW_CONTACTS_PER_ACCOUNT_PER_CONTACT, null)) { in dump()
488 try (Cursor c = db.rawQuery(DATA_PER_ACCOUNT_PER_RAW_CONTACT, null)) { in dump()
554 try (final Cursor c = db.rawQuery(query, null)) { in doubleForQuery()
DCallLogDatabaseHelper.java487 try (Cursor source = contacts.rawQuery( in migrateFromLegacyTables()
498 try (Cursor source = contacts.rawQuery("SELECT * FROM " + in migrateFromLegacyTables()
550 final Cursor c = db.rawQuery("SELECT DISTINCT " in selectDistinctColumn()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java1136 cursor = db.rawQuery(SELECT_ATTENDEES_ORPHANS, null); in removeOrphans()
1150 cursor = db.rawQuery(SELECT_REMINDERS_ORPHANS, null); in removeOrphans()
2325 Cursor cursor = db.rawQuery("SELECT value FROM CalendarCache WHERE key=?", in upgradeToVersion203()
2490 Cursor cursor = db.rawQuery(selectSql, null /* selection args */); in upgradeToVersion200()
2536 Cursor cursor = db.rawQuery(sql, new String[] {"1"}); in upgradeToVersion69()
2727 Cursor cursor = db.rawQuery("SELECT Events._id," + in upgradeToVersion62()
2934 Cursor cursor = db.rawQuery("SELECT _id, " + in upgradeToVersion56()
2960 Cursor cursor = db.rawQuery("SELECT _sync_account," + in upgradeResync()
3043 Cursor cursor = db.rawQuery("SELECT _id," + in upgradeToVersion52()
3055 Cursor recur = db.rawQuery("SELECT allDay" + in upgradeToVersion52()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DDatabaseAnalyzer.java47 try (final Cursor c = db.rawQuery( in findTablesAndViews()
63 final Cursor c = db.rawQuery("SELECT * FROM " + table + " WHERE 0 LIMIT 0", null); in findColumns()
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailProvider.java777 final Cursor orphans = db.rawQuery(ORPHAN_BODY_MESSAGE_ID_SELECT, null); in delete()
1418 c = db.rawQuery(sb.toString(), selectionArgs); in query()
1856 final Cursor c = db.rawQuery(GET_ACCOUNT_DETAILS, new String[] {id}); in restartPush()
1969 ic = db.rawQuery(ACCOUNT_INTEGRITY_SQL, new String[] {id}); in update()
2011 final Cursor c = db.rawQuery(GET_MESSAGE_DETAILS, new String[] {id}); in update()
2589 return db.rawQuery(sql, selectionArgs); in notificationQuery()
2595 return db.rawQuery("select max(_id) from Message where mailboxKey=?", in mostRecentMessageQuery()
2602 return db.rawQuery("select count(*) from Message where mailboxKey=?", in getMailboxMessageCount()
3238 return db.rawQuery(sb.toString(), selectionArgs); in getVirtualMailboxMessagesCursor()
3946 db.rawQuery("select _id from " + Account.TABLE_NAME, new String[0]); in uiAccounts()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java220 final Cursor planCursor = db.rawQuery("explain query plan " + sql, queryArgs); in explainQueryPlan()
319 public Cursor rawQuery(final String sql, final String[] args) { in rawQuery() method in DatabaseWrapper
328 final Cursor cursor = mDatabase.rawQuery(sql, args); in rawQuery()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java200 try (Cursor c = db.rawQuery("SELECT profileId from favorites WHERE profileId != ? " in getManagedProfileIds()
225 try (Cursor c = db.rawQuery("PRAGMA table_info (favorites)", null)){ in getDefaultProfileId()
DLauncherDbUtils.java51 try (Cursor c = db.rawQuery(String.format(Locale.ENGLISH, in prepareScreenZeroToHostQsb()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsDatabaseHelperUpgradeTest.java155 try (Cursor c = mDb.rawQuery("select * from contacts order by _id", null)) { in upgradeTo1201()
171 try (Cursor c = mDb.rawQuery("select * from raw_contacts order by _id", null)) { in upgradeTo1201()
187 try (Cursor c = mDb.rawQuery("select * from data_usage_stat", null)) { in upgradeTo1201()
DBaseDatabaseHelperUpgradeTest.java73 try (final Cursor cursor = db.rawQuery("PRAGMA table_info(" + tableName + ");", null)) { in TableStructure()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
DContactsTableUtil.java131 final Cursor cursor = db.rawQuery(sql, new String[]{rawContactId + ""}); in deleteContactIfSingleton()
/packages/apps/Launcher3/tests/src/com/android/launcher3/provider/
DRestoreDbTaskTest.java75 try (Cursor c = db.rawQuery(sql, null)) { in getCount()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java463 final Cursor c = db.rawQuery(sbQuery.toString(), null); in aggregateInTransaction()
615 final Cursor cursor = db.rawQuery("SELECT " + RawContacts._ID + in markAllVisibleForAggregation()
847 Cursor cursor = db.rawQuery(query, null); in findIdPairs()
1410 Cursor c = db.rawQuery(sql, sqlArgs); in computeAggregateData()
1786 final Cursor c = db.rawQuery(DisplayNameQuery.SQL, mSelectionArgs2); in updateDisplayNameForContact()
DContactAggregator2.java197 final Cursor cursor = db.rawQuery(sql, mSelectionArgs1); in needAggregate()
259 final Cursor c = db.rawQuery(sql, null); in clearSuperPrimarySetting()
405 final Cursor cursor = db.rawQuery(sql, mSelectionArgs1); in canBeReused()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DSearchRecentSuggestionsProvider.java160 return db.rawQuery(QUERY, args); in query()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DCardDatabaseHelperTest.java60 final Cursor cursor = mDatabase.rawQuery("SELECT * FROM " + CardDatabaseHelper.CARD_TABLE, in testDatabaseSchema()

123