Home
last modified time | relevance | path

Searched refs:qb (Results 1 – 24 of 24) 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.java5179 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryLocal() local
5196 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5197 appendLocalDirectoryAndAccountSelectionIfNeeded(qb, directoryId, uri); in queryLocal()
5203 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5205 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5233 setTablesAndProjectionMapForContacts(qb, projection); in queryLocal()
5236 qb.appendWhere(Contacts._ID + "=?"); in queryLocal()
5270 setTablesAndProjectionMapForData(qb, uri, projection, false); in queryLocal()
5275 qb.appendWhere(" AND " + Data._ID + "=" + Contacts.PHOTO_ID); in queryLocal()
5277 qb.appendWhere(" AND " + Data.CONTACT_ID + "=?"); in queryLocal()
[all …]
DCallLogProvider.java185 final SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
186 qb.setTables(Tables.CALLS); in query()
187 qb.setProjectionMap(sCallsProjectionMap); in query()
188 qb.setStrict(true); in query()
208 qb.appendWhere("PHONE_NUMBERS_EQUAL(number, "); in query()
209 qb.appendWhereEscapeString(phoneNumber); in query()
210 qb.appendWhere(mUseStrictPhoneNumberComparation ? ", 1)" : ", 0)"); in query()
212 qb.appendWhere(Calls.NUMBER_PRESENTATION + "!=" in query()
230 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.java216 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
217 qb.setTables(mTableName); in query()
218 qb.setProjectionMap(mVoicemailProjectionMap); in query()
219 qb.setStrict(true); in query()
224 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder); in query()
DContactsDatabaseHelper.java4965 SQLiteQueryBuilder qb, String normalizedNumber, String numberE164) { in buildPhoneLookupAndContactQuery() argument
4970 qb.setTables(sb.toString()); in buildPhoneLookupAndContactQuery()
4974 qb.appendWhere(sb.toString()); in buildPhoneLookupAndContactQuery()
4983 public void buildFallbackPhoneLookupAndContactQuery(SQLiteQueryBuilder qb, String number) { in buildFallbackPhoneLookupAndContactQuery() argument
5001 qb.setTables(sb.toString()); in buildFallbackPhoneLookupAndContactQuery()
5007 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.java94 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
100 constructQueryForBox(qb, Sms.MESSAGE_TYPE_ALL); in query()
104 constructQueryForUndelivered(qb); in query()
108 constructQueryForBox(qb, Sms.MESSAGE_TYPE_FAILED); in query()
112 constructQueryForBox(qb, Sms.MESSAGE_TYPE_QUEUED); in query()
116 constructQueryForBox(qb, Sms.MESSAGE_TYPE_INBOX); in query()
120 constructQueryForBox(qb, Sms.MESSAGE_TYPE_SENT); in query()
124 constructQueryForBox(qb, Sms.MESSAGE_TYPE_DRAFT); in query()
128 constructQueryForBox(qb, Sms.MESSAGE_TYPE_OUTBOX); in query()
132 qb.setTables(TABLE_SMS); in query()
[all …]
DMmsProvider.java79 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
89 constructQueryForBox(qb, Mms.MESSAGE_BOX_ALL); in query()
92 constructQueryForBox(qb, Mms.MESSAGE_BOX_INBOX); in query()
95 constructQueryForBox(qb, Mms.MESSAGE_BOX_SENT); in query()
98 constructQueryForBox(qb, Mms.MESSAGE_BOX_DRAFTS); in query()
101 constructQueryForBox(qb, Mms.MESSAGE_BOX_OUTBOX); in query()
104 qb.setTables(TABLE_PDU); in query()
105 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(0)); in query()
111 qb.setTables(TABLE_PDU); in query()
112 qb.appendWhere(Mms._ID + "=" + uri.getPathSegments().get(1)); in query()
[all …]
DTelephonyProvider.java676 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
677 qb.setStrict(true); // a little protection from injection attacks in query()
678 qb.setTables("carriers"); in query()
691 qb.appendWhere("numeric = '" + mTelephonyManager.getSimOperator(subId)+"'"); in query()
715 qb.appendWhere("current IS NOT NULL"); in query()
722 qb.appendWhere("_id = " + url.getPathSegments().get(1)); in query()
740 qb.appendWhere("_id = " + getPreferredApnId(subId)); in query()
745 qb.setTables(SIMINFO_TABLE); in query()
777 ret = qb.query(db, projectionIn, selection, selectionArgs, null, null, sort); in query()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java2115 private boolean queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, in queryThumbnail() argument
2117 qb.setTables(table); in queryThumbnail()
2121 qb.appendWhere("_id = " + uri.getPathSegments().get(3)); in queryThumbnail()
2178 qb.appendWhere(column + " = " + origId); in queryThumbnail()
2316 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query()
2335 qb.setDistinct(true); in query()
2342 qb.setTables("images"); in query()
2344 qb.setDistinct(true); in query()
2351 qb.setTables("images"); in query()
2353 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.java853 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in queryInternal() local
873 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
874 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
880 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
881 qb.setProjectionMap(sEventsProjectionMap); in queryInternal()
883 qb.appendWhere(SQL_WHERE_ID); in queryInternal()
887 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
888 qb.setProjectionMap(sEventEntitiesProjectionMap); in queryInternal()
894 qb.setTables(CalendarDatabaseHelper.Views.EVENTS); in queryInternal()
895 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/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java307 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
312 qb.setTables(DB_TABLE); in query()
316 qb.setTables(DB_TABLE); in query()
317 qb.appendWhere(BluetoothShare._ID + "="); in query()
318 qb.appendWhere(uri.getPathSegments().get(1)); in query()
322 qb.setTables(DB_TABLE); in query()
323 qb.setProjectionMap(LIVE_FOLDER_PROJECTION_MAP); in query()
324 qb.appendWhere(BluetoothShare.DIRECTION + "=" + BluetoothShare.DIRECTION_INBOUND in query()
377 Cursor ret = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java127 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
131 qb.setTables(USERDICT_TABLE_NAME); in query()
132 qb.setProjectionMap(sDictProjectionMap); in query()
136 qb.setTables(USERDICT_TABLE_NAME); in query()
137 qb.setProjectionMap(sDictProjectionMap); in query()
138 qb.appendWhere("_id" + "=" + uri.getPathSegments().get(1)); in query()
155 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/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.java93 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
94 qb.setTables(CellBroadcastDatabaseHelper.TABLE_NAME); in query()
104 qb.appendWhere("(_id=" + uri.getPathSegments().get(0) + ')'); in query()
120 Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, orderBy); in query()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DContactAggregator.java2649 public Cursor queryAggregationSuggestions(SQLiteQueryBuilder qb, in queryAggregationSuggestions() argument
2656 return queryMatchingContacts(qb, db, projection, bestMatches, maxSuggestions, filter); in queryAggregationSuggestions()
2674 private Cursor queryMatchingContacts(SQLiteQueryBuilder qb, SQLiteDatabase db, in queryMatchingContacts() argument
2695 Cursor cursor = db.query(qb.getTables(), ContactIdQuery.COLUMNS, sb.toString(), in queryMatchingContacts()
2736 cursor = qb.query(db, projection, sb.toString(), null, null, null, Contacts._ID); in queryMatchingContacts()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherProvider.java117 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
118 qb.setTables(args.table); in query()
121 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherProvider.java126 SQLiteQueryBuilder qb = new SQLiteQueryBuilder(); in query() local
127 qb.setTables(args.table); in query()
130 Cursor result = qb.query(db, projection, args.where, args.args, null, null, sortOrder); in query()