Home
last modified time | relevance | path

Searched refs:qb (Results 1 – 25 of 27) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java1550 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1556 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1557 qb.setProjectionMap(sPeopleProjectionMap); in query()
1558 applyRawContactsAccount(qb); in query()
1563 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1564 qb.setProjectionMap(sPeopleProjectionMap); in query()
1565 applyRawContactsAccount(qb); in query()
1566 qb.appendWhere(" AND " + People._ID + "="); in query()
1567 qb.appendWhere(uri.getPathSegments().get(1)); in query()
1571 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
[all …]
DContactsProvider2.java5814 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryLocal() local
5831 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5832 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); in queryLocal()
5838 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5840 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5868 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5871 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5905 setTablesAndProjectionMapForData(qb, uri, projection, false); in queryLocal()
5910 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); in queryLocal()
5912 qb.appendWhere(" AND " + Data.CONTACT_ID + "=?"); in queryLocal()
[all …]
DContactMetadataProvider.java130 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
138 setTablesAndProjectionMapForMetadata(qb); in query()
142 setTablesAndProjectionMapForMetadata(qb); in query()
149 setTablesAndProjectionMapForSyncState(qb); in query()
156 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
328 private void setTablesAndProjectionMapForMetadata(SQLiteQueryBuilder qb){ in setTablesAndProjectionMapForMetadata() argument
329 qb.setTables(Views.METADATA_SYNC); in setTablesAndProjectionMapForMetadata()
330 qb.setProjectionMap(sMetadataProjectionMap); in setTablesAndProjectionMapForMetadata()
331 qb.setStrict(true); in setTablesAndProjectionMapForMetadata()
334 private void setTablesAndProjectionMapForSyncState(SQLiteQueryBuilder qb){ in setTablesAndProjectionMapForSyncState() argument
[all …]
DCallLogProvider.java244 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
245 qb.setTables(Tables.CALLS); in query()
246 qb.setProjectionMap(sCallsProjectionMap); in query()
247 qb.setStrict(true); in query()
268 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); in query()
269 qb.appendWhereEscapeString(phoneNumber); in query()
270 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)"); in query()
272 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!=" in query()
290 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
DVoicemailStatusTable.java116 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
117 qb.setTables(mTableName); in query()
118 qb.setProjectionMap(sStatusProjectionMap); in query()
119 qb.setStrict(true); in query()
123 Cursor c = qb in query()
DVoicemailContentTable.java238 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
239 qb.setTables(mTableName); in query()
240 qb.setProjectionMap(mVoicemailProjectionMap); in query()
241 qb.setStrict(true); in query()
246 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DHbpcdLookupProvider.java171 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
179 qb.setTables(TABLE_MCC_IDD); in query()
180 qb.setProjectionMap(sIddProjectionMap); in query()
187 qb.setTables(TABLE_MCC_LOOKUP_TABLE); in query()
188 qb.setProjectionMap(sLookupProjectionMap); in query()
209 qb.setTables(joinT.toString()); in query()
210 qb.setProjectionMap(sConflictProjectionMap); in query()
214 qb.setTables(TABLE_MCC_SID_RANGE); in query()
215 qb.setProjectionMap(sRangeProjectionMap); in query()
222 qb.setTables(TABLE_NANP_AREA_CODE); in query()
[all …]
DSmsProvider.java119 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
126 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL, smsTable); in query()
130 constructQueryForUndelivered(qb, smsTable); in query()
134 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED, smsTable); in query()
138 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED, smsTable); in query()
142 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX, smsTable); in query()
146 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT, smsTable); in query()
150 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT, smsTable); in query()
154 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX, smsTable); in query()
158 qb.setTables(smsTable); in query()
[all …]
DMmsProvider.java100 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
110 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL, pduTable); in query()
113 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX, pduTable); in query()
116 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT, pduTable); in query()
119 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS, pduTable); in query()
122 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX, pduTable); in query()
125 qb.setTables(pduTable); in query()
126 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
132 qb.setTables(pduTable); in query()
133 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
[all …]
DCarrierProvider.java70 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
71 qb.setTables(CarrierDatabaseHelper.CARRIER_KEY_TABLE); in query()
74 Cursor c = qb.query(db, projectionIn, selection, selectionArgs, null, null, sortOrder); in query()
DTelephonyProvider.java1974 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1975 qb.setStrict(true); // a little protection from injection attacks in query()
1976 qb.setTables(CARRIERS_TABLE); in query()
1989 qb.appendWhere(NUMERIC + " = '" + mTelephonyManager.getSimOperator(subId) + "'"); in query()
2013 qb.appendWhere("current IS NOT NULL"); in query()
2020 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query()
2038 qb.appendWhere("_id = " + getPreferredApnId(subId, true)); in query()
2043 qb.setTables(SIMINFO_TABLE); in query()
2098 if (CARRIERS_TABLE.equals(qb.getTables())) { in query()
2110 ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort); in query()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1112 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument
1114 qb.setTables(table); in queryThumbnail()
1118 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in queryThumbnail()
1175 qb.appendWhere(column + " = " + origId); in queryThumbnail()
1313 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query()
1332 qb.setDistinct(true); in query()
1339 qb.setTables("images"); in query()
1341 qb.setDistinct(true); in query()
1348 qb.setTables("images"); in query()
1350 qb.setDistinct(true); in query()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java150 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
157 qb.setTables(ALARMS_TABLE_NAME); in query()
160 qb.setTables(ALARMS_TABLE_NAME); in query()
161 qb.appendWhere(AlarmsColumns._ID + "="); in query()
162 qb.appendWhere(uri.getLastPathSegment()); in query()
165 qb.setTables(INSTANCES_TABLE_NAME); in query()
168 qb.setTables(INSTANCES_TABLE_NAME); in query()
169 qb.appendWhere(InstancesColumns._ID + "="); in query()
170 qb.appendWhere(uri.getLastPathSegment()); in query()
173 qb.setTables(ALARM_JOIN_INSTANCE_TABLE_STATEMENT); in query()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java824 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
844 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
845 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
851 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
852 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
854 qb.appendWhere(SQL_WHERE_ID); in queryInternal()
858 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
859 qb.setProjectionMap(sEventEntitiesProjectionMap); in queryInternal()
865 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
866 qb.setProjectionMap(sEventEntitiesProjectionMap); in queryInternal()
[all …]
DCalendarInstancesHelper.java561 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in getEntries() local
562 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in getEntries()
563 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap); in getEntries()
584 qb.appendWhere(SQL_WHERE_GET_EVENTS_ENTRIES); in getEntries()
594 Cursor c = qb.query(db, EXPAND_COLUMNS, null /* selection */, selectionArgs, in getEntries()
834 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in getRelevantRecurrenceEntries() local
836 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in getRelevantRecurrenceEntries()
837 qb.setProjectionMap(CalendarProvider2.sEventsProjectionMap); in getRelevantRecurrenceEntries()
841 qb.appendWhere(where); in getRelevantRecurrenceEntries()
849 qb.appendWhere(where); in getRelevantRecurrenceEntries()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDatabaseWrapper.java197 private void explainQueryPlan(final SQLiteQueryBuilder qb, final SQLiteDatabase db, in explainQueryPlan() argument
205 final String queryString = qb.buildQuery( in explainQueryPlan()
248 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
249 qb.setTables(searchTable); in query()
250 explainQueryPlan(qb, mDatabase, projection, selection, selectionArgs, in query()
278 public Cursor query(final SQLiteQueryBuilder qb, in query() argument
282 explainQueryPlan(qb, mDatabase, projection, selection, queryArgs, in query()
290 final Cursor cursor = qb.query(mDatabase, projection, selection, queryArgs, groupBy, in query()
296 qb.getTables(), selection, cursor.getCount())); in query()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java160 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
164 qb.setTables(USERDICT_TABLE_NAME); in query()
165 qb.setProjectionMap(sDictProjectionMap); in query()
169 qb.setTables(USERDICT_TABLE_NAME); in query()
170 qb.setProjectionMap(sDictProjectionMap); in query()
171 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); in query()
188 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java968 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query() local
973 return qb.query(db, projection, null, null, null, null, null); in query()
980 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query() local
981 final Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sort); in query()
1134 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in update() local
1135 count = qb.update(db, filteredValues, where, whereArgs); in update()
1138 try (Cursor cursor = qb.query(db, null, where, whereArgs, in update()
1236 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in getQueryBuilder() local
1237 qb.setTables(table); in getQueryBuilder()
1238 qb.setProjectionMap(projectionMap); in getQueryBuilder()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java294 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
295 qb.setStrict(true); in query()
300 qb.setTables(DB_TABLE); in query()
304 qb.setTables(DB_TABLE); in query()
305 qb.appendWhere(BluetoothShare._ID + "="); in query()
306 qb.appendWhere(uri.getPathSegments().get(1)); in query()
357 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java363 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
389 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); in query()
390 qb.setTables(TABLE_BOOKMARKS); in query()
395 qb.setTables(TABLE_BOOKMARKS); in query()
402 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); in query()
409 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
426 return qb.query(db, projection, selection, selectionArgs, groupBy, null, sortOrder, limit); in query()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastContentProvider.java95 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
96 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); in query()
106 qb.appendWhere("(_id=" + uri.getPathSegments().get(0) + ')'); in query()
122 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberProvider.java65 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
66 qb.setTables(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE); in query()
72 qb.appendWhere(FilteredNumberColumns._ID + "=" + ContentUris.parseId(uri)); in query()
77 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null); in query()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java286 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryBlockedList() local
287 qb.setStrict(true); in queryBlockedList()
288 qb.setTables(BlockedNumberDatabaseHelper.Tables.BLOCKED_NUMBERS); in queryBlockedList()
289 qb.setProjectionMap(sBlockedNumberColumns); in queryBlockedList()
291 return qb.query(mDbHelper.getReadableDatabase(), projection, selection, selectionArgs, in queryBlockedList()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java1953 public final Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, in queryAggregationSuggestions() argument
1969 return queryMatchingContacts(qb, db, projection, bestMatchesWithoutDuplicateContactIds, in queryAggregationSuggestions()
1988 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, in queryMatchingContacts() argument
2009 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), in queryMatchingContacts()
2050 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID); in queryMatchingContacts()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java178 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
179 qb.setTables(args.table); in query()
182 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()

12