Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java1611 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1617 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1618 qb.setProjectionMap(sPeopleProjectionMap); in query()
1619 applyRawContactsAccount(qb); in query()
1624 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
1625 qb.setProjectionMap(sPeopleProjectionMap); in query()
1626 applyRawContactsAccount(qb); in query()
1627 qb.appendWhere(" AND " + People._ID + "="); in query()
1628 qb.appendWhere(uri.getPathSegments().get(1)); in query()
1632 qb.setTables(LegacyTables.PEOPLE_JOIN_PRESENCE); in query()
[all …]
DContactsProvider2.java5186 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryLocal() local
5203 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5204 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); in queryLocal()
5210 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5212 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5240 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5243 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5277 setTablesAndProjectionMapForData(qb, uri, projection, false); in queryLocal()
5282 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); in queryLocal()
5284 qb.appendWhere(" AND " + Data.CONTACT_ID + "=?"); in queryLocal()
[all …]
DCallLogProvider.java203 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
204 qb.setTables(Tables.CALLS); in query()
205 qb.setProjectionMap(sCallsProjectionMap); in query()
206 qb.setStrict(true); in query()
227 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); in query()
228 qb.appendWhereEscapeString(phoneNumber); in query()
229 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)"); in query()
231 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!=" in query()
249 final Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, in query()
DVoicemailStatusTable.java87 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
88 qb.setTables(mTableName); in query()
89 qb.setProjectionMap(sStatusProjectionMap); in query()
90 qb.setStrict(true); in query()
94 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
DVoicemailContentTable.java226 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
227 qb.setTables(mTableName); in query()
228 qb.setProjectionMap(mVoicemailProjectionMap); in query()
229 qb.setStrict(true); in query()
234 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
DContactsDatabaseHelper.java5174 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { in buildPhoneLookupAndContactQuery() argument
5179 qb.setTables(sb.toString()); in buildPhoneLookupAndContactQuery()
5183 qb.appendWhere(sb.toString()); in buildPhoneLookupAndContactQuery()
5192 public void buildFallbackPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { in buildFallbackPhoneLookupAndContactQuery() argument
5210 qb.setTables(sb.toString()); in buildFallbackPhoneLookupAndContactQuery()
5216 qb.appendWhere(sb.toString()); in buildFallbackPhoneLookupAndContactQuery()
/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.java112 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
118 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL, smsTable); in query()
122 constructQueryForUndelivered(qb, smsTable); in query()
126 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED, smsTable); in query()
130 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED, smsTable); in query()
134 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX, smsTable); in query()
138 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT, smsTable); in query()
142 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT, smsTable); in query()
146 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX, smsTable); in query()
150 qb.setTables(smsTable); in query()
[all …]
DMmsProvider.java98 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
108 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL, pduTable); in query()
111 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX, pduTable); in query()
114 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT, pduTable); in query()
117 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS, pduTable); in query()
120 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX, pduTable); in query()
123 qb.setTables(pduTable); in query()
124 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
130 qb.setTables(pduTable); in query()
131 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
[all …]
DTelephonyProvider.java1556 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
1557 qb.setStrict(true); // a little protection from injection attacks in query()
1558 qb.setTables(CARRIERS_TABLE); in query()
1571 qb.appendWhere("numeric = '" + mTelephonyManager.getSimOperator(subId)+"'"); in query()
1595 qb.appendWhere("current IS NOT NULL"); in query()
1602 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query()
1620 qb.appendWhere("_id = " + getPreferredApnId(subId, true)); in query()
1625 qb.setTables(SIMINFO_TABLE); in query()
1658 if (CARRIERS_TABLE.equals(qb.getTables())) { in query()
1670 ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort); in query()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2130 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument
2132 qb.setTables(table); in queryThumbnail()
2136 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in queryThumbnail()
2193 qb.appendWhere(column + " = " + origId); in queryThumbnail()
2331 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query()
2350 qb.setDistinct(true); in query()
2357 qb.setTables("images"); in query()
2359 qb.setDistinct(true); in query()
2366 qb.setTables("images"); in query()
2368 qb.setDistinct(true); in query()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DClockProvider.java63 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
69 qb.setTables(ClockDatabaseHelper.ALARMS_TABLE_NAME); in query()
72 qb.setTables(ClockDatabaseHelper.ALARMS_TABLE_NAME); in query()
73 qb.appendWhere(ClockContract.AlarmsColumns._ID + "="); in query()
74 qb.appendWhere(uri.getLastPathSegment()); in query()
77 qb.setTables(ClockDatabaseHelper.INSTANCES_TABLE_NAME); in query()
80 qb.setTables(ClockDatabaseHelper.INSTANCES_TABLE_NAME); in query()
81 qb.appendWhere(ClockContract.InstancesColumns._ID + "="); in query()
82 qb.appendWhere(uri.getLastPathSegment()); in query()
85 qb.setTables(ClockDatabaseHelper.CITIES_TABLE_NAME); in query()
[all …]
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java883 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
888 qb.setTables(VIEW_ACCOUNTS); in query()
889 qb.setProjectionMap(ACCOUNTS_PROJECTION_MAP); in query()
938 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); in query()
939 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); in query()
952 qb.setTables(TABLE_BOOKMARKS_JOIN_IMAGES); in query()
964 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); in query()
971 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
973 qb.setProjectionMap(BOOKMARKS_PROJECTION_MAP); in query()
983 String bookmarksBarQuery = qb.buildQuery(projection, in query()
[all …]
DSnapshotProvider.java158 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
167 qb.setTables(TABLE_SNAPSHOTS); in query()
173 Cursor cursor = qb.query(db, projection, selection, selectionArgs, in query()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java846 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
866 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
867 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
873 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
874 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
876 qb.appendWhere(SQL_WHERE_ID); in queryInternal()
880 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
881 qb.setProjectionMap(sEventEntitiesProjectionMap); in queryInternal()
887 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
888 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.java150 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
154 qb.setTables(USERDICT_TABLE_NAME); in query()
155 qb.setProjectionMap(sDictProjectionMap); in query()
159 qb.setTables(USERDICT_TABLE_NAME); in query()
160 qb.setProjectionMap(sDictProjectionMap); in query()
161 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); in query()
183 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); 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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java300 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
305 qb.setTables(DB_TABLE); in query()
309 qb.setTables(DB_TABLE); in query()
310 qb.appendWhere(BluetoothShare._ID + "="); in query()
311 qb.appendWhere(uri.getPathSegments().get(1)); in query()
362 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/apps/FMRadio/src/com/android/fmradio/
DFmProvider.java201 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
203 qb.setTables(TABLE_NAME); in query()
208 qb.appendWhere("_id = " + uri.getPathSegments().get(1)); in query()
211 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); 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/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java1924 public final Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, in queryAggregationSuggestions() argument
1940 return queryMatchingContacts(qb, db, projection, bestMatchesWithoutDuplicateContactIds, in queryAggregationSuggestions()
1959 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, in queryMatchingContacts() argument
1980 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), in queryMatchingContacts()
2021 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID); in queryMatchingContacts()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java118 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
119 qb.setTables(args.table); in query()
122 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java123 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
124 qb.setTables(args.table); in query()
127 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()