Home
last modified time | relevance | path

Searched refs:queryBuilder (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMessagingContentProvider.java272 final SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
280 queryBuilder.setTables(ConversationListItemData.getConversationListView()); in query()
282 queryBuilder.appendWhere(ConversationColumns.SORT_TIMESTAMP + " > 0 "); in query()
285 queryBuilder.setTables(ConversationListItemData.getConversationListView()); in query()
287 queryBuilder.appendWhere(ConversationColumns._ID + "=?"); in query()
295 queryBuilder.setTables(DatabaseHelper.PARTICIPANTS_TABLE); in query()
298 queryBuilder.appendWhere(ParticipantColumns._ID + " IN ( " + "SELECT " in query()
314 queryBuilder.setTables(DatabaseHelper.PARTICIPANTS_TABLE); in query()
340 queryBuilder.setTables(ConversationImagePartsView.getViewName()); in query()
343 queryBuilder.appendWhere( in query()
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.java147 StringBuilder queryBuilder = new StringBuilder(); in queryUpcomingEvents() local
148 queryBuilder.append("("); in queryUpcomingEvents()
149 queryBuilder.append(INSTANCES_WHERE); in queryUpcomingEvents()
150 queryBuilder.append(") OR ("); in queryUpcomingEvents()
151 queryBuilder.append(INSTANCES_WHERE); in queryUpcomingEvents()
152 queryBuilder.append(")"); in queryUpcomingEvents()
168 queryBuilder.toString(), queryArgs, null); in queryUpcomingEvents()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredSimFallbackProvider.java70 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
71 queryBuilder.setStrict(true); in query()
72 queryBuilder.setProjectionMap(PROJECTION_MAP); in query()
73 queryBuilder.setTables(PreferredSimDatabaseHelper.TABLE); in query()
74 return queryBuilder.query( in query()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java92 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
93 queryBuilder.setTables(AnnotatedCallLog.TABLE); in query()
97 queryBuilder.appendWhere(AnnotatedCallLog._ID + "=" + ContentUris.parseId(uri)); in query()
99 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
109 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
122 queryBuilder.setDistinct(true); in query()
124 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DIconCacheUpdateHandler.java213 StringBuilder queryBuilder = new StringBuilder() in finish() local
221 queryBuilder.append(", "); in finish()
223 queryBuilder.append(mItemsToDelete.keyAt(i)); in finish()
227 queryBuilder.append(')'); in finish()
230 mIconCache.mIconDb.delete(queryBuilder.toString(), null); in finish()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1334 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
1335 queryBuilder.setStrict(needsToValidateSortOrder); in query()
1336 queryBuilder.setTables(params.getTables()); in query()
1361 queryBuilder.setProjectionMap(createProjectionMapForQuery(projection, projectionMap)); in query()
1373 Cursor c = queryBuilder.query(db, projection, params.getSelection(), in query()
2152 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in openLogoFile() local
2153 queryBuilder.setTables(params.getTables()); in openLogoFile()
2158 String sql = queryBuilder.buildQuery(new String[] { CHANNELS_COLUMN_LOGO }, in openLogoFile()
2167 try (Cursor cursor = queryBuilder.query(db, new String[] { Channels._ID }, in openLogoFile()
2310 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in onConsolidate() local
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DSyncCursorPair.java587 final StringBuilder queryBuilder = new StringBuilder(); in getTimeConstrainedQuery() local
588 queryBuilder.append(typeSelection); in getTimeConstrainedQuery()
590 queryBuilder.append(" AND ").append(timeColumn).append(">=").append(from); in getTimeConstrainedQuery()
593 queryBuilder.append(" AND ").append(timeColumn).append("<").append(to); in getTimeConstrainedQuery()
596 queryBuilder.append(" AND ").append(threadColumn).append("=").append(threadId); in getTimeConstrainedQuery()
598 return queryBuilder.toString(); in getTimeConstrainedQuery()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java98 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
99 queryBuilder.setTables(PhoneLookupHistory.TABLE); in query()
103 queryBuilder.appendWhere( in query()
111 queryBuilder.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DCardContentProvider.java128 final SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
130 queryBuilder.setTables(table); in query()
132 final Cursor cursor = queryBuilder.query(database, in query()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DCardContentProvider.java128 final SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
130 queryBuilder.setTables(table); in query()
132 final Cursor cursor = queryBuilder.query(database, in query()
/packages/apps/DocumentsUI/src/com/android/documentsui/queries/
DSearchHistoryManager.java188 final SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in getSortedHistoryList() local
189 queryBuilder.setTables(DatabaseHelper.HISTORY_TABLE); in getSortedHistoryList()
191 return queryBuilder.query(mHelper.getReadableDatabase(), PROJECTION_HISTORY, null, in getSortedHistoryList()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java690 final StringBuilder queryBuilder = new StringBuilder(Downloads.Impl._ID + " in ("); in buildQueryWithIds() local
693 queryBuilder.append(downloadIds.get(i)); in buildQueryWithIds()
694 queryBuilder.append((i == size - 1) ? ")" : ","); in buildQueryWithIds()
696 return queryBuilder.toString(); in buildQueryWithIds()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java1528 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in query() local
1529 queryBuilder.setStrict(needsToValidateSortOrder); in query()
1530 queryBuilder.setTables(params.getTables()); in query()
1555 queryBuilder.setProjectionMap(createProjectionMapForQuery(projection, projectionMap)); in query()
1568 queryBuilder.query( in query()
2337 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in openLogoFile() local
2338 queryBuilder.setTables(params.getTables()); in openLogoFile()
2344 queryBuilder.buildQuery( in openLogoFile()
2359 queryBuilder.query( in openLogoFile()
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java1636 final StringBuilder queryBuilder = new StringBuilder(); in getRawContactIds() local
1637 queryBuilder.append(RawContacts.CONTACT_ID) in getRawContactIds()
1643 queryBuilder.toString(), in getRawContactIds()
1669 final StringBuilder queryBuilder = new StringBuilder(); in getRawContactIdsForAggregation() local
1672 queryBuilder.append(RawContacts.CONTACT_ID + "=?"); in getRawContactIdsForAggregation()
1680 queryBuilder.append(" OR "); in getRawContactIdsForAggregation()
1685 queryBuilder.toString(), in getRawContactIdsForAggregation()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsProvider.java1098 SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); in getConversationById() local
1101 queryBuilder.setDistinct(true); in getConversationById()
1102 queryBuilder.setTables(TABLE_THREADS); in getConversationById()
1103 return queryBuilder.query( in getConversationById()