Home
last modified time | relevance | path

Searched refs:qb (Results 1 – 25 of 39) 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.java5782 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryLocal() local
5799 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5800 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); in queryLocal()
5806 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5808 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5836 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5839 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5873 setTablesAndProjectionMapForData(qb, uri, projection, false); in queryLocal()
5878 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); in queryLocal()
5880 qb.appendWhere(" AND " + Data.CONTACT_ID + "=?"); in queryLocal()
[all …]
DDbModifierWithNotification.java208 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in update() local
209 qb.setTables(mTableName); in update()
210 qb.setProjectionMap(CallLogProvider.sCallsProjectionMap); in update()
211 qb.setStrict(true); in update()
213 qb.setStrictGrammar(true); in update()
215 int count = qb.update(mDb, values, whereClause, whereArgs); in update()
290 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in delete() local
291 qb.setTables(mTableName); in delete()
292 qb.setProjectionMap(CallLogProvider.sCallsProjectionMap); in delete()
293 qb.setStrict(true); in delete()
[all …]
DVoicemailStatusTable.java126 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
127 qb.setTables(mTableName); in query()
128 qb.setProjectionMap(sStatusProjectionMap); in query()
129 qb.setStrict(true); in query()
133 Cursor c = qb in query()
DCallComposerLocationProvider.java95 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
96 qb.setTables(TABLE_NAME); in query()
97 qb.setStrict(true); in query()
98 qb.setStrictGrammar(true); in query()
113 return qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
DVoicemailContentTable.java267 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
268 qb.setTables(mTableName); in query()
269 qb.setProjectionMap(mVoicemailProjectionMap); in query()
270 qb.setStrict(true); in query()
275 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
DCallLogProvider.java401 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
402 qb.setTables(Tables.CALLS); in queryInternal()
403 qb.setProjectionMap(sCallsProjectionMap); in queryInternal()
404 qb.setStrict(true); in queryInternal()
410 qb.setStrictGrammar(true); in queryInternal()
432 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); in queryInternal()
433 qb.appendWhereEscapeString(phoneNumber); in queryInternal()
434 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" in queryInternal()
437 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!=" in queryInternal()
455 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in queryInternal()
/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 …]
DMmsProvider.java103 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
113 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL, pduTable); in query()
116 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX, pduTable); in query()
119 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT, pduTable); in query()
122 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS, pduTable); in query()
125 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX, pduTable); in query()
128 qb.setTables(pduTable); in query()
129 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
135 qb.setTables(pduTable); in query()
136 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
[all …]
DSmsProvider.java127 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
144 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL, smsTable); in query()
148 constructQueryForUndelivered(qb, smsTable); in query()
152 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED, smsTable); in query()
156 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED, smsTable); in query()
160 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX, smsTable); in query()
164 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT, smsTable); in query()
168 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT, smsTable); in query()
172 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX, smsTable); in query()
176 qb.setTables(smsTable); in query()
[all …]
DSmsChangesProvider.java74 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
75 qb.setTables(TABLE_SMS_CHANGES); in query()
77 return qb.query(db, projectionIn, selection, selectionArgs, in query()
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()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DSQLiteQueryBuilderTest.java241 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in testAppendWhereStandalone() local
242 qb.setTables("Employee"); in testAppendWhereStandalone()
243 qb.appendWhereStandalone("A"); in testAppendWhereStandalone()
244 qb.appendWhereStandalone("B"); in testAppendWhereStandalone()
245 qb.appendWhereStandalone("C"); in testAppendWhereStandalone()
247 final String query = qb.buildQuery(null, null, null, null, null, null); in testAppendWhereStandalone()
472 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in testUpdate() local
473 qb.setTables("employee"); in testUpdate()
474 qb.appendWhere("month=3"); in testUpdate()
475 assertEquals(2, qb.update(mDatabase, values, null, null)); in testUpdate()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.kt156 val qb = SQLiteQueryBuilder() in query() constant
161 ALARMS -> qb.setTables(ALARMS_TABLE_NAME) in query()
163 qb.setTables(ALARMS_TABLE_NAME) in query()
164 qb.appendWhere(BaseColumns._ID.toString() + "=") in query()
165 qb.appendWhere(uri.getLastPathSegment()!!) in query()
167 INSTANCES -> qb.setTables(INSTANCES_TABLE_NAME) in query()
169 qb.setTables(INSTANCES_TABLE_NAME) in query()
170 qb.appendWhere(BaseColumns._ID.toString() + "=") in query()
171 qb.appendWhere(uri.getLastPathSegment()!!) in query()
174 qb.setTables(ALARM_JOIN_INSTANCE_TABLE_STATEMENT) in query()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2243 final SQLiteQueryBuilder qb = getQueryBuilder(TYPE_UPDATE, in getWritableFilesForRenameDirectory() local
2256 try (Cursor c = qb.query(helper, projection, selection, selectionArgs, null, null, null, in getWritableFilesForRenameDirectory()
2654 final SQLiteQueryBuilder qb = getQueryBuilder(type, table, uri, Bundle.EMPTY, null); in checkUriPermission() local
2655 try (Cursor c = qb.query(helper, in checkUriPermission()
2761 final SQLiteQueryBuilder qb = getQueryBuilder(TYPE_QUERY, table, uri, queryArgs, in queryInternal() local
2784 qb.setDistinct(true); in queryInternal()
2827 final Cursor c = qb.query(helper, projection, queryArgs, signal); in queryInternal()
3777 private Uri insertFile(@NonNull SQLiteQueryBuilder qb, @NonNull DatabaseHelper helper, in insertFile() argument
3850 qb.allowColumn(FileColumns._MODIFIER); in insertFile()
3862 qb.allowColumn(FileColumns._USER_ID); in insertFile()
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java815 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in regenerateInstancesTable() local
816 qb.setStrict(true); in regenerateInstancesTable()
817 qb.setStrictColumns(true); in regenerateInstancesTable()
818 qb.setStrictGrammar(true); in regenerateInstancesTable()
819 cursor = handleInstanceQuery(qb, in regenerateInstancesTable()
991 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
993 qb.setStrict(true); in queryInternal()
1024 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
1025 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
1031 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); 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/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java270 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
271 qb.setStrict(true); in query()
276 qb.setTables(DB_TABLE); in query()
279 qb.setTables(DB_TABLE); in query()
280 qb.appendWhere(BluetoothShare._ID + "="); in query()
281 qb.appendWhere(uri.getPathSegments().get(1)); in query()
329 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/services/Telephony/testapps/TestRcsApp/TestApp/src/com/google/android/sample/rcsclient/util/
DChatProvider.java65 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
72 qb.setTables(CHAT_TABLE_NAME); in query()
73 return qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
75 qb.setTables(SUMMARY_TABLE_NAME); in query()
76 return 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/Dialer/java/com/android/dialer/blocking/
DFilteredNumberProvider.java66 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
67 qb.setTables(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE); in query()
73 qb.appendWhere(FilteredNumberColumns._ID + "=" + ContentUris.parseId(uri)); in query()
78 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, null); in query()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastProvider.java185 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
186 qb.setStrict(true); // a little protection from injection attacks in query()
187 qb.setTables(CELL_BROADCASTS_TABLE_NAME); in query()
204 qb.appendWhere(CellBroadcasts.MESSAGE_BROADCASTED + "=1"); in query()
205 return qb.query(getReadableDatabase(), projection, selection, selectionArgs, null, in query()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java1319 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query() local
1324 return qb.query(db, projection, null, null, null, null, null); in query()
1331 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in query() local
1333 final Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sort); in query()
1492 final SQLiteQueryBuilder qb = getQueryBuilder(uri, match); in update() local
1493 count = qb.update(db, filteredValues, where, whereArgs); in update()
1495 try (Cursor cursor = qb.query(db, null, where, whereArgs, null, null, null); in update()
1512 qb.update(db, updateValues, Downloads.Impl._ID + "=?", in update()
1549 qb.update(db, updateValues, Downloads.Impl._ID + "=?", in update()
1643 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in getQueryBuilder() local
[all …]

12